@dargmuesli/nuxt-vio 1.5.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/css/tailwind.css +47 -0
- package/nuxt.config.ts +97 -2
- package/package.json +15 -4
@@ -0,0 +1,47 @@
|
|
1
|
+
@tailwind base;
|
2
|
+
@tailwind components;
|
3
|
+
@tailwind utilities;
|
4
|
+
|
5
|
+
@layer base {
|
6
|
+
a:focus {
|
7
|
+
@apply outline-none ring;
|
8
|
+
}
|
9
|
+
|
10
|
+
button:focus {
|
11
|
+
@apply outline-none ring;
|
12
|
+
}
|
13
|
+
|
14
|
+
thead {
|
15
|
+
@apply sticky top-0 z-10 vio-bg-darken;
|
16
|
+
}
|
17
|
+
|
18
|
+
tbody {
|
19
|
+
@apply divide-y vio-divide-darken;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
@layer utilities {
|
24
|
+
.vio-prose {
|
25
|
+
@apply m-auto prose prose-sm sm:prose-base lg:prose-lg xl:prose-xl; /* 2xl:prose-2xl */
|
26
|
+
}
|
27
|
+
|
28
|
+
.vio-prose-scheme {
|
29
|
+
@apply vio-prose dark:prose-invert;
|
30
|
+
}
|
31
|
+
|
32
|
+
.vio-prose-fullwidth {
|
33
|
+
@apply vio-prose max-w-full sm:max-w-full md:max-w-full xl:max-w-full 2xl:max-w-full;
|
34
|
+
}
|
35
|
+
|
36
|
+
.vio-divide-darken {
|
37
|
+
@apply divide-background-brighten dark:divide-background-darken;
|
38
|
+
}
|
39
|
+
|
40
|
+
.vio-bg-darken {
|
41
|
+
@apply bg-background-brighten dark:bg-background-darken;
|
42
|
+
}
|
43
|
+
|
44
|
+
.vio-border-darken {
|
45
|
+
@apply border-background-brighten dark:border-background-darken;
|
46
|
+
}
|
47
|
+
}
|
package/nuxt.config.ts
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { dirname, join } from 'node:path'
|
2
|
+
import { fileURLToPath } from 'node:url'
|
3
|
+
|
4
|
+
import { LOCALES, SITE_NAME } from './utils/constants'
|
5
|
+
|
6
|
+
const currentDir = dirname(fileURLToPath(import.meta.url))
|
7
|
+
|
8
|
+
const BASE_URL =
|
9
|
+
'https://' +
|
10
|
+
(process.env.NUXT_PUBLIC_STACK_DOMAIN ||
|
11
|
+
`${process.env.HOST || 'localhost'}:3000`)
|
2
12
|
|
3
13
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
4
14
|
export default defineNuxtConfig({
|
@@ -11,10 +21,25 @@ export default defineNuxtConfig({
|
|
11
21
|
title: SITE_NAME, // fallback data to prevent invalid html at generation
|
12
22
|
},
|
13
23
|
},
|
14
|
-
|
24
|
+
extends: ['nuxt-seo-kit'],
|
25
|
+
modules: [
|
26
|
+
'@dargmuesli/nuxt-cookie-control',
|
27
|
+
'@nuxtjs/html-validator',
|
28
|
+
'@nuxtjs/i18n',
|
29
|
+
'@nuxtjs/tailwindcss',
|
30
|
+
],
|
15
31
|
nitro: {
|
16
32
|
compressPublicAssets: true,
|
17
33
|
},
|
34
|
+
runtimeConfig: {
|
35
|
+
public: {
|
36
|
+
googleAnalyticsId: '', // set via environment variable `NUXT_PUBLIC_GOOGLE_ANALYTICS_ID` only
|
37
|
+
...{
|
38
|
+
siteName: SITE_NAME,
|
39
|
+
siteUrl: BASE_URL,
|
40
|
+
},
|
41
|
+
},
|
42
|
+
},
|
18
43
|
typescript: {
|
19
44
|
shim: false,
|
20
45
|
strict: true,
|
@@ -24,4 +49,74 @@ export default defineNuxtConfig({
|
|
24
49
|
},
|
25
50
|
},
|
26
51
|
},
|
52
|
+
|
53
|
+
// modules
|
54
|
+
cookieControl: {
|
55
|
+
cookies: {
|
56
|
+
necessary: [
|
57
|
+
{
|
58
|
+
description: {
|
59
|
+
de: 'Dieser Cookie von uns speichert die Einstellungen, die in diesem Dialog getroffen werden.',
|
60
|
+
en: 'This cookie of ours stores the settings made in this dialog.',
|
61
|
+
},
|
62
|
+
id: 'c',
|
63
|
+
name: {
|
64
|
+
de: 'Cookie-Präferenzen',
|
65
|
+
en: 'Cookie Preferences',
|
66
|
+
},
|
67
|
+
targetCookieIds: ['ncc_c', 'ncc_e'],
|
68
|
+
},
|
69
|
+
{
|
70
|
+
description: {
|
71
|
+
de: 'Dieser Cookie von uns speichert die Sprache, in der diese Webseite angezeigt wird.',
|
72
|
+
en: "This cookie of ours stores the language that's used to display this website.",
|
73
|
+
},
|
74
|
+
id: 'l',
|
75
|
+
name: {
|
76
|
+
de: 'Sprache',
|
77
|
+
en: 'Language',
|
78
|
+
},
|
79
|
+
targetCookieIds: ['i18n_redirected'],
|
80
|
+
},
|
81
|
+
],
|
82
|
+
optional: [
|
83
|
+
{
|
84
|
+
description: {
|
85
|
+
de: 'Die Cookies vom Drittanbieter Google ermöglichen die Analyse von Nutzerverhalten. Diese Analyse hilft uns unsere Dienste zu verbessern, indem wir verstehen, wie diese Webseite genutzt wird.',
|
86
|
+
en: 'The third-party cookies by Google enable the analysis of user behavior. This analysis helps us to improve our services by understanding how this website is used.',
|
87
|
+
},
|
88
|
+
id: 'ga',
|
89
|
+
links: {
|
90
|
+
'https://policies.google.com/privacy': 'Google Privacy Policy',
|
91
|
+
'https://policies.google.com/terms': 'Google Terms of Service',
|
92
|
+
},
|
93
|
+
name: 'Analytics',
|
94
|
+
targetCookieIds: ['_ga', '_ga_K4R41W62BR'],
|
95
|
+
},
|
96
|
+
],
|
97
|
+
},
|
98
|
+
locales: ['en', 'de'],
|
99
|
+
},
|
100
|
+
htmlValidator: {
|
101
|
+
// failOnError: true,
|
102
|
+
logLevel: 'warning',
|
103
|
+
},
|
104
|
+
i18n: {
|
105
|
+
baseUrl: BASE_URL,
|
106
|
+
defaultLocale: 'en', // Must be set for the default prefix_except_default prefix strategy.
|
107
|
+
detectBrowserLanguage: false, // Enabling browser language detection does not generate (!) other languages than the default one.
|
108
|
+
locales: LOCALES,
|
109
|
+
vueI18n: {
|
110
|
+
fallbackWarn: false, // TODO: don't show incorrect warnings (https://github.com/intlify/vue-i18n-next/issues/776)
|
111
|
+
},
|
112
|
+
},
|
113
|
+
linkChecker: {
|
114
|
+
failOn404: false, // TODO: enable (https://github.com/harlan-zw/nuxt-seo-kit/issues/4#issuecomment-1434522124)
|
115
|
+
},
|
116
|
+
site: {
|
117
|
+
splash: false,
|
118
|
+
},
|
119
|
+
tailwindcss: {
|
120
|
+
cssPath: join(currentDir, './assets/css/tailwind.css'),
|
121
|
+
},
|
27
122
|
})
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.6.1",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -10,6 +10,7 @@
|
|
10
10
|
},
|
11
11
|
"packageManager": "pnpm@8.2.0",
|
12
12
|
"files": [
|
13
|
+
"assets",
|
13
14
|
"components",
|
14
15
|
"composables",
|
15
16
|
"layouts",
|
@@ -25,14 +26,19 @@
|
|
25
26
|
"generate": "nuxi generate .playground",
|
26
27
|
"preview": "nuxi preview .playground",
|
27
28
|
"prepare": "pnpm husky install && pnpm nuxt prepare .playground",
|
28
|
-
"lint": "
|
29
|
-
"lint:
|
29
|
+
"lint": "pnpm lint:js && pnpm lint:ts && pnpm lint:style",
|
30
|
+
"lint:js": "eslint --cache --ext .js,.ts,.vue --ignore-path .gitignore .",
|
31
|
+
"lint:staged": "pnpm lint-staged",
|
32
|
+
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",
|
33
|
+
"lint:ts": "pnpm nuxt typecheck"
|
30
34
|
},
|
31
35
|
"dependencies": {
|
32
36
|
"@dargmuesli/nuxt-cookie-control": "5.4.0",
|
37
|
+
"@nuxtjs/html-validator": "1.2.4",
|
33
38
|
"@nuxtjs/i18n": "8.0.0-beta.10",
|
34
39
|
"@nuxtjs/tailwindcss": "6.6.5",
|
35
40
|
"@tailwindcss/typography": "0.5.9",
|
41
|
+
"nuxt-seo-kit": "1.3.6",
|
36
42
|
"vue-gtag": "2.0.1"
|
37
43
|
},
|
38
44
|
"devDependencies": {
|
@@ -49,6 +55,11 @@
|
|
49
55
|
"lint-staged": "13.2.1",
|
50
56
|
"nuxt": "3.4.0",
|
51
57
|
"prettier": "2.8.7",
|
52
|
-
"
|
58
|
+
"stylelint": "15.4.0",
|
59
|
+
"stylelint-config-recommended-vue": "1.4.0",
|
60
|
+
"stylelint-config-standard": "32.0.0",
|
61
|
+
"stylelint-no-unsupported-browser-features": "6.1.0",
|
62
|
+
"typescript": "5.0.4",
|
63
|
+
"vue-tsc": "1.2.0"
|
53
64
|
}
|
54
65
|
}
|