@dargmuesli/nuxt-vio 2.0.1 → 3.0.0-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/app.config.ts +83 -40
- package/components/vio/_/VioApp.vue +92 -0
- package/components/{VioError.vue → vio/_/VioError.vue} +1 -1
- package/components/{VioLink.vue → vio/_/VioLink.vue} +2 -2
- package/components/vio/button/VioButtonColored.vue +52 -0
- package/components/vio/card/VioCard.vue +19 -0
- package/components/vio/card/state/VioCardState.vue +20 -0
- package/components/vio/card/state/VioCardStateAlert.vue +14 -0
- package/components/vio/form/VioForm.vue +84 -0
- package/components/vio/form/VioFormCheckbox.vue +27 -0
- package/components/vio/form/input/VioFormInput.vue +192 -0
- package/components/vio/form/input/VioFormInputIconWrapper.vue +7 -0
- package/components/vio/form/input/VioFormInputUrl.vue +54 -0
- package/components/vio/form/input/state/VioFormInputState.vue +5 -0
- package/components/vio/form/input/state/VioFormInputStateError.vue +32 -0
- package/components/vio/form/input/state/VioFormInputStateInfo.vue +32 -0
- package/components/vio/icon/IconArrowRight.vue +31 -0
- package/components/vio/icon/IconCalendar.vue +31 -0
- package/components/vio/icon/IconChatOutline.vue +27 -0
- package/components/vio/icon/IconChatSolid.vue +26 -0
- package/components/vio/icon/IconCheckCircle.vue +29 -0
- package/components/vio/icon/IconContainer.vue +15 -0
- package/components/vio/icon/IconDownload.vue +31 -0
- package/components/vio/icon/IconExclamationCircle.vue +29 -0
- package/components/vio/icon/IconHome.vue +31 -0
- package/components/vio/icon/IconHourglass.vue +32 -0
- package/components/vio/icon/IconLightbulb.vue +27 -0
- package/components/vio/icon/IconLogo.vue +17 -0
- package/components/vio/icon/IconMixcloud.vue +23 -0
- package/components/vio/icon/IconMusic.vue +27 -0
- package/components/vio/icon/IconPlay.vue +25 -0
- package/components/vio/icon/IconShare.vue +27 -0
- package/components/{VioLayout.vue → vio/layout/VioLayout.vue} +1 -1
- package/components/vio/layout/VioLayoutBreadcrumbs.vue +83 -0
- package/components/vio/layout/VioLayoutFooter.vue +40 -0
- package/components/vio/layout/VioLayoutFooterCategory.vue +17 -0
- package/components/vio/layout/VioLayoutHeader.vue +98 -0
- package/components/vio/layout/VioLayoutSpanList.vue +20 -0
- package/components/vio/loader/indicator/VioLoaderIndicator.vue +14 -0
- package/components/vio/loader/indicator/VioLoaderIndicatorPing.vue +12 -0
- package/components/vio/loader/indicator/VioLoaderIndicatorSpinner.vue +24 -0
- package/components/{VioLegalNotice.vue → vio/page/VioPageLegalNotice.vue} +10 -8
- package/components/{VioPrivacyPolicy.vue → vio/page/VioPagePrivacyPolicy.vue} +19 -12
- package/composables/useAppLayout.ts +12 -18
- package/composables/useDateTime.ts +17 -0
- package/composables/useFavicons.ts +5 -33
- package/composables/useFireError.ts +17 -0
- package/composables/useGetServiceHref.ts +21 -0
- package/composables/useHeadDefault.ts +21 -0
- package/composables/usePolyfills.ts +23 -0
- package/composables/useStrapiFetch.ts +10 -0
- package/error.vue +5 -2
- package/locales/de.json +7 -1
- package/locales/en.json +7 -1
- package/nuxt.config.ts +56 -10
- package/package.json +37 -25
- package/pages/legal-notice.vue +1 -1
- package/pages/privacy-policy.vue +1 -1
- package/plugins/dayjs.ts +34 -0
- package/plugins/gtag.client.ts +3 -0
- package/plugins/i18n.ts +5 -0
- package/plugins/marked.ts +9 -0
- package/server/middleware/headers.ts +41 -10
- package/server/tsconfig.json +1 -1
- package/server/utils/util.ts +2 -0
- package/store/auth.ts +32 -0
- package/tailwind.config.ts +131 -10
- package/types/api.d.ts +9 -0
- package/types/fetch.d.ts +8 -0
- package/types/modules/gql.d.ts +6 -0
- package/types/modules/graphql.d.ts +6 -0
- package/utils/constants.ts +10 -1
- package/utils/form.ts +19 -0
- package/utils/networking.ts +117 -0
- package/utils/text.ts +20 -0
- package/LICENSE +0 -674
- package/components/VioApp.vue +0 -59
- /package/components/{VioButton.vue → vio/button/VioButton.vue} +0 -0
- /package/components/{VioHr.vue → vio/layout/VioLayoutHr.vue} +0 -0
package/components/VioApp.vue
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div :data-is-loading="isLoading" data-testid="is-loading">
|
3
|
-
<NuxtLayout>
|
4
|
-
<!-- `NuxtLayout` can't have mulitple child nodes (https://github.com/nuxt/nuxt/issues/21759) -->
|
5
|
-
<div>
|
6
|
-
<NuxtPage />
|
7
|
-
<CookieControl :locale="locale as Locale" />
|
8
|
-
</div>
|
9
|
-
</NuxtLayout>
|
10
|
-
</div>
|
11
|
-
</template>
|
12
|
-
|
13
|
-
<script setup lang="ts">
|
14
|
-
import { Locale } from '@dargmuesli/nuxt-cookie-control/dist/runtime/types'
|
15
|
-
|
16
|
-
export interface Props {
|
17
|
-
siteDescription: string
|
18
|
-
ogImageAlt: string
|
19
|
-
ogImageComponent?: string
|
20
|
-
}
|
21
|
-
const props = withDefaults(defineProps<Props>(), {
|
22
|
-
ogImageComponent: undefined,
|
23
|
-
})
|
24
|
-
|
25
|
-
const { locale } = useI18n()
|
26
|
-
const cookieControl = useCookieControl()
|
27
|
-
|
28
|
-
const { loadingIds, indicateLoadingDone } = useLoadingDoneIndicator('app')
|
29
|
-
|
30
|
-
// computations
|
31
|
-
const isLoading = computed(() => !!loadingIds.value.length)
|
32
|
-
|
33
|
-
// lifecycle
|
34
|
-
onMounted(() => indicateLoadingDone())
|
35
|
-
watch(
|
36
|
-
() => cookieControl.cookiesEnabledIds.value,
|
37
|
-
(current, previous) => {
|
38
|
-
if (
|
39
|
-
(!previous?.includes('ga') && current?.includes('ga')) ||
|
40
|
-
(previous?.includes('ga') && !current?.includes('ga'))
|
41
|
-
) {
|
42
|
-
window.location.reload()
|
43
|
-
}
|
44
|
-
},
|
45
|
-
{ deep: true },
|
46
|
-
)
|
47
|
-
|
48
|
-
// initialization
|
49
|
-
updateSiteConfig({
|
50
|
-
description: props.siteDescription,
|
51
|
-
})
|
52
|
-
defineOgImage({
|
53
|
-
alt: props.ogImageAlt,
|
54
|
-
component: props.ogImageComponent,
|
55
|
-
description: props.siteDescription,
|
56
|
-
})
|
57
|
-
useAppLayout()
|
58
|
-
useFavicons()
|
59
|
-
</script>
|
File without changes
|
File without changes
|