@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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, computed } from "vue";
|
|
3
|
+
import { useCanAccessRoute } from "@mapomodule/core/runtime/auth/useCanAccessRoute";
|
|
4
|
+
import type { MenuNode } from "@mapomodule/utils";
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
node: MenuNode;
|
|
8
|
+
mini?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const { node, mini = false } = defineProps<Props>();
|
|
12
|
+
|
|
13
|
+
const open = ref(false);
|
|
14
|
+
const hasChildren = computed(() => node.children.length > 0);
|
|
15
|
+
const canSee = computed(() => useCanAccessRoute(node.meta));
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<li v-if="canSee" class="list-none">
|
|
20
|
+
<!-- Parent item (has children) -->
|
|
21
|
+
<template v-if="hasChildren">
|
|
22
|
+
<UTooltip v-if="mini" :text="node.label" :side="'right'">
|
|
23
|
+
<button
|
|
24
|
+
class="flex w-full items-center justify-center rounded-md p-2 text-muted hover:text-default hover:bg-default/60 transition-colors"
|
|
25
|
+
@click="open = !open"
|
|
26
|
+
>
|
|
27
|
+
<UIcon :name="node.icon" class="size-4.5 shrink-0" />
|
|
28
|
+
</button>
|
|
29
|
+
</UTooltip>
|
|
30
|
+
<template v-else>
|
|
31
|
+
<button
|
|
32
|
+
class="flex w-full items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm text-muted hover:text-default hover:bg-default/60 transition-colors"
|
|
33
|
+
@click="open = !open"
|
|
34
|
+
>
|
|
35
|
+
<UIcon :name="node.icon" class="size-4.5 shrink-0" />
|
|
36
|
+
<span class="flex-1 truncate text-left font-medium">{{
|
|
37
|
+
node.label
|
|
38
|
+
}}</span>
|
|
39
|
+
<UIcon
|
|
40
|
+
:name="open ? 'i-lucide-chevron-down' : 'i-lucide-chevron-right'"
|
|
41
|
+
class="size-3.5 shrink-0 transition-transform"
|
|
42
|
+
/>
|
|
43
|
+
</button>
|
|
44
|
+
<ul
|
|
45
|
+
v-if="open"
|
|
46
|
+
class="ml-5 mt-0.5 space-y-0.5 border-l border-default/50 pl-2.5"
|
|
47
|
+
>
|
|
48
|
+
<MapoSidebarListItem
|
|
49
|
+
v-for="child in node.children"
|
|
50
|
+
:key="child.link"
|
|
51
|
+
:node="child"
|
|
52
|
+
/>
|
|
53
|
+
</ul>
|
|
54
|
+
</template>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<!-- Leaf item -->
|
|
58
|
+
<template v-else>
|
|
59
|
+
<UTooltip v-if="mini" :text="node.label" :side="'right'">
|
|
60
|
+
<NuxtLink
|
|
61
|
+
:to="node.link"
|
|
62
|
+
class="flex items-center justify-center rounded-md p-2 text-muted hover:text-default hover:bg-default/60 transition-colors"
|
|
63
|
+
active-class="bg-primary/10 text-primary hover:bg-primary/15 hover:text-primary"
|
|
64
|
+
>
|
|
65
|
+
<UIcon :name="node.icon" class="size-4.5 shrink-0" />
|
|
66
|
+
</NuxtLink>
|
|
67
|
+
</UTooltip>
|
|
68
|
+
<NuxtLink
|
|
69
|
+
v-else
|
|
70
|
+
:to="node.link"
|
|
71
|
+
class="flex items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm text-muted hover:text-default hover:bg-default/60 transition-colors"
|
|
72
|
+
active-class="bg-primary/10 text-primary font-medium hover:bg-primary/15 hover:text-primary"
|
|
73
|
+
>
|
|
74
|
+
<UIcon :name="node.icon" class="size-4.5 shrink-0" />
|
|
75
|
+
<span class="truncate font-medium">{{ node.label }}</span>
|
|
76
|
+
</NuxtLink>
|
|
77
|
+
</template>
|
|
78
|
+
</li>
|
|
79
|
+
</template>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useI18n } from "vue-i18n";
|
|
3
|
+
import { useAuthStore } from "@mapomodule/store/runtime/stores/auth";
|
|
4
|
+
import { useMapoAuth } from "@mapomodule/core/runtime/auth/useMapoAuth";
|
|
5
|
+
|
|
6
|
+
withDefaults(
|
|
7
|
+
defineProps<{
|
|
8
|
+
/** When true, renders a compact avatar-only version (sidebar mini mode). */
|
|
9
|
+
mini?: boolean;
|
|
10
|
+
}>(),
|
|
11
|
+
{ mini: false },
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const { t } = useI18n();
|
|
15
|
+
const auth = useAuthStore();
|
|
16
|
+
const { logout } = useMapoAuth();
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<template v-if="auth.isAuthenticated">
|
|
21
|
+
<div
|
|
22
|
+
class="flex items-center gap-2.5 rounded-lg px-2 py-2 hover:bg-default/60 transition-colors cursor-default"
|
|
23
|
+
:class="mini ? 'justify-center' : ''"
|
|
24
|
+
>
|
|
25
|
+
<UTooltip v-if="mini" :text="auth.username ?? 'User'" side="right">
|
|
26
|
+
<UAvatar
|
|
27
|
+
:alt="auth.username ?? 'User'"
|
|
28
|
+
size="xs"
|
|
29
|
+
class="shrink-0 cursor-pointer"
|
|
30
|
+
@click="logout()"
|
|
31
|
+
/>
|
|
32
|
+
</UTooltip>
|
|
33
|
+
<template v-else>
|
|
34
|
+
<UAvatar :alt="auth.username ?? 'User'" size="xs" class="shrink-0" />
|
|
35
|
+
<span class="flex-1 text-xs truncate text-muted font-medium">{{
|
|
36
|
+
auth.username
|
|
37
|
+
}}</span>
|
|
38
|
+
<UButton
|
|
39
|
+
variant="ghost"
|
|
40
|
+
color="neutral"
|
|
41
|
+
icon="i-lucide-log-out"
|
|
42
|
+
size="xs"
|
|
43
|
+
:aria-label="t('mapo.logout')"
|
|
44
|
+
@click="logout()"
|
|
45
|
+
/>
|
|
46
|
+
</template>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
<template v-else>
|
|
50
|
+
<NuxtLink
|
|
51
|
+
to="/login"
|
|
52
|
+
class="flex items-center gap-2.5 rounded-lg px-2 py-2 text-sm text-muted hover:bg-default/60 transition-colors"
|
|
53
|
+
:class="{ 'justify-center': mini }"
|
|
54
|
+
>
|
|
55
|
+
<UIcon name="i-lucide-log-in" class="size-4 shrink-0" />
|
|
56
|
+
<span v-if="!mini" class="text-xs font-medium">{{
|
|
57
|
+
t("mapo.signIn")
|
|
58
|
+
}}</span>
|
|
59
|
+
</NuxtLink>
|
|
60
|
+
</template>
|
|
61
|
+
</template>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { watch } from "vue";
|
|
3
|
+
import { useSnackStore } from "@mapomodule/store/runtime/stores/snack";
|
|
4
|
+
import { useToast } from "@nuxt/ui/composables/useToast";
|
|
5
|
+
|
|
6
|
+
const snack = useSnackStore();
|
|
7
|
+
const toast = useToast();
|
|
8
|
+
|
|
9
|
+
const _shown = new Set<number>();
|
|
10
|
+
|
|
11
|
+
watch(
|
|
12
|
+
() => snack.messages,
|
|
13
|
+
(msgs) => {
|
|
14
|
+
if (msgs.length === 0) {
|
|
15
|
+
for (const id of _shown) toast.remove(String(id));
|
|
16
|
+
_shown.clear();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
for (const msg of msgs) {
|
|
20
|
+
if (_shown.has(msg.id)) continue;
|
|
21
|
+
_shown.add(msg.id);
|
|
22
|
+
toast.add({
|
|
23
|
+
id: String(msg.id),
|
|
24
|
+
title: msg.message,
|
|
25
|
+
color: msg.type as "success" | "error" | "warning" | "info",
|
|
26
|
+
duration: msg.duration,
|
|
27
|
+
// Nuxt UI v4 has no onClose callback: dismissal (user click or
|
|
28
|
+
// timeout) is signalled through the `update:open` emit.
|
|
29
|
+
"onUpdate:open": (open: boolean) => {
|
|
30
|
+
if (!open) snack.dismiss(msg.id);
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{ deep: true },
|
|
36
|
+
);
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<!-- eslint-disable vue/valid-template-root -->
|
|
40
|
+
<template>
|
|
41
|
+
<!-- Nuxt UI v3: toasts are rendered by the global <Toaster> in ConfigProvider -->
|
|
42
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
// @ts-expect-error — #imports is a Nuxt virtual module resolved at app build time
|
|
5
|
+
import { useColorMode } from "#imports";
|
|
6
|
+
|
|
7
|
+
const { t } = useI18n();
|
|
8
|
+
const colorMode = useColorMode();
|
|
9
|
+
|
|
10
|
+
const isDark = computed(() => colorMode.value === "dark");
|
|
11
|
+
|
|
12
|
+
function toggle() {
|
|
13
|
+
colorMode.preference = isDark.value ? "light" : "dark";
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<UButton
|
|
19
|
+
:icon="isDark ? 'i-lucide-sun' : 'i-lucide-moon'"
|
|
20
|
+
variant="ghost"
|
|
21
|
+
color="neutral"
|
|
22
|
+
:aria-label="
|
|
23
|
+
isDark ? t('mapo.themeToggle.light') : t('mapo.themeToggle.dark')
|
|
24
|
+
"
|
|
25
|
+
@click="toggle"
|
|
26
|
+
/>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useSidebarStore } from "@mapomodule/store/runtime/stores/sidebar";
|
|
3
|
+
|
|
4
|
+
defineSlots<{
|
|
5
|
+
left(): void;
|
|
6
|
+
default(): void;
|
|
7
|
+
right(): void;
|
|
8
|
+
}>();
|
|
9
|
+
|
|
10
|
+
const sidebar = useSidebarStore();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<header
|
|
15
|
+
class="flex h-14 shrink-0 items-center gap-3 border-b border-muted bg-elevated/60 px-4 backdrop-blur-sm"
|
|
16
|
+
>
|
|
17
|
+
<UButton
|
|
18
|
+
v-if="!sidebar.drawer"
|
|
19
|
+
variant="ghost"
|
|
20
|
+
color="neutral"
|
|
21
|
+
icon="i-lucide-panel-left-open"
|
|
22
|
+
size="sm"
|
|
23
|
+
@click="sidebar.toggleDrawer()"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<slot name="left" />
|
|
27
|
+
|
|
28
|
+
<div class="flex-1">
|
|
29
|
+
<slot />
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="flex items-center gap-1.5">
|
|
33
|
+
<slot name="right" />
|
|
34
|
+
</div>
|
|
35
|
+
</header>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from "vue";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Drag context shared between `MapoMenuTreeview` (provider) and every nested
|
|
5
|
+
* `MapoMenuTreeviewNode` draggable list.
|
|
6
|
+
*
|
|
7
|
+
* SortableJS nested lists mutate `node.nodes` arrays in place, so max-depth
|
|
8
|
+
* enforcement is centralised in the root: it snapshots the tree on drag start
|
|
9
|
+
* and reverts the whole tree if the drop produced an invalid nesting.
|
|
10
|
+
*/
|
|
11
|
+
export interface MenuDndContext {
|
|
12
|
+
/** True while any node in the tree is being dragged. */
|
|
13
|
+
dragging: Ref<boolean>;
|
|
14
|
+
/** Called by any nested draggable when a drag starts. */
|
|
15
|
+
onStart: () => void;
|
|
16
|
+
/** Called by any nested draggable when a drag ends (validate + maybe revert). */
|
|
17
|
+
onEnd: () => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const MENU_DND_CTX: InjectionKey<MenuDndContext> = Symbol(
|
|
21
|
+
"mapo-menu-dnd-context",
|
|
22
|
+
);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineOptions({ name: "MapoDefaultLayout" });
|
|
3
|
+
|
|
4
|
+
defineSlots<{
|
|
5
|
+
default(): void;
|
|
6
|
+
"sidebar:logo"(): void;
|
|
7
|
+
"sidebar:nav-top"(): void;
|
|
8
|
+
"sidebar:nav-bottom"(): void;
|
|
9
|
+
"sidebar:footer"(): void;
|
|
10
|
+
"topbar:left"(): void;
|
|
11
|
+
topbar(): void;
|
|
12
|
+
"topbar:right"(): void;
|
|
13
|
+
}>();
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<div class="flex h-full overflow-hidden bg-default">
|
|
18
|
+
<MapoSidebar>
|
|
19
|
+
<template v-if="$slots['sidebar:logo']" #logo>
|
|
20
|
+
<slot name="sidebar:logo" />
|
|
21
|
+
</template>
|
|
22
|
+
<template v-if="$slots['sidebar:nav-top']" #nav-top>
|
|
23
|
+
<slot name="sidebar:nav-top" />
|
|
24
|
+
</template>
|
|
25
|
+
<template v-if="$slots['sidebar:nav-bottom']" #nav-bottom>
|
|
26
|
+
<slot name="sidebar:nav-bottom" />
|
|
27
|
+
</template>
|
|
28
|
+
<template v-if="$slots['sidebar:footer']" #footer>
|
|
29
|
+
<slot name="sidebar:footer" />
|
|
30
|
+
</template>
|
|
31
|
+
</MapoSidebar>
|
|
32
|
+
|
|
33
|
+
<div class="flex flex-1 flex-col min-w-0 overflow-hidden">
|
|
34
|
+
<MapoTopbar>
|
|
35
|
+
<template v-if="$slots['topbar:left']" #left>
|
|
36
|
+
<slot name="topbar:left" />
|
|
37
|
+
</template>
|
|
38
|
+
<template v-if="$slots['topbar']" #default>
|
|
39
|
+
<slot name="topbar" />
|
|
40
|
+
</template>
|
|
41
|
+
<template v-if="$slots['topbar:right']" #right>
|
|
42
|
+
<slot name="topbar:right" />
|
|
43
|
+
</template>
|
|
44
|
+
</MapoTopbar>
|
|
45
|
+
|
|
46
|
+
<main class="flex-1 overflow-y-auto">
|
|
47
|
+
<slot />
|
|
48
|
+
</main>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<MapoRootComponents />
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare module "#app" {
|
|
2
|
+
interface PageMeta {
|
|
3
|
+
/** Human-readable label shown in sidebar/navigation. Pages without a label are excluded from the menu. */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Icon name used in sidebar/navigation (e.g. 'i-lucide-user-check'). */
|
|
6
|
+
icon?: string;
|
|
7
|
+
/** Hide this page from automatic sidebar/navigation generation even if it has a label. */
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
/** Path of the parent route for nested menu grouping. */
|
|
10
|
+
parent?: string;
|
|
11
|
+
/** Pin this page to the sidebar footer instead of the main navigation list. */
|
|
12
|
+
sidebarFooter?: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module "vue-router" {
|
|
17
|
+
/**
|
|
18
|
+
* Route meta extension mirrored from Nuxt `PageMeta` so runtime route records
|
|
19
|
+
* keep the same navigation-related fields after compilation.
|
|
20
|
+
*/
|
|
21
|
+
interface RouteMeta {
|
|
22
|
+
/** Human-readable label shown in sidebar/navigation. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Icon name used in sidebar/navigation (e.g. 'i-lucide-user-check'). */
|
|
25
|
+
icon?: string;
|
|
26
|
+
/** Hide this page from automatic sidebar/navigation generation. */
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
/** Path of the parent route for nested menu grouping. */
|
|
29
|
+
parent?: string;
|
|
30
|
+
/** Pin this page to the sidebar footer instead of the main navigation list. */
|
|
31
|
+
sidebarFooter?: boolean;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare global {
|
|
36
|
+
/**
|
|
37
|
+
* Nuxt compile-time macro used in page SFCs to define route metadata.
|
|
38
|
+
*
|
|
39
|
+
* This declaration provides package-local type support when Nuxt-generated
|
|
40
|
+
* `#imports` types are not available to the TypeScript language service.
|
|
41
|
+
*/
|
|
42
|
+
const definePageMeta: (meta: import("#app").PageMeta) => void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useI18n } from "vue-i18n";
|
|
3
|
+
import { version } from "../../../package.json";
|
|
4
|
+
|
|
5
|
+
const { t } = useI18n();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div class="flex h-full items-center justify-center p-8">
|
|
10
|
+
<div class="space-y-4 rounded-lg border bg-white p-8 text-center shadow">
|
|
11
|
+
<h1 class="text-2xl font-bold">{{ t("mapo.index.welcomeMessage") }}</h1>
|
|
12
|
+
<p class="text-gray-600">Mapo UI Kit — {{ version }}</p>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides the global `$mapoMediaAdapter`, defaulting to plain REST semantics.
|
|
3
|
+
*
|
|
4
|
+
* Integrations (e.g. Camomilla) register their own plugin ordered BEFORE this
|
|
5
|
+
* one; the first provider wins because Nuxt `provide` getters are
|
|
6
|
+
* non-configurable — redefining one throws `Cannot redefine property` in SSR.
|
|
7
|
+
* This plugin therefore only fills the gap when no integration registered an
|
|
8
|
+
* adapter. Consumers of the adapter fall back to `defaultMediaAdapter`
|
|
9
|
+
* method-by-method, so partial adapters are fine. Functions are not
|
|
10
|
+
* serializable through `runtimeConfig`, hence the plugin-injection pattern.
|
|
11
|
+
*/
|
|
12
|
+
import { defineNuxtPlugin } from "#app";
|
|
13
|
+
import { defaultMediaAdapter } from "../adapters/defaultMediaAdapter.js";
|
|
14
|
+
import type { MediaAdapter } from "../types/media.js";
|
|
15
|
+
|
|
16
|
+
declare module "#app" {
|
|
17
|
+
interface NuxtApp {
|
|
18
|
+
$mapoMediaAdapter: MediaAdapter;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare module "vue" {
|
|
23
|
+
interface ComponentCustomProperties {
|
|
24
|
+
$mapoMediaAdapter: MediaAdapter;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
29
|
+
if ("$mapoMediaAdapter" in nuxtApp) return;
|
|
30
|
+
return {
|
|
31
|
+
provide: { mapoMediaAdapter: defaultMediaAdapter },
|
|
32
|
+
};
|
|
33
|
+
});
|