@mapomodule/uikit 1.0.0 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +199 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/module.d.mts +60 -0
- package/dist/module.d.ts +55 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +179 -0
- package/dist/runtime/adapters/defaultMediaAdapter.d.ts +14 -0
- package/dist/runtime/adapters/defaultMediaAdapter.d.ts.map +1 -0
- package/dist/runtime/adapters/defaultMediaAdapter.js +30 -0
- package/dist/runtime/assets/main.css +1 -0
- package/dist/runtime/components/MapoConfirmDialog.vue +35 -0
- package/dist/runtime/components/MapoConfirmDialog.vue.d.ts +4 -0
- package/dist/runtime/components/MapoConfirmDialog.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoDetail.vue +606 -0
- package/dist/runtime/components/MapoDetail.vue.d.ts +401 -0
- package/dist/runtime/components/MapoDetail.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoDetailLangSwitch.vue +126 -0
- package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts +23 -0
- package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoDropArea.vue +99 -0
- package/dist/runtime/components/MapoDropArea.vue.d.ts +33 -0
- package/dist/runtime/components/MapoDropArea.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoLangSwitcher.vue +39 -0
- package/dist/runtime/components/MapoLangSwitcher.vue.d.ts +18 -0
- package/dist/runtime/components/MapoLangSwitcher.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoList.vue +191 -0
- package/dist/runtime/components/MapoList.vue.d.ts +111 -0
- package/dist/runtime/components/MapoList.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListActions.vue +119 -0
- package/dist/runtime/components/MapoListActions.vue.d.ts +33 -0
- package/dist/runtime/components/MapoListActions.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListFilters.vue +246 -0
- package/dist/runtime/components/MapoListFilters.vue.d.ts +38 -0
- package/dist/runtime/components/MapoListFilters.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListHead.vue +9 -0
- package/dist/runtime/components/MapoListHead.vue.d.ts +14 -0
- package/dist/runtime/components/MapoListHead.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListQuickEdit.vue +123 -0
- package/dist/runtime/components/MapoListQuickEdit.vue.d.ts +47 -0
- package/dist/runtime/components/MapoListQuickEdit.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListTable.vue +665 -0
- package/dist/runtime/components/MapoListTable.vue.d.ts +105 -0
- package/dist/runtime/components/MapoListTable.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListTabs.vue +38 -0
- package/dist/runtime/components/MapoListTabs.vue.d.ts +26 -0
- package/dist/runtime/components/MapoListTabs.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoLogin.vue +196 -0
- package/dist/runtime/components/MapoLogin.vue.d.ts +22 -0
- package/dist/runtime/components/MapoLogin.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoLogoutButton.vue +27 -0
- package/dist/runtime/components/MapoLogoutButton.vue.d.ts +29 -0
- package/dist/runtime/components/MapoLogoutButton.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaBreadcrumbs.vue +47 -0
- package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts +4 -0
- package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaEditor.vue +320 -0
- package/dist/runtime/components/MapoMediaEditor.vue.d.ts +8 -0
- package/dist/runtime/components/MapoMediaEditor.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaFileChanger.vue +112 -0
- package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts +15 -0
- package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaFolders.vue +220 -0
- package/dist/runtime/components/MapoMediaFolders.vue.d.ts +4 -0
- package/dist/runtime/components/MapoMediaFolders.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaGallery.vue +219 -0
- package/dist/runtime/components/MapoMediaGallery.vue.d.ts +4 -0
- package/dist/runtime/components/MapoMediaGallery.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaManager.vue +140 -0
- package/dist/runtime/components/MapoMediaManager.vue.d.ts +35 -0
- package/dist/runtime/components/MapoMediaManager.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaManagerDialog.vue +116 -0
- package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts +41 -0
- package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaPreview.vue +92 -0
- package/dist/runtime/components/MapoMediaPreview.vue.d.ts +19 -0
- package/dist/runtime/components/MapoMediaPreview.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaUploader.vue +290 -0
- package/dist/runtime/components/MapoMediaUploader.vue.d.ts +8 -0
- package/dist/runtime/components/MapoMediaUploader.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuManager.vue +273 -0
- package/dist/runtime/components/MapoMenuManager.vue.d.ts +92 -0
- package/dist/runtime/components/MapoMenuManager.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuNodeEditor.vue +201 -0
- package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts +61 -0
- package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuTreeview.vue +181 -0
- package/dist/runtime/components/MapoMenuTreeview.vue.d.ts +57 -0
- package/dist/runtime/components/MapoMenuTreeview.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuTreeviewNode.vue +175 -0
- package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts +27 -0
- package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoRootComponents.vue +9 -0
- package/dist/runtime/components/MapoRootComponents.vue.d.ts +4 -0
- package/dist/runtime/components/MapoRootComponents.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebar.vue +89 -0
- package/dist/runtime/components/MapoSidebar.vue.d.ts +22 -0
- package/dist/runtime/components/MapoSidebar.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebarList.vue +27 -0
- package/dist/runtime/components/MapoSidebarList.vue.d.ts +8 -0
- package/dist/runtime/components/MapoSidebarList.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebarListItem.vue +74 -0
- package/dist/runtime/components/MapoSidebarListItem.vue.d.ts +9 -0
- package/dist/runtime/components/MapoSidebarListItem.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebarProfile.vue +55 -0
- package/dist/runtime/components/MapoSidebarProfile.vue.d.ts +10 -0
- package/dist/runtime/components/MapoSidebarProfile.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSnackBar.vue +38 -0
- package/dist/runtime/components/MapoSnackBar.vue.d.ts +4 -0
- package/dist/runtime/components/MapoSnackBar.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoThemeToggle.vue +23 -0
- package/dist/runtime/components/MapoThemeToggle.vue.d.ts +4 -0
- package/dist/runtime/components/MapoThemeToggle.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoTopbar.vue +30 -0
- package/dist/runtime/components/MapoTopbar.vue.d.ts +15 -0
- package/dist/runtime/components/MapoTopbar.vue.d.ts.map +1 -0
- package/dist/runtime/components/menuDndContext.d.ts +19 -0
- package/dist/runtime/components/menuDndContext.d.ts.map +1 -0
- package/dist/runtime/components/menuDndContext.js +3 -0
- package/dist/runtime/layouts/default.vue +43 -0
- package/dist/runtime/layouts/default.vue.d.ts +20 -0
- package/dist/runtime/layouts/default.vue.d.ts.map +1 -0
- package/dist/runtime/layouts/empty.vue +9 -0
- package/dist/runtime/layouts/empty.vue.d.ts +14 -0
- package/dist/runtime/layouts/empty.vue.d.ts.map +1 -0
- package/dist/runtime/page-meta.nuxt.d.ts +45 -0
- package/dist/runtime/pages/index.vue +14 -0
- package/dist/runtime/pages/index.vue.d.ts +4 -0
- package/dist/runtime/pages/index.vue.d.ts.map +1 -0
- package/dist/runtime/pages/login.vue +3 -0
- package/dist/runtime/pages/login.vue.d.ts +4 -0
- package/dist/runtime/pages/login.vue.d.ts.map +1 -0
- package/dist/runtime/plugins/media-adapter.d.ts +18 -0
- package/dist/runtime/plugins/media-adapter.d.ts.map +1 -0
- package/dist/runtime/plugins/media-adapter.js +8 -0
- package/dist/runtime/stores/media.d.ts +462 -0
- package/dist/runtime/stores/media.d.ts.map +1 -0
- package/dist/runtime/stores/media.js +344 -0
- package/dist/runtime/types/list.d.ts +59 -0
- package/dist/runtime/types/list.d.ts.map +1 -0
- package/dist/runtime/types/list.js +0 -0
- package/dist/runtime/types/media.d.ts +116 -0
- package/dist/runtime/types/media.d.ts.map +1 -0
- package/dist/runtime/types/media.js +0 -0
- package/dist/runtime/types/menu.d.ts +66 -0
- package/dist/runtime/types/menu.d.ts.map +1 -0
- package/dist/runtime/types/menu.js +30 -0
- package/dist/types.d.mts +9 -0
- package/package.json +67 -12
- package/src/index.ts +30 -0
- package/src/module.ts +311 -0
- package/src/runtime/adapters/defaultMediaAdapter.ts +57 -0
- package/src/runtime/assets/main.css +59 -0
- package/src/runtime/components/MapoConfirmDialog.vue +36 -0
- package/src/runtime/components/MapoDetail.vue +864 -0
- package/src/runtime/components/MapoDetailLangSwitch.vue +166 -0
- package/src/runtime/components/MapoDropArea.vue +127 -0
- package/src/runtime/components/MapoLangSwitcher.vue +74 -0
- package/src/runtime/components/MapoList.vue +339 -0
- package/src/runtime/components/MapoListActions.vue +158 -0
- package/src/runtime/components/MapoListFilters.vue +292 -0
- package/src/runtime/components/MapoListHead.vue +12 -0
- package/src/runtime/components/MapoListQuickEdit.vue +166 -0
- package/src/runtime/components/MapoListTable.vue +931 -0
- package/src/runtime/components/MapoListTabs.vue +48 -0
- package/src/runtime/components/MapoLogin.vue +212 -0
- package/src/runtime/components/MapoLogoutButton.vue +48 -0
- package/src/runtime/components/MapoMediaBreadcrumbs.vue +53 -0
- package/src/runtime/components/MapoMediaEditor.vue +350 -0
- package/src/runtime/components/MapoMediaFileChanger.vue +136 -0
- package/src/runtime/components/MapoMediaFolders.vue +239 -0
- package/src/runtime/components/MapoMediaGallery.vue +239 -0
- package/src/runtime/components/MapoMediaManager.vue +180 -0
- package/src/runtime/components/MapoMediaManagerDialog.vue +148 -0
- package/src/runtime/components/MapoMediaPreview.vue +111 -0
- package/src/runtime/components/MapoMediaUploader.vue +351 -0
- package/src/runtime/components/MapoMenuManager.vue +402 -0
- package/src/runtime/components/MapoMenuNodeEditor.vue +282 -0
- package/src/runtime/components/MapoMenuTreeview.vue +264 -0
- package/src/runtime/components/MapoMenuTreeviewNode.vue +234 -0
- package/src/runtime/components/MapoRootComponents.vue +9 -0
- package/src/runtime/components/MapoSidebar.vue +114 -0
- package/src/runtime/components/MapoSidebarList.vue +35 -0
- package/src/runtime/components/MapoSidebarListItem.vue +79 -0
- package/src/runtime/components/MapoSidebarProfile.vue +61 -0
- package/src/runtime/components/MapoSnackBar.vue +42 -0
- package/src/runtime/components/MapoThemeToggle.vue +27 -0
- package/src/runtime/components/MapoTopbar.vue +36 -0
- package/src/runtime/components/menuDndContext.ts +22 -0
- package/src/runtime/layouts/default.vue +53 -0
- package/src/runtime/layouts/empty.vue +9 -0
- package/src/runtime/page-meta.nuxt.d.ts +45 -0
- package/src/runtime/pages/index.vue +15 -0
- package/src/runtime/pages/login.vue +3 -0
- package/src/runtime/plugins/media-adapter.ts +33 -0
- package/src/runtime/stores/media.ts +474 -0
- package/src/runtime/types/list.ts +64 -0
- package/src/runtime/types/media.ts +126 -0
- package/src/runtime/types/menu.ts +105 -0
- package/CHANGELOG.md +0 -1030
- package/assets/mixins.scss +0 -22
- package/assets/variables.scss +0 -18
- package/components/ConfirmDialog.vue +0 -173
- package/components/Detail/Detail.vue +0 -696
- package/components/Detail/DetailLangSwitch.vue +0 -79
- package/components/DropArea.vue +0 -257
- package/components/Form/Form.vue +0 -218
- package/components/Form/FormField.vue +0 -216
- package/components/Form/FormGroup.vue +0 -146
- package/components/Form/FormTabs.vue +0 -188
- package/components/Form/defaults.js +0 -98
- package/components/Form/fields/ColorField.vue +0 -79
- package/components/Form/fields/DateField.vue +0 -77
- package/components/Form/fields/DateTimeField.vue +0 -271
- package/components/Form/fields/EnhancedMediaField.vue +0 -224
- package/components/Form/fields/FileField.vue +0 -125
- package/components/Form/fields/FksField.vue +0 -115
- package/components/Form/fields/MediaField.vue +0 -159
- package/components/Form/fields/MediaM2mField.vue +0 -149
- package/components/Form/fields/Repeater.vue +0 -618
- package/components/Form/fields/SeoPreview.vue +0 -89
- package/components/Form/fields/TimeField.vue +0 -154
- package/components/Form/fields/mapField/leaflet.injector.js +0 -39
- package/components/Form/fields/mapField/mapField.vue +0 -350
- package/components/Form/fields/wygEditor/defaults.js +0 -25
- package/components/Form/fields/wygEditor/utils/events.js +0 -64
- package/components/Form/fields/wygEditor/utils/mapomedia.plugin.js +0 -32
- package/components/Form/fields/wygEditor/utils/tinymce.injector.js +0 -29
- package/components/Form/fields/wygEditor/wygEditor.vue +0 -285
- package/components/Form/fields/wygEditorCKE/defaults.js +0 -103
- package/components/Form/fields/wygEditorCKE/utils/ckeditor.injector.js +0 -29
- package/components/Form/fields/wygEditorCKE/wygEditorCKE.vue +0 -270
- package/components/LangSwitcher.vue +0 -44
- package/components/List/List.vue +0 -271
- package/components/List/ListActions.vue +0 -164
- package/components/List/ListFilters.vue +0 -372
- package/components/List/ListHead.vue +0 -67
- package/components/List/ListQuickEdit.vue +0 -228
- package/components/List/ListTable.vue +0 -484
- package/components/List/ListTabs.vue +0 -65
- package/components/Login.vue +0 -125
- package/components/Logo.vue +0 -79
- package/components/LogoutButton.vue +0 -54
- package/components/MediaManager/MediaBreadcrumbs.vue +0 -45
- package/components/MediaManager/MediaEditor.vue +0 -340
- package/components/MediaManager/MediaFileChanger.vue +0 -78
- package/components/MediaManager/MediaFolders.vue +0 -287
- package/components/MediaManager/MediaGallery.vue +0 -281
- package/components/MediaManager/MediaManager.vue +0 -159
- package/components/MediaManager/MediaManagerDialog.vue +0 -104
- package/components/MediaManager/MediaPreview.vue +0 -258
- package/components/MediaManager/MediaUploader.vue +0 -163
- package/components/MenuManager/MenuManager.vue +0 -332
- package/components/MenuManager/MenuNodeEditor.vue +0 -270
- package/components/MenuManager/MenuTreeview.vue +0 -237
- package/components/MenuManager/MenuTreeviewNode.vue +0 -208
- package/components/PagePreview.vue +0 -58
- package/components/RootComponents.vue +0 -25
- package/components/SnackBar.vue +0 -69
- package/components/ThemeToggle.vue +0 -13
- package/components/layout/Sidebar/Sidebar.vue +0 -89
- package/components/layout/Sidebar/SidebarList.vue +0 -49
- package/components/layout/Sidebar/SidebarListItem.vue +0 -185
- package/components/layout/Sidebar/SidebarProfile.vue +0 -42
- package/components/layout/Sidebar/SidebarTitle.vue +0 -45
- package/components/layout/Topbar/Topbar.vue +0 -29
- package/components/layout/routebuilder.js +0 -48
- package/defaults/i18n.js +0 -37
- package/defaults/vuetify.js +0 -34
- package/layouts/default.vue +0 -47
- package/layouts/empty.vue +0 -16
- package/module.js +0 -80
- package/pages/index.vue +0 -37
- package/pages/login.vue +0 -10
- package/static/mapo/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/dev/contents.css +0 -35
- package/static/mapo/ckeditor/plugins/image2/dev/image2.html +0 -338
- package/static/mapo/ckeditor/plugins/image2/dialogs/image2.js +0 -557
- package/static/mapo/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
- package/static/mapo/ckeditor/plugins/image2/icons/image.png +0 -0
- package/static/mapo/ckeditor/plugins/image2/lang/af.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ar.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/az.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/bg.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/bn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/bs.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ca.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/cs.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/cy.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/da.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/de-ch.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/de.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/el.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en-au.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en-ca.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en-gb.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/eo.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/es-mx.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/es.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/et.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/eu.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fa.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fi.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fo.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fr-ca.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/gl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/gu.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/he.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/hi.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/hr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/hu.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/id.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/is.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/it.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ja.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ka.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/km.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ko.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ku.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/lt.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/lv.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/mk.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/mn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ms.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/nb.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/nl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/no.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/oc.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/pl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/pt-br.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/pt.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ro.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ru.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/si.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sk.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sq.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sr-latn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sv.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/th.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/tr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/tt.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ug.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/uk.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/vi.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/zh-cn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/zh.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/plugin.js +0 -1798
- package/static/mapo/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/samples/image2.html +0 -68
- package/static/mapo/ckeditor/skins/moono/dev/icons16.png +0 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons16.svg +0 -2374
- package/static/mapo/ckeditor/skins/moono/dev/icons32.png +0 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons32.svg +0 -2722
- package/static/mapo/ckeditor/skins/moono/dev/locations.json +0 -144
- package/static/mapo/ckeditor/skins/moono/dialog.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_gecko.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono/icons.png +0 -0
- package/static/mapo/ckeditor/skins/moono/icons_hidpi.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/anchor.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/arrow.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/spinner.gif +0 -0
- package/static/mapo/ckeditor/skins/moono/readme.md +0 -49
- package/static/mapo/ckeditor/skins/moono/skin.js +0 -10
- package/static/mapo/ckeditor/skins/moono-dark/dialog.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_gecko.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/icons.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/icons_hidpi.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/arrow.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/readme.md +0 -51
- package/static/mapo/ckeditor/skins/moono-dark/skin.js +0 -5
- package/static/mapo/favicon.ico +0 -0
- package/static/mapo/tinymce-skins/mapo-dark/content.inline.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/content.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/content.mobile.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/skin.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/skin.mobile.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/content.inline.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/content.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/content.mobile.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/skin.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/skin.mobile.min.css +0 -7
- package/translations/en-US.js +0 -177
- package/translations/it-IT.js +0 -180
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-list dense class="py-0 overflow-y-auto">
|
|
3
|
-
<SidebarListItem
|
|
4
|
-
v-for="(item, i) in routes"
|
|
5
|
-
:key="i"
|
|
6
|
-
:link="item.link"
|
|
7
|
-
:label="item.label"
|
|
8
|
-
:meta="item.meta"
|
|
9
|
-
:childrens="item.childrens"
|
|
10
|
-
:icon="item.icon"
|
|
11
|
-
:force-collapse="forceCollapse"
|
|
12
|
-
:spider-menu="spiderMenu"
|
|
13
|
-
/>
|
|
14
|
-
</v-list>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
import { buildRoutes } from "../routebuilder";
|
|
19
|
-
|
|
20
|
-
// @vuese
|
|
21
|
-
export default {
|
|
22
|
-
name: "SidebarList",
|
|
23
|
-
props: {
|
|
24
|
-
footer: Boolean,
|
|
25
|
-
forceCollapse: Boolean,
|
|
26
|
-
spiderMenu: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default() {
|
|
29
|
-
const { spiderMenu } = this.$mapo.$options?.ui?.sidebar || {};
|
|
30
|
-
return spiderMenu == undefined ? true : spiderMenu;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
data() {
|
|
35
|
-
return {
|
|
36
|
-
defaultIcon: ({label}) => `mdi-alpha-${label[0]}-box-${ this.footer ? '' : 'outline'}`.toLowerCase(),
|
|
37
|
-
routes: this.routes,
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
mounted() {
|
|
41
|
-
this.routes = this.buildRoutes(this.$router.options.routes.filter(({ meta }) => !!meta?.sidebarFooter == this.footer));
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
buildRoutes(routes) {
|
|
45
|
-
return buildRoutes(routes, this.defaultIcon)
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
</script>
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-if="userCanSee" :class="{ child, expanded, 'spider-menu': spiderMenu }">
|
|
3
|
-
<v-list-item
|
|
4
|
-
:style="indent"
|
|
5
|
-
:exact-path="expanded"
|
|
6
|
-
:input-value="!expanded && !link && activeChild"
|
|
7
|
-
@click.native="!link && (expanded = !expanded)"
|
|
8
|
-
link
|
|
9
|
-
:to="link"
|
|
10
|
-
>
|
|
11
|
-
<v-list-item-icon v-if="icon">
|
|
12
|
-
<v-icon>{{ icon }}</v-icon>
|
|
13
|
-
</v-list-item-icon>
|
|
14
|
-
<v-list-item-title>
|
|
15
|
-
{{ label.translate ? $t(label.translate) : label }}
|
|
16
|
-
</v-list-item-title>
|
|
17
|
-
<v-icon
|
|
18
|
-
class="expand-icon"
|
|
19
|
-
v-if="childrens.length"
|
|
20
|
-
:style="rotate"
|
|
21
|
-
@click.native.prevent="link && (expanded = !expanded)"
|
|
22
|
-
>mdi-chevron-down</v-icon
|
|
23
|
-
>
|
|
24
|
-
</v-list-item>
|
|
25
|
-
|
|
26
|
-
<div
|
|
27
|
-
class="child-menu"
|
|
28
|
-
:style="indent"
|
|
29
|
-
v-if="childrens.length && expanded && !forceCollapse"
|
|
30
|
-
>
|
|
31
|
-
<SidebarListItem
|
|
32
|
-
v-for="(item, i) in childrens"
|
|
33
|
-
:key="i"
|
|
34
|
-
:link="item.link"
|
|
35
|
-
:label="item.label"
|
|
36
|
-
:meta="item.meta"
|
|
37
|
-
:childrens="item.childrens"
|
|
38
|
-
:depth="(depth || 0) + 1"
|
|
39
|
-
:icon="item.icon"
|
|
40
|
-
:force-collapse="forceCollapse"
|
|
41
|
-
:spider-menu="spiderMenu"
|
|
42
|
-
child
|
|
43
|
-
/>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<style lang="scss" scoped>
|
|
49
|
-
@import "@mapomodule/uikit/assets/variables.scss";
|
|
50
|
-
|
|
51
|
-
.v-list-item::after {
|
|
52
|
-
content: "";
|
|
53
|
-
position: absolute;
|
|
54
|
-
background: rgba(0, 0, 0, 0.2);
|
|
55
|
-
height: 100%;
|
|
56
|
-
width: 4px;
|
|
57
|
-
left: 0;
|
|
58
|
-
}
|
|
59
|
-
.v-list-item.v-list-item--active::after {
|
|
60
|
-
background: var(--v-primary-base);
|
|
61
|
-
}
|
|
62
|
-
.expand-icon {
|
|
63
|
-
margin: 0 0 0 auto;
|
|
64
|
-
cursor: pointer;
|
|
65
|
-
&:hover {
|
|
66
|
-
background: #f7f7f747;
|
|
67
|
-
border-radius: 50%;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
.spider-menu.child {
|
|
71
|
-
.v-list-item__icon {
|
|
72
|
-
&::after {
|
|
73
|
-
content: "";
|
|
74
|
-
position: absolute;
|
|
75
|
-
width: 5px;
|
|
76
|
-
height: 30px;
|
|
77
|
-
top: -9px;
|
|
78
|
-
margin-left: -4px;
|
|
79
|
-
border-bottom: solid 3px #acacac;
|
|
80
|
-
border-left: solid 3px #acacac;
|
|
81
|
-
z-index: -1;
|
|
82
|
-
}
|
|
83
|
-
&::before {
|
|
84
|
-
content: "";
|
|
85
|
-
position: absolute;
|
|
86
|
-
width: 5px;
|
|
87
|
-
height: 10px;
|
|
88
|
-
top: 21px;
|
|
89
|
-
margin-left: -4px;
|
|
90
|
-
border-left: solid 3px #acacac;
|
|
91
|
-
z-index: -1;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.child-menu {
|
|
95
|
-
position: relative;
|
|
96
|
-
&::after {
|
|
97
|
-
content: "";
|
|
98
|
-
position: absolute;
|
|
99
|
-
width: 0px;
|
|
100
|
-
height: 100%;
|
|
101
|
-
top: -9px;
|
|
102
|
-
margin-left: -4px;
|
|
103
|
-
border-left: solid 3px #acacac;
|
|
104
|
-
z-index: -1;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
.spider-menu.child:last-child {
|
|
109
|
-
.v-list-item__icon {
|
|
110
|
-
&::before {
|
|
111
|
-
height: 0px;
|
|
112
|
-
}
|
|
113
|
-
&::after {
|
|
114
|
-
border-bottom-left-radius: 3px;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
.child-menu {
|
|
118
|
-
&::after {
|
|
119
|
-
height: 0px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
</style>
|
|
124
|
-
|
|
125
|
-
<script>
|
|
126
|
-
export default {
|
|
127
|
-
name: "SidebarListItem",
|
|
128
|
-
data() {
|
|
129
|
-
return {
|
|
130
|
-
expanded: false,
|
|
131
|
-
nestDepth: 14,
|
|
132
|
-
};
|
|
133
|
-
},
|
|
134
|
-
computed: {
|
|
135
|
-
indent() {
|
|
136
|
-
return {
|
|
137
|
-
paddingLeft: `calc(1rem + ${+this.depth * this.nestDepth}px)`,
|
|
138
|
-
marginLeft:
|
|
139
|
-
this.depth > 1 && `calc(-1rem - ${(this.depth - 1) * this.nestDepth}px)`,
|
|
140
|
-
};
|
|
141
|
-
},
|
|
142
|
-
rotate() {
|
|
143
|
-
return {
|
|
144
|
-
transform: this.expanded ? "rotate(180deg)" : "rotate(0deg)",
|
|
145
|
-
transition: "transform 225ms cubic-bezier(0.4, 0, 0.2, 1)",
|
|
146
|
-
};
|
|
147
|
-
},
|
|
148
|
-
activeChild() {
|
|
149
|
-
return (this.childrens || []).some((child) =>
|
|
150
|
-
this.$nuxt.$route.path.startsWith(child.link)
|
|
151
|
-
);
|
|
152
|
-
},
|
|
153
|
-
userCanSee() {
|
|
154
|
-
return this.checkPermissions();
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
methods: {
|
|
158
|
-
checkPermissions(child = undefined) {
|
|
159
|
-
const item = child || this;
|
|
160
|
-
const middleware = this.$mapo.$auth.getRouteMiddlewares({ meta: item.meta });
|
|
161
|
-
if (middleware.includes("permissions")) {
|
|
162
|
-
const { model } = item.meta?.permissions || {};
|
|
163
|
-
return this.$store.getters["mapo/user/hasModelPermission"](model, "view");
|
|
164
|
-
}
|
|
165
|
-
if (middleware.includes("auth")) {
|
|
166
|
-
return this.$mapo.$auth.user.isLoggedIn;
|
|
167
|
-
}
|
|
168
|
-
return (
|
|
169
|
-
item.childrens.length == 0 || item.childrens.some((c) => this.checkPermissions(c))
|
|
170
|
-
);
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
props: {
|
|
174
|
-
link: String,
|
|
175
|
-
label: String | Object,
|
|
176
|
-
icon: String,
|
|
177
|
-
childrens: Array,
|
|
178
|
-
meta: Object,
|
|
179
|
-
depth: Number,
|
|
180
|
-
forceCollapse: Boolean,
|
|
181
|
-
child: Boolean,
|
|
182
|
-
spiderMenu: Boolean,
|
|
183
|
-
},
|
|
184
|
-
};
|
|
185
|
-
</script>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-list-item>
|
|
3
|
-
<v-list-item-avatar v-if="avatar">
|
|
4
|
-
<v-img :src="avatar"></v-img>
|
|
5
|
-
</v-list-item-avatar>
|
|
6
|
-
<v-list-item-icon v-else>
|
|
7
|
-
<v-icon>mdi-account</v-icon>
|
|
8
|
-
</v-list-item-icon>
|
|
9
|
-
<v-list-item-title>
|
|
10
|
-
<span v-if="isLoggedIn">
|
|
11
|
-
{{ username }}
|
|
12
|
-
</span>
|
|
13
|
-
<NuxtLink v-else to="/login">{{ $t("mapo.login") }}</NuxtLink>
|
|
14
|
-
</v-list-item-title>
|
|
15
|
-
<v-btn icon @click.stop="toggleMiniVariant">
|
|
16
|
-
<v-icon>mdi-chevron-left</v-icon>
|
|
17
|
-
</v-btn>
|
|
18
|
-
</v-list-item>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
// @vuese
|
|
24
|
-
export default {
|
|
25
|
-
computed: {
|
|
26
|
-
username() {
|
|
27
|
-
return this.isLoggedIn ? this.$mapo.$auth.user.username : "";
|
|
28
|
-
},
|
|
29
|
-
avatar() {
|
|
30
|
-
return this.$mapo.$auth.user.avatar;
|
|
31
|
-
},
|
|
32
|
-
isLoggedIn() {
|
|
33
|
-
return this.$mapo.$auth.user.isLoggedIn;
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
toggleMiniVariant() {
|
|
38
|
-
this.$store.dispatch("mapo/app/toggleSidebarMinivariant");
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
</script>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-list-item class="sidebar-title--container">
|
|
3
|
-
<v-list-item-avatar class="sidebar-title--logo" v-if="logo">
|
|
4
|
-
<v-img :src="logo"></v-img>
|
|
5
|
-
</v-list-item-avatar>
|
|
6
|
-
<v-list-item-icon v-else>
|
|
7
|
-
<v-icon color="secondary">mdi-artstation</v-icon>
|
|
8
|
-
</v-list-item-icon>
|
|
9
|
-
<v-list-item-title>
|
|
10
|
-
<b>{{title}}</b>
|
|
11
|
-
</v-list-item-title>
|
|
12
|
-
<v-btn icon @click.stop="toggleMiniVariant">
|
|
13
|
-
<v-icon>mdi-chevron-left</v-icon>
|
|
14
|
-
</v-btn>
|
|
15
|
-
</v-list-item>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<style lang="scss">
|
|
19
|
-
.sidebar-title--container{
|
|
20
|
-
background: var(--v-primary-base);
|
|
21
|
-
color: var(--v-secondary-base);
|
|
22
|
-
}
|
|
23
|
-
.sidebar-title--logo{
|
|
24
|
-
left: -8px;
|
|
25
|
-
}
|
|
26
|
-
</style>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
// @vuese
|
|
30
|
-
export default {
|
|
31
|
-
computed:{
|
|
32
|
-
title(){
|
|
33
|
-
return this.$mapo.$options?.ui?.panelName || "BACKOFFICE"
|
|
34
|
-
},
|
|
35
|
-
logo(){
|
|
36
|
-
return this.$mapo.$options?.ui?.panelLogo
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
toggleMiniVariant() {
|
|
41
|
-
this.$store.dispatch("mapo/app/toggleSidebarMinivariant");
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
</script>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-app-bar
|
|
3
|
-
:clipped-left="this.$store.getters['mapo/app/clipped']"
|
|
4
|
-
fixed
|
|
5
|
-
app
|
|
6
|
-
flat
|
|
7
|
-
dense
|
|
8
|
-
>
|
|
9
|
-
<component v-if="componentExists('MapoTopBarLeftSlot')" :is="'MapoTopBarLeftSlot'" />
|
|
10
|
-
<component v-if="componentExists('MapoTopBarToggleIconSlot')" :is="'MapoTopBarToggleIconSlot'" :toggleSidebarDrawer="toggleSidebarDrawer" />
|
|
11
|
-
<v-app-bar-nav-icon v-else @click.stop="toggleSidebarDrawer" />
|
|
12
|
-
<component v-if="componentExists('MapoTopBarTitleSlot')" :is="'MapoTopBarTitleSlot'"/>
|
|
13
|
-
<v-spacer></v-spacer>
|
|
14
|
-
<component v-if="componentExists('MapoTopBarRightSlot')" :is="'MapoTopBarRightSlot'"/>
|
|
15
|
-
</v-app-bar>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
import { mapActions } from 'vuex';
|
|
20
|
-
export default {
|
|
21
|
-
name: "Topbar",
|
|
22
|
-
methods: {
|
|
23
|
-
...mapActions("mapo/app", ["toggleSidebarDrawer"]),
|
|
24
|
-
componentExists(name){
|
|
25
|
-
return name in this.$options.components;
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
</script>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
function getDefaultIcon(ctx, defaultIcon) {
|
|
2
|
-
if (defaultIcon instanceof Function) {
|
|
3
|
-
return defaultIcon(ctx)
|
|
4
|
-
}
|
|
5
|
-
return defaultIcon
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function buildRoutes(routes, defaultIcon) {
|
|
9
|
-
return nestReduce(
|
|
10
|
-
routes
|
|
11
|
-
.filter((e) => !e.meta || !e.meta.sidebarHide)
|
|
12
|
-
.sort((a, b) => a.name.localeCompare(b.name))
|
|
13
|
-
.map((route) => {
|
|
14
|
-
const { meta, path, name } = route
|
|
15
|
-
const label = (route.meta && route.meta.label) || (path.split("/").pop() || "").replaceAll(':', '').replaceAll('-', ' ') || 'home'
|
|
16
|
-
const icon = route.meta && route.meta.icon !== undefined ? route.meta.icon : getDefaultIcon({ route, label }, defaultIcon)
|
|
17
|
-
return { label, icon, meta, name, link: path, relPath: path.slice(1), childrens: [] };
|
|
18
|
-
}),
|
|
19
|
-
defaultIcon
|
|
20
|
-
)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function nestReduce(array, defaultIcon) {
|
|
24
|
-
return array.reduce((stack, route) => {
|
|
25
|
-
const names = (route.relPath || "").split("/");
|
|
26
|
-
if (names.length === 1) {
|
|
27
|
-
stack.push(route);
|
|
28
|
-
} else {
|
|
29
|
-
const name = names.shift();
|
|
30
|
-
let pIndex = stack.findIndex((el) => el.relPath === name);
|
|
31
|
-
if (pIndex === -1) {
|
|
32
|
-
const label = (route.meta && route.meta.parentLabel) || name
|
|
33
|
-
const icon = (route.meta && route.meta.parentIcon) || getDefaultIcon({ route, label }, defaultIcon)
|
|
34
|
-
stack.push({ name, label, icon, relPath: name, childrens: [] });
|
|
35
|
-
pIndex = stack.length - 1;
|
|
36
|
-
}
|
|
37
|
-
stack[pIndex].childrens.push(
|
|
38
|
-
Object.assign(route, { relPath: names.join('/') })
|
|
39
|
-
);
|
|
40
|
-
stack[pIndex].childrens = nestReduce(stack[pIndex].childrens, defaultIcon);
|
|
41
|
-
}
|
|
42
|
-
return stack;
|
|
43
|
-
}, []);
|
|
44
|
-
}
|
|
45
|
-
module.exports = {
|
|
46
|
-
buildRoutes,
|
|
47
|
-
nestReduce
|
|
48
|
-
}
|
package/defaults/i18n.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
detectBrowserLanguage: {
|
|
3
|
-
useCookie: true,
|
|
4
|
-
cookieKey: "i18n_redirected",
|
|
5
|
-
redirectOn: "root",
|
|
6
|
-
},
|
|
7
|
-
locales: [
|
|
8
|
-
{
|
|
9
|
-
code: "en",
|
|
10
|
-
name: "English",
|
|
11
|
-
file: "en-US.js",
|
|
12
|
-
iso: "en-US",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
code: "it",
|
|
16
|
-
name: "Italiano",
|
|
17
|
-
file: "it-IT.js",
|
|
18
|
-
iso: "it-IT",
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
lazy: true,
|
|
22
|
-
langDir: __dirname + "/../translations/",
|
|
23
|
-
defaultLocale: "en",
|
|
24
|
-
strategy: "no_prefix",
|
|
25
|
-
onBeforeLanguageSwitch: (oldLocale, newLocale, isInitialSetup, context) => {
|
|
26
|
-
const locale =
|
|
27
|
-
context.i18n.locales.find((l) => l.code === newLocale) || {};
|
|
28
|
-
const isRTL = locale.dir === "rtl";
|
|
29
|
-
if (isInitialSetup) {
|
|
30
|
-
context.app.vuetify.preset.rtl = isRTL;
|
|
31
|
-
}
|
|
32
|
-
context.app.vuetify.framework.lang.current = locale.iso
|
|
33
|
-
? locale.iso.split("-")[0]
|
|
34
|
-
: locale.code;
|
|
35
|
-
context.app.vuetify.framework.rtl = isRTL;
|
|
36
|
-
},
|
|
37
|
-
};
|
package/defaults/vuetify.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import colors from "vuetify/es5/util/colors";
|
|
2
|
-
import { it, en } from "vuetify/lib/locale";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
customVariables: ["@mapomodule/uikit/assets/variables.scss"],
|
|
6
|
-
theme: {
|
|
7
|
-
options: { customProperties: true },
|
|
8
|
-
dark: true,
|
|
9
|
-
themes: {
|
|
10
|
-
dark: {
|
|
11
|
-
primary: colors.lime.darken2,
|
|
12
|
-
secondary: colors.lightGreen.darken4,
|
|
13
|
-
secondary: colors.lightGreen.darken4,
|
|
14
|
-
info: colors.teal.lighten1,
|
|
15
|
-
warning: colors.amber.base,
|
|
16
|
-
error: "#FF5252",
|
|
17
|
-
success: colors.green.accent3,
|
|
18
|
-
},
|
|
19
|
-
light: {
|
|
20
|
-
primary: colors.lime.darken2,
|
|
21
|
-
accent: colors.lightGreen.accent4,
|
|
22
|
-
secondary: colors.lightGreen.darken4,
|
|
23
|
-
info: colors.teal.lighten1,
|
|
24
|
-
warning: colors.amber.base,
|
|
25
|
-
error: "#FF5252",
|
|
26
|
-
success: colors.green.accent3,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
lang: {
|
|
31
|
-
locales: { en, it },
|
|
32
|
-
},
|
|
33
|
-
treeShake: true,
|
|
34
|
-
};
|
package/layouts/default.vue
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-app>
|
|
3
|
-
<Sidebar />
|
|
4
|
-
<Topbar />
|
|
5
|
-
<v-main>
|
|
6
|
-
<nuxt />
|
|
7
|
-
<root-components />
|
|
8
|
-
</v-main>
|
|
9
|
-
</v-app>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<style lang="scss">
|
|
13
|
-
html { overflow-y: auto }
|
|
14
|
-
.v-main__wrap {
|
|
15
|
-
.__nuxt-error-page {
|
|
16
|
-
background: transparent;
|
|
17
|
-
.error {
|
|
18
|
-
background: transparent !important;
|
|
19
|
-
svg {
|
|
20
|
-
// fill: #ff5252 !important;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
::-webkit-scrollbar {
|
|
26
|
-
width: 5px;
|
|
27
|
-
height: 5px;
|
|
28
|
-
}
|
|
29
|
-
::-webkit-scrollbar-track {
|
|
30
|
-
background-color: var(--v-scrollbar-track-color);
|
|
31
|
-
}
|
|
32
|
-
::-webkit-scrollbar-thumb {
|
|
33
|
-
background-color: var(--v-primary-base);
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import initDraggable from "@mapomodule/utils/plugins/v-draggable-modals";
|
|
39
|
-
import { setScrollbarTrackColor } from "@mapomodule/utils/helpers/cssVariables"
|
|
40
|
-
export default {
|
|
41
|
-
mounted() {
|
|
42
|
-
initDraggable();
|
|
43
|
-
setScrollbarTrackColor(this.$vuetify.theme.dark)
|
|
44
|
-
},
|
|
45
|
-
watch: { "$vuetify.theme.dark": setScrollbarTrackColor }
|
|
46
|
-
};
|
|
47
|
-
</script>
|
package/layouts/empty.vue
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-app>
|
|
3
|
-
<nuxt />
|
|
4
|
-
<root-components />
|
|
5
|
-
</v-app>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import initDraggable from "@mapomodule/utils/plugins/v-draggable-modals";
|
|
11
|
-
export default {
|
|
12
|
-
mounted() {
|
|
13
|
-
initDraggable();
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
</script>
|
package/module.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { createRoutes } from '@nuxt/utils'
|
|
2
|
-
import serveStatic from 'serve-static'
|
|
3
|
-
import path from 'path'
|
|
4
|
-
import Glob from 'glob'
|
|
5
|
-
import pify from 'pify'
|
|
6
|
-
const glob = pify(Glob)
|
|
7
|
-
|
|
8
|
-
class Resolver {
|
|
9
|
-
resolveFiles = async (cwd, dir) => await glob(`${dir}/**/*.{vue,js}`, { cwd })
|
|
10
|
-
resolveRelative = async (cwd, dir) => {
|
|
11
|
-
const dirPrefix = new RegExp(`^${dir}/`)
|
|
12
|
-
return (await this.resolveFiles(cwd, dir)).map(file => ({ src: file.replace(dirPrefix, '') }))
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default async function (moduleOptions) {
|
|
17
|
-
|
|
18
|
-
const resolver = new Resolver()
|
|
19
|
-
const userModuleOptions = Object.keys(moduleOptions).length === 0 ? (this.options['mapo'] || {}) : moduleOptions
|
|
20
|
-
|
|
21
|
-
// INJECT VUETIFY MODULE
|
|
22
|
-
this.requireModule(['@nuxtjs/vuetify', (this.options && this.options.vuetify) || userModuleOptions.vuetify || {}]);
|
|
23
|
-
|
|
24
|
-
// INJECT I18N MODULE
|
|
25
|
-
this.requireModule(['@nuxtjs/i18n', (this.options && this.options.i18n) || userModuleOptions.i18n || {},]);
|
|
26
|
-
|
|
27
|
-
// INJECT ALL LAYOUTS
|
|
28
|
-
const layouts = (await resolver.resolveRelative(__dirname, 'layouts')).map(({ src }) => src)
|
|
29
|
-
|
|
30
|
-
for (const layout of layouts) {
|
|
31
|
-
this.addLayout({
|
|
32
|
-
src: path.resolve(__dirname, './layouts', layout),
|
|
33
|
-
fileName: layout.replace(new RegExp('\\.(js)$'), '')
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// INJECT STATICS
|
|
38
|
-
this.addServerMiddleware(
|
|
39
|
-
serveStatic(path.resolve(__dirname, 'static')),
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
// INJECT COMPONENTS
|
|
43
|
-
this.nuxt.hook('components:dirs', (dirs) => {
|
|
44
|
-
const mapoComponents = ['components', 'components/Form/fields', 'components/layout']
|
|
45
|
-
mapoComponents.forEach(d => dirs.unshift({ path: path.resolve(__dirname, d)}))
|
|
46
|
-
})
|
|
47
|
-
this.nuxt.hook('components:extend', (components) => {
|
|
48
|
-
const clearName = (name) => name.replace(/^Mapoverride/, '').replace(/^mapoverride-/, '')
|
|
49
|
-
const componentsOverride = Object.values(components.reduce((map, comp) => (
|
|
50
|
-
{ ...map, [clearName(comp.pascalName)]: {...comp, pascalName:clearName(comp.pascalName), kebabName:clearName(comp.kebabName)} }
|
|
51
|
-
), {}))
|
|
52
|
-
components.length = 0
|
|
53
|
-
components.push(...componentsOverride)
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
// INJECT ALL PAGES
|
|
57
|
-
const pages = (await resolver.resolveRelative(__dirname, 'pages')).map(({ src }) => `pages/${src}`)
|
|
58
|
-
const { routeNameSplitter, trailingSlash } = this.options.router
|
|
59
|
-
const disabled = userModuleOptions['disabledRoutes'] && (Array.isArray(userModuleOptions['disabledRoutes']) ? userModuleOptions['disabledRoutes'] : userModuleOptions['disabledRoutes'].split(" ")) || []
|
|
60
|
-
this.extendRoutes((routes) => {
|
|
61
|
-
routes.push(...createRoutes({
|
|
62
|
-
files: pages,
|
|
63
|
-
srcDir: path.resolve(__dirname),
|
|
64
|
-
pagesDir: 'pages',
|
|
65
|
-
routeNameSplitter,
|
|
66
|
-
trailingSlash,
|
|
67
|
-
}).filter(route => !disabled.includes(route.name) && !routes.some(approute => approute.path === route.path)))
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
// INJECT WEBPACK DUMMY-LOADER FOR DOCS TAG
|
|
71
|
-
this.extendBuild((config) => {
|
|
72
|
-
config.module.rules.push({
|
|
73
|
-
resourceQuery: /blockType=docs/,
|
|
74
|
-
loader: require.resolve(path.resolve(__dirname, '../utils/loaders/dummy-loader.js'))
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
module.exports.meta = require('./package.json')
|
package/pages/index.vue
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-container>
|
|
3
|
-
<v-row justify="center" align="center">
|
|
4
|
-
<v-col cols="12" sm="8" md="12">
|
|
5
|
-
<div class="mapo-info">
|
|
6
|
-
<h1 id="mapo">
|
|
7
|
-
<code>mapomodule {{ version }}</code>
|
|
8
|
-
</h1>
|
|
9
|
-
<br>
|
|
10
|
-
<br>
|
|
11
|
-
<code>{{ $t('mapo.index.welcomeMessage') }}</code>
|
|
12
|
-
<br>
|
|
13
|
-
<br>
|
|
14
|
-
<code>
|
|
15
|
-
## TODO INSERT HERE A LITTLE TUTORIAL.
|
|
16
|
-
</code>
|
|
17
|
-
</div>
|
|
18
|
-
</v-col>
|
|
19
|
-
</v-row>
|
|
20
|
-
</v-container>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<style scoped>
|
|
24
|
-
.mapo-info {
|
|
25
|
-
border-radius: 8px;
|
|
26
|
-
margin: 10px 5%;
|
|
27
|
-
padding: 10px;
|
|
28
|
-
}
|
|
29
|
-
</style>
|
|
30
|
-
<script>
|
|
31
|
-
import { version } from "mapomodule/package.json";
|
|
32
|
-
export default {
|
|
33
|
-
data: () => ({
|
|
34
|
-
version: version
|
|
35
|
-
}),
|
|
36
|
-
};
|
|
37
|
-
</script>
|
package/pages/login.vue
DELETED
|
Binary file
|
|
Binary file
|