@iqual/nuxt-icms 1.0.2
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/app.config.ts +1 -0
- package/app.vue +50 -0
- package/assets/css/backend.css +82 -0
- package/assets/css/ckeditor.css +15 -0
- package/assets/css/components/carousel.css +91 -0
- package/assets/css/components/ck-content.css +65 -0
- package/assets/css/components/container.css +17 -0
- package/assets/css/components/dialog.css +9 -0
- package/assets/css/components/grid-container.css +296 -0
- package/assets/css/components/link.css +21 -0
- package/assets/css/fe-fixes.css +105 -0
- package/assets/css/tailwind.css +104 -0
- package/assets/css/typography.css +67 -0
- package/assets/symbols/chevron-down.svg +1 -0
- package/assets/symbols/chevron-right.svg +3 -0
- package/assets/symbols/close.svg +3 -0
- package/assets/symbols/facebook.svg +3 -0
- package/assets/symbols/instagram.svg +13 -0
- package/assets/symbols/linkedin.svg +4 -0
- package/assets/symbols/logo.svg +22 -0
- package/assets/symbols/magnifyingglass.svg +4 -0
- package/assets/symbols/pinterest.svg +4 -0
- package/assets/symbols/play.svg +6 -0
- package/assets/symbols/tiktok.svg +4 -0
- package/assets/symbols/x.svg +4 -0
- package/bundles.ts +50 -0
- package/components/Blokkli/Button/Element/icon.svg +4 -0
- package/components/Blokkli/Button/Element/index.vue +18 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/CallToAction/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/CallToAction/icon.svg +5 -0
- package/components/Blokkli/CallToAction/index.vue +15 -0
- package/components/Blokkli/Card/Element/icon.svg +6 -0
- package/components/Blokkli/Card/Element/index.vue +14 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-large-spacing.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Card/Layout/icon-blokkli-option-small-spacing.svg +1 -0
- package/components/Blokkli/Card/Layout/icon.svg +8 -0
- package/components/Blokkli/Card/Layout/index.vue +15 -0
- package/components/Blokkli/Contact/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Contact/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Contact/icon.svg +5 -0
- package/components/Blokkli/Contact/index.vue +15 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Downloads/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Downloads/icon.svg +5 -0
- package/components/Blokkli/Downloads/index.vue +16 -0
- package/components/Blokkli/FAQ/Element/icon-blokkli-option-large-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Element/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Element/icon-blokkli-option-small-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Element/icon.svg +3 -0
- package/components/Blokkli/FAQ/Element/index.vue +14 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/FAQ/Layout/icon.svg +5 -0
- package/components/Blokkli/FAQ/Layout/index.vue +20 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/FlipTeasers/icon.svg +7 -0
- package/components/Blokkli/FlipTeasers/index.vue +15 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Gallery/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Gallery/icon.svg +5 -0
- package/components/Blokkli/Gallery/index.vue +16 -0
- package/components/Blokkli/HeroImage/icon.svg +5 -0
- package/components/Blokkli/HeroImage/index.vue +15 -0
- package/components/Blokkli/IconText/Element/icon.svg +5 -0
- package/components/Blokkli/IconText/Element/index.vue +14 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/IconText/Layout/icon.svg +7 -0
- package/components/Blokkli/IconText/Layout/index.vue +20 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Introduction/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Introduction/icon.svg +5 -0
- package/components/Blokkli/Introduction/index.vue +20 -0
- package/components/Blokkli/Logo/Element/icon.svg +6 -0
- package/components/Blokkli/Logo/Element/index.vue +14 -0
- package/components/Blokkli/Media/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Media/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Media/icon.svg +8 -0
- package/components/Blokkli/Media/index.vue +15 -0
- package/components/Blokkli/Partnerships/Element/icon.svg +3 -0
- package/components/Blokkli/Partnerships/Element/index.vue +13 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Partnerships/Layout/icon.svg +5 -0
- package/components/Blokkli/Partnerships/Layout/index.vue +15 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/SingleTestimonial/icon.svg +5 -0
- package/components/Blokkli/SingleTestimonial/index.vue +20 -0
- package/components/Blokkli/Table/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Table/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Table/icon.svg +5 -0
- package/components/Blokkli/Table/index.vue +15 -0
- package/components/Blokkli/Tabs/Element/icon.svg +3 -0
- package/components/Blokkli/Tabs/Element/index.vue +14 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Tabs/Layout/icon.svg +5 -0
- package/components/Blokkli/Tabs/Layout/index.vue +20 -0
- package/components/Blokkli/Team/Element/icon.svg +3 -0
- package/components/Blokkli/Team/Element/index.vue +14 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Team/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Team/Layout/icon.svg +5 -0
- package/components/Blokkli/Team/Layout/index.vue +15 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Teasers/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Teasers/icon.svg +6 -0
- package/components/Blokkli/Teasers/index.vue +15 -0
- package/components/Blokkli/Testimonial/Element/icon.svg +3 -0
- package/components/Blokkli/Testimonial/Element/index.vue +14 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Testimonial/Layout/icon.svg +5 -0
- package/components/Blokkli/Testimonial/Layout/index.vue +15 -0
- package/components/Blokkli/Text/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/Text/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/Text/icon.svg +7 -0
- package/components/Blokkli/Text/index.vue +21 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/TextMedia/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/TextMedia/icon.svg +5 -0
- package/components/Blokkli/TextMedia/index.vue +22 -0
- package/components/Blokkli/TwoColumnText/Element/icon.svg +8 -0
- package/components/Blokkli/TwoColumnText/Element/index.vue +15 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/TwoColumnText/Layout/icon.svg +10 -0
- package/components/Blokkli/TwoColumnText/Layout/index.vue +18 -0
- package/components/Blokkli/iFrame/Element/icon.svg +5 -0
- package/components/Blokkli/iFrame/Element/index.vue +14 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-large-spacing-bottom.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-large-spacing-top.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-no-spacing.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-small-spacing-bottom.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon-blokkli-option-small-spacing-top.svg +1 -0
- package/components/Blokkli/iFrame/Layout/icon.svg +7 -0
- package/components/Blokkli/iFrame/Layout/index.vue +18 -0
- package/components/DesignSystem/Atoms/Button.vue +144 -0
- package/components/DesignSystem/Atoms/Container.vue +54 -0
- package/components/DesignSystem/Atoms/GridRow.vue +13 -0
- package/components/DesignSystem/Molecules/ButtonGroup.vue +45 -0
- package/components/DesignSystem/Molecules/Card.vue +70 -0
- package/components/DesignSystem/Molecules/IconText.vue +62 -0
- package/components/DesignSystem/Molecules/MediaSlider.vue +72 -0
- package/components/DesignSystem/Molecules/Partnership.vue +40 -0
- package/components/DesignSystem/Molecules/Table.vue +170 -0
- package/components/DesignSystem/Molecules/TitleComposition.vue +66 -0
- package/components/DesignSystem/Molecules/iFrame.vue +22 -0
- package/components/DesignSystem/Organisms/ContentBlock.vue +82 -0
- package/components/DesignSystem/Organisms/FlipTeaser.vue +160 -0
- package/components/DesignSystem/Organisms/LogoElement.vue +37 -0
- package/components/DesignSystem/Organisms/TeamElement.vue +89 -0
- package/components/DesignSystem/Organisms/TeaserCard.vue +74 -0
- package/components/DesignSystem/Organisms/Testimonial.vue +53 -0
- package/components/DesignSystem/Organisms/TwoColumnTextElement.vue +42 -0
- package/components/Drupal/Breadcrumb/fragment.breadcrumb.graphql +6 -0
- package/components/Drupal/Breadcrumb/index.vue +88 -0
- package/components/Drupal/Messages/index.vue +29 -0
- package/components/Drupal/Webform/fragment.graphql +86 -0
- package/components/Drupal/Webform/index.vue +174 -0
- package/components/Drupal/Webform/mutation.graphql +8 -0
- package/components/Drupal/Webform/query.graphql +21 -0
- package/components/Form/CheckboxInput.vue +35 -0
- package/components/Form/CheckboxInputs.vue +44 -0
- package/components/Form/FileUploadInput.vue +34 -0
- package/components/Form/RadioButtonsInput.vue +44 -0
- package/components/Form/SelectInput.vue +54 -0
- package/components/Form/SubmitButton.vue +12 -0
- package/components/Form/TextAreaInput.vue +34 -0
- package/components/Form/TextEmailInput.vue +35 -0
- package/components/Form/TextInput.vue +35 -0
- package/components/Form/TextPhoneInput.vue +35 -0
- package/components/Form/WebformMarkup.vue +9 -0
- package/components/Form/composables/useFormElement.ts +84 -0
- package/components/Form/utils/types.ts +64 -0
- package/components/Media/Icon/fragment.mediaIcon.graphql +9 -0
- package/components/Media/Icon/index.vue +16 -0
- package/components/Media/Image/fragment.graphql +11 -0
- package/components/Media/Image/index.vue +215 -0
- package/components/Media/RemoteVideo/fragment.graphql +27 -0
- package/components/Media/RemoteVideo/index.vue +58 -0
- package/components/Media/Video/fragment.graphql +17 -0
- package/components/Media/Video/index.vue +44 -0
- package/components/Media/fragment.graphql +8 -0
- package/components/Media/index.vue +33 -0
- package/components/Node/Icms/Page/fragment.graphql +17 -0
- package/components/Node/Icms/Page/index.vue +14 -0
- package/components/Paragraph/Button/Element/fragment.graphql +14 -0
- package/components/Paragraph/Button/Element/index.vue +23 -0
- package/components/Paragraph/CallToAction/fragment.graphql +12 -0
- package/components/Paragraph/CallToAction/index.vue +60 -0
- package/components/Paragraph/Card/Element/fragment.graphql +10 -0
- package/components/Paragraph/Card/Element/index.vue +19 -0
- package/components/Paragraph/Card/Layout/fragment.graphql +14 -0
- package/components/Paragraph/Card/Layout/index.vue +58 -0
- package/components/Paragraph/Contact/fragment.graphql +20 -0
- package/components/Paragraph/Contact/index.vue +60 -0
- package/components/Paragraph/Downloads/fragment.graphql +15 -0
- package/components/Paragraph/Downloads/index.vue +104 -0
- package/components/Paragraph/FAQ/Element/fragment.graphql +10 -0
- package/components/Paragraph/FAQ/Element/index.vue +66 -0
- package/components/Paragraph/FAQ/Layout/fragment.graphql +23 -0
- package/components/Paragraph/FAQ/Layout/index.vue +84 -0
- package/components/Paragraph/FlipTeasers/fragment.graphql +25 -0
- package/components/Paragraph/FlipTeasers/index.vue +59 -0
- package/components/Paragraph/Gallery/fragment.graphql +11 -0
- package/components/Paragraph/Gallery/index.vue +223 -0
- package/components/Paragraph/HeroImage/fragment.graphql +17 -0
- package/components/Paragraph/HeroImage/index.vue +147 -0
- package/components/Paragraph/IconText/Element/fragment.graphql +8 -0
- package/components/Paragraph/IconText/Element/index.vue +18 -0
- package/components/Paragraph/IconText/Layout/fragment.graphql +23 -0
- package/components/Paragraph/IconText/Layout/index.vue +76 -0
- package/components/Paragraph/Introduction/fragment.graphql +20 -0
- package/components/Paragraph/Introduction/index.vue +94 -0
- package/components/Paragraph/Logo/Element/fragment.graphql +11 -0
- package/components/Paragraph/Logo/Element/index.vue +17 -0
- package/components/Paragraph/Media/fragment.graphql +5 -0
- package/components/Paragraph/Media/index.vue +83 -0
- package/components/Paragraph/Partnerships/Element/fragment.graphql +11 -0
- package/components/Paragraph/Partnerships/Element/index.vue +14 -0
- package/components/Paragraph/Partnerships/Layout/fragment.graphql +17 -0
- package/components/Paragraph/Partnerships/Layout/index.vue +119 -0
- package/components/Paragraph/SingleTestimonial/fragment.graphql +24 -0
- package/components/Paragraph/SingleTestimonial/index.vue +79 -0
- package/components/Paragraph/Table/fragment.graphql +11 -0
- package/components/Paragraph/Table/index.vue +43 -0
- package/components/Paragraph/Tabs/Element/fragment.graphql +17 -0
- package/components/Paragraph/Tabs/Element/index.vue +78 -0
- package/components/Paragraph/Tabs/Layout/fragment.graphql +11 -0
- package/components/Paragraph/Tabs/Layout/index.vue +191 -0
- package/components/Paragraph/Team/Element/fragment.graphql +17 -0
- package/components/Paragraph/Team/Element/index.vue +23 -0
- package/components/Paragraph/Team/Layout/fragment.graphql +14 -0
- package/components/Paragraph/Team/Layout/index.vue +51 -0
- package/components/Paragraph/Teasers/fragment.graphql +25 -0
- package/components/Paragraph/Teasers/index.vue +58 -0
- package/components/Paragraph/Testimonial/Element/fragment.graphql +13 -0
- package/components/Paragraph/Testimonial/Element/index.vue +29 -0
- package/components/Paragraph/Testimonial/Layout/fragment.graphql +13 -0
- package/components/Paragraph/Testimonial/Layout/index.vue +109 -0
- package/components/Paragraph/Text/fragment.graphql +14 -0
- package/components/Paragraph/Text/index.vue +66 -0
- package/components/Paragraph/TextMedia/fragment.graphql +17 -0
- package/components/Paragraph/TextMedia/index.vue +125 -0
- package/components/Paragraph/TwoColumnText/Element/fragment.graphql +8 -0
- package/components/Paragraph/TwoColumnText/Element/index.vue +31 -0
- package/components/Paragraph/TwoColumnText/Layout/fragment.graphql +8 -0
- package/components/Paragraph/TwoColumnText/Layout/index.vue +25 -0
- package/components/Paragraph/fragment.paragraphsFieldItem.graphql +6 -0
- package/components/Paragraph/iFrame/Element/fragment.graphql +9 -0
- package/components/Paragraph/iFrame/Element/index.vue +16 -0
- package/components/Paragraph/iFrame/Layout/fragment.graphql +13 -0
- package/components/Paragraph/iFrame/Layout/index.vue +161 -0
- package/components/Section/Footer/index.vue +144 -0
- package/components/Section/Header/GlobalMenu.vue +337 -0
- package/components/Section/Header/LanguageDropdown.vue +105 -0
- package/components/Section/Header/MenuIcon.vue +171 -0
- package/components/Section/Header/MetaMenu.vue +57 -0
- package/components/Section/Header/SearchLink.vue +26 -0
- package/components/Section/Header/index.vue +205 -0
- package/components/ui/accordion/Accordion.vue +19 -0
- package/components/ui/accordion/AccordionContent.vue +26 -0
- package/components/ui/accordion/AccordionItem.vue +27 -0
- package/components/ui/accordion/AccordionTrigger.vue +41 -0
- package/components/ui/accordion/index.ts +4 -0
- package/components/ui/button/Button.vue +26 -0
- package/components/ui/button/index.ts +36 -0
- package/components/ui/carousel/Carousel.vue +72 -0
- package/components/ui/carousel/CarouselContent.vue +30 -0
- package/components/ui/carousel/CarouselItem.vue +25 -0
- package/components/ui/carousel/CarouselNext.vue +33 -0
- package/components/ui/carousel/CarouselPrevious.vue +33 -0
- package/components/ui/carousel/index.ts +8 -0
- package/components/ui/carousel/interface.ts +24 -0
- package/components/ui/carousel/useCarousel.ts +66 -0
- package/components/ui/checkbox/Checkbox.vue +34 -0
- package/components/ui/checkbox/index.ts +1 -0
- package/components/ui/dialog/Dialog.vue +19 -0
- package/components/ui/dialog/DialogClose.vue +11 -0
- package/components/ui/dialog/DialogContent.vue +53 -0
- package/components/ui/dialog/DialogDescription.vue +30 -0
- package/components/ui/dialog/DialogFooter.vue +19 -0
- package/components/ui/dialog/DialogHeader.vue +16 -0
- package/components/ui/dialog/DialogScrollContent.vue +66 -0
- package/components/ui/dialog/DialogTitle.vue +28 -0
- package/components/ui/dialog/DialogTrigger.vue +11 -0
- package/components/ui/dialog/index.ts +9 -0
- package/components/ui/input/Input.vue +24 -0
- package/components/ui/input/index.ts +1 -0
- package/components/ui/label/Label.vue +29 -0
- package/components/ui/label/index.ts +1 -0
- package/components/ui/radio-group/RadioGroup.vue +27 -0
- package/components/ui/radio-group/RadioGroupItem.vue +41 -0
- package/components/ui/radio-group/index.ts +2 -0
- package/components/ui/select/Select.vue +15 -0
- package/components/ui/select/SelectContent.vue +54 -0
- package/components/ui/select/SelectGroup.vue +21 -0
- package/components/ui/select/SelectItem.vue +46 -0
- package/components/ui/select/SelectItemText.vue +12 -0
- package/components/ui/select/SelectLabel.vue +14 -0
- package/components/ui/select/SelectScrollDownButton.vue +26 -0
- package/components/ui/select/SelectScrollUpButton.vue +26 -0
- package/components/ui/select/SelectSeparator.vue +19 -0
- package/components/ui/select/SelectTrigger.vue +33 -0
- package/components/ui/select/SelectValue.vue +12 -0
- package/components/ui/select/index.ts +11 -0
- package/components/ui/tabs/Tabs.vue +15 -0
- package/components/ui/tabs/TabsContent.vue +29 -0
- package/components/ui/tabs/TabsList.vue +27 -0
- package/components/ui/tabs/TabsTrigger.vue +33 -0
- package/components/ui/tabs/index.ts +4 -0
- package/components/ui/textarea/Textarea.vue +24 -0
- package/components/ui/textarea/index.ts +1 -0
- package/components.json +18 -0
- package/composables/breadcrumb.ts +42 -0
- package/composables/languageLinks.ts +31 -0
- package/composables/query.initData.graphql +102 -0
- package/composables/useAccordionScroll.ts +30 -0
- package/composables/useChildTitleWeight.ts +13 -0
- package/composables/useCn.ts +7 -0
- package/composables/useCurrentLangcodeEnum.ts +18 -0
- package/composables/useDrupalMessages.ts +41 -0
- package/composables/useDrupalUser.ts +11 -0
- package/composables/useInitData.ts +118 -0
- package/composables/useIsMobile.ts +14 -0
- package/composables/useMainMenuLinks.ts +69 -0
- package/composables/useMetaMenuLinks.ts +44 -0
- package/composables/useNavigationOffset.ts +14 -0
- package/config/graphqlMiddleware/index.ts +41 -0
- package/config/multiCache/index.ts +28 -0
- package/config/postcss-drupal/postcss.config.cjs +14 -0
- package/config/runtimeConfig.ts +12 -0
- package/error.vue +39 -0
- package/eslint.config.mjs +111 -0
- package/formkit.config.ts +56 -0
- package/formkit.theme.ts +5000 -0
- package/layouts/default.vue +66 -0
- package/layouts/error.vue +98 -0
- package/layouts/library.vue +5 -0
- package/modules/dynamicNodeResolver.ts +95 -0
- package/modules/dynamicParagraphResolver.ts +69 -0
- package/nuxt.config.ts +551 -0
- package/package.json +64 -0
- package/pages/[...slug]/index.vue +27 -0
- package/pages/__tests__/index.ts +77 -0
- package/pages/blokkli/library-item/[uuid].vue +52 -0
- package/pages/blokkli/library-item/query.library.graphql +21 -0
- package/pages/index.vue +27 -0
- package/pages/node/[nid]/index.vue +25 -0
- package/pages/search/index.vue +69 -0
- package/pages/static-page/example.vue +40 -0
- package/plugins/clickaway.ts +12 -0
- package/plugins/drupalUser.ts +33 -0
- package/plugins/graphqlMiddleware.ts +115 -0
- package/queries/blokkli.graphql +5 -0
- package/queries/fragment.blokkliProps.graphql +8 -0
- package/queries/fragment.routeQuery.graphql +51 -0
- package/queries/query.drupalUser.graphql +10 -0
- package/server/api/content-search/index.ts +160 -0
- package/server/api/icon/[...params].ts +199 -0
- package/server/graphqlMiddleware.serverOptions.ts +87 -0
- package/server/helpers/index.ts +32 -0
- package/server/helpers/request.ts +44 -0
- package/server/middleware/spa.ts +45 -0
- package/server/multiCache.serverOptions.ts +32 -0
- package/server/tsconfig.json +3 -0
- package/server/utils/cacheability.ts +138 -0
- package/shims-vue.d.ts +5 -0
- package/tailwind.config.ts +228 -0
- package/vitest.config.mts +28 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
GlobalConfigFragment,
|
|
3
|
+
InitDataQuery,
|
|
4
|
+
MenuLinkTreeElementFirstFragment,
|
|
5
|
+
} from '#graphql-operations'
|
|
6
|
+
|
|
7
|
+
export interface InitData {
|
|
8
|
+
metaMenuLinks: MenuLinkTreeElementFirstFragment[]
|
|
9
|
+
mainMenuLinks: MenuLinkTreeElementFirstFragment[]
|
|
10
|
+
footerMenuLinks: MenuLinkTreeElementFirstFragment[]
|
|
11
|
+
footerMetaMenuLinks: MenuLinkTreeElementFirstFragment[]
|
|
12
|
+
translations: Record<string, string | [string, string]>
|
|
13
|
+
globalConfig: {
|
|
14
|
+
companyLogo?: GlobalConfigFragment['companyLogo']
|
|
15
|
+
companyLogoAlt?: GlobalConfigFragment['companyLogoAlt']
|
|
16
|
+
companyName?: GlobalConfigFragment['companyName']
|
|
17
|
+
companyDescription?: GlobalConfigFragment['companyDescription']
|
|
18
|
+
address?: GlobalConfigFragment['address']
|
|
19
|
+
phoneNumber?: GlobalConfigFragment['phoneNumber']
|
|
20
|
+
emailAddress?: GlobalConfigFragment['emailAddress']
|
|
21
|
+
metaLinks?: GlobalConfigFragment['metaLinks']
|
|
22
|
+
contactButtons?: GlobalConfigFragment['contactButtons']
|
|
23
|
+
socialMediaLinks?: GlobalConfigFragment['socialMediaLinks']
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function getTranslations(
|
|
28
|
+
v?: InitDataQuery,
|
|
29
|
+
): Record<string, string | [string, string]> {
|
|
30
|
+
if (!v) {
|
|
31
|
+
return {}
|
|
32
|
+
}
|
|
33
|
+
return Object.entries(
|
|
34
|
+
(v.translations || {}) as Record<
|
|
35
|
+
string,
|
|
36
|
+
string | { singular?: string; plural?: string }
|
|
37
|
+
>,
|
|
38
|
+
).reduce<Record<string, string | [string, string]>>(
|
|
39
|
+
(acc, [fullKey, value]) => {
|
|
40
|
+
const keyWithDots = fullKey.replace('__', '.')
|
|
41
|
+
if (typeof value === 'string') {
|
|
42
|
+
acc[keyWithDots] = value
|
|
43
|
+
} else if (typeof value === 'object' && value.plural && value.singular) {
|
|
44
|
+
acc[keyWithDots] = [value.singular, value.plural]
|
|
45
|
+
}
|
|
46
|
+
return acc
|
|
47
|
+
},
|
|
48
|
+
{},
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default async function (): Promise<Ref<InitData>> {
|
|
53
|
+
const currentLanguage = useCurrentLanguage()
|
|
54
|
+
const data = useState<InitData>('initData')
|
|
55
|
+
|
|
56
|
+
// Let's try to fetch the data from the cache first.
|
|
57
|
+
const event = useRequestEvent()
|
|
58
|
+
const { value, addToCache } = await useDataCache<InitData>(
|
|
59
|
+
'initData_' + currentLanguage.value,
|
|
60
|
+
event,
|
|
61
|
+
)
|
|
62
|
+
if (value) {
|
|
63
|
+
data.value = value
|
|
64
|
+
return data
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// If the data is not in the cache, we fetch it from the payload / useState().
|
|
68
|
+
if (data.value) {
|
|
69
|
+
return data
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const config = useRuntimeConfig()
|
|
73
|
+
// Read the host from .env NUXT_HOST to support multisite setup.
|
|
74
|
+
// Read the host from .env NUXT_HOST to support multisite setup.
|
|
75
|
+
const url = useRequestURL()
|
|
76
|
+
let host = url.hostname
|
|
77
|
+
if (import.meta.server) {
|
|
78
|
+
host = config.requestHost
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Fetch the data from the server.
|
|
82
|
+
data.value = await useGraphqlQuery({
|
|
83
|
+
name: 'initData',
|
|
84
|
+
fetchOptions: {
|
|
85
|
+
query: {
|
|
86
|
+
language: currentLanguage.value,
|
|
87
|
+
__server: 'true',
|
|
88
|
+
},
|
|
89
|
+
headers: {
|
|
90
|
+
host,
|
|
91
|
+
'x-forwarded-host': host,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
}).then((v) => {
|
|
95
|
+
const initData = {
|
|
96
|
+
metaMenuLinks: v.data.metaMenu?.links || [],
|
|
97
|
+
mainMenuLinks: v.data.mainMenu?.links || [],
|
|
98
|
+
footerMenuLinks: v.data.footerMenu?.links || [],
|
|
99
|
+
footerMetaMenuLinks: v.data.footerMetaMenu?.links || [],
|
|
100
|
+
globalConfig: v.data.globalConfig || {},
|
|
101
|
+
translations: getTranslations(v.data),
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// The cache tags are coming from the onServerResponse() function in the graphqlMiddleware.
|
|
105
|
+
|
|
106
|
+
if (
|
|
107
|
+
import.meta.server &&
|
|
108
|
+
v.__cacheability?.isCacheable &&
|
|
109
|
+
v.__cacheability.tagsNuxt
|
|
110
|
+
) {
|
|
111
|
+
addToCache(initData, v.__cacheability.tagsNuxt)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return initData
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
return data
|
|
118
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function useIsMobile() {
|
|
2
|
+
const viewport = useViewport()
|
|
3
|
+
const isMobile = ref(viewport.isLessThan('lg'))
|
|
4
|
+
|
|
5
|
+
watch(viewport.breakpoint, (newValue: string) => {
|
|
6
|
+
isMobile.value =
|
|
7
|
+
newValue === 'md' ||
|
|
8
|
+
newValue === 'sm' ||
|
|
9
|
+
newValue === 'xs' ||
|
|
10
|
+
newValue === 'ss'
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
return { isMobile }
|
|
14
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { InitData } from '~/composables/useInitData'
|
|
2
|
+
import type { MenuLinkTreeFragment } from '#graphql-operations'
|
|
3
|
+
|
|
4
|
+
function isLinkTreeActive(
|
|
5
|
+
tree: MenuLinkTreeFragment & { subtree?: Array<MenuLinkTreeFragment> },
|
|
6
|
+
currentRoutePath: string,
|
|
7
|
+
): boolean {
|
|
8
|
+
if (tree.link.url?.path === currentRoutePath) {
|
|
9
|
+
return true
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (tree.subtree) {
|
|
13
|
+
return tree.subtree.some((subtreeEl) =>
|
|
14
|
+
isLinkTreeActive(subtreeEl, currentRoutePath),
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return false
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export async function useMainMenuLinks() {
|
|
22
|
+
const initData: Ref<InitData> = await useInitData()
|
|
23
|
+
const currentRoute = useRoute()
|
|
24
|
+
|
|
25
|
+
const links = computed(() => {
|
|
26
|
+
return initData.value.mainMenuLinks
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const currentActiveMainLink = computed(() => {
|
|
30
|
+
return initData.value.mainMenuLinks.find((l) =>
|
|
31
|
+
isLinkTreeActive(l, currentRoute.path),
|
|
32
|
+
)
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const activeFirstLevelLink = computed(() => {
|
|
36
|
+
return currentActiveMainLink.value?.subtree.find((l) =>
|
|
37
|
+
isLinkTreeActive(l, currentRoute.path),
|
|
38
|
+
)
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
const activeSecondLevelLink = computed(() => {
|
|
42
|
+
const activeSubtree = activeFirstLevelLink.value?.subtree
|
|
43
|
+
if (activeSubtree) {
|
|
44
|
+
return activeSubtree.find((l) => isLinkTreeActive(l, currentRoute.path))
|
|
45
|
+
}
|
|
46
|
+
return null
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
const activeThirdLevelLink = computed(() => {
|
|
50
|
+
const activeSubtree = activeSecondLevelLink.value?.subtree
|
|
51
|
+
if (activeSubtree) {
|
|
52
|
+
return activeSubtree.find((l) => isLinkTreeActive(l, currentRoute.path))
|
|
53
|
+
}
|
|
54
|
+
return null
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
const isHotelActive = computed(() => {
|
|
58
|
+
return isLinkTreeActive(initData.value.mainMenuLinks[2], currentRoute.path)
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
links,
|
|
63
|
+
currentActiveMainLink,
|
|
64
|
+
activeFirstLevelLink,
|
|
65
|
+
activeSecondLevelLink,
|
|
66
|
+
activeThirdLevelLink,
|
|
67
|
+
isHotelActive,
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { InitData } from '~/composables/useInitData'
|
|
2
|
+
import type { MenuLinkTreeFragment } from '#graphql-operations'
|
|
3
|
+
|
|
4
|
+
function isLinkTreeActive(
|
|
5
|
+
tree: MenuLinkTreeFragment & { subtree?: Array<MenuLinkTreeFragment> },
|
|
6
|
+
currentRoutePath: string,
|
|
7
|
+
): boolean {
|
|
8
|
+
if (tree.link.url?.path === currentRoutePath) {
|
|
9
|
+
return true
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (tree.subtree) {
|
|
13
|
+
return tree.subtree.some((subtreeEl) =>
|
|
14
|
+
isLinkTreeActive(subtreeEl, currentRoutePath),
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return false
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export async function useMetaMenuLinks() {
|
|
22
|
+
const initData: Ref<InitData> = await useInitData()
|
|
23
|
+
const currentRoute = useRoute()
|
|
24
|
+
|
|
25
|
+
const links = computed(() => {
|
|
26
|
+
return initData.value.metaMenuLinks
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const currentActiveMetaLink = computed(() => {
|
|
30
|
+
return initData.value.metaMenuLinks.find((l) =>
|
|
31
|
+
isLinkTreeActive(l, currentRoute.path),
|
|
32
|
+
)
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const isHotelActive = computed(() => {
|
|
36
|
+
return isLinkTreeActive(initData.value.metaMenuLinks[2], currentRoute.path)
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
links,
|
|
41
|
+
currentActiveMetaLink,
|
|
42
|
+
isHotelActive,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useIsMobile } from '@/composables/useIsMobile'
|
|
2
|
+
|
|
3
|
+
const mobileNavHeight: number = 73
|
|
4
|
+
const desktopNavHeight: number = 114
|
|
5
|
+
|
|
6
|
+
export function useNavigationOffset(): { navigationOffset: ComputedRef<number> } {
|
|
7
|
+
const { isMobile } = useIsMobile()
|
|
8
|
+
|
|
9
|
+
const navigationOffset = computed(() => {
|
|
10
|
+
return isMobile.value ? mobileNavHeight : desktopNavHeight
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
return { navigationOffset }
|
|
14
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { NuxtConfig } from '@nuxt/schema'
|
|
2
|
+
import { fileURLToPath } from 'url'
|
|
3
|
+
import { dirname, join } from 'path'
|
|
4
|
+
|
|
5
|
+
const currentDir = dirname(fileURLToPath(import.meta.url))
|
|
6
|
+
const IS_DEV = process.env.NODE_ENV === 'development'
|
|
7
|
+
|
|
8
|
+
const NUXT_BACKEND_URL = process.env.NUXT_BACKEND_URL
|
|
9
|
+
|
|
10
|
+
const graphqlMiddleware: NuxtConfig['graphqlMiddleware'] = {
|
|
11
|
+
serverApiPrefix: '/api/graphql',
|
|
12
|
+
autoImportPatterns: [
|
|
13
|
+
'~/pages/**/*.{gql,graphql}',
|
|
14
|
+
'~/components/**/*.{gql,graphql}',
|
|
15
|
+
'~/composables/**/*.{gql,graphql}',
|
|
16
|
+
'~/app/**/*.{gql,graphql}',
|
|
17
|
+
'~/helpers/**/*.{gql,graphql}',
|
|
18
|
+
'~/graphql/**/*.{gql,graphql}',
|
|
19
|
+
'~/queries/**/*.{gql,graphql}',
|
|
20
|
+
'~/stores/**/*.{gql,graphql}',
|
|
21
|
+
'~/server/**/*.{gql,graphql}',
|
|
22
|
+
'~/sites/**/*.{gql,graphql}',
|
|
23
|
+
'~/node_modules/@blokkli/editor/dist/runtime/adapter/**/*.{gql,graphql}',
|
|
24
|
+
join(currentDir, '../../**/*.{gql,graphql}')
|
|
25
|
+
],
|
|
26
|
+
documents: [],
|
|
27
|
+
downloadSchema: IS_DEV,
|
|
28
|
+
graphqlEndpoint: `${NUXT_BACKEND_URL}/graphql`, // If we have Multisite Setup we need to use NUXT_HOST here.
|
|
29
|
+
codegenConfig: {
|
|
30
|
+
skipUnusedFragments: true,
|
|
31
|
+
},
|
|
32
|
+
codegenSchemaConfig: {
|
|
33
|
+
urlSchemaOptions: {
|
|
34
|
+
headers: {
|
|
35
|
+
'x-drupal-graphql-token': process.env.DRUPAL_GRAPHQL_TOKEN ?? '',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default graphqlMiddleware
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { NuxtConfig } from '@nuxt/schema'
|
|
2
|
+
const IS_DEV = process.env.NODE_ENV === 'development'
|
|
3
|
+
|
|
4
|
+
const multiCache: NuxtConfig['multiCache'] = {
|
|
5
|
+
component: {
|
|
6
|
+
enabled: false,
|
|
7
|
+
},
|
|
8
|
+
data: {
|
|
9
|
+
enabled: true,
|
|
10
|
+
},
|
|
11
|
+
route: {
|
|
12
|
+
enabled: false,
|
|
13
|
+
},
|
|
14
|
+
api: {
|
|
15
|
+
enabled: true,
|
|
16
|
+
authorization: 'overriden-at-runtime',
|
|
17
|
+
prefix: '/api/multi-cache',
|
|
18
|
+
cacheTagInvalidationDelay: 5000,
|
|
19
|
+
},
|
|
20
|
+
cdn: {
|
|
21
|
+
enabled: true,
|
|
22
|
+
cacheControlHeader: 'Cache-Control',
|
|
23
|
+
cacheTagHeader: 'Cache-Tag',
|
|
24
|
+
},
|
|
25
|
+
debug: IS_DEV,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default multiCache
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NuxtConfig } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
export const runtimeConfig: NuxtConfig['runtimeConfig'] = {
|
|
4
|
+
backendUrl: '',
|
|
5
|
+
requestHost: '',
|
|
6
|
+
drupalGraphqlToken: process.env.DRUPAL_GRAPHQL_TOKEN || '',
|
|
7
|
+
elasticsearchUrl: '',
|
|
8
|
+
elasticsearchPrefix: '',
|
|
9
|
+
public: {
|
|
10
|
+
imageBaseUrl: ''
|
|
11
|
+
},
|
|
12
|
+
}
|
package/error.vue
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bk-main-canvas relative">
|
|
3
|
+
<ClientOnly>
|
|
4
|
+
<div
|
|
5
|
+
v-if="drupalUser.accessToolbar && !isEditing"
|
|
6
|
+
class="hidden border-b border-b-gray-100 bg-white lg:block"
|
|
7
|
+
>
|
|
8
|
+
<VuepalAdminToolbar :key="language" />
|
|
9
|
+
<div class="flex">
|
|
10
|
+
<div class="mx-auto w-auto bg-white py-8 xl:min-w-[1174px]">
|
|
11
|
+
<VuepalLocalTasks />
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</ClientOnly>
|
|
16
|
+
<NuxtLayout name="error" />
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
const route = useRoute()
|
|
22
|
+
const drupalUser = useDrupalUser()
|
|
23
|
+
const language = useCurrentLanguage()
|
|
24
|
+
|
|
25
|
+
import { onMounted } from 'vue';
|
|
26
|
+
|
|
27
|
+
const isEditing = computed(
|
|
28
|
+
() =>
|
|
29
|
+
!!(route.query.blokkliEditing || route.query.blokkliPreview) &&
|
|
30
|
+
drupalUser.value.accessToolbar,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
useHead({
|
|
34
|
+
htmlAttrs: {
|
|
35
|
+
lang: language.value,
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
</script>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import withNuxt from '../../.nuxt/eslint.config.mjs'
|
|
2
|
+
import tailwind from 'eslint-plugin-tailwindcss'
|
|
3
|
+
import sonarjs from 'eslint-plugin-sonarjs'
|
|
4
|
+
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
6
|
+
import { dirname, join } from 'path'
|
|
7
|
+
const currentDir = dirname(fileURLToPath(import.meta.url))
|
|
8
|
+
|
|
9
|
+
export default withNuxt([
|
|
10
|
+
...tailwind.configs['flat/recommended'],
|
|
11
|
+
sonarjs.configs.recommended,
|
|
12
|
+
{
|
|
13
|
+
settings: {
|
|
14
|
+
tailwindcss: {
|
|
15
|
+
config: join(currentDir, './tailwind.config.ts'),
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
])
|
|
20
|
+
.override('nuxt/vue/rules', {
|
|
21
|
+
rules: {
|
|
22
|
+
'vue/no-v-html': 0,
|
|
23
|
+
'vue/no-empty-component-block': 'error',
|
|
24
|
+
'vue/padding-line-between-blocks': 'error',
|
|
25
|
+
'vue/no-v-for-template-key': 'error',
|
|
26
|
+
'vue/prefer-true-attribute-shorthand': 'error',
|
|
27
|
+
'vue/component-api-style': 'error',
|
|
28
|
+
'vue/block-lang': [
|
|
29
|
+
'error',
|
|
30
|
+
{
|
|
31
|
+
script: {
|
|
32
|
+
lang: 'ts',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
'vue/block-order': [
|
|
37
|
+
'error',
|
|
38
|
+
{
|
|
39
|
+
order: [['script', 'template'], 'style'],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
'vue/html-self-closing': [
|
|
43
|
+
'error',
|
|
44
|
+
{
|
|
45
|
+
html: {
|
|
46
|
+
void: 'always',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
'vue/no-deprecated-slot-attribute': [
|
|
51
|
+
'error',
|
|
52
|
+
{
|
|
53
|
+
ignore: [
|
|
54
|
+
'celum-adapter',
|
|
55
|
+
'anura-lightbox',
|
|
56
|
+
'anura-details',
|
|
57
|
+
'anura-asset',
|
|
58
|
+
'span',
|
|
59
|
+
'div',
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
})
|
|
65
|
+
.override('nuxt/typescript/rules', {
|
|
66
|
+
rules: {
|
|
67
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
68
|
+
'@typescript-eslint/ban-ts-comment': 'off',
|
|
69
|
+
},
|
|
70
|
+
})
|
|
71
|
+
.override('tailwindcss:rules', {
|
|
72
|
+
rules: {
|
|
73
|
+
'tailwindcss/classnames-order': 'off',
|
|
74
|
+
'tailwindcss/no-custom-classname': [
|
|
75
|
+
'error',
|
|
76
|
+
{
|
|
77
|
+
callees: ['twMerge'],
|
|
78
|
+
cssFiles: ['./assets/css/**/*.css'],
|
|
79
|
+
whitelist: [
|
|
80
|
+
'bk-main-canvas',
|
|
81
|
+
'close-launcher',
|
|
82
|
+
'open-launcher',
|
|
83
|
+
'launcher',
|
|
84
|
+
'select',
|
|
85
|
+
'page-header',
|
|
86
|
+
'info-box',
|
|
87
|
+
'search-result',
|
|
88
|
+
'info-box-floater',
|
|
89
|
+
'carousel.*',
|
|
90
|
+
'launcher-visible',
|
|
91
|
+
'breadcrumb-.*',
|
|
92
|
+
'pagination-page',
|
|
93
|
+
'content-fullscreen-header',
|
|
94
|
+
'is-previous',
|
|
95
|
+
'is-active',
|
|
96
|
+
'is-next',
|
|
97
|
+
'paragraph-expand-section',
|
|
98
|
+
'search-input',
|
|
99
|
+
'pagination-buttons',
|
|
100
|
+
'formkit-.*',
|
|
101
|
+
'breadcrumb',
|
|
102
|
+
'editor_image',
|
|
103
|
+
'close-icon-.*',
|
|
104
|
+
'grid-area-.*',
|
|
105
|
+
'page-.*',
|
|
106
|
+
'paragraph-.*',
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
})
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defaultConfig } from '@formkit/vue'
|
|
2
|
+
import { createLocalStoragePlugin, createAutoAnimatePlugin } from '@formkit/addons'
|
|
3
|
+
import '@formkit/addons/css/floatingLabels'
|
|
4
|
+
import { rootClasses } from './formkit.theme';
|
|
5
|
+
|
|
6
|
+
const legends = ['checkbox_multi', 'radio_multi', 'repeater', 'transferlist'];
|
|
7
|
+
|
|
8
|
+
function addAsteriskPlugin(node) {
|
|
9
|
+
if (['button', 'submit', 'hidden', 'group', 'list', 'meta'].includes(node.props.type)) return;
|
|
10
|
+
|
|
11
|
+
node.on('created', () => {
|
|
12
|
+
const legendOrLabel = legends.includes(`${node.props.type}${node.props.options ? '_multi' : ''}`) ? 'legend' : 'label';
|
|
13
|
+
|
|
14
|
+
if (node.props.definition.schemaMemoKey) {
|
|
15
|
+
node.props.definition.schemaMemoKey += `${node.props.options ? '_multi' : ''}_add_asterisk`;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const schemaFn = node.props.definition.schema
|
|
19
|
+
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
20
|
+
sectionsSchema[legendOrLabel] = {
|
|
21
|
+
children: ['$label', {
|
|
22
|
+
$el: 'span',
|
|
23
|
+
if: '$state.required',
|
|
24
|
+
attrs: {
|
|
25
|
+
class: '$classes.asterisk',
|
|
26
|
+
},
|
|
27
|
+
children: ['*']
|
|
28
|
+
}]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return schemaFn(sectionsSchema)
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default defaultConfig({
|
|
37
|
+
plugins: [
|
|
38
|
+
createLocalStoragePlugin({
|
|
39
|
+
prefix: 'formkit',
|
|
40
|
+
key: undefined,
|
|
41
|
+
control: undefined,
|
|
42
|
+
maxAge: 3600000,
|
|
43
|
+
debounce: 200,
|
|
44
|
+
beforeSave: undefined,
|
|
45
|
+
beforeLoad: undefined
|
|
46
|
+
}),
|
|
47
|
+
createAutoAnimatePlugin({
|
|
48
|
+
duration: 250,
|
|
49
|
+
easing: 'ease-in-out'
|
|
50
|
+
}),
|
|
51
|
+
addAsteriskPlugin
|
|
52
|
+
],
|
|
53
|
+
config: {
|
|
54
|
+
rootClasses,
|
|
55
|
+
},
|
|
56
|
+
})
|