katecms 0.0.0-stage → 1.0.0-beta.1
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 +5 -3
- package/dist/module.d.mts +93 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +579 -0
- package/dist/runtime/assets/img/katecms-logo.svg +17 -0
- package/dist/runtime/composables/getCollection.d.ts +62 -0
- package/dist/runtime/composables/getCollection.js +167 -0
- package/dist/runtime/composables/getOptions.d.ts +22 -0
- package/dist/runtime/composables/getOptions.js +22 -0
- package/dist/runtime/composables/getQueryCollection.d.ts +95 -0
- package/dist/runtime/composables/getQueryCollection.js +199 -0
- package/dist/runtime/composables/getTerms.d.ts +79 -0
- package/dist/runtime/composables/getTerms.js +148 -0
- package/dist/runtime/composables/useAuth.d.ts +14 -0
- package/dist/runtime/composables/useAuth.js +33 -0
- package/dist/runtime/composables/useAuthCooldown.d.ts +6 -0
- package/dist/runtime/composables/useAuthCooldown.js +44 -0
- package/dist/runtime/composables/useCmsPaths.d.ts +15 -0
- package/dist/runtime/composables/useCmsPaths.js +21 -0
- package/dist/runtime/composables/useKateCmsExtensions.d.ts +49 -0
- package/dist/runtime/composables/useKateCmsExtensions.js +29 -0
- package/dist/runtime/composables/useMediaLibrary.d.ts +84 -0
- package/dist/runtime/composables/useMediaLibrary.js +140 -0
- package/dist/runtime/composables/useMenuAccess.d.ts +8 -0
- package/dist/runtime/composables/useMenuAccess.js +16 -0
- package/dist/runtime/internal/admin/AdminHeader.d.vue.ts +24 -0
- package/dist/runtime/internal/admin/AdminHeader.vue +91 -0
- package/dist/runtime/internal/admin/AdminHeader.vue.d.ts +24 -0
- package/dist/runtime/internal/admin/AppMenu.d.vue.ts +3 -0
- package/dist/runtime/internal/admin/AppMenu.vue +244 -0
- package/dist/runtime/internal/admin/AppMenu.vue.d.ts +3 -0
- package/dist/runtime/internal/admin/AppUser.d.vue.ts +3 -0
- package/dist/runtime/internal/admin/AppUser.vue +227 -0
- package/dist/runtime/internal/admin/AppUser.vue.d.ts +3 -0
- package/dist/runtime/internal/admin/CollectionEntryForm.d.vue.ts +41 -0
- package/dist/runtime/internal/admin/CollectionEntryForm.vue +916 -0
- package/dist/runtime/internal/admin/CollectionEntryForm.vue.d.ts +41 -0
- package/dist/runtime/internal/admin/ConfirmDialog.d.vue.ts +28 -0
- package/dist/runtime/internal/admin/ConfirmDialog.vue +136 -0
- package/dist/runtime/internal/admin/ConfirmDialog.vue.d.ts +28 -0
- package/dist/runtime/internal/admin/DictionaryTermForm.d.vue.ts +33 -0
- package/dist/runtime/internal/admin/DictionaryTermForm.vue +328 -0
- package/dist/runtime/internal/admin/DictionaryTermForm.vue.d.ts +33 -0
- package/dist/runtime/internal/admin/EntryRevisions.d.vue.ts +15 -0
- package/dist/runtime/internal/admin/EntryRevisions.vue +125 -0
- package/dist/runtime/internal/admin/EntryRevisions.vue.d.ts +15 -0
- package/dist/runtime/internal/admin/MediaLibraryFilters.d.vue.ts +16 -0
- package/dist/runtime/internal/admin/MediaLibraryFilters.vue +153 -0
- package/dist/runtime/internal/admin/MediaLibraryFilters.vue.d.ts +16 -0
- package/dist/runtime/internal/admin/MediaLibraryModal.d.vue.ts +65 -0
- package/dist/runtime/internal/admin/MediaLibraryModal.vue +451 -0
- package/dist/runtime/internal/admin/MediaLibraryModal.vue.d.ts +65 -0
- package/dist/runtime/internal/admin/OptionPageForm.d.vue.ts +26 -0
- package/dist/runtime/internal/admin/OptionPageForm.vue +222 -0
- package/dist/runtime/internal/admin/OptionPageForm.vue.d.ts +26 -0
- package/dist/runtime/internal/admin/UserAvatarField.d.vue.ts +12 -0
- package/dist/runtime/internal/admin/UserAvatarField.vue +305 -0
- package/dist/runtime/internal/admin/UserAvatarField.vue.d.ts +12 -0
- package/dist/runtime/internal/fields/AccordionField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/AccordionField.vue +220 -0
- package/dist/runtime/internal/fields/AccordionField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/ButtonGroupField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/ButtonGroupField.vue +109 -0
- package/dist/runtime/internal/fields/ButtonGroupField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/CheckboxField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/CheckboxField.vue +190 -0
- package/dist/runtime/internal/fields/CheckboxField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/ColorPickerField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/ColorPickerField.vue +791 -0
- package/dist/runtime/internal/fields/ColorPickerField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/DatePickerField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/DatePickerField.vue +26 -0
- package/dist/runtime/internal/fields/DatePickerField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/DateTimePickerField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/DateTimePickerField.vue +26 -0
- package/dist/runtime/internal/fields/DateTimePickerField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/DictionaryField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/DictionaryField.vue +345 -0
- package/dist/runtime/internal/fields/DictionaryField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/EmailField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/EmailField.vue +21 -0
- package/dist/runtime/internal/fields/EmailField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/FileField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/FileField.vue +408 -0
- package/dist/runtime/internal/fields/FileField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/FlexibleContentField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/FlexibleContentField.vue +1114 -0
- package/dist/runtime/internal/fields/FlexibleContentField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/GalleryField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/GalleryField.vue +584 -0
- package/dist/runtime/internal/fields/GalleryField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/GroupField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/GroupField.vue +111 -0
- package/dist/runtime/internal/fields/GroupField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/ImageField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/ImageField.vue +638 -0
- package/dist/runtime/internal/fields/ImageField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/ImageSelectField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/ImageSelectField.vue +179 -0
- package/dist/runtime/internal/fields/ImageSelectField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/LinkField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/LinkField.vue +303 -0
- package/dist/runtime/internal/fields/LinkField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/NumberField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/NumberField.vue +25 -0
- package/dist/runtime/internal/fields/NumberField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/OembedField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/OembedField.vue +161 -0
- package/dist/runtime/internal/fields/OembedField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/OpenStreetMapField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/OpenStreetMapField.vue +1502 -0
- package/dist/runtime/internal/fields/OpenStreetMapField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/PageLinkField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/PageLinkField.vue +153 -0
- package/dist/runtime/internal/fields/PageLinkField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/PasswordField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/PasswordField.vue +108 -0
- package/dist/runtime/internal/fields/PasswordField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/PostObjectField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/PostObjectField.vue +151 -0
- package/dist/runtime/internal/fields/PostObjectField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/RadioField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/RadioField.vue +163 -0
- package/dist/runtime/internal/fields/RadioField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/RangeField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/RangeField.vue +48 -0
- package/dist/runtime/internal/fields/RangeField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/RelationshipField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/RelationshipField.vue +525 -0
- package/dist/runtime/internal/fields/RelationshipField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/RepeaterField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/RepeaterField.vue +856 -0
- package/dist/runtime/internal/fields/RepeaterField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/SelectField.d.vue.ts +21 -0
- package/dist/runtime/internal/fields/SelectField.vue +101 -0
- package/dist/runtime/internal/fields/SelectField.vue.d.ts +21 -0
- package/dist/runtime/internal/fields/SeparatorField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/SeparatorField.vue +63 -0
- package/dist/runtime/internal/fields/SeparatorField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/TabField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/TabField.vue +210 -0
- package/dist/runtime/internal/fields/TabField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/TextField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/TextField.vue +22 -0
- package/dist/runtime/internal/fields/TextField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/TextareaField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/TextareaField.vue +62 -0
- package/dist/runtime/internal/fields/TextareaField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/TimePickerField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/TimePickerField.vue +24 -0
- package/dist/runtime/internal/fields/TimePickerField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/TrueFalseField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/TrueFalseField.vue +151 -0
- package/dist/runtime/internal/fields/TrueFalseField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/UrlField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/UrlField.vue +21 -0
- package/dist/runtime/internal/fields/UrlField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/UserField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/UserField.vue +164 -0
- package/dist/runtime/internal/fields/UserField.vue.d.ts +0 -0
- package/dist/runtime/internal/fields/WysiwygField.d.vue.ts +0 -0
- package/dist/runtime/internal/fields/WysiwygField.vue +971 -0
- package/dist/runtime/internal/fields/WysiwygField.vue.d.ts +0 -0
- package/dist/runtime/internal/parts/DateTimeControl.d.vue.ts +90 -0
- package/dist/runtime/internal/parts/DateTimeControl.vue +568 -0
- package/dist/runtime/internal/parts/DateTimeControl.vue.d.ts +90 -0
- package/dist/runtime/internal/parts/FieldAddon.d.vue.ts +0 -0
- package/dist/runtime/internal/parts/FieldAddon.vue +43 -0
- package/dist/runtime/internal/parts/FieldAddon.vue.d.ts +0 -0
- package/dist/runtime/internal/parts/FieldInstructions.d.vue.ts +0 -0
- package/dist/runtime/internal/parts/FieldInstructions.vue +24 -0
- package/dist/runtime/internal/parts/FieldInstructions.vue.d.ts +0 -0
- package/dist/runtime/internal/parts/FieldLabel.d.vue.ts +0 -0
- package/dist/runtime/internal/parts/FieldLabel.vue +40 -0
- package/dist/runtime/internal/parts/FieldLabel.vue.d.ts +0 -0
- package/dist/runtime/internal/parts/FieldWrapper.d.vue.ts +0 -0
- package/dist/runtime/internal/parts/FieldWrapper.vue +47 -0
- package/dist/runtime/internal/parts/FieldWrapper.vue.d.ts +0 -0
- package/dist/runtime/internal/parts/ImageCropper.d.vue.ts +17 -0
- package/dist/runtime/internal/parts/ImageCropper.vue +363 -0
- package/dist/runtime/internal/parts/ImageCropper.vue.d.ts +17 -0
- package/dist/runtime/internal/parts/InputControl.d.vue.ts +0 -0
- package/dist/runtime/internal/parts/InputControl.vue +163 -0
- package/dist/runtime/internal/parts/InputControl.vue.d.ts +0 -0
- package/dist/runtime/internal/ui/UiButton.d.vue.ts +35 -0
- package/dist/runtime/internal/ui/UiButton.vue +204 -0
- package/dist/runtime/internal/ui/UiButton.vue.d.ts +35 -0
- package/dist/runtime/internal/ui/UiNotice.d.vue.ts +40 -0
- package/dist/runtime/internal/ui/UiNotice.vue +253 -0
- package/dist/runtime/internal/ui/UiNotice.vue.d.ts +40 -0
- package/dist/runtime/internal/ui/UiSelect.d.vue.ts +61 -0
- package/dist/runtime/internal/ui/UiSelect.vue +1212 -0
- package/dist/runtime/internal/ui/UiSelect.vue.d.ts +61 -0
- package/dist/runtime/middleware/auth-guard.d.ts +9 -0
- package/dist/runtime/middleware/auth-guard.js +37 -0
- package/dist/runtime/pages/admin/collections/[id].d.vue.ts +3 -0
- package/dist/runtime/pages/admin/collections/[id].vue +423 -0
- package/dist/runtime/pages/admin/collections/[id].vue.d.ts +3 -0
- package/dist/runtime/pages/admin/collections/create.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/collections/create.vue +179 -0
- package/dist/runtime/pages/admin/collections/create.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/collections/index.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/collections/index.vue +828 -0
- package/dist/runtime/pages/admin/collections/index.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/demo-fields.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/demo-fields.vue +1327 -0
- package/dist/runtime/pages/admin/demo-fields.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/dictionaries/[id].d.vue.ts +3 -0
- package/dist/runtime/pages/admin/dictionaries/[id].vue +213 -0
- package/dist/runtime/pages/admin/dictionaries/[id].vue.d.ts +3 -0
- package/dist/runtime/pages/admin/dictionaries/index.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/dictionaries/index.vue +387 -0
- package/dist/runtime/pages/admin/dictionaries/index.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/index.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/index.vue +138 -0
- package/dist/runtime/pages/admin/index.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/login.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/login.vue +373 -0
- package/dist/runtime/pages/admin/login.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/media.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/media.vue +1054 -0
- package/dist/runtime/pages/admin/media.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/options/[page].d.vue.ts +3 -0
- package/dist/runtime/pages/admin/options/[page].vue +151 -0
- package/dist/runtime/pages/admin/options/[page].vue.d.ts +3 -0
- package/dist/runtime/pages/admin/register.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/register.vue +391 -0
- package/dist/runtime/pages/admin/register.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/users/[id].d.vue.ts +3 -0
- package/dist/runtime/pages/admin/users/[id].vue +337 -0
- package/dist/runtime/pages/admin/users/[id].vue.d.ts +3 -0
- package/dist/runtime/pages/admin/users/create.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/users/create.vue +201 -0
- package/dist/runtime/pages/admin/users/create.vue.d.ts +3 -0
- package/dist/runtime/pages/admin/users/index.d.vue.ts +3 -0
- package/dist/runtime/pages/admin/users/index.vue +329 -0
- package/dist/runtime/pages/admin/users/index.vue.d.ts +3 -0
- package/dist/runtime/pages/index.d.vue.ts +3 -0
- package/dist/runtime/pages/index.vue +399 -0
- package/dist/runtime/pages/index.vue.d.ts +3 -0
- package/dist/runtime/server/api/_katecms/auth/login.post.d.ts +5 -0
- package/dist/runtime/server/api/_katecms/auth/login.post.js +44 -0
- package/dist/runtime/server/api/_katecms/auth/logout.post.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/auth/logout.post.js +6 -0
- package/dist/runtime/server/api/_katecms/auth/register.post.d.ts +19 -0
- package/dist/runtime/server/api/_katecms/auth/register.post.js +83 -0
- package/dist/runtime/server/api/_katecms/auth/state.get.d.ts +9 -0
- package/dist/runtime/server/api/_katecms/auth/state.get.js +12 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/[id].delete.d.ts +15 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/[id].delete.js +59 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/[id].get.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/[id].get.js +50 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/[id].patch.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/[id].patch.js +130 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/revisions/[revisionId].post.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/revisions/[revisionId].post.js +123 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/revisions.get.d.ts +6 -0
- package/dist/runtime/server/api/_katecms/collections/[collection]/revisions.get.js +31 -0
- package/dist/runtime/server/api/_katecms/collections/[collection].get.d.ts +8 -0
- package/dist/runtime/server/api/_katecms/collections/[collection].get.js +135 -0
- package/dist/runtime/server/api/_katecms/collections/[collection].post.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/collections/[collection].post.js +91 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].delete.d.ts +7 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].delete.js +31 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].get.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].get.js +45 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].patch.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].patch.js +83 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary].get.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary].get.js +38 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary].post.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/dictionaries/[dictionary].post.js +64 -0
- package/dist/runtime/server/api/_katecms/media/[id]/regenerate.post.d.ts +8 -0
- package/dist/runtime/server/api/_katecms/media/[id]/regenerate.post.js +30 -0
- package/dist/runtime/server/api/_katecms/media/[id].delete.d.ts +7 -0
- package/dist/runtime/server/api/_katecms/media/[id].delete.js +22 -0
- package/dist/runtime/server/api/_katecms/media/[id].get.d.ts +9 -0
- package/dist/runtime/server/api/_katecms/media/[id].get.js +17 -0
- package/dist/runtime/server/api/_katecms/media/[id].patch.d.ts +6 -0
- package/dist/runtime/server/api/_katecms/media/[id].patch.js +48 -0
- package/dist/runtime/server/api/_katecms/media/index.get.d.ts +5 -0
- package/dist/runtime/server/api/_katecms/media/index.get.js +75 -0
- package/dist/runtime/server/api/_katecms/media/index.post.d.ts +9 -0
- package/dist/runtime/server/api/_katecms/media/index.post.js +84 -0
- package/dist/runtime/server/api/_katecms/media/regenerate.post.d.ts +7 -0
- package/dist/runtime/server/api/_katecms/media/regenerate.post.js +30 -0
- package/dist/runtime/server/api/_katecms/menu.get.d.ts +8 -0
- package/dist/runtime/server/api/_katecms/menu.get.js +14 -0
- package/dist/runtime/server/api/_katecms/oembed.get.d.ts +2 -0
- package/dist/runtime/server/api/_katecms/oembed.get.js +53 -0
- package/dist/runtime/server/api/_katecms/options/[page].get.d.ts +7 -0
- package/dist/runtime/server/api/_katecms/options/[page].get.js +28 -0
- package/dist/runtime/server/api/_katecms/options/[page].patch.d.ts +4 -0
- package/dist/runtime/server/api/_katecms/options/[page].patch.js +36 -0
- package/dist/runtime/server/api/_katecms/query.get.d.ts +24 -0
- package/dist/runtime/server/api/_katecms/query.get.js +270 -0
- package/dist/runtime/server/api/_katecms/relation/entries.get.d.ts +17 -0
- package/dist/runtime/server/api/_katecms/relation/entries.get.js +74 -0
- package/dist/runtime/server/api/_katecms/relation/terms.get.d.ts +17 -0
- package/dist/runtime/server/api/_katecms/relation/terms.get.js +51 -0
- package/dist/runtime/server/api/_katecms/resolve.get.d.ts +17 -0
- package/dist/runtime/server/api/_katecms/resolve.get.js +116 -0
- package/dist/runtime/server/api/_katecms/terms.get.d.ts +20 -0
- package/dist/runtime/server/api/_katecms/terms.get.js +201 -0
- package/dist/runtime/server/api/_katecms/users/[id].delete.d.ts +11 -0
- package/dist/runtime/server/api/_katecms/users/[id].delete.js +45 -0
- package/dist/runtime/server/api/_katecms/users/[id].patch.d.ts +19 -0
- package/dist/runtime/server/api/_katecms/users/[id].patch.js +129 -0
- package/dist/runtime/server/api/_katecms/users.get.d.ts +10 -0
- package/dist/runtime/server/api/_katecms/users.get.js +34 -0
- package/dist/runtime/server/api/_katecms/users.post.d.ts +10 -0
- package/dist/runtime/server/api/_katecms/users.post.js +62 -0
- package/dist/runtime/server/api/uploads/[...key].get.d.ts +3 -0
- package/dist/runtime/server/api/uploads/[...key].get.js +28 -0
- package/dist/runtime/server/kit.d.ts +5 -0
- package/dist/runtime/server/kit.js +5 -0
- package/dist/runtime/server/middleware/admin-headers.d.ts +3 -0
- package/dist/runtime/server/middleware/admin-headers.js +12 -0
- package/dist/runtime/server/plugins/auto-migrate.d.ts +2 -0
- package/dist/runtime/server/plugins/auto-migrate.js +45 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/auth-attempts.d.ts +22 -0
- package/dist/runtime/server/utils/auth-attempts.js +42 -0
- package/dist/runtime/server/utils/auth-rate-limit.d.ts +11 -0
- package/dist/runtime/server/utils/auth-rate-limit.js +36 -0
- package/dist/runtime/server/utils/client-address.d.ts +16 -0
- package/dist/runtime/server/utils/client-address.js +23 -0
- package/dist/runtime/server/utils/collections.d.ts +42 -0
- package/dist/runtime/server/utils/collections.js +300 -0
- package/dist/runtime/server/utils/db.d.ts +3 -0
- package/dist/runtime/server/utils/db.js +25 -0
- package/dist/runtime/server/utils/dictionaries.d.ts +53 -0
- package/dist/runtime/server/utils/dictionaries.js +301 -0
- package/dist/runtime/server/utils/media-list.d.ts +18 -0
- package/dist/runtime/server/utils/media-list.js +84 -0
- package/dist/runtime/server/utils/media.d.ts +12 -0
- package/dist/runtime/server/utils/media.js +77 -0
- package/dist/runtime/server/utils/oembed-fetch.d.ts +4 -0
- package/dist/runtime/server/utils/oembed-fetch.js +142 -0
- package/dist/runtime/server/utils/options.d.ts +17 -0
- package/dist/runtime/server/utils/options.js +66 -0
- package/dist/runtime/server/utils/permissions.d.ts +13 -0
- package/dist/runtime/server/utils/permissions.js +20 -0
- package/dist/runtime/server/utils/public-fields-query.d.ts +6 -0
- package/dist/runtime/server/utils/public-fields-query.js +8 -0
- package/dist/runtime/server/utils/public-term.d.ts +8 -0
- package/dist/runtime/server/utils/public-term.js +80 -0
- package/dist/runtime/server/utils/regenerate.d.ts +12 -0
- package/dist/runtime/server/utils/regenerate.js +40 -0
- package/dist/runtime/server/utils/relation.d.ts +18 -0
- package/dist/runtime/server/utils/relation.js +77 -0
- package/dist/runtime/server/utils/request-address.d.ts +6 -0
- package/dist/runtime/server/utils/request-address.js +10 -0
- package/dist/runtime/server/utils/revisions.d.ts +20 -0
- package/dist/runtime/server/utils/revisions.js +172 -0
- package/dist/runtime/server/utils/session.d.ts +18 -0
- package/dist/runtime/server/utils/session.js +71 -0
- package/dist/runtime/server/utils/upload-headers.d.ts +2 -0
- package/dist/runtime/server/utils/upload-headers.js +30 -0
- package/dist/runtime/server/utils/users.d.ts +13 -0
- package/dist/runtime/server/utils/users.js +47 -0
- package/dist/runtime/utils/admin-users.d.ts +20 -0
- package/dist/runtime/utils/admin-users.js +19 -0
- package/dist/runtime/utils/auth-error.d.ts +6 -0
- package/dist/runtime/utils/auth-error.js +11 -0
- package/dist/runtime/utils/cms-paths.d.ts +5 -0
- package/dist/runtime/utils/cms-paths.js +13 -0
- package/dist/runtime/utils/collections.d.ts +176 -0
- package/dist/runtime/utils/collections.js +30 -0
- package/dist/runtime/utils/dictionaries.d.ts +65 -0
- package/dist/runtime/utils/dictionaries.js +14 -0
- package/dist/runtime/utils/field-errors.d.ts +4 -0
- package/dist/runtime/utils/field-errors.js +9 -0
- package/dist/runtime/utils/field-values.d.ts +19 -0
- package/dist/runtime/utils/field-values.js +82 -0
- package/dist/runtime/utils/helpers.d.ts +4 -0
- package/dist/runtime/utils/helpers.js +20 -0
- package/dist/runtime/utils/media-library-query.d.ts +54 -0
- package/dist/runtime/utils/media-library-query.js +190 -0
- package/dist/runtime/utils/options.d.ts +19 -0
- package/dist/runtime/utils/options.js +3 -0
- package/dist/runtime/utils/preview.d.ts +22 -0
- package/dist/runtime/utils/preview.js +33 -0
- package/dist/runtime/utils/relation.d.ts +33 -0
- package/dist/runtime/utils/relation.js +23 -0
- package/dist/runtime/utils/slugify.d.ts +2 -0
- package/dist/runtime/utils/slugify.js +4 -0
- package/dist/types.d.mts +7 -0
- package/package.json +84 -3
- package/src/admin-components.ts +124 -0
- package/src/module.ts +592 -0
- package/src/runtime/assets/img/katecms-logo.svg +17 -0
- package/src/runtime/assets/styles/_functions.scss +70 -0
- package/src/runtime/assets/styles/_index.scss +3 -0
- package/src/runtime/assets/styles/_mixins.scss +256 -0
- package/src/runtime/assets/styles/_variables.scss +35 -0
- package/src/runtime/composables/getCollection.ts +253 -0
- package/src/runtime/composables/getOptions.ts +42 -0
- package/src/runtime/composables/getQueryCollection.ts +325 -0
- package/src/runtime/composables/getTerms.ts +231 -0
- package/src/runtime/composables/useAuth.ts +43 -0
- package/src/runtime/composables/useAuthCooldown.ts +52 -0
- package/src/runtime/composables/useCmsPaths.ts +24 -0
- package/src/runtime/composables/useKateCmsExtensions.ts +81 -0
- package/src/runtime/composables/useMediaLibrary.ts +168 -0
- package/src/runtime/composables/useMenuAccess.ts +25 -0
- package/src/runtime/internal/admin/AdminHeader.vue +106 -0
- package/src/runtime/internal/admin/AppMenu.vue +290 -0
- package/src/runtime/internal/admin/AppUser.vue +260 -0
- package/src/runtime/internal/admin/CollectionEntryForm.vue +1044 -0
- package/src/runtime/internal/admin/ConfirmDialog.vue +164 -0
- package/src/runtime/internal/admin/DictionaryTermForm.vue +400 -0
- package/src/runtime/internal/admin/EntryRevisions.vue +145 -0
- package/src/runtime/internal/admin/MediaLibraryFilters.vue +186 -0
- package/src/runtime/internal/admin/MediaLibraryModal.vue +526 -0
- package/src/runtime/internal/admin/OptionPageForm.vue +277 -0
- package/src/runtime/internal/admin/UserAvatarField.vue +337 -0
- package/src/runtime/internal/fields/AccordionField.vue +258 -0
- package/src/runtime/internal/fields/ButtonGroupField.vue +144 -0
- package/src/runtime/internal/fields/CheckboxField.vue +228 -0
- package/src/runtime/internal/fields/ColorPickerField.vue +926 -0
- package/src/runtime/internal/fields/DatePickerField.vue +33 -0
- package/src/runtime/internal/fields/DateTimePickerField.vue +33 -0
- package/src/runtime/internal/fields/DictionaryField.vue +403 -0
- package/src/runtime/internal/fields/EmailField.vue +28 -0
- package/src/runtime/internal/fields/FileField.vue +480 -0
- package/src/runtime/internal/fields/FlexibleContentField.vue +1296 -0
- package/src/runtime/internal/fields/GalleryField.vue +677 -0
- package/src/runtime/internal/fields/GroupField.vue +136 -0
- package/src/runtime/internal/fields/ImageField.vue +730 -0
- package/src/runtime/internal/fields/ImageSelectField.vue +213 -0
- package/src/runtime/internal/fields/LinkField.vue +338 -0
- package/src/runtime/internal/fields/NumberField.vue +32 -0
- package/src/runtime/internal/fields/OembedField.vue +187 -0
- package/src/runtime/internal/fields/OpenStreetMapField.vue +1716 -0
- package/src/runtime/internal/fields/PageLinkField.vue +186 -0
- package/src/runtime/internal/fields/PasswordField.vue +127 -0
- package/src/runtime/internal/fields/PostObjectField.vue +187 -0
- package/src/runtime/internal/fields/RadioField.vue +195 -0
- package/src/runtime/internal/fields/RangeField.vue +62 -0
- package/src/runtime/internal/fields/RelationshipField.vue +604 -0
- package/src/runtime/internal/fields/RepeaterField.vue +999 -0
- package/src/runtime/internal/fields/SelectField.vue +118 -0
- package/src/runtime/internal/fields/SeparatorField.vue +77 -0
- package/src/runtime/internal/fields/TabField.vue +249 -0
- package/src/runtime/internal/fields/TextField.vue +29 -0
- package/src/runtime/internal/fields/TextareaField.vue +61 -0
- package/src/runtime/internal/fields/TimePickerField.vue +31 -0
- package/src/runtime/internal/fields/TrueFalseField.vue +181 -0
- package/src/runtime/internal/fields/UrlField.vue +28 -0
- package/src/runtime/internal/fields/UserField.vue +203 -0
- package/src/runtime/internal/fields/WysiwygField.vue +1061 -0
- package/src/runtime/internal/parts/DateTimeControl.vue +657 -0
- package/src/runtime/internal/parts/FieldAddon.vue +60 -0
- package/src/runtime/internal/parts/FieldInstructions.vue +38 -0
- package/src/runtime/internal/parts/FieldLabel.vue +56 -0
- package/src/runtime/internal/parts/FieldWrapper.vue +63 -0
- package/src/runtime/internal/parts/ImageCropper.vue +415 -0
- package/src/runtime/internal/parts/InputControl.vue +189 -0
- package/src/runtime/internal/ui/UiButton.vue +274 -0
- package/src/runtime/internal/ui/UiNotice.vue +302 -0
- package/src/runtime/internal/ui/UiSelect.vue +1420 -0
- package/src/runtime/middleware/auth-guard.ts +52 -0
- package/src/runtime/pages/admin/collections/[id].vue +486 -0
- package/src/runtime/pages/admin/collections/create.vue +208 -0
- package/src/runtime/pages/admin/collections/index.vue +955 -0
- package/src/runtime/pages/admin/demo-fields.vue +1354 -0
- package/src/runtime/pages/admin/dictionaries/[id].vue +246 -0
- package/src/runtime/pages/admin/dictionaries/index.vue +438 -0
- package/src/runtime/pages/admin/index.vue +155 -0
- package/src/runtime/pages/admin/login.vue +159 -0
- package/src/runtime/pages/admin/media.vue +1176 -0
- package/src/runtime/pages/admin/options/[page].vue +174 -0
- package/src/runtime/pages/admin/register.vue +179 -0
- package/src/runtime/pages/admin/users/[id].vue +382 -0
- package/src/runtime/pages/admin/users/create.vue +232 -0
- package/src/runtime/pages/admin/users/index.vue +374 -0
- package/src/runtime/pages/index.vue +265 -0
- package/src/runtime/server/api/_katecms/auth/login.post.ts +62 -0
- package/src/runtime/server/api/_katecms/auth/logout.post.ts +7 -0
- package/src/runtime/server/api/_katecms/auth/register.post.ts +112 -0
- package/src/runtime/server/api/_katecms/auth/state.get.ts +19 -0
- package/src/runtime/server/api/_katecms/collections/[collection]/[id].delete.ts +77 -0
- package/src/runtime/server/api/_katecms/collections/[collection]/[id].get.ts +57 -0
- package/src/runtime/server/api/_katecms/collections/[collection]/[id].patch.ts +157 -0
- package/src/runtime/server/api/_katecms/collections/[collection]/revisions/[revisionId].post.ts +133 -0
- package/src/runtime/server/api/_katecms/collections/[collection]/revisions.get.ts +35 -0
- package/src/runtime/server/api/_katecms/collections/[collection].get.ts +177 -0
- package/src/runtime/server/api/_katecms/collections/[collection].post.ts +111 -0
- package/src/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].delete.ts +37 -0
- package/src/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].get.ts +51 -0
- package/src/runtime/server/api/_katecms/dictionaries/[dictionary]/[id].patch.ts +101 -0
- package/src/runtime/server/api/_katecms/dictionaries/[dictionary].get.ts +43 -0
- package/src/runtime/server/api/_katecms/dictionaries/[dictionary].post.ts +78 -0
- package/src/runtime/server/api/_katecms/media/[id]/regenerate.post.ts +39 -0
- package/src/runtime/server/api/_katecms/media/[id].delete.ts +28 -0
- package/src/runtime/server/api/_katecms/media/[id].get.ts +25 -0
- package/src/runtime/server/api/_katecms/media/[id].patch.ts +60 -0
- package/src/runtime/server/api/_katecms/media/index.get.ts +96 -0
- package/src/runtime/server/api/_katecms/media/index.post.ts +104 -0
- package/src/runtime/server/api/_katecms/media/regenerate.post.ts +38 -0
- package/src/runtime/server/api/_katecms/menu.get.ts +19 -0
- package/src/runtime/server/api/_katecms/oembed.get.ts +62 -0
- package/src/runtime/server/api/_katecms/options/[page].get.ts +35 -0
- package/src/runtime/server/api/_katecms/options/[page].patch.ts +46 -0
- package/src/runtime/server/api/_katecms/query.get.ts +332 -0
- package/src/runtime/server/api/_katecms/relation/entries.get.ts +98 -0
- package/src/runtime/server/api/_katecms/relation/terms.get.ts +61 -0
- package/src/runtime/server/api/_katecms/resolve.get.ts +148 -0
- package/src/runtime/server/api/_katecms/terms.get.ts +258 -0
- package/src/runtime/server/api/_katecms/users/[id].delete.ts +57 -0
- package/src/runtime/server/api/_katecms/users/[id].patch.ts +177 -0
- package/src/runtime/server/api/_katecms/users.get.ts +48 -0
- package/src/runtime/server/api/_katecms/users.post.ts +85 -0
- package/src/runtime/server/api/uploads/[...key].get.ts +33 -0
- package/src/runtime/server/kit.ts +5 -0
- package/src/runtime/server/middleware/admin-headers.ts +14 -0
- package/src/runtime/server/plugins/auto-migrate.ts +53 -0
- package/src/runtime/server/tsconfig.json +3 -0
- package/src/runtime/server/utils/auth-attempts.ts +71 -0
- package/src/runtime/server/utils/auth-rate-limit.ts +48 -0
- package/src/runtime/server/utils/client-address.ts +41 -0
- package/src/runtime/server/utils/collections.ts +381 -0
- package/src/runtime/server/utils/db.ts +36 -0
- package/src/runtime/server/utils/dictionaries.ts +397 -0
- package/src/runtime/server/utils/media-list.ts +131 -0
- package/src/runtime/server/utils/media.ts +94 -0
- package/src/runtime/server/utils/oembed-fetch.ts +157 -0
- package/src/runtime/server/utils/options.ts +86 -0
- package/src/runtime/server/utils/permissions.ts +44 -0
- package/src/runtime/server/utils/public-fields-query.ts +14 -0
- package/src/runtime/server/utils/public-term.ts +98 -0
- package/src/runtime/server/utils/regenerate.ts +56 -0
- package/src/runtime/server/utils/relation.ts +96 -0
- package/src/runtime/server/utils/request-address.ts +16 -0
- package/src/runtime/server/utils/revisions.ts +256 -0
- package/src/runtime/server/utils/session.ts +112 -0
- package/src/runtime/server/utils/upload-headers.ts +35 -0
- package/src/runtime/server/utils/users.ts +67 -0
- package/src/runtime/utils/admin-users.ts +43 -0
- package/src/runtime/utils/auth-error.ts +22 -0
- package/src/runtime/utils/cms-paths.ts +17 -0
- package/src/runtime/utils/collections.ts +228 -0
- package/src/runtime/utils/dictionaries.ts +89 -0
- package/src/runtime/utils/field-errors.ts +12 -0
- package/src/runtime/utils/field-values.ts +101 -0
- package/src/runtime/utils/helpers.ts +33 -0
- package/src/runtime/utils/media-library-query.ts +263 -0
- package/src/runtime/utils/options.ts +25 -0
- package/src/runtime/utils/preview.ts +56 -0
- package/src/runtime/utils/relation.ts +60 -0
- package/src/runtime/utils/slugify.ts +10 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, nextTick, onMounted, reactive, ref, watch } from 'vue'
|
|
3
|
+
import { $fetch, navigateTo, useHead, useRoute } from '#imports'
|
|
4
|
+
import { parseAuthError } from '../../../utils/auth-error'
|
|
5
|
+
import { dictionaryApi, dictionaryTermUrl } from '../../../utils/dictionaries'
|
|
6
|
+
import type {
|
|
7
|
+
AdminDictionaryMeta,
|
|
8
|
+
DictionaryTermFormModel,
|
|
9
|
+
DictionaryTermResponse,
|
|
10
|
+
ParentOption,
|
|
11
|
+
} from '../../../utils/dictionaries'
|
|
12
|
+
import { useCmsPaths } from '../../../composables/useCmsPaths'
|
|
13
|
+
import { useKateCmsTermPanels } from '../../../composables/useKateCmsExtensions'
|
|
14
|
+
|
|
15
|
+
const route = useRoute()
|
|
16
|
+
const paths = useCmsPaths()
|
|
17
|
+
const rootClass = 'katecms-dictionary-entry'
|
|
18
|
+
const formId = 'cms-dictionary-edit-form'
|
|
19
|
+
|
|
20
|
+
const dictionarySlug = computed(() => String(route.params.dictionary ?? ''))
|
|
21
|
+
const termId = computed(() => Number(route.params.id))
|
|
22
|
+
|
|
23
|
+
const dictionary = ref<AdminDictionaryMeta | null>(null)
|
|
24
|
+
const parents = ref<ParentOption[]>([])
|
|
25
|
+
const found = ref(false)
|
|
26
|
+
const loading = ref(true)
|
|
27
|
+
const saving = ref(false)
|
|
28
|
+
const error = ref<string | null>(null)
|
|
29
|
+
const canUpdate = ref(false)
|
|
30
|
+
const canDelete = ref(false)
|
|
31
|
+
const entryForm = ref<{ validateForSubmit: () => boolean } | null>(null)
|
|
32
|
+
const termPanels = useKateCmsTermPanels()
|
|
33
|
+
|
|
34
|
+
const slugPath = ref('')
|
|
35
|
+
const viewUrl = computed(() => dictionary.value
|
|
36
|
+
? dictionaryTermUrl(dictionary.value, slugPath.value)
|
|
37
|
+
: null)
|
|
38
|
+
|
|
39
|
+
const form = reactive<DictionaryTermFormModel>({
|
|
40
|
+
title: '',
|
|
41
|
+
slug: '',
|
|
42
|
+
parentId: null,
|
|
43
|
+
fields: {},
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
const pageTitle = computed(() => form.title.trim() || 'Edit term')
|
|
47
|
+
useHead({ title: pageTitle })
|
|
48
|
+
|
|
49
|
+
function applyTerm(res: DictionaryTermResponse) {
|
|
50
|
+
dictionary.value = res.dictionary
|
|
51
|
+
parents.value = res.parents
|
|
52
|
+
form.title = res.term.title
|
|
53
|
+
form.slug = res.term.slug
|
|
54
|
+
form.parentId = res.term.parentId
|
|
55
|
+
slugPath.value = res.term.slugPath || res.term.slug
|
|
56
|
+
form.fields = { ...(res.term.fields ?? {}) }
|
|
57
|
+
canUpdate.value = res.canUpdate
|
|
58
|
+
canDelete.value = res.canDelete
|
|
59
|
+
found.value = true
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function load() {
|
|
63
|
+
if (!Number.isInteger(termId.value) || termId.value <= 0) {
|
|
64
|
+
await navigateTo(paths.dictionary(dictionarySlug.value))
|
|
65
|
+
return
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
loading.value = true
|
|
69
|
+
error.value = null
|
|
70
|
+
found.value = false
|
|
71
|
+
try {
|
|
72
|
+
const res = await $fetch<DictionaryTermResponse>(
|
|
73
|
+
dictionaryApi(dictionarySlug.value, termId.value),
|
|
74
|
+
)
|
|
75
|
+
applyTerm(res)
|
|
76
|
+
}
|
|
77
|
+
catch (err) {
|
|
78
|
+
error.value = parseAuthError(err, 'Could not load the term.').message
|
|
79
|
+
}
|
|
80
|
+
finally {
|
|
81
|
+
loading.value = false
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
async function submit() {
|
|
86
|
+
if (saving.value || !dictionary.value || !canUpdate.value) {
|
|
87
|
+
return
|
|
88
|
+
}
|
|
89
|
+
if (!entryForm.value?.validateForSubmit()) {
|
|
90
|
+
return
|
|
91
|
+
}
|
|
92
|
+
saving.value = true
|
|
93
|
+
error.value = null
|
|
94
|
+
try {
|
|
95
|
+
const res = await $fetch<DictionaryTermResponse>(
|
|
96
|
+
dictionaryApi(dictionarySlug.value, termId.value),
|
|
97
|
+
{
|
|
98
|
+
method: 'PATCH',
|
|
99
|
+
body: {
|
|
100
|
+
title: form.title.trim(),
|
|
101
|
+
slug: form.slug.trim(),
|
|
102
|
+
fields: form.fields,
|
|
103
|
+
parentId: form.parentId,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
)
|
|
107
|
+
applyTerm(res)
|
|
108
|
+
await nextTick()
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
error.value = parseAuthError(err, 'Could not save the term.').message
|
|
112
|
+
}
|
|
113
|
+
finally {
|
|
114
|
+
saving.value = false
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
async function removeTerm() {
|
|
119
|
+
if (!canDelete.value || saving.value) {
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
if (!window.confirm(`Delete “${form.title || 'this term'}”? Child terms will become top-level. This cannot be undone.`)) {
|
|
123
|
+
return
|
|
124
|
+
}
|
|
125
|
+
saving.value = true
|
|
126
|
+
error.value = null
|
|
127
|
+
try {
|
|
128
|
+
await $fetch(dictionaryApi(dictionarySlug.value, termId.value), { method: 'DELETE' })
|
|
129
|
+
await navigateTo(paths.dictionary(dictionarySlug.value))
|
|
130
|
+
}
|
|
131
|
+
catch (err) {
|
|
132
|
+
error.value = parseAuthError(err, 'Could not delete the term.').message
|
|
133
|
+
}
|
|
134
|
+
finally {
|
|
135
|
+
saving.value = false
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
onMounted(load)
|
|
140
|
+
watch([dictionarySlug, termId], load)
|
|
141
|
+
</script>
|
|
142
|
+
|
|
143
|
+
<template>
|
|
144
|
+
<div :class="rootClass">
|
|
145
|
+
<KateCmsAdminHeader
|
|
146
|
+
:title="pageTitle"
|
|
147
|
+
:back-to="paths.dictionary(dictionarySlug)"
|
|
148
|
+
>
|
|
149
|
+
<KateCmsUiButton
|
|
150
|
+
v-if="viewUrl"
|
|
151
|
+
tag="a"
|
|
152
|
+
variant="secondary"
|
|
153
|
+
:link="{ url: viewUrl, title: 'View', target: '_blank' }"
|
|
154
|
+
>
|
|
155
|
+
View
|
|
156
|
+
</KateCmsUiButton>
|
|
157
|
+
<KateCmsUiButton
|
|
158
|
+
v-if="found && canUpdate"
|
|
159
|
+
tag="button"
|
|
160
|
+
type="submit"
|
|
161
|
+
:form="formId"
|
|
162
|
+
:disabled="saving"
|
|
163
|
+
>
|
|
164
|
+
{{ saving ? 'Saving…' : 'Save' }}
|
|
165
|
+
</KateCmsUiButton>
|
|
166
|
+
</KateCmsAdminHeader>
|
|
167
|
+
|
|
168
|
+
<KateCmsUiNotice
|
|
169
|
+
v-if="loading"
|
|
170
|
+
placement="static"
|
|
171
|
+
variant="info"
|
|
172
|
+
message="Loading…"
|
|
173
|
+
:closable="false"
|
|
174
|
+
/>
|
|
175
|
+
<KateCmsUiNotice
|
|
176
|
+
v-else-if="!found"
|
|
177
|
+
placement="static"
|
|
178
|
+
variant="danger"
|
|
179
|
+
:message="error || 'Term not found.'"
|
|
180
|
+
:closable="false"
|
|
181
|
+
/>
|
|
182
|
+
|
|
183
|
+
<template v-else-if="dictionary">
|
|
184
|
+
<div :class="`${rootClass}__fields`">
|
|
185
|
+
<KateCmsDictionaryTermForm
|
|
186
|
+
ref="entryForm"
|
|
187
|
+
:form-id="formId"
|
|
188
|
+
:model-value="form"
|
|
189
|
+
:dictionary="dictionary"
|
|
190
|
+
:entry-key="termId"
|
|
191
|
+
:parents="parents"
|
|
192
|
+
:saving="saving"
|
|
193
|
+
:error="error"
|
|
194
|
+
:can-update="canUpdate"
|
|
195
|
+
:show-submit="false"
|
|
196
|
+
@update:model-value="(value: DictionaryTermFormModel) => Object.assign(form, value)"
|
|
197
|
+
@submit="submit"
|
|
198
|
+
/>
|
|
199
|
+
<component
|
|
200
|
+
:is="panel"
|
|
201
|
+
v-for="panel in termPanels"
|
|
202
|
+
:key="panel"
|
|
203
|
+
/>
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
<div
|
|
207
|
+
v-if="canDelete"
|
|
208
|
+
:class="`${rootClass}__danger`"
|
|
209
|
+
>
|
|
210
|
+
<KateCmsUiButton
|
|
211
|
+
tag="button"
|
|
212
|
+
type="button"
|
|
213
|
+
:variant="['red']"
|
|
214
|
+
:disabled="saving"
|
|
215
|
+
@click="removeTerm"
|
|
216
|
+
>
|
|
217
|
+
Delete
|
|
218
|
+
</KateCmsUiButton>
|
|
219
|
+
</div>
|
|
220
|
+
</template>
|
|
221
|
+
</div>
|
|
222
|
+
</template>
|
|
223
|
+
|
|
224
|
+
<style scoped lang="scss">
|
|
225
|
+
@use "../../../assets/styles" as *;
|
|
226
|
+
|
|
227
|
+
$root: '.katecms-dictionary-entry';
|
|
228
|
+
|
|
229
|
+
@include katecms-wrapper {
|
|
230
|
+
#{$root} {
|
|
231
|
+
display: flex;
|
|
232
|
+
flex: 1;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
gap: math-rem(16);
|
|
235
|
+
min-height: 0;
|
|
236
|
+
padding: 0 math-rem(8) math-rem(8);
|
|
237
|
+
overflow: auto;
|
|
238
|
+
|
|
239
|
+
&__danger {
|
|
240
|
+
display: flex;
|
|
241
|
+
flex-shrink: 0;
|
|
242
|
+
justify-content: flex-start;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
</style>
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, onMounted, reactive, ref, watch } from 'vue'
|
|
3
|
+
import { $fetch, useHead, useRoute, useRuntimeConfig } from '#imports'
|
|
4
|
+
import { buildFormValues } from '@katecms/core'
|
|
5
|
+
import { parseAuthError } from '../../../utils/auth-error'
|
|
6
|
+
import type { PublicCollectionNav } from '../../../utils/collections'
|
|
7
|
+
import { dictionaryApi, dictionaryTermUrl } from '../../../utils/dictionaries'
|
|
8
|
+
import type {
|
|
9
|
+
AdminDictionaryMeta,
|
|
10
|
+
AdminDictionaryTerm,
|
|
11
|
+
DictionaryListResponse,
|
|
12
|
+
DictionaryTermFormModel,
|
|
13
|
+
ParentOption,
|
|
14
|
+
} from '../../../utils/dictionaries'
|
|
15
|
+
import { useCmsPaths } from '../../../composables/useCmsPaths'
|
|
16
|
+
|
|
17
|
+
const route = useRoute()
|
|
18
|
+
const paths = useCmsPaths()
|
|
19
|
+
const collectionsNav = (useRuntimeConfig().public.katecms?.collections ?? {}) as Record<string, PublicCollectionNav>
|
|
20
|
+
const rootClass = 'katecms-dictionary-list'
|
|
21
|
+
const createFormId = 'cms-dictionary-create-form'
|
|
22
|
+
|
|
23
|
+
const dictionarySlug = computed(() => String(route.params.dictionary ?? ''))
|
|
24
|
+
|
|
25
|
+
const dictionary = ref<AdminDictionaryMeta | null>(null)
|
|
26
|
+
const terms = ref<AdminDictionaryTerm[]>([])
|
|
27
|
+
const parents = ref<ParentOption[]>([])
|
|
28
|
+
const canCreate = ref(false)
|
|
29
|
+
|
|
30
|
+
const loading = ref(true)
|
|
31
|
+
const saving = ref(false)
|
|
32
|
+
const error = ref<string | null>(null)
|
|
33
|
+
const createError = ref<string | null>(null)
|
|
34
|
+
const pendingId = ref<number | null>(null)
|
|
35
|
+
const createKey = ref(0)
|
|
36
|
+
|
|
37
|
+
const form = reactive<DictionaryTermFormModel>({
|
|
38
|
+
title: '',
|
|
39
|
+
slug: '',
|
|
40
|
+
parentId: null,
|
|
41
|
+
fields: {},
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
const title = computed(() => dictionary.value?.labels.name || 'Dictionary')
|
|
45
|
+
useHead({ title })
|
|
46
|
+
|
|
47
|
+
const attachedLabel = computed(() => {
|
|
48
|
+
const slugs = dictionary.value?.collections ?? []
|
|
49
|
+
if (slugs.length === 0) {
|
|
50
|
+
return ''
|
|
51
|
+
}
|
|
52
|
+
const names = slugs.map(slug => collectionsNav[slug]?.labels?.name || slug)
|
|
53
|
+
return `Used on ${names.join(', ')}`
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
function termListTitle(term: AdminDictionaryTerm): string {
|
|
57
|
+
const depth = dictionary.value?.hierarchical ? (term.depth ?? 0) : 0
|
|
58
|
+
if (depth < 1) {
|
|
59
|
+
return term.title
|
|
60
|
+
}
|
|
61
|
+
return `${'— '.repeat(depth)}${term.title}`
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function formatListDate(iso: string): string {
|
|
65
|
+
const date = new Date(iso)
|
|
66
|
+
if (Number.isNaN(date.getTime())) {
|
|
67
|
+
return iso
|
|
68
|
+
}
|
|
69
|
+
return date.toLocaleString('en-US', {
|
|
70
|
+
year: 'numeric',
|
|
71
|
+
month: 'short',
|
|
72
|
+
day: 'numeric',
|
|
73
|
+
hour: 'numeric',
|
|
74
|
+
minute: '2-digit',
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function resetCreateForm() {
|
|
79
|
+
form.title = ''
|
|
80
|
+
form.slug = ''
|
|
81
|
+
form.parentId = null
|
|
82
|
+
form.fields = dictionary.value
|
|
83
|
+
? buildFormValues(dictionary.value.fields ?? {})
|
|
84
|
+
: {}
|
|
85
|
+
createKey.value += 1
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async function load(showLoading = true) {
|
|
89
|
+
if (!dictionarySlug.value) {
|
|
90
|
+
return
|
|
91
|
+
}
|
|
92
|
+
if (showLoading) {
|
|
93
|
+
loading.value = true
|
|
94
|
+
}
|
|
95
|
+
error.value = null
|
|
96
|
+
try {
|
|
97
|
+
const res = await $fetch<DictionaryListResponse>(dictionaryApi(dictionarySlug.value))
|
|
98
|
+
dictionary.value = res.dictionary
|
|
99
|
+
terms.value = res.terms
|
|
100
|
+
parents.value = res.parents
|
|
101
|
+
canCreate.value = res.canCreate
|
|
102
|
+
if (createKey.value === 0) {
|
|
103
|
+
form.fields = buildFormValues(res.dictionary.fields ?? {})
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
catch (err) {
|
|
107
|
+
if (showLoading) {
|
|
108
|
+
dictionary.value = null
|
|
109
|
+
terms.value = []
|
|
110
|
+
parents.value = []
|
|
111
|
+
}
|
|
112
|
+
error.value = parseAuthError(err, 'Could not load the dictionary.').message
|
|
113
|
+
}
|
|
114
|
+
finally {
|
|
115
|
+
loading.value = false
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
async function createTerm() {
|
|
120
|
+
if (saving.value || !dictionary.value || !canCreate.value) {
|
|
121
|
+
return
|
|
122
|
+
}
|
|
123
|
+
saving.value = true
|
|
124
|
+
createError.value = null
|
|
125
|
+
try {
|
|
126
|
+
await $fetch(dictionaryApi(dictionarySlug.value), {
|
|
127
|
+
method: 'POST',
|
|
128
|
+
body: {
|
|
129
|
+
title: form.title.trim(),
|
|
130
|
+
slug: form.slug.trim(),
|
|
131
|
+
fields: form.fields,
|
|
132
|
+
parentId: form.parentId,
|
|
133
|
+
},
|
|
134
|
+
})
|
|
135
|
+
resetCreateForm()
|
|
136
|
+
await load(false)
|
|
137
|
+
}
|
|
138
|
+
catch (err) {
|
|
139
|
+
createError.value = parseAuthError(err, 'Could not create the term.').message
|
|
140
|
+
}
|
|
141
|
+
finally {
|
|
142
|
+
saving.value = false
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
async function removeTerm(term: AdminDictionaryTerm) {
|
|
147
|
+
if (!term.canDelete || pendingId.value !== null) {
|
|
148
|
+
return
|
|
149
|
+
}
|
|
150
|
+
if (!window.confirm(`Delete “${term.title}”? Child terms will become top-level. This cannot be undone.`)) {
|
|
151
|
+
return
|
|
152
|
+
}
|
|
153
|
+
pendingId.value = term.id
|
|
154
|
+
error.value = null
|
|
155
|
+
try {
|
|
156
|
+
await $fetch(dictionaryApi(dictionarySlug.value, term.id), { method: 'DELETE' })
|
|
157
|
+
await load(false)
|
|
158
|
+
}
|
|
159
|
+
catch (err) {
|
|
160
|
+
error.value = parseAuthError(err, 'Could not delete the term.').message
|
|
161
|
+
}
|
|
162
|
+
finally {
|
|
163
|
+
pendingId.value = null
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
onMounted(load)
|
|
168
|
+
watch(dictionarySlug, async () => {
|
|
169
|
+
createError.value = null
|
|
170
|
+
await load()
|
|
171
|
+
resetCreateForm()
|
|
172
|
+
})
|
|
173
|
+
</script>
|
|
174
|
+
|
|
175
|
+
<template>
|
|
176
|
+
<div :class="rootClass">
|
|
177
|
+
<KateCmsAdminHeader
|
|
178
|
+
:title="title"
|
|
179
|
+
:meta="attachedLabel"
|
|
180
|
+
/>
|
|
181
|
+
|
|
182
|
+
<KateCmsUiNotice
|
|
183
|
+
v-if="loading"
|
|
184
|
+
placement="static"
|
|
185
|
+
variant="info"
|
|
186
|
+
message="Loading…"
|
|
187
|
+
:closable="false"
|
|
188
|
+
/>
|
|
189
|
+
<KateCmsUiNotice
|
|
190
|
+
v-else-if="error && !dictionary"
|
|
191
|
+
placement="static"
|
|
192
|
+
variant="danger"
|
|
193
|
+
:message="error"
|
|
194
|
+
:closable="false"
|
|
195
|
+
/>
|
|
196
|
+
|
|
197
|
+
<div
|
|
198
|
+
v-else-if="dictionary"
|
|
199
|
+
:class="`${rootClass}__layout`"
|
|
200
|
+
>
|
|
201
|
+
<div
|
|
202
|
+
v-if="canCreate"
|
|
203
|
+
:class="`${rootClass}__create`"
|
|
204
|
+
>
|
|
205
|
+
<div :class="`${rootClass}__create-title`">
|
|
206
|
+
Add {{ dictionary.labels.singularName }}
|
|
207
|
+
</div>
|
|
208
|
+
<KateCmsDictionaryTermForm
|
|
209
|
+
:key="createKey"
|
|
210
|
+
:form-id="createFormId"
|
|
211
|
+
:model-value="form"
|
|
212
|
+
:dictionary="dictionary"
|
|
213
|
+
:entry-key="`new-${createKey}`"
|
|
214
|
+
:parents="parents"
|
|
215
|
+
:saving="saving"
|
|
216
|
+
:error="createError"
|
|
217
|
+
:can-update="true"
|
|
218
|
+
:submit-label="saving ? 'Adding…' : `Add ${dictionary.labels.singularName}`"
|
|
219
|
+
@update:model-value="(value: DictionaryTermFormModel) => Object.assign(form, value)"
|
|
220
|
+
@submit="createTerm"
|
|
221
|
+
/>
|
|
222
|
+
</div>
|
|
223
|
+
|
|
224
|
+
<div :class="`${rootClass}__list`">
|
|
225
|
+
<KateCmsUiNotice
|
|
226
|
+
v-if="error"
|
|
227
|
+
placement="static"
|
|
228
|
+
variant="danger"
|
|
229
|
+
:message="error"
|
|
230
|
+
@close="error = null"
|
|
231
|
+
/>
|
|
232
|
+
<KateCmsUiNotice
|
|
233
|
+
v-else-if="!terms.length"
|
|
234
|
+
placement="static"
|
|
235
|
+
variant="info"
|
|
236
|
+
:message="`No ${dictionary.labels.name.toLowerCase()} yet.`"
|
|
237
|
+
:closable="false"
|
|
238
|
+
/>
|
|
239
|
+
|
|
240
|
+
<div
|
|
241
|
+
v-else
|
|
242
|
+
:class="`${rootClass}__table-wrap`"
|
|
243
|
+
>
|
|
244
|
+
<div
|
|
245
|
+
:class="[`${rootClass}__columns`, `${rootClass}__columns--head`]"
|
|
246
|
+
role="row"
|
|
247
|
+
>
|
|
248
|
+
<span role="columnheader">Title</span>
|
|
249
|
+
<span role="columnheader">Slug</span>
|
|
250
|
+
<span role="columnheader">Date</span>
|
|
251
|
+
<span
|
|
252
|
+
role="columnheader"
|
|
253
|
+
aria-label="Actions"
|
|
254
|
+
/>
|
|
255
|
+
</div>
|
|
256
|
+
<div :class="`${rootClass}__rows`">
|
|
257
|
+
<div
|
|
258
|
+
v-for="term in terms"
|
|
259
|
+
:key="term.id"
|
|
260
|
+
:class="`${rootClass}__columns`"
|
|
261
|
+
role="row"
|
|
262
|
+
>
|
|
263
|
+
<div role="cell">
|
|
264
|
+
{{ termListTitle(term) }}
|
|
265
|
+
</div>
|
|
266
|
+
<div role="cell">
|
|
267
|
+
{{ term.slug }}
|
|
268
|
+
</div>
|
|
269
|
+
<div role="cell">
|
|
270
|
+
{{ formatListDate(term.updatedAt) }}
|
|
271
|
+
</div>
|
|
272
|
+
<div
|
|
273
|
+
role="cell"
|
|
274
|
+
:class="`${rootClass}__actions`"
|
|
275
|
+
>
|
|
276
|
+
<KateCmsUiButton
|
|
277
|
+
v-if="dictionary.public"
|
|
278
|
+
tag="a"
|
|
279
|
+
:variant="['secondary', 'small']"
|
|
280
|
+
:link="{
|
|
281
|
+
url: dictionaryTermUrl(dictionary, term.slugPath) || '/',
|
|
282
|
+
title: 'View',
|
|
283
|
+
target: '_blank',
|
|
284
|
+
}"
|
|
285
|
+
>
|
|
286
|
+
View
|
|
287
|
+
</KateCmsUiButton>
|
|
288
|
+
<KateCmsUiButton
|
|
289
|
+
v-if="term.canUpdate"
|
|
290
|
+
tag="a"
|
|
291
|
+
:variant="['secondary', 'small']"
|
|
292
|
+
:link="{
|
|
293
|
+
url: paths.dictionaryTerm(dictionarySlug, term.id),
|
|
294
|
+
title: 'Edit',
|
|
295
|
+
}"
|
|
296
|
+
>
|
|
297
|
+
Edit
|
|
298
|
+
</KateCmsUiButton>
|
|
299
|
+
<KateCmsUiButton
|
|
300
|
+
v-if="term.canDelete"
|
|
301
|
+
tag="button"
|
|
302
|
+
:variant="['red', 'small']"
|
|
303
|
+
:disabled="pendingId === term.id"
|
|
304
|
+
@click="removeTerm(term)"
|
|
305
|
+
>
|
|
306
|
+
Delete
|
|
307
|
+
</KateCmsUiButton>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
</template>
|
|
316
|
+
|
|
317
|
+
<style scoped lang="scss">
|
|
318
|
+
@use "../../../assets/styles" as *;
|
|
319
|
+
|
|
320
|
+
$root: '.katecms-dictionary-list';
|
|
321
|
+
|
|
322
|
+
@include katecms-wrapper {
|
|
323
|
+
#{$root} {
|
|
324
|
+
display: flex;
|
|
325
|
+
flex-direction: column;
|
|
326
|
+
gap: math-rem(16);
|
|
327
|
+
padding: 0 math-rem(8);
|
|
328
|
+
height: 100%;
|
|
329
|
+
|
|
330
|
+
&__layout {
|
|
331
|
+
display: flex;
|
|
332
|
+
flex-wrap: wrap;
|
|
333
|
+
gap: math-rem(8);
|
|
334
|
+
align-items: start;
|
|
335
|
+
flex-grow: 1;
|
|
336
|
+
min-height: 0;
|
|
337
|
+
overflow: hidden;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&__create {
|
|
341
|
+
flex: 0 0 400px;
|
|
342
|
+
max-width: 400px;
|
|
343
|
+
display: flex;
|
|
344
|
+
flex-direction: column;
|
|
345
|
+
gap: math-rem(10);
|
|
346
|
+
min-width: 0;
|
|
347
|
+
min-height: 0;
|
|
348
|
+
height: 100%;
|
|
349
|
+
overflow: auto;
|
|
350
|
+
padding: 0 math-rem(8) math-rem(8) 0;
|
|
351
|
+
|
|
352
|
+
&-title {
|
|
353
|
+
flex-shrink: 0;
|
|
354
|
+
font-size: math-rem(15);
|
|
355
|
+
font-weight: 600;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&__list {
|
|
360
|
+
flex-basis: 0;
|
|
361
|
+
flex-grow: 1;
|
|
362
|
+
align-self: stretch;
|
|
363
|
+
max-width: 100%;
|
|
364
|
+
height: 100%;
|
|
365
|
+
display: flex;
|
|
366
|
+
flex-direction: column;
|
|
367
|
+
gap: math-rem(12);
|
|
368
|
+
min-width: 0;
|
|
369
|
+
min-height: 0;
|
|
370
|
+
overflow: hidden;
|
|
371
|
+
padding-bottom: math-rem(8);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
&__table {
|
|
375
|
+
&-wrap {
|
|
376
|
+
display: flex;
|
|
377
|
+
flex-direction: column;
|
|
378
|
+
min-height: 0;
|
|
379
|
+
overflow-x: auto;
|
|
380
|
+
overflow-y: hidden;
|
|
381
|
+
background: $color-surface;
|
|
382
|
+
border: 1px solid $color-border;
|
|
383
|
+
border-radius: $border-radius;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
&__columns {
|
|
388
|
+
display: grid;
|
|
389
|
+
grid-template-columns: minmax(math-rem(160), 2fr) minmax(math-rem(120), 1.4fr) math-rem(200) minmax(math-rem(140), auto);
|
|
390
|
+
align-items: center;
|
|
391
|
+
min-width: math-rem(640);
|
|
392
|
+
|
|
393
|
+
> [role='columnheader'],
|
|
394
|
+
> [role='cell'] {
|
|
395
|
+
min-width: 0;
|
|
396
|
+
padding: math-rem(10) math-rem(14);
|
|
397
|
+
overflow-wrap: anywhere;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
&--head {
|
|
401
|
+
flex-shrink: 0;
|
|
402
|
+
background: $color-bg;
|
|
403
|
+
border-bottom: 1px solid $color-border;
|
|
404
|
+
|
|
405
|
+
> [role='columnheader'] {
|
|
406
|
+
font-size: math-rem(12);
|
|
407
|
+
font-weight: 600;
|
|
408
|
+
text-transform: uppercase;
|
|
409
|
+
letter-spacing: 0.03em;
|
|
410
|
+
color: $color-muted;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
&__rows {
|
|
416
|
+
flex: 1;
|
|
417
|
+
min-height: 0;
|
|
418
|
+
overflow-x: hidden;
|
|
419
|
+
overflow-y: auto;
|
|
420
|
+
|
|
421
|
+
#{$root}__columns {
|
|
422
|
+
border-bottom: 1px solid $color-border;
|
|
423
|
+
|
|
424
|
+
&:last-child {
|
|
425
|
+
border-bottom: none;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
&__actions {
|
|
431
|
+
display: flex;
|
|
432
|
+
flex-wrap: wrap;
|
|
433
|
+
justify-content: flex-end;
|
|
434
|
+
gap: math-rem(8);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
</style>
|