@dargmuesli/nuxt-vio 3.0.0-beta.1 → 3.0.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{_ → vio/_}/VioApp.vue +8 -3
- package/components/{_ → vio/_}/VioError.vue +1 -1
- package/components/{layout → vio/layout}/VioLayout.vue +1 -1
- package/error.vue +2 -0
- package/package.json +1 -2
- package/plugins/dayjs.ts +0 -12
- package/tailwind.config.ts +0 -2
- package/composables/useHeadLayout.ts +0 -67
- /package/components/{_ → vio/_}/VioLink.vue +0 -0
- /package/components/{button → vio/button}/VioButton.vue +0 -0
- /package/components/{button → vio/button}/VioButtonColored.vue +0 -0
- /package/components/{card → vio/card}/VioCard.vue +0 -0
- /package/components/{card → vio/card}/state/VioCardState.vue +0 -0
- /package/components/{card → vio/card}/state/VioCardStateAlert.vue +0 -0
- /package/components/{form → vio/form}/VioForm.vue +0 -0
- /package/components/{form → vio/form}/VioFormCheckbox.vue +0 -0
- /package/components/{form → vio/form}/input/VioFormInput.vue +0 -0
- /package/components/{form → vio/form}/input/VioFormInputIconWrapper.vue +0 -0
- /package/components/{form → vio/form}/input/VioFormInputUrl.vue +0 -0
- /package/components/{form → vio/form}/input/state/VioFormInputState.vue +0 -0
- /package/components/{form → vio/form}/input/state/VioFormInputStateError.vue +0 -0
- /package/components/{form → vio/form}/input/state/VioFormInputStateInfo.vue +0 -0
- /package/components/{icon → vio/icon}/IconArrowRight.vue +0 -0
- /package/components/{icon → vio/icon}/IconCalendar.vue +0 -0
- /package/components/{icon → vio/icon}/IconChatOutline.vue +0 -0
- /package/components/{icon → vio/icon}/IconChatSolid.vue +0 -0
- /package/components/{icon → vio/icon}/IconCheckCircle.vue +0 -0
- /package/components/{icon → vio/icon}/IconContainer.vue +0 -0
- /package/components/{icon → vio/icon}/IconDownload.vue +0 -0
- /package/components/{icon → vio/icon}/IconExclamationCircle.vue +0 -0
- /package/components/{icon → vio/icon}/IconHome.vue +0 -0
- /package/components/{icon → vio/icon}/IconHourglass.vue +0 -0
- /package/components/{icon → vio/icon}/IconLightbulb.vue +0 -0
- /package/components/{icon → vio/icon}/IconLogo.vue +0 -0
- /package/components/{icon → vio/icon}/IconMixcloud.vue +0 -0
- /package/components/{icon → vio/icon}/IconMusic.vue +0 -0
- /package/components/{icon → vio/icon}/IconPlay.vue +0 -0
- /package/components/{icon → vio/icon}/IconShare.vue +0 -0
- /package/components/{layout → vio/layout}/VioLayoutBreadcrumbs.vue +0 -0
- /package/components/{layout → vio/layout}/VioLayoutFooter.vue +0 -0
- /package/components/{layout → vio/layout}/VioLayoutFooterCategory.vue +0 -0
- /package/components/{layout → vio/layout}/VioLayoutHeader.vue +0 -0
- /package/components/{layout → vio/layout}/VioLayoutHr.vue +0 -0
- /package/components/{layout → vio/layout}/VioLayoutSpanList.vue +0 -0
- /package/components/{loader → vio/loader}/indicator/VioLoaderIndicator.vue +0 -0
- /package/components/{loader → vio/loader}/indicator/VioLoaderIndicatorPing.vue +0 -0
- /package/components/{loader → vio/loader}/indicator/VioLoaderIndicatorSpinner.vue +0 -0
- /package/components/{page → vio/page}/VioPageLegalNotice.vue +0 -0
- /package/components/{page → vio/page}/VioPagePrivacyPolicy.vue +0 -0
@@ -4,14 +4,15 @@
|
|
4
4
|
<!-- `NuxtLayout` can't have mulitple child nodes (https://github.com/nuxt/nuxt/issues/21759) -->
|
5
5
|
<div>
|
6
6
|
<NuxtPage />
|
7
|
-
<CookieControl :locale="locale
|
7
|
+
<CookieControl :locale="locale" />
|
8
8
|
</div>
|
9
9
|
</NuxtLayout>
|
10
10
|
</div>
|
11
11
|
</template>
|
12
12
|
|
13
13
|
<script setup lang="ts">
|
14
|
-
import { Locale } from '@dargmuesli/nuxt-cookie-control/dist/runtime/types'
|
14
|
+
import type { Locale } from '@dargmuesli/nuxt-cookie-control/dist/runtime/types'
|
15
|
+
import type { WritableComputedRef } from 'vue'
|
15
16
|
|
16
17
|
export interface Props {
|
17
18
|
ogImageAlt: string
|
@@ -25,11 +26,15 @@ const ogImageAltProp = toRef(() => props.ogImageAlt)
|
|
25
26
|
const ogImageComponentProp = toRef(() => props.ogImageComponent)
|
26
27
|
const siteDescriptionProp = toRef(() => props.siteDescription)
|
27
28
|
|
28
|
-
const {
|
29
|
+
const { $dayjs } = useNuxtApp()
|
30
|
+
const i18n = useI18n()
|
29
31
|
const cookieControl = useCookieControl()
|
30
32
|
|
31
33
|
const { loadingIds, indicateLoadingDone } = useLoadingDoneIndicator('app')
|
32
34
|
|
35
|
+
// data
|
36
|
+
const locale = i18n.locale as WritableComputedRef<Locale>
|
37
|
+
|
33
38
|
// methods
|
34
39
|
const init = () => {
|
35
40
|
if (process.client) {
|
package/error.vue
CHANGED
@@ -18,6 +18,8 @@ export interface Props {
|
|
18
18
|
const props = withDefaults(defineProps<Props>(), {})
|
19
19
|
const errorProp = toRef(() => props.error)
|
20
20
|
|
21
|
+
// initialization
|
22
|
+
useAppLayout()
|
21
23
|
useServerHeadSafe({
|
22
24
|
title: `${errorProp.value.statusCode} - ${errorProp.value.message}`,
|
23
25
|
})
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.2",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -49,7 +49,6 @@
|
|
49
49
|
"@nuxtjs/tailwindcss": "6.8.0",
|
50
50
|
"@pinia/nuxt": "0.4.11",
|
51
51
|
"@tailwindcss/forms": "0.5.4",
|
52
|
-
"@tailwindcss/line-clamp": "0.4.4",
|
53
52
|
"@tailwindcss/typography": "0.5.9",
|
54
53
|
"@urql/core": "4.1.1",
|
55
54
|
"@urql/devtools": "2.0.3",
|
package/plugins/dayjs.ts
CHANGED
@@ -26,18 +26,6 @@ export default defineNuxtPlugin((_nuxtApp) => {
|
|
26
26
|
}
|
27
27
|
})
|
28
28
|
|
29
|
-
// declare module '#app' {
|
30
|
-
// interface NuxtApp {
|
31
|
-
// $dayjs: DayjsFn
|
32
|
-
// }
|
33
|
-
// }
|
34
|
-
|
35
|
-
// declare module 'nuxt/dist/app/nuxt' {
|
36
|
-
// interface NuxtApp {
|
37
|
-
// $dayjs: DayjsFn
|
38
|
-
// }
|
39
|
-
// }
|
40
|
-
|
41
29
|
/*
|
42
30
|
[1]
|
43
31
|
https://github.com/nuxt/framework/issues/7534#issuecomment-1248596609
|
package/tailwind.config.ts
CHANGED
@@ -2,7 +2,6 @@ import { Config } from 'tailwindcss'
|
|
2
2
|
import colors from 'tailwindcss/colors'
|
3
3
|
import { PluginAPI } from 'tailwindcss/types/config'
|
4
4
|
import formsPlugin from '@tailwindcss/forms'
|
5
|
-
import lineClampPlugin from '@tailwindcss/line-clamp'
|
6
5
|
import typographyPlugin from '@tailwindcss/typography'
|
7
6
|
|
8
7
|
const heading = (theme: PluginAPI['theme']): Record<string, string> => ({
|
@@ -54,7 +53,6 @@ export default {
|
|
54
53
|
darkMode: 'class',
|
55
54
|
plugins: [
|
56
55
|
formsPlugin,
|
57
|
-
lineClampPlugin,
|
58
56
|
typographyPlugin,
|
59
57
|
({ addBase, addComponents, addUtilities, theme }: PluginAPI) => {
|
60
58
|
addBase({
|
@@ -1,67 +0,0 @@
|
|
1
|
-
export const useHeadLayout = () => {
|
2
|
-
const head = useLocaleHead({ addSeoAttributes: true })
|
3
|
-
|
4
|
-
useServerHeadSafe(head.value)
|
5
|
-
useServerHeadSafe({
|
6
|
-
bodyAttrs: {
|
7
|
-
class:
|
8
|
-
'bg-background-bright dark:bg-background-dark font-sans text-text-dark dark:text-text-bright',
|
9
|
-
},
|
10
|
-
// link: [
|
11
|
-
// {
|
12
|
-
// href: '/assets/static/favicon/apple-touch-icon.png?v=eEYRGn5b9R',
|
13
|
-
// rel: 'apple-touch-icon',
|
14
|
-
// sizes: '180x180',
|
15
|
-
// },
|
16
|
-
// {
|
17
|
-
// href: '/assets/static/favicon/favicon-16x16.png?v=eEYRGn5b9R',
|
18
|
-
// rel: 'icon',
|
19
|
-
// sizes: '16x16',
|
20
|
-
// type: 'image/png',
|
21
|
-
// },
|
22
|
-
// {
|
23
|
-
// href: '/assets/static/favicon/favicon-32x32.png?v=eEYRGn5b9R',
|
24
|
-
// rel: 'icon',
|
25
|
-
// sizes: '32x32',
|
26
|
-
// type: 'image/png',
|
27
|
-
// },
|
28
|
-
// {
|
29
|
-
// href: '/favicon.ico?v=eEYRGn5b9R',
|
30
|
-
// rel: 'icon',
|
31
|
-
// type: 'image/x-icon',
|
32
|
-
// },
|
33
|
-
// {
|
34
|
-
// href: '/assets/static/favicon/site.webmanifest?v=eEYRGn5b9R',
|
35
|
-
// rel: 'manifest',
|
36
|
-
// },
|
37
|
-
// {
|
38
|
-
// color: '#202020',
|
39
|
-
// href: '/assets/static/favicon/safari-pinned-tab.svg?v=eEYRGn5b9R',
|
40
|
-
// rel: 'mask-icon',
|
41
|
-
// },
|
42
|
-
// {
|
43
|
-
// href: '/favicon.ico?v=eEYRGn5b9R',
|
44
|
-
// rel: 'shortcut icon',
|
45
|
-
// },
|
46
|
-
// ],
|
47
|
-
// meta: [
|
48
|
-
// {
|
49
|
-
// content: '/assets/static/favicon/browserconfig.xml?v=eEYRGn5b9R',
|
50
|
-
// name: 'msapplication-config',
|
51
|
-
// },
|
52
|
-
// {
|
53
|
-
// content: '#202020',
|
54
|
-
// name: 'msapplication-TileColor',
|
55
|
-
// },
|
56
|
-
// {
|
57
|
-
// content: '#202020',
|
58
|
-
// name: 'theme-color',
|
59
|
-
// },
|
60
|
-
// ],
|
61
|
-
// titleTemplate: (titleChunk?: string) => {
|
62
|
-
// return titleChunk && titleChunk !== title
|
63
|
-
// ? `${titleChunk} · ${title}`
|
64
|
-
// : title
|
65
|
-
// },
|
66
|
-
})
|
67
|
-
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|