@cwa/nuxt-edge 0.0.0-29696494.72f11a4
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 +38 -0
- package/README.template.md +32 -0
- package/dist/layer/_components/TextButton.vue +13 -0
- package/dist/layer/error.vue +13 -0
- package/dist/layer/layouts/CwaRootLayout.vue +172 -0
- package/dist/layer/nuxt.config.ts +8 -0
- package/dist/layer/pages/_cwa/[cwaPage0].vue +18 -0
- package/dist/layer/pages/_cwa/index/composables/useDataList.ts +50 -0
- package/dist/layer/pages/_cwa/index/composables/useDataType.ts +41 -0
- package/dist/layer/pages/_cwa/index/composables/useDynamicPageLoader.ts +28 -0
- package/dist/layer/pages/_cwa/index/composables/useItemPage.ts +200 -0
- package/dist/layer/pages/_cwa/index/composables/useListPage.ts +44 -0
- package/dist/layer/pages/_cwa/index/composables/useParentPageDataLoader.ts +51 -0
- package/dist/layer/pages/_cwa/index/composables/useParentPageLoader.ts +25 -0
- package/dist/layer/pages/_cwa/index/data/[type]/[iri].vue +22 -0
- package/dist/layer/pages/_cwa/index/data/[type].vue +132 -0
- package/dist/layer/pages/_cwa/index/data/index.vue +84 -0
- package/dist/layer/pages/_cwa/index/layouts/[iri].vue +180 -0
- package/dist/layer/pages/_cwa/index/layouts.vue +77 -0
- package/dist/layer/pages/_cwa/index/pages/[iri].vue +16 -0
- package/dist/layer/pages/_cwa/index/pages.vue +130 -0
- package/dist/layer/pages/_cwa/index/routes.vue +56 -0
- package/dist/layer/pages/_cwa/index/settings.vue +398 -0
- package/dist/layer/pages/_cwa/index/users/[iri].vue +337 -0
- package/dist/layer/pages/_cwa/index/users.vue +90 -0
- package/dist/layer/pages/_cwa/index.vue +43 -0
- package/dist/layer/pages/confirm-new-email/[username]/[newEmail]/[token].vue +49 -0
- package/dist/layer/pages/forgot-password.vue +31 -0
- package/dist/layer/pages/login.vue +32 -0
- package/dist/layer/pages/reset-password/[username]/[token].vue +38 -0
- package/dist/layer/pages/verify-email/[username]/[token].vue +48 -0
- package/dist/module.d.mts +15 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +292 -0
- package/dist/runtime/admin/admin.d.ts +35 -0
- package/dist/runtime/admin/admin.js +65 -0
- package/dist/runtime/admin/manageable-resource.d.ts +42 -0
- package/dist/runtime/admin/manageable-resource.js +241 -0
- package/dist/runtime/admin/manager-tabs-resolver.d.ts +17 -0
- package/dist/runtime/admin/manager-tabs-resolver.js +55 -0
- package/dist/runtime/admin/navigation-guard.d.ts +18 -0
- package/dist/runtime/admin/navigation-guard.js +57 -0
- package/dist/runtime/admin/resource-stack-manager.d.ts +93 -0
- package/dist/runtime/admin/resource-stack-manager.js +388 -0
- package/dist/runtime/api/api-documentation.d.ts +28 -0
- package/dist/runtime/api/api-documentation.js +131 -0
- package/dist/runtime/api/auth.d.ts +100 -0
- package/dist/runtime/api/auth.js +264 -0
- package/dist/runtime/api/fetcher/cwa-fetch.d.ts +12 -0
- package/dist/runtime/api/fetcher/cwa-fetch.js +43 -0
- package/dist/runtime/api/fetcher/fetch-status-manager.d.ts +59 -0
- package/dist/runtime/api/fetcher/fetch-status-manager.js +225 -0
- package/dist/runtime/api/fetcher/fetcher.d.ts +57 -0
- package/dist/runtime/api/fetcher/fetcher.js +263 -0
- package/dist/runtime/api/fetcher/preload-headers.d.ts +6 -0
- package/dist/runtime/api/fetcher/preload-headers.js +31 -0
- package/dist/runtime/api/forms.d.ts +40 -0
- package/dist/runtime/api/forms.js +40 -0
- package/dist/runtime/api/mercure.d.ts +32 -0
- package/dist/runtime/api/mercure.js +196 -0
- package/dist/runtime/api/site-config.d.ts +36 -0
- package/dist/runtime/api/site-config.js +135 -0
- package/dist/runtime/composables/component/html-content.d.ts +2 -0
- package/dist/runtime/composables/component/html-content.js +74 -0
- package/dist/runtime/composables/cwa-collection-pagination.d.ts +13 -0
- package/dist/runtime/composables/cwa-collection-pagination.js +34 -0
- package/dist/runtime/composables/cwa-collection-resource.d.ts +18 -0
- package/dist/runtime/composables/cwa-collection-resource.js +105 -0
- package/dist/runtime/composables/cwa-image-resource.d.ts +15 -0
- package/dist/runtime/composables/cwa-image-resource.js +26 -0
- package/dist/runtime/composables/cwa-image.d.ts +24 -0
- package/dist/runtime/composables/cwa-image.js +38 -0
- package/dist/runtime/composables/cwa-query-bound-model.d.ts +9 -0
- package/dist/runtime/composables/cwa-query-bound-model.js +109 -0
- package/dist/runtime/composables/cwa-resource-endpoint.d.ts +5 -0
- package/dist/runtime/composables/cwa-resource-endpoint.js +36 -0
- package/dist/runtime/composables/cwa-resource-manageable.d.ts +10 -0
- package/dist/runtime/composables/cwa-resource-manageable.js +53 -0
- package/dist/runtime/composables/cwa-resource-manager-tab.d.ts +16 -0
- package/dist/runtime/composables/cwa-resource-manager-tab.js +30 -0
- package/dist/runtime/composables/cwa-resource-model.d.ts +21 -0
- package/dist/runtime/composables/cwa-resource-model.js +156 -0
- package/dist/runtime/composables/cwa-resource-upload.d.ts +8 -0
- package/dist/runtime/composables/cwa-resource-upload.js +70 -0
- package/dist/runtime/composables/cwa-resource.d.ts +26 -0
- package/dist/runtime/composables/cwa-resource.js +42 -0
- package/dist/runtime/composables/cwa-select-input.d.ts +21 -0
- package/dist/runtime/composables/cwa-select-input.js +37 -0
- package/dist/runtime/composables/cwa-select.d.ts +15 -0
- package/dist/runtime/composables/cwa-select.js +24 -0
- package/dist/runtime/composables/cwa.d.ts +2 -0
- package/dist/runtime/composables/cwa.js +2 -0
- package/dist/runtime/composables/forgot-password.d.ts +9 -0
- package/dist/runtime/composables/forgot-password.js +45 -0
- package/dist/runtime/composables/login.d.ts +9 -0
- package/dist/runtime/composables/login.js +30 -0
- package/dist/runtime/composables/popper.d.ts +529 -0
- package/dist/runtime/composables/popper.js +105 -0
- package/dist/runtime/composables/process.d.ts +4 -0
- package/dist/runtime/composables/process.js +6 -0
- package/dist/runtime/composables/reset-password.d.ts +14 -0
- package/dist/runtime/composables/reset-password.js +75 -0
- package/dist/runtime/composables/transitions.d.ts +12 -0
- package/dist/runtime/composables/transitions.js +12 -0
- package/dist/runtime/composables/useCwaResourceRoute.d.ts +10 -0
- package/dist/runtime/composables/useCwaResourceRoute.js +17 -0
- package/dist/runtime/composables/useCwaSiteConfig.d.ts +15 -0
- package/dist/runtime/composables/useCwaSiteConfig.js +78 -0
- package/dist/runtime/composables/useResendVerifyEmail.d.ts +6 -0
- package/dist/runtime/composables/useResendVerifyEmail.js +43 -0
- package/dist/runtime/composables/useVerifyEmail.d.ts +8 -0
- package/dist/runtime/composables/useVerifyEmail.js +84 -0
- package/dist/runtime/cwa.d.ts +70 -0
- package/dist/runtime/cwa.js +133 -0
- package/dist/runtime/errors/cwa-resource-error.d.ts +20 -0
- package/dist/runtime/errors/cwa-resource-error.js +61 -0
- package/dist/runtime/plugin.d.ts +8 -0
- package/dist/runtime/plugin.js +20 -0
- package/dist/runtime/resources/resource-utils.d.ts +52 -0
- package/dist/runtime/resources/resource-utils.js +86 -0
- package/dist/runtime/resources/resources-manager.d.ts +70 -0
- package/dist/runtime/resources/resources-manager.js +482 -0
- package/dist/runtime/resources/resources.d.ts +61 -0
- package/dist/runtime/resources/resources.js +360 -0
- package/dist/runtime/route-middleware.d.ts +2 -0
- package/dist/runtime/route-middleware.js +71 -0
- package/dist/runtime/server/cwa-custom-sitemap.get.d.ts +2 -0
- package/dist/runtime/server/cwa-custom-sitemap.get.js +29 -0
- package/dist/runtime/server/cwa-healthcheck.get.d.ts +4 -0
- package/dist/runtime/server/cwa-healthcheck.get.js +10 -0
- package/dist/runtime/server/cwa-urls.get.d.ts +3 -0
- package/dist/runtime/server/cwa-urls.get.js +15 -0
- package/dist/runtime/server/server-middleware.d.ts +2 -0
- package/dist/runtime/server/server-middleware.js +63 -0
- package/dist/runtime/server/server-plugin.d.ts +2 -0
- package/dist/runtime/server/server-plugin.js +59 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/useFetcher.d.ts +7 -0
- package/dist/runtime/server/useFetcher.js +40 -0
- package/dist/runtime/storage/storage.d.ts +25 -0
- package/dist/runtime/storage/storage.js +48 -0
- package/dist/runtime/storage/stores/admin/actions.d.ts +5 -0
- package/dist/runtime/storage/stores/admin/actions.js +10 -0
- package/dist/runtime/storage/stores/admin/admin-store.d.ts +18 -0
- package/dist/runtime/storage/stores/admin/admin-store.js +20 -0
- package/dist/runtime/storage/stores/admin/state.d.ts +7 -0
- package/dist/runtime/storage/stores/admin/state.js +9 -0
- package/dist/runtime/storage/stores/api-documentation/api-documentation-store.d.ts +16 -0
- package/dist/runtime/storage/stores/api-documentation/api-documentation-store.js +18 -0
- package/dist/runtime/storage/stores/api-documentation/state.d.ts +71 -0
- package/dist/runtime/storage/stores/api-documentation/state.js +6 -0
- package/dist/runtime/storage/stores/auth/auth-store.d.ts +16 -0
- package/dist/runtime/storage/stores/auth/auth-store.js +18 -0
- package/dist/runtime/storage/stores/auth/state.d.ts +19 -0
- package/dist/runtime/storage/stores/auth/state.js +15 -0
- package/dist/runtime/storage/stores/cwa-store-types.d.ts +14 -0
- package/dist/runtime/storage/stores/error/actions.d.ts +11 -0
- package/dist/runtime/storage/stores/error/actions.js +73 -0
- package/dist/runtime/storage/stores/error/error-store.d.ts +13 -0
- package/dist/runtime/storage/stores/error/error-store.js +21 -0
- package/dist/runtime/storage/stores/error/getters.d.ts +7 -0
- package/dist/runtime/storage/stores/error/getters.js +11 -0
- package/dist/runtime/storage/stores/error/state.d.ts +35 -0
- package/dist/runtime/storage/stores/error/state.js +15 -0
- package/dist/runtime/storage/stores/fetcher/actions.d.ts +56 -0
- package/dist/runtime/storage/stores/fetcher/actions.js +138 -0
- package/dist/runtime/storage/stores/fetcher/fetcher-store.d.ts +19 -0
- package/dist/runtime/storage/stores/fetcher/fetcher-store.js +23 -0
- package/dist/runtime/storage/stores/fetcher/getter-utils.d.ts +7 -0
- package/dist/runtime/storage/stores/fetcher/getter-utils.js +27 -0
- package/dist/runtime/storage/stores/fetcher/getters.d.ts +13 -0
- package/dist/runtime/storage/stores/fetcher/getters.js +52 -0
- package/dist/runtime/storage/stores/fetcher/state.d.ts +27 -0
- package/dist/runtime/storage/stores/fetcher/state.js +7 -0
- package/dist/runtime/storage/stores/mercure/mercure-store.d.ts +16 -0
- package/dist/runtime/storage/stores/mercure/mercure-store.js +18 -0
- package/dist/runtime/storage/stores/mercure/state.d.ts +5 -0
- package/dist/runtime/storage/stores/mercure/state.js +6 -0
- package/dist/runtime/storage/stores/resources/actions.d.ts +59 -0
- package/dist/runtime/storage/stores/resources/actions.js +449 -0
- package/dist/runtime/storage/stores/resources/getter-utils.d.ts +7 -0
- package/dist/runtime/storage/stores/resources/getter-utils.js +27 -0
- package/dist/runtime/storage/stores/resources/getters.d.ts +38 -0
- package/dist/runtime/storage/stores/resources/getters.js +254 -0
- package/dist/runtime/storage/stores/resources/resources-store.d.ts +19 -0
- package/dist/runtime/storage/stores/resources/resources-store.js +23 -0
- package/dist/runtime/storage/stores/resources/state.d.ts +67 -0
- package/dist/runtime/storage/stores/resources/state.js +24 -0
- package/dist/runtime/storage/stores/site-config/actions.d.ts +9 -0
- package/dist/runtime/storage/stores/site-config/actions.js +20 -0
- package/dist/runtime/storage/stores/site-config/getters.d.ts +7 -0
- package/dist/runtime/storage/stores/site-config/getters.js +10 -0
- package/dist/runtime/storage/stores/site-config/site-config-store.d.ts +19 -0
- package/dist/runtime/storage/stores/site-config/site-config-store.js +23 -0
- package/dist/runtime/storage/stores/site-config/state.d.ts +13 -0
- package/dist/runtime/storage/stores/site-config/state.js +8 -0
- package/dist/runtime/templates/assets/base.css +1 -0
- package/dist/runtime/templates/assets/cwa.css +1 -0
- package/dist/runtime/templates/components/core/ComponentPlaceholder.d.vue.ts +7 -0
- package/dist/runtime/templates/components/core/ComponentPlaceholder.vue +27 -0
- package/dist/runtime/templates/components/core/ComponentPlaceholder.vue.d.ts +7 -0
- package/dist/runtime/templates/components/core/ComponentPosition.d.vue.ts +4 -0
- package/dist/runtime/templates/components/core/ComponentPosition.spec.ts.snap +16 -0
- package/dist/runtime/templates/components/core/ComponentPosition.vue +64 -0
- package/dist/runtime/templates/components/core/ComponentPosition.vue.d.ts +4 -0
- package/dist/runtime/templates/components/core/ConfirmDialog.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/ConfirmDialog.vue +41 -0
- package/dist/runtime/templates/components/core/ConfirmDialog.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/DialogBox.d.vue.ts +38 -0
- package/dist/runtime/templates/components/core/DialogBox.vue +96 -0
- package/dist/runtime/templates/components/core/DialogBox.vue.d.ts +38 -0
- package/dist/runtime/templates/components/core/README.md +1 -0
- package/dist/runtime/templates/components/core/ResourceLoader.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/ResourceLoader.spec.ts.snap +39 -0
- package/dist/runtime/templates/components/core/ResourceLoader.vue +151 -0
- package/dist/runtime/templates/components/core/ResourceLoader.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/CwaCode.d.vue.ts +12 -0
- package/dist/runtime/templates/components/core/admin/CwaCode.vue +7 -0
- package/dist/runtime/templates/components/core/admin/CwaCode.vue.d.ts +12 -0
- package/dist/runtime/templates/components/core/admin/ListContainer.d.vue.ts +12 -0
- package/dist/runtime/templates/components/core/admin/ListContainer.vue +11 -0
- package/dist/runtime/templates/components/core/admin/ListContainer.vue.d.ts +12 -0
- package/dist/runtime/templates/components/core/admin/ListContent.d.vue.ts +24 -0
- package/dist/runtime/templates/components/core/admin/ListContent.vue +137 -0
- package/dist/runtime/templates/components/core/admin/ListContent.vue.d.ts +24 -0
- package/dist/runtime/templates/components/core/admin/ListFilter.d.vue.ts +10 -0
- package/dist/runtime/templates/components/core/admin/ListFilter.vue +49 -0
- package/dist/runtime/templates/components/core/admin/ListFilter.vue.d.ts +10 -0
- package/dist/runtime/templates/components/core/admin/ListFilterButton.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/ListFilterButton.vue +53 -0
- package/dist/runtime/templates/components/core/admin/ListFilterButton.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/ListHeading.d.vue.ts +20 -0
- package/dist/runtime/templates/components/core/admin/ListHeading.vue +33 -0
- package/dist/runtime/templates/components/core/admin/ListHeading.vue.d.ts +20 -0
- package/dist/runtime/templates/components/core/admin/ListPagination.d.vue.ts +17 -0
- package/dist/runtime/templates/components/core/admin/ListPagination.vue +94 -0
- package/dist/runtime/templates/components/core/admin/ListPagination.vue.d.ts +17 -0
- package/dist/runtime/templates/components/core/admin/ListPaginationButton.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue +19 -0
- package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/PageAdminModal.d.vue.ts +13 -0
- package/dist/runtime/templates/components/core/admin/PageAdminModal.vue +404 -0
- package/dist/runtime/templates/components/core/admin/PageAdminModal.vue.d.ts +13 -0
- package/dist/runtime/templates/components/core/admin/PageDataAdminModal.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue +368 -0
- package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.vue +439 -0
- package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/ResourceModal.d.vue.ts +35 -0
- package/dist/runtime/templates/components/core/admin/ResourceModal.vue +110 -0
- package/dist/runtime/templates/components/core/admin/ResourceModal.vue.d.ts +35 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.d.vue.ts +7 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue +27 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue.d.ts +7 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.d.vue.ts +15 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue +24 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue.d.ts +15 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalTabs.d.vue.ts +0 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue +81 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue.d.ts +0 -0
- package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.vue +42 -0
- package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/RouteListRow.d.vue.ts +21 -0
- package/dist/runtime/templates/components/core/admin/RouteListRow.vue +102 -0
- package/dist/runtime/templates/components/core/admin/RouteListRow.vue.d.ts +21 -0
- package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.d.vue.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue +62 -0
- package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue.d.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RoutesTab.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/RoutesTab.vue +264 -0
- package/dist/runtime/templates/components/core/admin/RoutesTab.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.d.vue.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.vue +45 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.vue.d.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabManage.d.vue.ts +24 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabManage.vue +139 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabManage.vue.d.ts +24 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabView.d.vue.ts +17 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabView.vue +74 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabView.vue.d.ts +17 -0
- package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue +19 -0
- package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/FilterSelect.d.vue.ts +8 -0
- package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue +86 -0
- package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue.d.ts +8 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInfo.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue +24 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInput.d.vue.ts +17 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInput.vue +57 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInput.vue.d.ts +17 -0
- package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.vue +23 -0
- package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/form/ModalSelect.d.vue.ts +12 -0
- package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue +100 -0
- package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue.d.ts +12 -0
- package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.d.vue.ts +9 -0
- package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue +112 -0
- package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue.d.ts +9 -0
- package/dist/runtime/templates/components/core/assets/CwaLogo.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/CwaLogo.vue +21 -0
- package/dist/runtime/templates/components/core/assets/CwaLogo.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconComponents.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconComponents.vue +15 -0
- package/dist/runtime/templates/components/core/assets/IconComponents.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconData.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconData.vue +24 -0
- package/dist/runtime/templates/components/core/assets/IconData.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconLayouts.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconLayouts.vue +20 -0
- package/dist/runtime/templates/components/core/assets/IconLayouts.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconPages.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconPages.vue +21 -0
- package/dist/runtime/templates/components/core/assets/IconPages.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconRoutes.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconRoutes.vue +23 -0
- package/dist/runtime/templates/components/core/assets/IconRoutes.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconUsers.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconUsers.vue +13 -0
- package/dist/runtime/templates/components/core/assets/IconUsers.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/useDataResolver.d.ts +12 -0
- package/dist/runtime/templates/components/core/useDataResolver.js +113 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.d.ts +6 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.js +166 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.d.ts +22 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.js +102 -0
- package/dist/runtime/templates/components/main/ComponentGroup.d.vue.ts +13 -0
- package/dist/runtime/templates/components/main/ComponentGroup.spec.ts.snap +68 -0
- package/dist/runtime/templates/components/main/ComponentGroup.vue +138 -0
- package/dist/runtime/templates/components/main/ComponentGroup.vue.d.ts +13 -0
- package/dist/runtime/templates/components/main/CwaLink.d.vue.ts +14 -0
- package/dist/runtime/templates/components/main/CwaLink.vue +55 -0
- package/dist/runtime/templates/components/main/CwaLink.vue.d.ts +14 -0
- package/dist/runtime/templates/components/main/CwaPage.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/CwaPage.vue +22 -0
- package/dist/runtime/templates/components/main/CwaPage.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/DefaultLayout.d.vue.ts +12 -0
- package/dist/runtime/templates/components/main/DefaultLayout.vue +12 -0
- package/dist/runtime/templates/components/main/DefaultLayout.vue.d.ts +12 -0
- package/dist/runtime/templates/components/main/ErrorPage.d.vue.ts +7 -0
- package/dist/runtime/templates/components/main/ErrorPage.vue +134 -0
- package/dist/runtime/templates/components/main/ErrorPage.vue.d.ts +7 -0
- package/dist/runtime/templates/components/main/Logo.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/Logo.vue +18 -0
- package/dist/runtime/templates/components/main/Logo.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/README.md +7 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.d.vue.ts +12 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue +41 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue.d.ts +12 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue +48 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.d.ts +5 -0
- package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.js +19 -0
- package/dist/runtime/templates/components/main/admin/header/Header.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/Header.vue +209 -0
- package/dist/runtime/templates/components/main/admin/header/Header.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Menu.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue +155 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.d.vue.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue +15 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue.d.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.d.vue.ts +15 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue +20 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue.d.ts +15 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Notification.d.vue.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue +70 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue.d.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue +19 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue +79 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue +52 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.d.vue.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue +159 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue.d.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.d.vue.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue +198 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue.d.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.d.vue.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue +186 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue.d.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue +208 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.d.vue.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue +38 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue.d.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.d.vue.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue +15 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue.d.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.d.vue.ts +14 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue +44 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue.d.ts +14 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue +67 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue +75 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue +41 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue +114 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue +34 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue +104 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue +52 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.d.vue.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue +94 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue.d.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.d.vue.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue +59 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue.d.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue +28 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.d.vue.ts +26 -0
- package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue +56 -0
- package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue.d.ts +26 -0
- package/dist/runtime/templates/components/main/auth/LoginPage.d.vue.ts +28 -0
- package/dist/runtime/templates/components/main/auth/LoginPage.vue +61 -0
- package/dist/runtime/templates/components/main/auth/LoginPage.vue.d.ts +28 -0
- package/dist/runtime/templates/components/main/auth/ResetPasswordPage.d.vue.ts +28 -0
- package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue +59 -0
- package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue.d.ts +28 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.d.vue.ts +7 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.spec.ts.snap +14 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue +17 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue.d.ts +7 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.d.vue.ts +25 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.spec.ts.snap +90 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue +59 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue.d.ts +25 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.d.vue.ts +22 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.spec.ts.snap +111 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.vue +50 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.vue.d.ts +22 -0
- package/dist/runtime/templates/components/ui/BackgroundParticles.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/BackgroundParticles.vue +1071 -0
- package/dist/runtime/templates/components/ui/BackgroundParticles.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/Hamburger.d.vue.ts +10 -0
- package/dist/runtime/templates/components/ui/Hamburger.vue +75 -0
- package/dist/runtime/templates/components/ui/Hamburger.vue.d.ts +10 -0
- package/dist/runtime/templates/components/ui/ProgressBar.d.vue.ts +10 -0
- package/dist/runtime/templates/components/ui/ProgressBar.spec.ts.snap +71 -0
- package/dist/runtime/templates/components/ui/ProgressBar.vue +29 -0
- package/dist/runtime/templates/components/ui/ProgressBar.vue.d.ts +10 -0
- package/dist/runtime/templates/components/ui/README.md +6 -0
- package/dist/runtime/templates/components/ui/alert/Info.d.vue.ts +12 -0
- package/dist/runtime/templates/components/ui/alert/Info.spec.ts.snap +23 -0
- package/dist/runtime/templates/components/ui/alert/Info.vue +17 -0
- package/dist/runtime/templates/components/ui/alert/Info.vue.d.ts +12 -0
- package/dist/runtime/templates/components/ui/alert/Warning.d.vue.ts +13 -0
- package/dist/runtime/templates/components/ui/alert/Warning.spec.ts.snap +18 -0
- package/dist/runtime/templates/components/ui/alert/Warning.vue +13 -0
- package/dist/runtime/templates/components/ui/alert/Warning.vue.d.ts +13 -0
- package/dist/runtime/templates/components/ui/form/Button.d.vue.ts +53 -0
- package/dist/runtime/templates/components/ui/form/Button.vue +139 -0
- package/dist/runtime/templates/components/ui/form/Button.vue.d.ts +53 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.d.vue.ts +11 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue +18 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue.d.ts +11 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.d.vue.ts +11 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue +15 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue.d.ts +11 -0
- package/dist/runtime/templates/components/ui/form/File.d.vue.ts +18 -0
- package/dist/runtime/templates/components/ui/form/File.vue +72 -0
- package/dist/runtime/templates/components/ui/form/File.vue.d.ts +18 -0
- package/dist/runtime/templates/components/ui/form/Input.d.vue.ts +10 -0
- package/dist/runtime/templates/components/ui/form/Input.vue +17 -0
- package/dist/runtime/templates/components/ui/form/Input.vue.d.ts +10 -0
- package/dist/runtime/templates/components/ui/form/LabelWrapper.d.vue.ts +15 -0
- package/dist/runtime/templates/components/ui/form/LabelWrapper.vue +17 -0
- package/dist/runtime/templates/components/ui/form/LabelWrapper.vue.d.ts +15 -0
- package/dist/runtime/templates/components/ui/form/SearchResource.d.vue.ts +15 -0
- package/dist/runtime/templates/components/ui/form/SearchResource.vue +212 -0
- package/dist/runtime/templates/components/ui/form/SearchResource.vue.d.ts +15 -0
- package/dist/runtime/templates/components/ui/form/Select.d.vue.ts +8 -0
- package/dist/runtime/templates/components/ui/form/Select.vue +60 -0
- package/dist/runtime/templates/components/ui/form/Select.vue.d.ts +8 -0
- package/dist/runtime/templates/components/ui/form/Toggle.d.vue.ts +11 -0
- package/dist/runtime/templates/components/ui/form/Toggle.vue +48 -0
- package/dist/runtime/templates/components/ui/form/Toggle.vue.d.ts +11 -0
- package/dist/runtime/templates/components/ui/icon/ArrowIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue +30 -0
- package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/BinIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/BinIcon.vue +24 -0
- package/dist/runtime/templates/components/ui/icon/BinIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/CogIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/CogIcon.vue +9 -0
- package/dist/runtime/templates/components/ui/icon/CogIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/EyeIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/EyeIcon.vue +24 -0
- package/dist/runtime/templates/components/ui/icon/EyeIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PenIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PenIcon.vue +12 -0
- package/dist/runtime/templates/components/ui/icon/PenIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PlusIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PlusIcon.vue +9 -0
- package/dist/runtime/templates/components/ui/icon/PlusIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/SearchIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/SearchIcon.vue +10 -0
- package/dist/runtime/templates/components/ui/icon/SearchIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/TickIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/TickIcon.vue +23 -0
- package/dist/runtime/templates/components/ui/icon/TickIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/WarningIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/WarningIcon.vue +11 -0
- package/dist/runtime/templates/components/ui/icon/WarningIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/XMarkIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue +15 -0
- package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/utils/ContextMenu.d.vue.ts +27 -0
- package/dist/runtime/templates/components/utils/ContextMenu.vue +60 -0
- package/dist/runtime/templates/components/utils/ContextMenu.vue.d.ts +27 -0
- package/dist/runtime/templates/components/utils/HotSpot.d.vue.ts +12 -0
- package/dist/runtime/templates/components/utils/HotSpot.vue +28 -0
- package/dist/runtime/templates/components/utils/HotSpot.vue.d.ts +12 -0
- package/dist/runtime/templates/components/utils/README.md +1 -0
- package/dist/runtime/templates/components/utils/Spinner.d.vue.ts +7 -0
- package/dist/runtime/templates/components/utils/Spinner.spec.ts.snap +56 -0
- package/dist/runtime/templates/components/utils/Spinner.vue +44 -0
- package/dist/runtime/templates/components/utils/Spinner.vue.d.ts +7 -0
- package/dist/runtime/templates/components/utils/SpinnerTick.d.vue.ts +7 -0
- package/dist/runtime/templates/components/utils/SpinnerTick.vue +43 -0
- package/dist/runtime/templates/components/utils/SpinnerTick.vue.d.ts +7 -0
- package/dist/runtime/templates/cwa-page.d.vue.ts +3 -0
- package/dist/runtime/templates/cwa-page.spec.ts.snap +9 -0
- package/dist/runtime/templates/cwa-page.vue +55 -0
- package/dist/runtime/templates/cwa-page.vue.d.ts +3 -0
- package/dist/runtime/types/index.d.ts +59 -0
- package/dist/runtime/types/index.js +0 -0
- package/dist/runtime/types/popper.d.ts +14 -0
- package/dist/types.d.mts +7 -0
- package/package.json +132 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ListHeading
|
|
3
|
+
title="Pages"
|
|
4
|
+
@add="goToAdd"
|
|
5
|
+
/>
|
|
6
|
+
<ListFilter
|
|
7
|
+
:order-options="orderOptions"
|
|
8
|
+
:search-fields="['reference', 'title', 'uiComponent']"
|
|
9
|
+
/>
|
|
10
|
+
<ListContainer>
|
|
11
|
+
<div>
|
|
12
|
+
<div>
|
|
13
|
+
<FilterFormWrapper
|
|
14
|
+
label="Page Type"
|
|
15
|
+
input-id="page-type"
|
|
16
|
+
>
|
|
17
|
+
<div class="cwa:flex cwa:gap-x-2">
|
|
18
|
+
<div>
|
|
19
|
+
<ListFilterButton
|
|
20
|
+
v-model="selectedTypesModel"
|
|
21
|
+
value="false"
|
|
22
|
+
label="Static"
|
|
23
|
+
background-color-class="cwa:bg-blue-600/20"
|
|
24
|
+
border-color-class="cwa:border-blue-600"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
<div>
|
|
28
|
+
<ListFilterButton
|
|
29
|
+
v-model="selectedTypesModel"
|
|
30
|
+
value="true"
|
|
31
|
+
label="Dynamic"
|
|
32
|
+
background-color-class="cwa:bg-yellow/20"
|
|
33
|
+
border-color-class="cwa:border-yellow"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</FilterFormWrapper>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</ListContainer>
|
|
41
|
+
<ListContent
|
|
42
|
+
ref="listContent"
|
|
43
|
+
fetch-url="/_/pages"
|
|
44
|
+
>
|
|
45
|
+
<template #item="{ data }">
|
|
46
|
+
<div class="cwa:flex cwa:border-b cwa:border-b-stone-700 cwa:py-6 cwa:gap-x-4 cwa:items-center">
|
|
47
|
+
<div class="cwa:grow cwa:flex cwa:flex-col cwa:gap-y-1">
|
|
48
|
+
<div class="cwa:flex cwa:items-center cwa:gap-x-3">
|
|
49
|
+
<span class="cwa:text-xl">{{ data.reference }}</span><span :class="['cwa:outline', 'cwa:outline-1', 'cwa:outline-offset-2', 'cwa:w-2', 'cwa:h-2', 'cwa:rounded-full', data.isTemplate ? 'cwa:outline-yellow cwa:bg-yellow' : 'cwa:outline-blue-600 cwa:bg-blue-600']" />
|
|
50
|
+
</div>
|
|
51
|
+
<span class="cwa:text-stone-400">UI: {{ data.uiComponent ? getDisplayPageUi(data.uiComponent) : 'Unknown' }}</span>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="cwa:flex cwa:gap-x-2">
|
|
54
|
+
<CwaUiFormButton :to="computedItemLink(data['@id'])">
|
|
55
|
+
<CwaUiIconCogIcon class="cwa:w-6" />
|
|
56
|
+
<span class="cwa:sr-only">Settings</span>
|
|
57
|
+
</CwaUiFormButton>
|
|
58
|
+
<CwaUiFormButton @click="() => goToPage(data['@id'])">
|
|
59
|
+
<CwaUiIconEyeIcon class="cwa:h-5" />
|
|
60
|
+
<span class="cwa:sr-only">View</span>
|
|
61
|
+
</CwaUiFormButton>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
</ListContent>
|
|
66
|
+
<ResourceModalOverlay @reload="triggerReload" />
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script lang="ts" setup>
|
|
70
|
+
import { useRouter } from 'vue-router'
|
|
71
|
+
import { ref } from 'vue'
|
|
72
|
+
import { useListPage } from './composables/useListPage'
|
|
73
|
+
import ListHeading from '#cwa/templates/components/core/admin/ListHeading.vue'
|
|
74
|
+
import ListContent from '#cwa/templates/components/core/admin/ListContent.vue'
|
|
75
|
+
import ListFilter from '#cwa/templates/components/core/admin/ListFilter.vue'
|
|
76
|
+
import ListContainer from '#cwa/templates/components/core/admin/ListContainer.vue'
|
|
77
|
+
import FilterFormWrapper from '#cwa/templates/components/core/admin/form/FilterFormWrapper.vue'
|
|
78
|
+
import ListFilterButton from '#cwa/templates/components/core/admin/ListFilterButton.vue'
|
|
79
|
+
import { useQueryBoundModel } from '#cwa/composables/cwa-query-bound-model'
|
|
80
|
+
import ResourceModalOverlay from '#cwa/templates/components/core/admin/ResourceModalOverlay.vue'
|
|
81
|
+
import { definePageMeta, useCwa, useCwaResourceRoute, useHead } from '#imports'
|
|
82
|
+
|
|
83
|
+
const listContent = ref<InstanceType<typeof ListContent> | null>(null)
|
|
84
|
+
|
|
85
|
+
const $cwa = useCwa()
|
|
86
|
+
const { goToAdd, triggerReload, computedItemLink } = useListPage(listContent)
|
|
87
|
+
const { getInternalResourceLink } = useCwaResourceRoute()
|
|
88
|
+
|
|
89
|
+
const router = useRouter()
|
|
90
|
+
|
|
91
|
+
const orderOptions = [
|
|
92
|
+
{
|
|
93
|
+
label: 'New - Old',
|
|
94
|
+
value: { createdAt: 'desc' },
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: 'Old - New',
|
|
98
|
+
value: { createdAt: 'asc' },
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: 'A - Z',
|
|
102
|
+
value: { reference: 'asc' },
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: 'Z - A',
|
|
106
|
+
value: { reference: 'desc' },
|
|
107
|
+
},
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
const { model: selectedTypesModel } = useQueryBoundModel('isTemplate[]', {
|
|
111
|
+
defaultValue: ['true', 'false'],
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
function goToPage(page: string) {
|
|
115
|
+
router.push(getInternalResourceLink(page))
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function getDisplayPageUi(ui: string) {
|
|
119
|
+
return $cwa.pagesConfig?.[ui]?.name || ui
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
useHead({
|
|
123
|
+
title: 'Pages',
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
definePageMeta({
|
|
127
|
+
name: '_cwa-pages',
|
|
128
|
+
pageTransition: false,
|
|
129
|
+
})
|
|
130
|
+
</script>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ListHeading
|
|
3
|
+
title="Routes"
|
|
4
|
+
:hide-add="true"
|
|
5
|
+
/>
|
|
6
|
+
<ListFilter
|
|
7
|
+
:order-options="orderOptions"
|
|
8
|
+
:search-fields="['path']"
|
|
9
|
+
/>
|
|
10
|
+
<ListContent
|
|
11
|
+
ref="listContent"
|
|
12
|
+
fetch-url="/_/routes"
|
|
13
|
+
>
|
|
14
|
+
<template #item="{ data, rawData }">
|
|
15
|
+
<RouteListRow
|
|
16
|
+
:data="data"
|
|
17
|
+
:associated-resources="rawData.associatedResources"
|
|
18
|
+
:link-fn="computedItemLink"
|
|
19
|
+
@delete="deleteRoute"
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
|
22
|
+
</ListContent>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script lang="ts" setup>
|
|
26
|
+
import { ref } from 'vue'
|
|
27
|
+
import ListHeading from '#cwa/templates/components/core/admin/ListHeading.vue'
|
|
28
|
+
import ListContent from '#cwa/templates/components/core/admin/ListContent.vue'
|
|
29
|
+
import ListFilter from '#cwa/templates/components/core/admin/ListFilter.vue'
|
|
30
|
+
import { useListPage } from '#cwa-layer/pages/_cwa/index/composables/useListPage'
|
|
31
|
+
import { definePageMeta, useCwa, useHead } from '#imports'
|
|
32
|
+
import RouteListRow from '#cwa/templates/components/core/admin/RouteListRow.vue'
|
|
33
|
+
|
|
34
|
+
const $cwa = useCwa()
|
|
35
|
+
const listContent = ref<InstanceType<typeof ListContent> | null>(null)
|
|
36
|
+
const { computedItemLink, triggerReload } = useListPage(listContent, true)
|
|
37
|
+
|
|
38
|
+
async function deleteRoute(routeIri: string) {
|
|
39
|
+
await $cwa.resourcesManager.deleteResource({ endpoint: routeIri })
|
|
40
|
+
triggerReload()
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const orderOptions = [
|
|
44
|
+
{ label: 'New - Old', value: { createdAt: 'desc' } },
|
|
45
|
+
{ label: 'Old - New', value: { createdAt: 'asc' } },
|
|
46
|
+
{ label: 'A - Z', value: { path: 'asc' } },
|
|
47
|
+
{ label: 'Z - A', value: { path: 'desc' } },
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
useHead({ title: 'Routes' })
|
|
51
|
+
|
|
52
|
+
definePageMeta({
|
|
53
|
+
name: '_cwa-routes',
|
|
54
|
+
pageTransition: false,
|
|
55
|
+
})
|
|
56
|
+
</script>
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ListHeading
|
|
3
|
+
title="Site settings"
|
|
4
|
+
hide-add
|
|
5
|
+
/>
|
|
6
|
+
<ListContainer class="cwa:relative cwa:py-10">
|
|
7
|
+
<Spinner
|
|
8
|
+
v-if="$cwa.siteConfig.isLoading || allSettings === undefined"
|
|
9
|
+
:show="true"
|
|
10
|
+
/>
|
|
11
|
+
<CwaUiAlertWarning v-else-if="!allSettings">
|
|
12
|
+
Sorry, there was an error loading the settings
|
|
13
|
+
</CwaUiAlertWarning>
|
|
14
|
+
<div
|
|
15
|
+
v-else
|
|
16
|
+
class="cwa:flex cwa:flex-col"
|
|
17
|
+
>
|
|
18
|
+
<div :class="{ 'cwa:pointer-events-none cwa:opacity-50 cwa:transition': showUpdateProgress }">
|
|
19
|
+
<div>
|
|
20
|
+
<h2 class="cwa:text-xl cwa:mb-4">
|
|
21
|
+
General
|
|
22
|
+
</h2>
|
|
23
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-4">
|
|
24
|
+
<div>
|
|
25
|
+
<ModalInput
|
|
26
|
+
v-model="allSettings.siteName"
|
|
27
|
+
label="Site name"
|
|
28
|
+
type="text"
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
31
|
+
<div>
|
|
32
|
+
<CwaUiFormToggle
|
|
33
|
+
v-model="allSettings.concatTitle"
|
|
34
|
+
label="Extend page titles with the default title"
|
|
35
|
+
/>
|
|
36
|
+
<div
|
|
37
|
+
class="cwa:text-sm cwa:font-normal cwa:mt-2.5 cwa:text-stone-300"
|
|
38
|
+
>
|
|
39
|
+
<p>
|
|
40
|
+
<span>Page titles will be formatted as</span>
|
|
41
|
+
<CwaCode v-if="allSettings.concatTitle">
|
|
42
|
+
[Page title] | [Site name]
|
|
43
|
+
</CwaCode>
|
|
44
|
+
<CwaCode
|
|
45
|
+
v-else
|
|
46
|
+
>
|
|
47
|
+
[Page title]
|
|
48
|
+
</CwaCode>
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div>
|
|
53
|
+
<CwaUiFormToggle
|
|
54
|
+
v-model="allSettings.fallbackTitle"
|
|
55
|
+
label="Smart fallback page titles"
|
|
56
|
+
/>
|
|
57
|
+
<div
|
|
58
|
+
class="cwa:text-sm cwa:font-normal cwa:mt-2.5 cwa:text-stone-300"
|
|
59
|
+
>
|
|
60
|
+
<p v-if="allSettings.fallbackTitle">
|
|
61
|
+
Fallback title based on URL. Eg. <CwaCode>/blog-articles</CwaCode> becomes <CwaCode>Blog Articles</CwaCode>
|
|
62
|
+
</p>
|
|
63
|
+
<p
|
|
64
|
+
v-else
|
|
65
|
+
class="cwa:text-danger cwa:font-bold"
|
|
66
|
+
>
|
|
67
|
+
If you do not specify a page title, no page title will be used
|
|
68
|
+
</p>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div>
|
|
72
|
+
<ModalInput
|
|
73
|
+
v-model="allSettings.canonicalUrl"
|
|
74
|
+
label="Canonical URL"
|
|
75
|
+
type="url"
|
|
76
|
+
placeholder="https://your-site-domain.com"
|
|
77
|
+
/>
|
|
78
|
+
<p
|
|
79
|
+
v-if="canonicalMismatch"
|
|
80
|
+
class="cwa:text-danger cwa:font-bold cwa:text-sm cwa:mt-2"
|
|
81
|
+
>
|
|
82
|
+
You are loading this page via <CwaCode>{{ currentHostDomain }}</CwaCode> which is different to the URL you have specified. Please ensure the canonical URL above is your primary domain and does not have redirects.
|
|
83
|
+
</p>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<hr class="cwa:my-8 cwa:text-stone-600">
|
|
88
|
+
<div>
|
|
89
|
+
<h2 class="cwa:text-xl cwa:mb-4">
|
|
90
|
+
Sitemap
|
|
91
|
+
</h2>
|
|
92
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-4">
|
|
93
|
+
<div class="cwa:pb-4">
|
|
94
|
+
<p class="cwa:text-sm cwa:text-stone-400">
|
|
95
|
+
<strong>Please note:</strong><br>A sitemap will be created automatically for any pages (if any) which are not created within the CWA. You should submit <CwaCode>/sitemap_index.xml</CwaCode> in your chosen search engine search consoles
|
|
96
|
+
</p>
|
|
97
|
+
</div>
|
|
98
|
+
<CwaUiFormToggle
|
|
99
|
+
v-model="allSettings.sitemapEnabled"
|
|
100
|
+
label="Add CWA URLs to your sitemap"
|
|
101
|
+
/>
|
|
102
|
+
<ModalInput
|
|
103
|
+
v-model="allSettings.sitemapXml"
|
|
104
|
+
label="Additional custom XML sitemap"
|
|
105
|
+
type="textarea"
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<hr class="cwa:my-8 cwa:text-stone-600">
|
|
110
|
+
<div>
|
|
111
|
+
<h2 class="cwa:text-xl cwa:mb-4">
|
|
112
|
+
SEO Indexing
|
|
113
|
+
</h2>
|
|
114
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-4">
|
|
115
|
+
<CwaUiFormToggle
|
|
116
|
+
v-model="allSettings.indexable"
|
|
117
|
+
label="Allow your website to be indexed"
|
|
118
|
+
/>
|
|
119
|
+
<template v-if="allSettings.indexable">
|
|
120
|
+
<CwaUiFormToggle
|
|
121
|
+
v-model="allSettings.robotsAllowNonSeoCrawlers"
|
|
122
|
+
label="Allow Non-SEO Crawlers (Web Scrapers etc.)"
|
|
123
|
+
/>
|
|
124
|
+
<CwaUiFormToggle
|
|
125
|
+
v-model="allSettings.robotsAllowAiBots"
|
|
126
|
+
label="Allow Artificial Intelligence Bots"
|
|
127
|
+
/>
|
|
128
|
+
</template>
|
|
129
|
+
<CwaUiFormToggle
|
|
130
|
+
v-model="allSettings.robotsRemoveSitemap"
|
|
131
|
+
label="Remove sitemap.xml from robots.txt"
|
|
132
|
+
/>
|
|
133
|
+
<ModalInput
|
|
134
|
+
v-model="allSettings.robotsText"
|
|
135
|
+
label="Additional custom robots.txt"
|
|
136
|
+
type="textarea"
|
|
137
|
+
/>
|
|
138
|
+
<div
|
|
139
|
+
v-if="showErrors && formErrors.robotsText"
|
|
140
|
+
class="cwa:text-sm cwa:flex cwa:items-center cwa:gap-x-2 cwa:transition cwa:text-danger cwa:font-bold"
|
|
141
|
+
>
|
|
142
|
+
<p
|
|
143
|
+
v-for="(error, index) of formErrors.robotsText"
|
|
144
|
+
:key="`rtxterr-${index}`"
|
|
145
|
+
>
|
|
146
|
+
{{ error }}
|
|
147
|
+
</p>
|
|
148
|
+
</div>
|
|
149
|
+
<div
|
|
150
|
+
v-if="formWarnings.robotsText"
|
|
151
|
+
class="cwa:text-sm cwa:flex-col cwa:items-center cwa:gap-y-2 cwa:transition cwa:text-yellow-500 cwa:font-bold"
|
|
152
|
+
>
|
|
153
|
+
<p
|
|
154
|
+
v-for="(warning, index) of formWarnings.robotsText"
|
|
155
|
+
:key="`rtxtwarn-${index}`"
|
|
156
|
+
>
|
|
157
|
+
{{ warning }}
|
|
158
|
+
</p>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
<hr class="cwa:my-8 cwa:text-stone-600"><div>
|
|
163
|
+
<h2 class="cwa:text-xl cwa:mb-4">
|
|
164
|
+
Maintenance
|
|
165
|
+
</h2>
|
|
166
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-4">
|
|
167
|
+
<div>
|
|
168
|
+
<CwaUiFormToggle
|
|
169
|
+
v-model="allSettings.maintenanceModeEnabled"
|
|
170
|
+
label="Enable maintenance mode"
|
|
171
|
+
/>
|
|
172
|
+
<div
|
|
173
|
+
v-if="allSettings.maintenanceModeEnabled"
|
|
174
|
+
class="cwa:text-sm cwa:font-normal cwa:mt-2.5 cwa:text-stone-300"
|
|
175
|
+
>
|
|
176
|
+
<p>Website visitors will be redirected to a 'website under maintenance page'</p>
|
|
177
|
+
<p>Crawlers will receive an HTTP status code so they know this is not permanent</p>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<hr class="cwa:my-8 cwa:text-stone-600">
|
|
183
|
+
<div>
|
|
184
|
+
<h2 class="cwa:text-bas cwa:mb-4">
|
|
185
|
+
CWA Version Info
|
|
186
|
+
</h2>
|
|
187
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-2 text-sm">
|
|
188
|
+
<div>
|
|
189
|
+
<MenuLink :to="moduleLink">
|
|
190
|
+
App: <span class="cwa:text-xs">{{ displayAppVersion }}</span>
|
|
191
|
+
</MenuLink>
|
|
192
|
+
</div>
|
|
193
|
+
<div>
|
|
194
|
+
<MenuLink
|
|
195
|
+
:to="apiPackagistLink"
|
|
196
|
+
title="Hello"
|
|
197
|
+
>
|
|
198
|
+
API: <span class="cwa:text-xs">{{ displayApiVersion }}</span>
|
|
199
|
+
</MenuLink>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
<hr class="cwa:my-8 cwa:text-stone-600">
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
<div class="flex">
|
|
207
|
+
<CwaUiFormButton
|
|
208
|
+
:color="showSubmitErrorState ? 'error' : 'blue'"
|
|
209
|
+
:disabled="submitDisabled"
|
|
210
|
+
type="button"
|
|
211
|
+
@click="processChanges"
|
|
212
|
+
>
|
|
213
|
+
Save Changes
|
|
214
|
+
</CwaUiFormButton>
|
|
215
|
+
</div>
|
|
216
|
+
<div
|
|
217
|
+
v-if="showSubmitErrorState"
|
|
218
|
+
class="cwa:mt-2 cwa:text-sm cwa:flex cwa:items-center cwa:gap-x-2 cwa:transition cwa:text-danger cwa:font-bold"
|
|
219
|
+
>
|
|
220
|
+
<p>An error occurred while saving your changes</p>
|
|
221
|
+
</div>
|
|
222
|
+
<div
|
|
223
|
+
:class="[showUpdateProgress ? 'opacity-100' : 'opacity-0']"
|
|
224
|
+
class="cwa:mt-2 cwa:text-sm cwa:flex cwa:items-center cwa:gap-x-2 cwa:transition"
|
|
225
|
+
>
|
|
226
|
+
<Spinner show /><p>Processing updates {{ updatingCount - $cwa.siteConfig.totalRequests.value }} / {{ updatingCount }}</p>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
</ListContainer>
|
|
230
|
+
</template>
|
|
231
|
+
|
|
232
|
+
<script lang="ts" setup>
|
|
233
|
+
import { consola } from 'consola'
|
|
234
|
+
import { computed, onMounted, ref, watch } from 'vue'
|
|
235
|
+
import { watchDebounced } from '@vueuse/core'
|
|
236
|
+
import isEqual from 'lodash-es/isEqual'
|
|
237
|
+
import { asArray, parseRobotsTxt, validateRobots } from '#robots/util'
|
|
238
|
+
import ListHeading from '#cwa/templates/components/core/admin/ListHeading.vue'
|
|
239
|
+
import { definePageMeta, useCwa, useRequestURL, useHead } from '#imports'
|
|
240
|
+
import ListContainer from '#cwa/templates/components/core/admin/ListContainer.vue'
|
|
241
|
+
import Spinner from '#cwa/templates/components/utils/Spinner.vue'
|
|
242
|
+
import ModalInput from '#cwa/templates/components/core/admin/form/ModalInput.vue'
|
|
243
|
+
import MenuLink from '#cwa/templates/components/main/admin/header/_parts/MenuLink.vue'
|
|
244
|
+
import type { SiteConfigParams } from '#cwa/types'
|
|
245
|
+
import CwaCode from '#cwa/templates/components/core/admin/CwaCode.vue'
|
|
246
|
+
|
|
247
|
+
const $cwa = useCwa()
|
|
248
|
+
|
|
249
|
+
const allSettings = ref<SiteConfigParams>()
|
|
250
|
+
|
|
251
|
+
const isDataChanged = computed(() => {
|
|
252
|
+
return !isEqual(allSettings.value, $cwa.siteConfig.config)
|
|
253
|
+
})
|
|
254
|
+
|
|
255
|
+
const submitDisabled = computed(() => {
|
|
256
|
+
return !isDataChanged.value || $cwa.siteConfig.isLoading || $cwa.siteConfig.totalRequests.value > 0
|
|
257
|
+
})
|
|
258
|
+
|
|
259
|
+
const apiVersion = ref('')
|
|
260
|
+
const showUpdateProgress = ref(false)
|
|
261
|
+
const updatingCount = ref(0)
|
|
262
|
+
|
|
263
|
+
const moduleLink = computed(() => {
|
|
264
|
+
return `https://www.npmjs.com/package/${$cwa.currentModulePackageInfo.name}/v/${$cwa.currentModulePackageInfo.version}`
|
|
265
|
+
})
|
|
266
|
+
|
|
267
|
+
useHead({
|
|
268
|
+
title: 'Site Settings',
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
definePageMeta({
|
|
272
|
+
name: '_cwa-settings',
|
|
273
|
+
pageTransition: false,
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
async function setApiVersion() {
|
|
277
|
+
const docs = await $cwa.getApiDocumentation()
|
|
278
|
+
const version = docs?.docs?.info.version
|
|
279
|
+
if (!version) {
|
|
280
|
+
apiVersion.value = ''
|
|
281
|
+
return
|
|
282
|
+
}
|
|
283
|
+
const matches: RegExpMatchArray | null = version.match(/ \(([a-zA-Z0-9\-@]+)\)$/)
|
|
284
|
+
if (!matches) {
|
|
285
|
+
apiVersion.value = version
|
|
286
|
+
return
|
|
287
|
+
}
|
|
288
|
+
apiVersion.value = matches[1] || version
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function truncateVersion(version: string) {
|
|
292
|
+
return version.length > 9
|
|
293
|
+
? `${version.substring(0, 3)}..${version.substring(version.length - 4)}`
|
|
294
|
+
: version
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
const displayApiVersion = computed(() => {
|
|
298
|
+
const unstablePostfix = apiVersion.value.substring(0, 3) === 'dev' ? ' (unstable)' : ''
|
|
299
|
+
return truncateVersion(apiVersion.value) + unstablePostfix
|
|
300
|
+
})
|
|
301
|
+
|
|
302
|
+
const apiPackagistLink = computed(() => {
|
|
303
|
+
const versionParts = apiVersion.value.split('@')
|
|
304
|
+
return `https://packagist.org/packages/components-web-app/api-components-bundle#${versionParts[0]}`
|
|
305
|
+
})
|
|
306
|
+
|
|
307
|
+
const displayAppVersion = computed(() => {
|
|
308
|
+
const unstablePostfix = $cwa.currentModulePackageInfo.name.substring($cwa.currentModulePackageInfo.name.length - 4) === 'edge' ? ' (unstable)' : ''
|
|
309
|
+
return (
|
|
310
|
+
truncateVersion($cwa.currentModulePackageInfo.version)
|
|
311
|
+
+ unstablePostfix
|
|
312
|
+
)
|
|
313
|
+
})
|
|
314
|
+
|
|
315
|
+
const url = useRequestURL()
|
|
316
|
+
const currentHostDomain = computed(() => {
|
|
317
|
+
return url.origin
|
|
318
|
+
})
|
|
319
|
+
|
|
320
|
+
const canonicalMismatch = computed(() => {
|
|
321
|
+
const canonical = $cwa.siteConfig.config?.canonicalUrl
|
|
322
|
+
if (!canonical) {
|
|
323
|
+
return false
|
|
324
|
+
}
|
|
325
|
+
return canonical !== currentHostDomain.value
|
|
326
|
+
})
|
|
327
|
+
|
|
328
|
+
watchDebounced($cwa.siteConfig.totalRequests, (newTotal) => {
|
|
329
|
+
showUpdateProgress.value = newTotal > 0
|
|
330
|
+
}, {
|
|
331
|
+
debounce: 300,
|
|
332
|
+
})
|
|
333
|
+
|
|
334
|
+
const showErrors = ref(false)
|
|
335
|
+
const formErrors = ref<{ [property: string]: string[] }>({})
|
|
336
|
+
const formWarnings = ref<{ [property: string]: string[] }>({})
|
|
337
|
+
|
|
338
|
+
function validateRobotsTxt(robotsText: string) {
|
|
339
|
+
clearErrorsAndWarnings('robotsText')
|
|
340
|
+
const parsedRobotsTxt = parseRobotsTxt(robotsText)
|
|
341
|
+
const { errors } = validateRobots(parsedRobotsTxt)
|
|
342
|
+
if (errors.length > 0) {
|
|
343
|
+
formErrors.value.robotsText = errors
|
|
344
|
+
}
|
|
345
|
+
// check if the robots.txt is blocking indexing
|
|
346
|
+
const wildCardGroups = parsedRobotsTxt.groups.filter((group: any) => asArray(group.userAgent).includes('*'))
|
|
347
|
+
if (wildCardGroups.some((group: any) => asArray(group.disallow).includes('/'))) {
|
|
348
|
+
formWarnings.value.robotsText = [
|
|
349
|
+
`The user defined robots.txt is blocking indexing for all environments.`,
|
|
350
|
+
'It\'s recommended to use the `indexable` Site Config to toggle this instead.',
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function clearErrorsAndWarnings(prop: string) {
|
|
356
|
+
delete formErrors.value[prop]
|
|
357
|
+
delete formWarnings.value[prop]
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
watch(() => allSettings.value?.robotsText, (robotsText: string | undefined) => {
|
|
361
|
+
if (!robotsText) {
|
|
362
|
+
clearErrorsAndWarnings('robotsText')
|
|
363
|
+
return
|
|
364
|
+
}
|
|
365
|
+
validateRobotsTxt(robotsText)
|
|
366
|
+
}, {
|
|
367
|
+
immediate: true,
|
|
368
|
+
})
|
|
369
|
+
|
|
370
|
+
const hasClientSideErrors = computed(() => {
|
|
371
|
+
return Object.values(formErrors.value).length > 0
|
|
372
|
+
})
|
|
373
|
+
const showSubmitErrorState = computed(() => {
|
|
374
|
+
return $cwa.siteConfig.apiState.hasError.value || (showErrors.value && hasClientSideErrors.value)
|
|
375
|
+
})
|
|
376
|
+
|
|
377
|
+
async function processChanges() {
|
|
378
|
+
if (!allSettings.value) return
|
|
379
|
+
if (hasClientSideErrors.value) {
|
|
380
|
+
showErrors.value = true
|
|
381
|
+
consola.error(formErrors.value)
|
|
382
|
+
return
|
|
383
|
+
}
|
|
384
|
+
const { totalConfigsChanged } = $cwa.siteConfig.saveConfig(allSettings.value)
|
|
385
|
+
showUpdateProgress.value = totalConfigsChanged > 0
|
|
386
|
+
updatingCount.value = totalConfigsChanged
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
onMounted(async () => {
|
|
390
|
+
setApiVersion()
|
|
391
|
+
allSettings.value = await $cwa.siteConfig.loadConfig()
|
|
392
|
+
watch(() => $cwa.siteConfig.config, (newConfig) => {
|
|
393
|
+
allSettings.value = { ...newConfig }
|
|
394
|
+
}, {
|
|
395
|
+
deep: true,
|
|
396
|
+
})
|
|
397
|
+
})
|
|
398
|
+
</script>
|