@simple-reporting/base 0.0.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/.github/workflows/npm-publish.yml +25 -0
- package/.nvmrc +1 -0
- package/.prettierrc +6 -0
- package/README.md +23 -0
- package/cli.js +114 -0
- package/dev/.ddev/config.yaml +279 -0
- package/dev/.ddev/nginx_full/custom.conf +12 -0
- package/dev/.env +1 -0
- package/dev/.env.development +1 -0
- package/dev/.eslintrc.cjs +15 -0
- package/dev/.nvmrc +1 -0
- package/dev/.prettierrc.json +8 -0
- package/dev/.vscode/extensions.json +3 -0
- package/dev/.vscode/settings.json +4 -0
- package/dev/README.md +45 -0
- package/dev/env.d.ts +1 -0
- package/dev/index.html +17 -0
- package/dev/ldd.html +7 -0
- package/dev/livingdocs/Media/image/app.scss +25 -0
- package/dev/livingdocs/Media/image/general.scss +11 -0
- package/dev/livingdocs/Media/image/image.html +46 -0
- package/dev/livingdocs/Media/image/ldd.scss +1 -0
- package/dev/livingdocs/Media/image/pdf.scss +1 -0
- package/dev/livingdocs/Media/image/print.scss +7 -0
- package/dev/livingdocs/Media/image/properties.json +41 -0
- package/dev/livingdocs/Media/image/web.scss +0 -0
- package/dev/livingdocs/Media/image/word.scss +1 -0
- package/dev/livingdocs/Properties/grid/app.scss +1 -0
- package/dev/livingdocs/Properties/grid/general.scss +95 -0
- package/dev/livingdocs/Properties/grid/ldd.scss +1 -0
- package/dev/livingdocs/Properties/grid/pdf.scss +1 -0
- package/dev/livingdocs/Properties/grid/print.scss +94 -0
- package/dev/livingdocs/Properties/grid/properties.json +68 -0
- package/dev/livingdocs/Properties/grid/web.scss +98 -0
- package/dev/livingdocs/Properties/grid/word.scss +1 -0
- package/dev/livingdocs/Text/paragraph/general.scss +9 -0
- package/dev/livingdocs/Text/paragraph/paragraph.html +22 -0
- package/dev/livingdocs/Titles/title-h1/general.scss +10 -0
- package/dev/livingdocs/Titles/title-h1/title-h1.html +16 -0
- package/dev/livingdocs/Titles/title-h2/app.scss +1 -0
- package/dev/livingdocs/Titles/title-h2/general.scss +13 -0
- package/dev/livingdocs/Titles/title-h2/ldd.scss +1 -0
- package/dev/livingdocs/Titles/title-h2/pdf.scss +1 -0
- package/dev/livingdocs/Titles/title-h2/print.scss +36 -0
- package/dev/livingdocs/Titles/title-h2/title-h2.html +24 -0
- package/dev/livingdocs/Titles/title-h2/web.scss +27 -0
- package/dev/livingdocs/Titles/title-h2/word.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/app.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/general.scss +13 -0
- package/dev/livingdocs/Titles/title-h3/ldd.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/pdf.scss +1 -0
- package/dev/livingdocs/Titles/title-h3/print.scss +34 -0
- package/dev/livingdocs/Titles/title-h3/title-h3.html +24 -0
- package/dev/livingdocs/Titles/title-h3/web.scss +27 -0
- package/dev/livingdocs/Titles/title-h3/word.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/app.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/general.scss +13 -0
- package/dev/livingdocs/Titles/title-h4/ldd.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/pdf.scss +1 -0
- package/dev/livingdocs/Titles/title-h4/print.scss +34 -0
- package/dev/livingdocs/Titles/title-h4/title-h4.html +24 -0
- package/dev/livingdocs/Titles/title-h4/web.scss +27 -0
- package/dev/livingdocs/Titles/title-h4/word.scss +1 -0
- package/dev/livingdocs/Titles/title-h5/general.scss +10 -0
- package/dev/livingdocs/Titles/title-h5/title-h5.html +16 -0
- package/dev/livingdocs/Titles/title-h6/general.scss +10 -0
- package/dev/livingdocs/Titles/title-h6/title-h6.html +16 -0
- package/dev/livingdocs.config.json +376 -0
- package/dev/nswow/ArticleAutoloader.ts +100 -0
- package/dev/nswow/ArticleLoader.ts +91 -0
- package/dev/nswow/colors.scss +3 -0
- package/dev/nswow/config.scss +13 -0
- package/dev/nswow/core-styles.scss +2 -0
- package/dev/nswow/fonts.scss +2 -0
- package/dev/nswow/grid.scss +2 -0
- package/dev/nswow/helpers.scss +2 -0
- package/dev/nswow/index.scss +9 -0
- package/dev/nswow/meta.scss +2 -0
- package/dev/nswow/spacer.scss +2 -0
- package/dev/nswow/system.scss +2 -0
- package/dev/nswow/typography.scss +3 -0
- package/dev/nswow.config.json +293 -0
- package/dev/package.json +61 -0
- package/dev/pdf/pdf-configuration-debug.xml +6 -0
- package/dev/pdf/pdf-configuration.xml +3 -0
- package/dev/pdf.ts +1 -0
- package/dev/public/.keep +0 -0
- package/dev/src/App.vue +44 -0
- package/dev/src/Autoload.ts +6 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-300.woff2 +0 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-700.woff2 +0 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-italic.woff2 +0 -0
- package/dev/src/assets/fonts/Roboto/roboto-v30-latin-regular.woff2 +0 -0
- package/dev/src/assets/images/mms-logo-black.svg +91 -0
- package/dev/src/assets/images/mms-logo-white.svg +105 -0
- package/dev/src/assets/scss/app.scss +39 -0
- package/dev/src/assets/scss/general.scss +17 -0
- package/dev/src/assets/scss/ldd.scss +27 -0
- package/dev/src/assets/scss/pdf.scss +2 -0
- package/dev/src/assets/scss/print.scss +1 -0
- package/dev/src/assets/scss/web.scss +1 -0
- package/dev/src/assets/scss/word.scss +2 -0
- package/dev/src/components/LanguageSwitch.vue +100 -0
- package/dev/src/components/MainNavigation.vue +209 -0
- package/dev/src/components/MenuItem/MenuArticle.vue +15 -0
- package/dev/src/components/MenuItem/MenuEntry.vue +26 -0
- package/dev/src/components/MenuItem/MenuExternal.vue +28 -0
- package/dev/src/components/MenuItem/index.ts +5 -0
- package/dev/src/components/PageFooter.vue +86 -0
- package/dev/src/components/PageHeader.vue +149 -0
- package/dev/src/components/PageModal.vue +95 -0
- package/dev/src/components/PrevNext.vue +144 -0
- package/dev/src/components/ScrollToTop.vue +63 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCApplication.vue +715 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCDropdownCharts.vue +112 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCDropdownPeriod.vue +85 -0
- package/dev/src/components/SrlPage/KFCApplication/KFCTable.vue +63 -0
- package/dev/src/components/SrlPage/KFCApplication/hooks/kfcData.ts +9 -0
- package/dev/src/components/SrlPage/KFCApplication/models/KFCApplication.ts +183 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-basic.scss +1136 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-custom.scss +71 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_highcharts-general.scss +113 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison-dropdown.scss +189 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_iz-keyfigure-comparison.scss +151 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-loading.scss +40 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_kfc-print.scss +20 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_srl-button-kfc.scss +21 -0
- package/dev/src/components/SrlPage/KFCApplication/scss/_variables.scss +10 -0
- package/dev/src/components/SrlPage/KFCApplication/services/xlsxParser.ts +194 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgColumnView.vue +28 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgDownloadChart.vue +26 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgDropdown.vue +18 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgIndexedValues.vue +18 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgLegendSwap.vue +18 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgLineView.vue +28 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgPDFChart.vue +26 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgPrintChart.vue +33 -0
- package/dev/src/components/SrlPage/KFCApplication/theme/SvgTableView.vue +67 -0
- package/dev/src/components/SrlPage/KFCApplication/utils/XDownloader.js +455 -0
- package/dev/src/components/SrlPage/KFCApplication/utils/XDownloaderStyle.js +44 -0
- package/dev/src/components/SrlPage/KFCApplication/utils/XTableNamer.js +68 -0
- package/dev/src/composables/config.ts +48 -0
- package/dev/src/i18n/index.ts +51 -0
- package/dev/src/i18n/translation.ts +85 -0
- package/dev/src/locales/de.json +15 -0
- package/dev/src/locales/en.json +15 -0
- package/dev/src/main.ts +16 -0
- package/dev/src/router/index.ts +47 -0
- package/dev/src/types/nswow.d.ts +73 -0
- package/dev/src/utils/variables.ts +13 -0
- package/dev/src/views/ArticleView.vue +77 -0
- package/dev/src/views/DownloadsView.vue +88 -0
- package/dev/src/views/HomeView.vue +35 -0
- package/dev/src/views/PageNotFound.vue +73 -0
- package/dev/src/views/SearchView.vue +126 -0
- package/dev/tsconfig.app.json +16 -0
- package/dev/tsconfig.json +14 -0
- package/dev/tsconfig.node.json +19 -0
- package/dev/tsconfig.vitest.json +11 -0
- package/dev/vite.config.ts +27 -0
- package/dev/vitest.config.ts +14 -0
- package/dev/word.ts +1 -0
- package/livingdocs/Buttons/button/app.scss +1 -0
- package/livingdocs/Buttons/button/button.html +18 -0
- package/livingdocs/Buttons/button/general.scss +33 -0
- package/livingdocs/Buttons/button/ldd.scss +1 -0
- package/livingdocs/Buttons/button/pdf.scss +1 -0
- package/livingdocs/Buttons/button/word.scss +1 -0
- package/livingdocs/Buttons/button-container/app.scss +1 -0
- package/livingdocs/Buttons/button-container/button-container.html +31 -0
- package/livingdocs/Buttons/button-container/general.scss +12 -0
- package/livingdocs/Buttons/button-container/ldd.scss +1 -0
- package/livingdocs/Buttons/button-container/pdf.scss +3 -0
- package/livingdocs/Buttons/button-container/properties.json +19 -0
- package/livingdocs/Buttons/button-container/word.scss +3 -0
- package/livingdocs/CV/cv-timeline/app.scss +1 -0
- package/livingdocs/CV/cv-timeline/cv-timeline.html +19 -0
- package/livingdocs/CV/cv-timeline/general.scss +1 -0
- package/livingdocs/CV/cv-timeline/ldd.scss +1 -0
- package/livingdocs/CV/cv-timeline/pdf.scss +1 -0
- package/livingdocs/CV/cv-timeline/print.scss +35 -0
- package/livingdocs/CV/cv-timeline/web.scss +27 -0
- package/livingdocs/CV/cv-timeline/word.scss +1 -0
- package/livingdocs/Container/column-container/column-container.html +44 -0
- package/livingdocs/Container/column-container/general.scss +105 -0
- package/livingdocs/Container/column-container/properties.json +83 -0
- package/livingdocs/Lists/alphanumeric-list-group/alphanumeric-list-group.html +25 -0
- package/livingdocs/Lists/alphanumeric-list-group/app.scss +1 -0
- package/livingdocs/Lists/alphanumeric-list-group/general.scss +5 -0
- package/livingdocs/Lists/alphanumeric-list-group/ldd.scss +1 -0
- package/livingdocs/Lists/alphanumeric-list-group/pdf.scss +1 -0
- package/livingdocs/Lists/alphanumeric-list-group/print.scss +0 -0
- package/livingdocs/Lists/alphanumeric-list-group/web.scss +0 -0
- package/livingdocs/Lists/alphanumeric-list-group/word.scss +1 -0
- package/livingdocs/Lists/list-item/app.scss +1 -0
- package/livingdocs/Lists/list-item/general.scss +4 -0
- package/livingdocs/Lists/list-item/ldd.scss +1 -0
- package/livingdocs/Lists/list-item/list-item.html +17 -0
- package/livingdocs/Lists/list-item/pdf.scss +1 -0
- package/livingdocs/Lists/list-item/print.scss +0 -0
- package/livingdocs/Lists/list-item/web.scss +0 -0
- package/livingdocs/Lists/list-item/word.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/app.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/general.scss +5 -0
- package/livingdocs/Lists/ordered-list-group/ldd.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/ordered-list-group.html +25 -0
- package/livingdocs/Lists/ordered-list-group/pdf.scss +1 -0
- package/livingdocs/Lists/ordered-list-group/print.scss +0 -0
- package/livingdocs/Lists/ordered-list-group/web.scss +0 -0
- package/livingdocs/Lists/ordered-list-group/word.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/app.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/general.scss +5 -0
- package/livingdocs/Lists/unordered-list-group/ldd.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/pdf.scss +1 -0
- package/livingdocs/Lists/unordered-list-group/print.scss +0 -0
- package/livingdocs/Lists/unordered-list-group/unordered-list-group.html +25 -0
- package/livingdocs/Lists/unordered-list-group/web.scss +0 -0
- package/livingdocs/Lists/unordered-list-group/word.scss +1 -0
- package/livingdocs/Media/chart/app.scss +19 -0
- package/livingdocs/Media/chart/chart.html +29 -0
- package/livingdocs/Media/chart/general.scss +11 -0
- package/livingdocs/Media/chart/ldd.scss +1 -0
- package/livingdocs/Media/chart/pdf.scss +9 -0
- package/livingdocs/Media/chart/print.scss +0 -0
- package/livingdocs/Media/chart/properties.json +41 -0
- package/livingdocs/Media/chart/web.scss +0 -0
- package/livingdocs/Media/chart/word.scss +1 -0
- package/livingdocs/Media/graphic/app.scss +1 -0
- package/livingdocs/Media/graphic/general.scss +18 -0
- package/livingdocs/Media/graphic/graphic.html +29 -0
- package/livingdocs/Media/graphic/ldd.scss +1 -0
- package/livingdocs/Media/graphic/pdf.scss +1 -0
- package/livingdocs/Media/graphic/print.scss +0 -0
- package/livingdocs/Media/graphic/properties.json +36 -0
- package/livingdocs/Media/graphic/web.scss +0 -0
- package/livingdocs/Media/graphic/word.scss +1 -0
- package/livingdocs/Media/image/app.scss +25 -0
- package/livingdocs/Media/image/general.scss +11 -0
- package/livingdocs/Media/image/image.html +55 -0
- package/livingdocs/Media/image/ldd.scss +1 -0
- package/livingdocs/Media/image/pdf.scss +1 -0
- package/livingdocs/Media/image/print.scss +7 -0
- package/livingdocs/Media/image/properties.json +41 -0
- package/livingdocs/Media/image/web.scss +0 -0
- package/livingdocs/Media/image/word.scss +1 -0
- package/livingdocs/Media/nswow-table/app.scss +2 -0
- package/livingdocs/Media/nswow-table/app.ts +35 -0
- package/livingdocs/Media/nswow-table/general.scss +281 -0
- package/livingdocs/Media/nswow-table/ldd.scss +2 -0
- package/livingdocs/Media/nswow-table/nswow-table.html +30 -0
- package/livingdocs/Media/nswow-table/pdf.scss +8 -0
- package/livingdocs/Media/nswow-table/print.scss +0 -0
- package/livingdocs/Media/nswow-table/properties.json +66 -0
- package/livingdocs/Media/nswow-table/web.scss +23 -0
- package/livingdocs/Media/nswow-table/word.scss +2 -0
- package/livingdocs/Media/video/app.scss +1 -0
- package/livingdocs/Media/video/general.scss +7 -0
- package/livingdocs/Media/video/ldd.scss +1 -0
- package/livingdocs/Media/video/pdf.scss +1 -0
- package/livingdocs/Media/video/print.scss +5 -0
- package/livingdocs/Media/video/properties.json +41 -0
- package/livingdocs/Media/video/video.html +26 -0
- package/livingdocs/Media/video/web.scss +0 -0
- package/livingdocs/Media/video/word.scss +1 -0
- package/livingdocs/Misc/accordion/accordion.html +56 -0
- package/livingdocs/Misc/accordion/app.scss +63 -0
- package/livingdocs/Misc/accordion/app.ts +10 -0
- package/livingdocs/Misc/accordion/general.scss +44 -0
- package/livingdocs/Misc/accordion/ldd.scss +36 -0
- package/livingdocs/Misc/accordion/pdf.scss +39 -0
- package/livingdocs/Misc/accordion/word.scss +39 -0
- package/livingdocs/Misc/anchor/anchor.html +15 -0
- package/livingdocs/Misc/anchor/app.scss +10 -0
- package/livingdocs/Misc/anchor/app.ts +11 -0
- package/livingdocs/Misc/anchor/general.scss +1 -0
- package/livingdocs/Misc/anchor/pdf.scss +1 -0
- package/livingdocs/Misc/anchor/print.scss +3 -0
- package/livingdocs/Misc/anchor/word.scss +1 -0
- package/livingdocs/Misc/spacer/app.scss +1 -0
- package/livingdocs/Misc/spacer/general.scss +8 -0
- package/livingdocs/Misc/spacer/ldd.scss +1 -0
- package/livingdocs/Misc/spacer/pdf.scss +1 -0
- package/livingdocs/Misc/spacer/print.scss +18 -0
- package/livingdocs/Misc/spacer/properties.json +52 -0
- package/livingdocs/Misc/spacer/spacer.html +12 -0
- package/livingdocs/Misc/spacer/web.scss +18 -0
- package/livingdocs/Misc/spacer/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover/ldd.scss +42 -0
- package/livingdocs/PDF_only/pdf-cover/pdf-cover.html +29 -0
- package/livingdocs/PDF_only/pdf-cover/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover/print.scss +0 -0
- package/livingdocs/PDF_only/pdf-cover/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/ldd.scss +19 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/pdf-chapter-cover.html +18 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/print.scss +19 -0
- package/livingdocs/PDF_only/pdf-cover-chapter/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-pagebreak/general.scss +4 -0
- package/livingdocs/PDF_only/pdf-pagebreak/ldd.scss +5 -0
- package/livingdocs/PDF_only/pdf-pagebreak/pdf-pagebreak.html +8 -0
- package/livingdocs/PDF_only/pdf-publication-title/general.scss +5 -0
- package/livingdocs/PDF_only/pdf-publication-title/pdf-publication-title.html +15 -0
- package/livingdocs/PDF_only/pdf-toc-item/general.scss +41 -0
- package/livingdocs/PDF_only/pdf-toc-item/pdf-toc-item.html +33 -0
- package/livingdocs/PDF_only/pdf-toc-item/properties.json +7 -0
- package/livingdocs/PDF_only/pdf-toc-item-blank/general.scss +5 -0
- package/livingdocs/PDF_only/pdf-toc-item-blank/pdf-toc-item-blank.html +11 -0
- package/livingdocs/PDF_only/pdf-toc-item-title/general.scss +5 -0
- package/livingdocs/PDF_only/pdf-toc-item-title/pdf-toc-item-title.html +11 -0
- package/livingdocs/PDF_only/pdf-toc-page/app.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/general.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/ldd.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/pdf-toc-page.html +33 -0
- package/livingdocs/PDF_only/pdf-toc-page/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-toc-page/properties.json +12 -0
- package/livingdocs/PDF_only/pdf-toc-page/word.scss +1 -0
- package/livingdocs/PDF_only/pdf-video-link/ldd.scss +16 -0
- package/livingdocs/PDF_only/pdf-video-link/pdf-video-link.html +41 -0
- package/livingdocs/PDF_only/pdf-video-link/pdf.scss +1 -0
- package/livingdocs/PDF_only/pdf-video-link/print.scss +12 -0
- package/livingdocs/PDF_only/pdf-video-link/word.scss +1 -0
- package/livingdocs/Properties/grid/app.scss +1 -0
- package/livingdocs/Properties/grid/general.scss +95 -0
- package/livingdocs/Properties/grid/ldd.scss +1 -0
- package/livingdocs/Properties/grid/pdf.scss +1 -0
- package/livingdocs/Properties/grid/print.scss +94 -0
- package/livingdocs/Properties/grid/properties.json +68 -0
- package/livingdocs/Properties/grid/web.scss +98 -0
- package/livingdocs/Properties/grid/word.scss +1 -0
- package/livingdocs/Signatures/signature-container/app.scss +1 -0
- package/livingdocs/Signatures/signature-container/general.scss +7 -0
- package/livingdocs/Signatures/signature-container/ldd.scss +1 -0
- package/livingdocs/Signatures/signature-container/pdf.scss +1 -0
- package/livingdocs/Signatures/signature-container/print.scss +0 -0
- package/livingdocs/Signatures/signature-container/signature-container.html +30 -0
- package/livingdocs/Signatures/signature-container/web.scss +0 -0
- package/livingdocs/Signatures/signature-container/word.scss +1 -0
- package/livingdocs/Signatures/signature-item/app.scss +1 -0
- package/livingdocs/Signatures/signature-item/general.scss +53 -0
- package/livingdocs/Signatures/signature-item/ldd.scss +1 -0
- package/livingdocs/Signatures/signature-item/pdf.scss +1 -0
- package/livingdocs/Signatures/signature-item/print.scss +0 -0
- package/livingdocs/Signatures/signature-item/signature-item.html +23 -0
- package/livingdocs/Signatures/signature-item/web.scss +0 -0
- package/livingdocs/Signatures/signature-item/word.scss +1 -0
- package/livingdocs/Text/footnote/app.scss +1 -0
- package/livingdocs/Text/footnote/footnote.html +14 -0
- package/livingdocs/Text/footnote/general.scss +12 -0
- package/livingdocs/Text/footnote/ldd.scss +1 -0
- package/livingdocs/Text/footnote/pdf.scss +1 -0
- package/livingdocs/Text/footnote/print.scss +36 -0
- package/livingdocs/Text/footnote/web.scss +27 -0
- package/livingdocs/Text/footnote/word.scss +1 -0
- package/livingdocs/Text/lead/general.scss +9 -0
- package/livingdocs/Text/lead/lead.html +23 -0
- package/livingdocs/Text/paragraph/general.scss +9 -0
- package/livingdocs/Text/paragraph/paragraph.html +24 -0
- package/livingdocs/Text/quote/general.scss +43 -0
- package/livingdocs/Text/quote/properties.json +7 -0
- package/livingdocs/Text/quote/quote.html +29 -0
- package/livingdocs/Text/quote-with-portrait/general.scss +81 -0
- package/livingdocs/Text/quote-with-portrait/properties.json +12 -0
- package/livingdocs/Text/quote-with-portrait/quote-with-portrait.html +49 -0
- package/livingdocs/Titles/title-h1/general.scss +10 -0
- package/livingdocs/Titles/title-h1/title-h1.html +16 -0
- package/livingdocs/Titles/title-h2/app.scss +1 -0
- package/livingdocs/Titles/title-h2/general.scss +13 -0
- package/livingdocs/Titles/title-h2/ldd.scss +1 -0
- package/livingdocs/Titles/title-h2/pdf.scss +1 -0
- package/livingdocs/Titles/title-h2/print.scss +36 -0
- package/livingdocs/Titles/title-h2/title-h2.html +26 -0
- package/livingdocs/Titles/title-h2/web.scss +27 -0
- package/livingdocs/Titles/title-h2/word.scss +1 -0
- package/livingdocs/Titles/title-h3/app.scss +1 -0
- package/livingdocs/Titles/title-h3/general.scss +13 -0
- package/livingdocs/Titles/title-h3/ldd.scss +1 -0
- package/livingdocs/Titles/title-h3/pdf.scss +1 -0
- package/livingdocs/Titles/title-h3/print.scss +34 -0
- package/livingdocs/Titles/title-h3/title-h3.html +26 -0
- package/livingdocs/Titles/title-h3/web.scss +27 -0
- package/livingdocs/Titles/title-h3/word.scss +1 -0
- package/livingdocs/Titles/title-h4/app.scss +1 -0
- package/livingdocs/Titles/title-h4/general.scss +13 -0
- package/livingdocs/Titles/title-h4/ldd.scss +1 -0
- package/livingdocs/Titles/title-h4/pdf.scss +1 -0
- package/livingdocs/Titles/title-h4/print.scss +34 -0
- package/livingdocs/Titles/title-h4/title-h4.html +26 -0
- package/livingdocs/Titles/title-h4/web.scss +27 -0
- package/livingdocs/Titles/title-h4/word.scss +1 -0
- package/livingdocs/Titles/title-h5/general.scss +10 -0
- package/livingdocs/Titles/title-h5/title-h5.html +16 -0
- package/livingdocs/Titles/title-h6/general.scss +10 -0
- package/livingdocs/Titles/title-h6/title-h6.html +16 -0
- package/package.json +50 -0
- package/preparePublish.cjs +95 -0
- package/scripts/beaver.d.ts +6 -0
- package/scripts/beaver.js +316 -0
- package/scripts/build.d.ts +40 -0
- package/scripts/build.js +812 -0
- package/scripts/colors.d.ts +3 -0
- package/scripts/colors.js +27 -0
- package/scripts/components.d.ts +43 -0
- package/scripts/components.js +566 -0
- package/scripts/config.d.ts +1 -0
- package/scripts/config.js +1 -0
- package/scripts/doPublish.d.ts +1 -0
- package/scripts/doPublish.js +43 -0
- package/scripts/init.d.ts +9 -0
- package/scripts/init.js +45 -0
- package/scripts/migrate-livingdocs-build/LICENSE +21 -0
- package/scripts/migrate-livingdocs-build/bin/build.d.ts +8 -0
- package/scripts/migrate-livingdocs-build/bin/build.js +53 -0
- package/scripts/migrate-livingdocs-build/bin/migrate.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/bin/migrate.js +43 -0
- package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts +9 -0
- package/scripts/migrate-livingdocs-build/dev/build/v1.d.ts.map +1 -0
- package/scripts/migrate-livingdocs-build/dev/build/v1.js +51 -0
- package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/build/v2.d.ts.map +1 -0
- package/scripts/migrate-livingdocs-build/dev/build/v2.js +44 -0
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.d.ts.map +1 -0
- package/scripts/migrate-livingdocs-build/dev/build/zip-archive.js +39 -0
- package/scripts/migrate-livingdocs-build/dev/build.d.ts +9 -0
- package/scripts/migrate-livingdocs-build/dev/build.js +7 -0
- package/scripts/migrate-livingdocs-build/dev/configuration-defaults.d.ts +20 -0
- package/scripts/migrate-livingdocs-build/dev/configuration-defaults.js +18 -0
- package/scripts/migrate-livingdocs-build/dev/configuration.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/configuration.js +34 -0
- package/scripts/migrate-livingdocs-build/dev/lib.d.ts +33 -0
- package/scripts/migrate-livingdocs-build/dev/lib.js +251 -0
- package/scripts/migrate-livingdocs-build/dev/livingdocs-design.d.ts +9 -0
- package/scripts/migrate-livingdocs-build/dev/livingdocs-design.js +80 -0
- package/scripts/migrate-livingdocs-build/dev/logger.d.ts +2 -0
- package/scripts/migrate-livingdocs-build/dev/logger.js +16 -0
- package/scripts/migrate-livingdocs-build/dev/migrate.d.ts +22 -0
- package/scripts/migrate-livingdocs-build/dev/migrate.js +241 -0
- package/scripts/migrate-livingdocs-build/readme.md +62 -0
- package/scripts/preparePublish.d.ts +1 -0
- package/scripts/preparePublish.js +88 -0
- package/scripts/renamePackage.d.ts +1 -0
- package/scripts/renamePackage.js +48 -0
- package/scripts/utils.d.ts +49 -0
- package/scripts/utils.js +106 -0
- package/scripts/vite.d.ts +10 -0
- package/scripts/vite.js +58 -0
- package/scss/colors/functions.scss +18 -0
- package/scss/colors/index.scss +3 -0
- package/scss/colors/mixins.scss +45 -0
- package/scss/colors/variables.scss +6 -0
- package/scss/config.scss +7 -0
- package/scss/core-styles.scss +22 -0
- package/scss/fonts/functions.scss +21 -0
- package/scss/fonts/index.scss +3 -0
- package/scss/fonts/mixins.scss +31 -0
- package/scss/fonts/variables.scss +8 -0
- package/scss/grid/functions.scss +29 -0
- package/scss/grid/index.scss +3 -0
- package/scss/grid/mixins.scss +388 -0
- package/scss/grid/variables.scss +10 -0
- package/scss/helpers/functions.scss +0 -0
- package/scss/helpers/index.scss +3 -0
- package/scss/helpers/mixins.scss +87 -0
- package/scss/helpers/variables.scss +7 -0
- package/scss/index.scss +8 -0
- package/scss/meta/functions.scss +64 -0
- package/scss/meta/index.scss +3 -0
- package/scss/meta/mixins.scss +6 -0
- package/scss/meta/variables.scss +8 -0
- package/scss/spacer/functions.scss +9 -0
- package/scss/spacer/index.scss +3 -0
- package/scss/spacer/mixins.scss +236 -0
- package/scss/spacer/variables.scss +6 -0
- package/scss/system/functions.scss +77 -0
- package/scss/system/index.scss +3 -0
- package/scss/system/mixins.scss +27 -0
- package/scss/system/root.scss +39 -0
- package/scss/system/variables.scss +13 -0
- package/scss/typography/functions.scss +63 -0
- package/scss/typography/index.scss +3 -0
- package/scss/typography/mixins.scss +262 -0
- package/scss/typography/variables.scss +11 -0
- package/tags.txt +1 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import useConfig from '@/composables/config'
|
|
2
|
+
import { i18n } from '@/i18n'
|
|
3
|
+
import type { NavigationGuardNext, RouteLocationNormalized } from 'vue-router'
|
|
4
|
+
|
|
5
|
+
let config = null
|
|
6
|
+
useConfig().then((c) => (config = c))
|
|
7
|
+
|
|
8
|
+
const Translate = {
|
|
9
|
+
isLocaleSupported(locale: string) {
|
|
10
|
+
// <--- 1
|
|
11
|
+
return Translate.supportedLocales.includes(locale)
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
getUserLocale() {
|
|
15
|
+
// <--- 2
|
|
16
|
+
const locale: string = window.navigator.language || Translate.defaultLocale
|
|
17
|
+
return {
|
|
18
|
+
locale: locale,
|
|
19
|
+
localeNoRegion: locale.split('-')[0]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
getPersistedLocale(): string | null {
|
|
24
|
+
const persistedLocale = localStorage.getItem('user-locale')
|
|
25
|
+
if (persistedLocale && Translate.isLocaleSupported(persistedLocale)) {
|
|
26
|
+
return persistedLocale
|
|
27
|
+
} else {
|
|
28
|
+
return null
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
guessDefaultLocale(): string {
|
|
33
|
+
const userPersistedLocale = Translate.getPersistedLocale()
|
|
34
|
+
if (userPersistedLocale) {
|
|
35
|
+
return userPersistedLocale
|
|
36
|
+
}
|
|
37
|
+
const userPreferredLocale = Translate.getUserLocale()
|
|
38
|
+
if (Translate.isLocaleSupported(userPreferredLocale.locale)) {
|
|
39
|
+
return userPreferredLocale.locale
|
|
40
|
+
}
|
|
41
|
+
if (Translate.isLocaleSupported(userPreferredLocale.localeNoRegion)) {
|
|
42
|
+
return userPreferredLocale.localeNoRegion
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return Translate.defaultLocale
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
get defaultLocale() {
|
|
49
|
+
return config.value.settings.defaultLanguage
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
get supportedLocales(): string[] {
|
|
53
|
+
return config.value.settings.languages
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
set currentLocale(newLocale: string) {
|
|
57
|
+
i18n.global.locale.value = newLocale
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
async switchLanguage(newLocale: string) {
|
|
61
|
+
Translate.currentLocale = newLocale
|
|
62
|
+
const objHtml = document.querySelector('html')
|
|
63
|
+
if (objHtml) {
|
|
64
|
+
objHtml.setAttribute('lang', newLocale)
|
|
65
|
+
}
|
|
66
|
+
localStorage.setItem('user-locale', newLocale)
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
async routeMiddleware(
|
|
70
|
+
to: RouteLocationNormalized,
|
|
71
|
+
_from: RouteLocationNormalized,
|
|
72
|
+
next: NavigationGuardNext
|
|
73
|
+
) {
|
|
74
|
+
const paramLocale = to.params.locale
|
|
75
|
+
if (typeof paramLocale === 'string') {
|
|
76
|
+
if (!Translate.isLocaleSupported(paramLocale)) {
|
|
77
|
+
return next(Translate.guessDefaultLocale())
|
|
78
|
+
}
|
|
79
|
+
await Translate.switchLanguage(paramLocale)
|
|
80
|
+
}
|
|
81
|
+
return next()
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default Translate
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"page": {
|
|
3
|
+
"next": "Nächste Seite",
|
|
4
|
+
"prev": "Vorherige Seite",
|
|
5
|
+
"notFound": "Seite nicht gefunden"
|
|
6
|
+
},
|
|
7
|
+
"search": {
|
|
8
|
+
"title": "Suchergebnisse",
|
|
9
|
+
"for": "Ihre Suche nach {search} ergab {count} Treffer"
|
|
10
|
+
},
|
|
11
|
+
"scrollToTop": "Nach oben scrollen",
|
|
12
|
+
"buttons": {
|
|
13
|
+
"close": "Schließen"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"page": {
|
|
3
|
+
"next": "Next page",
|
|
4
|
+
"prev": "Previous page",
|
|
5
|
+
"notFound": "Page not found"
|
|
6
|
+
},
|
|
7
|
+
"search": {
|
|
8
|
+
"title": "Search results",
|
|
9
|
+
"for": "Your search for {search} returned {count} hits"
|
|
10
|
+
},
|
|
11
|
+
"scrollToTop": "Scroll to top",
|
|
12
|
+
"buttons": {
|
|
13
|
+
"close": "Close"
|
|
14
|
+
}
|
|
15
|
+
}
|
package/dev/src/main.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '../.nswow/app.scss'
|
|
2
|
+
|
|
3
|
+
import useConfig from '@/composables/config'
|
|
4
|
+
import { createApp } from 'vue'
|
|
5
|
+
import { initI18n } from './i18n'
|
|
6
|
+
|
|
7
|
+
import App from './App.vue'
|
|
8
|
+
import router from './router'
|
|
9
|
+
|
|
10
|
+
useConfig().then(async () => {
|
|
11
|
+
const awi18n = await initI18n()
|
|
12
|
+
const app = createApp(App)
|
|
13
|
+
app.use(awi18n)
|
|
14
|
+
app.use(router)
|
|
15
|
+
app.mount('#app')
|
|
16
|
+
})
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createRouter, createWebHistory } from 'vue-router'
|
|
2
|
+
import Tr from '@/i18n/translation'
|
|
3
|
+
import HomeView from '@/views/HomeView.vue'
|
|
4
|
+
import SearchView from '@/views/SearchView.vue'
|
|
5
|
+
import DownloadsView from '@/views/DownloadsView.vue'
|
|
6
|
+
import ArticleView from '@/views/ArticleView.vue'
|
|
7
|
+
import PageNotFound from '@/views/PageNotFound.vue'
|
|
8
|
+
|
|
9
|
+
const router = createRouter({
|
|
10
|
+
history: createWebHistory(import.meta.BASE_URL),
|
|
11
|
+
scrollBehavior() {
|
|
12
|
+
window.scrollTo(0, 0)
|
|
13
|
+
},
|
|
14
|
+
routes: [
|
|
15
|
+
{
|
|
16
|
+
path: '/:locale?',
|
|
17
|
+
name: 'home',
|
|
18
|
+
component: HomeView,
|
|
19
|
+
beforeEnter: Tr.routeMiddleware
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
path: '/:locale/search',
|
|
23
|
+
name: 'search',
|
|
24
|
+
component: SearchView,
|
|
25
|
+
beforeEnter: Tr.routeMiddleware
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
path: '/:locale/downloads',
|
|
29
|
+
name: 'downloads',
|
|
30
|
+
component: DownloadsView,
|
|
31
|
+
beforeEnter: Tr.routeMiddleware
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
path: '/:locale/404',
|
|
35
|
+
name: 'pageNotFound',
|
|
36
|
+
component: PageNotFound,
|
|
37
|
+
beforeEnter: Tr.routeMiddleware
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
path: '/:locale/:slug+',
|
|
41
|
+
component: ArticleView,
|
|
42
|
+
beforeEnter: Tr.routeMiddleware
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
export default router
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export {}
|
|
2
|
+
declare global {
|
|
3
|
+
export type NsWowSettings = {
|
|
4
|
+
languages: string[]
|
|
5
|
+
defaultLanguage: string
|
|
6
|
+
shortBreadcrumb: boolean
|
|
7
|
+
search: {
|
|
8
|
+
boldTheWord: boolean
|
|
9
|
+
}
|
|
10
|
+
categories: string[]
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface NsWowArticle {
|
|
14
|
+
uuid: string
|
|
15
|
+
name: string
|
|
16
|
+
translatedTitle: string
|
|
17
|
+
slug: string
|
|
18
|
+
index: boolean
|
|
19
|
+
seo_keywords: string[]
|
|
20
|
+
ignoreInSearch: boolean
|
|
21
|
+
excerpt: string
|
|
22
|
+
originalLanguageOfArticle: string
|
|
23
|
+
status: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface NsWowArticles {
|
|
27
|
+
[locale: string]: NsWowArticle[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type NsWowConfig = {
|
|
31
|
+
loaded: boolean
|
|
32
|
+
settings: NsWowSettings
|
|
33
|
+
articles: NsWowArticles
|
|
34
|
+
menus: NsWowMenus
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface NsWowMenu {
|
|
38
|
+
label: string
|
|
39
|
+
type: string
|
|
40
|
+
page?: string
|
|
41
|
+
url?: string
|
|
42
|
+
anchor?: string
|
|
43
|
+
submenuEntries?: NsWowMenu[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface NsWowMenus {
|
|
47
|
+
[locale: string]: {
|
|
48
|
+
[menu: string]: NsWowMenu[]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface NsWowResponseRouting {
|
|
53
|
+
version: string
|
|
54
|
+
pages: NsWowArticle[]
|
|
55
|
+
menu: {
|
|
56
|
+
[menu: string]: NsWowMenu[]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface NsWowDownload {
|
|
61
|
+
type: string
|
|
62
|
+
title: string
|
|
63
|
+
fileType: string
|
|
64
|
+
size: string
|
|
65
|
+
artifact: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type NsWowDownloads = {
|
|
69
|
+
version?: string
|
|
70
|
+
structure: NsWowDownload[]
|
|
71
|
+
annualReport?: NsWowDownload
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts an array or a string to a string representation with elements separated by a specified separator.
|
|
3
|
+
*
|
|
4
|
+
* @param {String|String[]} data - The array or string to be converted.
|
|
5
|
+
* @param {String} [separator='-'] - The separator to be used between elements. Defaults to '-' if not provided.
|
|
6
|
+
*
|
|
7
|
+
* @return {String} - The string representation of the input data with elements separated by the specified separator.
|
|
8
|
+
*/
|
|
9
|
+
function ArrayToString(data: string | any[], separator: string = '-'): string {
|
|
10
|
+
return Array.isArray(data) ? data.join(separator) : data
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { ArrayToString }
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, nextTick, computed, watch, onMounted, markRaw } from 'vue'
|
|
3
|
+
import { useRoute } from 'vue-router'
|
|
4
|
+
import useConfig from '@/composables/config'
|
|
5
|
+
import Autoload from '@/Autoload'
|
|
6
|
+
import PrevNext from '@/components/PrevNext.vue'
|
|
7
|
+
import { useRouter } from 'vue-router'
|
|
8
|
+
import { ArrayToString } from '@/utils/variables'
|
|
9
|
+
|
|
10
|
+
const config = await useConfig()
|
|
11
|
+
const router = useRouter()
|
|
12
|
+
const route = useRoute()
|
|
13
|
+
const articleContent = ref<HTMLDivElement | undefined>()
|
|
14
|
+
const output = ref<string>('')
|
|
15
|
+
const locale = computed<string>(() => {
|
|
16
|
+
return ArrayToString(route.params.locale)
|
|
17
|
+
})
|
|
18
|
+
const slug = computed<string>(() => {
|
|
19
|
+
return ArrayToString(route.params.slug)
|
|
20
|
+
})
|
|
21
|
+
async function getContent() {
|
|
22
|
+
const currentPage =
|
|
23
|
+
config.value.articles[locale.value] &&
|
|
24
|
+
config.value.articles[locale.value].find((i) => {
|
|
25
|
+
return i.slug === slug.value
|
|
26
|
+
})
|
|
27
|
+
let res = ''
|
|
28
|
+
if (currentPage) {
|
|
29
|
+
const file = `./html/${locale.value}/${currentPage.name}.html`
|
|
30
|
+
try {
|
|
31
|
+
const response = await fetch(file)
|
|
32
|
+
res = await response.text()
|
|
33
|
+
output.value = res
|
|
34
|
+
await nextTick(() => {
|
|
35
|
+
if (articleContent.value) {
|
|
36
|
+
Autoload.init(articleContent.value)
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
} catch (e) {
|
|
40
|
+
console.error(`"${file}" could not be loaded.`)
|
|
41
|
+
await router.push(`/${locale.value}/404`)
|
|
42
|
+
}
|
|
43
|
+
} else {
|
|
44
|
+
await router.push(`/${locale.value}/404`)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
watch(route, async () => await getContent())
|
|
49
|
+
onMounted(async () => {
|
|
50
|
+
await getContent()
|
|
51
|
+
})
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<template>
|
|
55
|
+
<article>
|
|
56
|
+
<transition name="fade">
|
|
57
|
+
<div v-if="output.length" ref="articleContent" class="srl-article-root" v-html="output" />
|
|
58
|
+
</transition>
|
|
59
|
+
<PrevNext />
|
|
60
|
+
</article>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<style scoped lang="scss">
|
|
64
|
+
@use 'nswow';
|
|
65
|
+
|
|
66
|
+
article {
|
|
67
|
+
padding-bottom: nswow.system-size-unit(50);
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
70
|
+
|
|
71
|
+
<style scoped lang="scss">
|
|
72
|
+
@use 'nswow';
|
|
73
|
+
|
|
74
|
+
.srl-article-root {
|
|
75
|
+
margin-bottom: nswow.system-size-unit(50);
|
|
76
|
+
}
|
|
77
|
+
</style>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { computed, ref, watch } from 'vue'
|
|
3
|
+
import { useRoute } from 'vue-router'
|
|
4
|
+
import { ArrayToString } from '@/utils/variables'
|
|
5
|
+
|
|
6
|
+
const route = useRoute()
|
|
7
|
+
const locale = computed(() => {
|
|
8
|
+
return ArrayToString(route.params.locale)
|
|
9
|
+
})
|
|
10
|
+
const downloadData = ref<NsWowDownloads>({ structure: [] })
|
|
11
|
+
|
|
12
|
+
async function getDownloads() {
|
|
13
|
+
const file = `./downloads/downloads_${locale.value}.json`
|
|
14
|
+
try {
|
|
15
|
+
const response = await fetch(file)
|
|
16
|
+
downloadData.value = await response.json()
|
|
17
|
+
} catch (e) {
|
|
18
|
+
console.error(`"${file}" could not be loaded.`)
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
watch(route, () => getDownloads())
|
|
23
|
+
getDownloads()
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<article class="srl-download">
|
|
28
|
+
<h1>Downloads</h1>
|
|
29
|
+
<h2>Annual Report</h2>
|
|
30
|
+
<div v-if="downloadData.annualReport">
|
|
31
|
+
<a target="_blank">{{ downloadData.annualReport?.title }}</a>
|
|
32
|
+
</div>
|
|
33
|
+
<h2>Downloads</h2>
|
|
34
|
+
<transition name="fade">
|
|
35
|
+
<ul v-if="downloadData.structure.length" class="srl-download__list">
|
|
36
|
+
<li v-for="(item, index) in downloadData?.structure" :key="index">
|
|
37
|
+
<a href="" target="_blank">
|
|
38
|
+
<svg
|
|
39
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
40
|
+
width="16"
|
|
41
|
+
height="16"
|
|
42
|
+
fill="currentColor"
|
|
43
|
+
class="bi bi-download"
|
|
44
|
+
viewBox="0 0 16 16"
|
|
45
|
+
>
|
|
46
|
+
<path
|
|
47
|
+
d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"
|
|
48
|
+
/>
|
|
49
|
+
<path
|
|
50
|
+
d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"
|
|
51
|
+
/>
|
|
52
|
+
</svg>
|
|
53
|
+
<div>
|
|
54
|
+
<span class="title">{{ item.title }}</span
|
|
55
|
+
><br />
|
|
56
|
+
<span>{{ item.size }}</span>
|
|
57
|
+
</div>
|
|
58
|
+
</a>
|
|
59
|
+
</li>
|
|
60
|
+
</ul>
|
|
61
|
+
</transition>
|
|
62
|
+
</article>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<style scoped lang="scss">
|
|
66
|
+
@use 'nswow';
|
|
67
|
+
|
|
68
|
+
.srl-download {
|
|
69
|
+
margin: 0 auto;
|
|
70
|
+
@include nswow.grid-container();
|
|
71
|
+
|
|
72
|
+
&__list {
|
|
73
|
+
list-style-type: none;
|
|
74
|
+
padding: 0 0 0 0;
|
|
75
|
+
|
|
76
|
+
li {
|
|
77
|
+
margin-bottom: nswow.system-size-unit(20);
|
|
78
|
+
|
|
79
|
+
a {
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: nswow.system-size-unit(10);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
import { ArrayToString } from '@/utils/variables'
|
|
4
|
+
import { useRoute } from 'vue-router'
|
|
5
|
+
|
|
6
|
+
const route = useRoute()
|
|
7
|
+
|
|
8
|
+
const locale = computed<string>(() => {
|
|
9
|
+
return ArrayToString(route.params.locale)
|
|
10
|
+
})
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div class="srl-main">
|
|
15
|
+
<h1>Welcome {{ locale }}</h1>
|
|
16
|
+
<h3>Dokumentation Frontend Toolkit für Komponenten als auch APP:</h3>
|
|
17
|
+
<p>
|
|
18
|
+
<a href="https://mmssolutionsio.github.io/mms-reporting-docs/docs/intro" target="_blank"
|
|
19
|
+
>Dokumentation</a
|
|
20
|
+
>
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<style scoped lang="scss">
|
|
26
|
+
@use 'nswow';
|
|
27
|
+
|
|
28
|
+
.srl-main {
|
|
29
|
+
padding: nswow.system-size-unit(100) 0;
|
|
30
|
+
margin-left: auto;
|
|
31
|
+
margin-right: auto;
|
|
32
|
+
min-height: 80vh;
|
|
33
|
+
@include nswow.grid-container();
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<div class="srl-notfound">
|
|
5
|
+
<div class="srl-notfound__inner">
|
|
6
|
+
<h1>404</h1>
|
|
7
|
+
<h2>{{ $t('page.notFound') }}</h2>
|
|
8
|
+
<svg
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
width="16"
|
|
11
|
+
height="16"
|
|
12
|
+
fill="currentColor"
|
|
13
|
+
class="bi bi-robot"
|
|
14
|
+
viewBox="0 0 16 16"
|
|
15
|
+
>
|
|
16
|
+
<path
|
|
17
|
+
d="M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5ZM3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.58 26.58 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.933.933 0 0 1-.765.935c-.845.147-2.34.346-4.235.346-1.895 0-3.39-.2-4.235-.346A.933.933 0 0 1 3 9.219V8.062Zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a24.767 24.767 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25.286 25.286 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135Z"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2V1.866ZM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5Z"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<style scoped lang="scss">
|
|
28
|
+
@use 'nswow';
|
|
29
|
+
|
|
30
|
+
.srl-notfound {
|
|
31
|
+
margin: 0 auto;
|
|
32
|
+
@include nswow.grid-container();
|
|
33
|
+
@include nswow.fonts-core-styles();
|
|
34
|
+
|
|
35
|
+
&__inner {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
min-height: 80vh;
|
|
41
|
+
|
|
42
|
+
svg {
|
|
43
|
+
height: 100px;
|
|
44
|
+
width: 100px;
|
|
45
|
+
margin-top: 2rem;
|
|
46
|
+
animation: spin 600ms linear 2;
|
|
47
|
+
|
|
48
|
+
@keyframes spin {
|
|
49
|
+
10%,
|
|
50
|
+
90% {
|
|
51
|
+
transform: translate3d(-1px, 0, 0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
20%,
|
|
55
|
+
80% {
|
|
56
|
+
transform: translate3d(2px, 0, 0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
30%,
|
|
60
|
+
50%,
|
|
61
|
+
70% {
|
|
62
|
+
transform: translate3d(-4px, 0, 0);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
40%,
|
|
66
|
+
60% {
|
|
67
|
+
transform: translate3d(4px, 0, 0);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { computed, ref, watch } from 'vue'
|
|
3
|
+
import { useRoute } from 'vue-router'
|
|
4
|
+
import useConfig from '@/composables/config'
|
|
5
|
+
import { ArrayToString } from '@/utils/variables'
|
|
6
|
+
|
|
7
|
+
type searchDataType = {
|
|
8
|
+
title: string
|
|
9
|
+
content: string
|
|
10
|
+
link: string
|
|
11
|
+
translatedTitle: string
|
|
12
|
+
firstParagraph: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const config = await useConfig()
|
|
16
|
+
const route = useRoute()
|
|
17
|
+
const isLoading = ref<boolean>(true)
|
|
18
|
+
const searchData = ref<searchDataType[]>([])
|
|
19
|
+
|
|
20
|
+
const locale = computed<string>(() => {
|
|
21
|
+
return ArrayToString(route.params.locale)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const searchValue = computed<string>(() => {
|
|
25
|
+
return route.query.searchValue ? ArrayToString(route.query.searchValue, ' ') : ''
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const articles = computed<NsWowArticle[]>(() => {
|
|
29
|
+
return config.value.articles[locale.value] ?? []
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
async function getSearchResult() {
|
|
33
|
+
isLoading.value = true
|
|
34
|
+
searchData.value = []
|
|
35
|
+
const routesArray: {
|
|
36
|
+
uuid: string
|
|
37
|
+
slug: string
|
|
38
|
+
name: string
|
|
39
|
+
translatedTitle: string
|
|
40
|
+
}[] = []
|
|
41
|
+
|
|
42
|
+
articles.value
|
|
43
|
+
.filter((item) => {
|
|
44
|
+
return !item.ignoreInSearch
|
|
45
|
+
})
|
|
46
|
+
.map((value) => {
|
|
47
|
+
routesArray.push({
|
|
48
|
+
uuid: value.uuid,
|
|
49
|
+
slug: value.slug,
|
|
50
|
+
name: value.name,
|
|
51
|
+
translatedTitle: value.translatedTitle
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
if (routesArray.length) {
|
|
56
|
+
routesArray.map(async (value) => {
|
|
57
|
+
const file = `./html/${locale.value}/${value.name}.html`
|
|
58
|
+
try {
|
|
59
|
+
const response = await fetch(file)
|
|
60
|
+
const data = await response.text()
|
|
61
|
+
if (data.toLowerCase().includes(searchValue.value.toLowerCase())) {
|
|
62
|
+
const item: searchDataType = {
|
|
63
|
+
title: `${locale.value}/${value.slug}`,
|
|
64
|
+
content: data,
|
|
65
|
+
link: `/${locale.value}/${value.slug}`,
|
|
66
|
+
translatedTitle: value.translatedTitle,
|
|
67
|
+
firstParagraph: ''
|
|
68
|
+
}
|
|
69
|
+
const doc = new DOMParser().parseFromString(data, 'text/html')
|
|
70
|
+
const paragraph = doc.querySelector('p')
|
|
71
|
+
if (paragraph) {
|
|
72
|
+
item.firstParagraph = paragraph.textContent ?? ''
|
|
73
|
+
}
|
|
74
|
+
searchData.value.push(item)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
searchData.value.sort((a, b) => {
|
|
78
|
+
return a.title.localeCompare(b.title)
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
isLoading.value = false
|
|
82
|
+
} catch (e) {
|
|
83
|
+
console.error(`"${file}" could not be loaded.`)
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
watch(route, () => getSearchResult())
|
|
90
|
+
getSearchResult()
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<template>
|
|
94
|
+
<article class="srl-article">
|
|
95
|
+
<div class="srl-article-container">
|
|
96
|
+
<h1>{{ $t('search.title') }}</h1>
|
|
97
|
+
|
|
98
|
+
<div v-if="isLoading">Loading...</div>
|
|
99
|
+
<transition name="fade">
|
|
100
|
+
<h2 v-if="!isLoading">
|
|
101
|
+
{{ $t('search.for', { search: searchValue, count: searchData.length }) }}
|
|
102
|
+
</h2>
|
|
103
|
+
</transition>
|
|
104
|
+
|
|
105
|
+
<transition name="fade">
|
|
106
|
+
<div v-if="!isLoading && searchValue">
|
|
107
|
+
<div v-for="(dataItem, index) in searchData" :key="index">
|
|
108
|
+
<h5>{{ dataItem.translatedTitle }}</h5>
|
|
109
|
+
<p>{{ dataItem.firstParagraph }}</p>
|
|
110
|
+
<router-link :to="{ path: dataItem.link }">{{ dataItem.title }}</router-link>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</transition>
|
|
114
|
+
</div>
|
|
115
|
+
</article>
|
|
116
|
+
</template>
|
|
117
|
+
|
|
118
|
+
<style scoped lang="scss">
|
|
119
|
+
@use 'nswow';
|
|
120
|
+
|
|
121
|
+
.srl-article {
|
|
122
|
+
margin: 0 auto;
|
|
123
|
+
@include nswow.grid-container();
|
|
124
|
+
@include nswow.typography-core-styles();
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
3
|
+
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
|
|
4
|
+
"exclude": ["src/**/__tests__/*"],
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"composite": true,
|
|
7
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
8
|
+
|
|
9
|
+
"baseUrl": ".",
|
|
10
|
+
"paths": {
|
|
11
|
+
"@/*": ["./src/*"],
|
|
12
|
+
"nswow": ["./nswow"],
|
|
13
|
+
"nswow/*": ["./nswow/*"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|