@dargmuesli/nuxt-vio 13.2.0 → 13.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.config/lint.js +2 -5
- package/composables/useAppLayout.ts +2 -1
- package/composables/useHeadDefault.ts +6 -7
- package/nuxt.config.ts +1 -0
- package/package.json +21 -21
package/.config/lint.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
// @ts-check
|
2
2
|
|
3
|
-
import { fixupConfigRules } from '@eslint/compat'
|
4
3
|
// @ts-ignore
|
5
4
|
import vueI18n from '@intlify/eslint-plugin-vue-i18n'
|
6
5
|
import eslintPluginCompat from 'eslint-plugin-compat'
|
@@ -14,15 +13,13 @@ const JITI = jiti(moduleFileUrl.pathname)
|
|
14
13
|
const POLYFILLS = JITI('../utils/constants.ts').POLYFILLS
|
15
14
|
|
16
15
|
const vueI18nConfiguration = vueI18n.configs['flat/recommended']
|
17
|
-
const compatConfiguration =
|
18
|
-
eslintPluginCompat.configs['flat/recommended'],
|
19
|
-
)
|
16
|
+
const compatConfiguration = eslintPluginCompat.configs['flat/recommended']
|
20
17
|
const ymlConfiguration = eslintPluginYml.configs['flat/recommended']
|
21
18
|
const prettierConfiguration = eslintPluginPrettierRecommended
|
22
19
|
|
23
20
|
export const VIO_ESLINT_CONFIG = [
|
24
21
|
...vueI18nConfiguration,
|
25
|
-
|
22
|
+
compatConfiguration,
|
26
23
|
...ymlConfiguration,
|
27
24
|
prettierConfiguration, // must be last
|
28
25
|
|
@@ -11,7 +11,8 @@ export const useAppLayout = () => {
|
|
11
11
|
})
|
12
12
|
|
13
13
|
// TODO: convert to `useServerHeadSafe` (https://github.com/unjs/unhead/issues/221)
|
14
|
-
|
14
|
+
// adding `Server` leads incorrect title template on hydration
|
15
|
+
useSeoMeta({
|
15
16
|
titleTemplate: (title) =>
|
16
17
|
TITLE_TEMPLATE({
|
17
18
|
siteName: siteConfig.name,
|
@@ -4,14 +4,13 @@ export const useHeadDefault = (input: UseSeoMetaInput) => {
|
|
4
4
|
const siteConfig = useSiteConfig()
|
5
5
|
|
6
6
|
const description = input.description || siteConfig.description
|
7
|
-
const title =
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
})
|
12
|
-
: siteConfig.name
|
7
|
+
const title = TITLE_TEMPLATE({
|
8
|
+
siteName: siteConfig.name,
|
9
|
+
title: input.title?.toString(),
|
10
|
+
})
|
13
11
|
|
14
|
-
|
12
|
+
// can't be server side or it won't update on the client
|
13
|
+
useSeoMeta({
|
15
14
|
...(description
|
16
15
|
? {
|
17
16
|
description,
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"@dargmuesli/nuxt-cookie-control": "8.4.
|
4
|
-
"@eslint/compat": "1.1.
|
5
|
-
"@heroicons/vue": "2.1.
|
3
|
+
"@dargmuesli/nuxt-cookie-control": "8.4.5",
|
4
|
+
"@eslint/compat": "1.1.1",
|
5
|
+
"@heroicons/vue": "2.1.5",
|
6
6
|
"@http-util/status-i18n": "0.8.1",
|
7
7
|
"@intlify/eslint-plugin-vue-i18n": "3.0.0",
|
8
8
|
"@nuxt/devtools": "1.3.9",
|
@@ -11,8 +11,8 @@
|
|
11
11
|
"@nuxtjs/color-mode": "3.4.2",
|
12
12
|
"@nuxtjs/html-validator": "1.8.2",
|
13
13
|
"@nuxtjs/i18n": "8.3.0",
|
14
|
-
"@nuxtjs/seo": "2.0.0-rc.
|
15
|
-
"@nuxtjs/tailwindcss": "6.12.
|
14
|
+
"@nuxtjs/seo": "2.0.0-rc.15",
|
15
|
+
"@nuxtjs/tailwindcss": "6.12.1",
|
16
16
|
"@pinia/nuxt": "0.5.1",
|
17
17
|
"@tailwindcss/forms": "0.5.7",
|
18
18
|
"@tailwindcss/typography": "0.5.13",
|
@@ -22,42 +22,42 @@
|
|
22
22
|
"@vuelidate/validators": "2.0.4",
|
23
23
|
"clipboardy": "4.0.0",
|
24
24
|
"dayjs": "2.0.0-alpha.4",
|
25
|
-
"eslint": "9.
|
25
|
+
"eslint": "9.7.0",
|
26
26
|
"eslint-config-prettier": "9.1.0",
|
27
|
-
"eslint-plugin-compat": "
|
28
|
-
"eslint-plugin-prettier": "5.1
|
27
|
+
"eslint-plugin-compat": "6.0.0",
|
28
|
+
"eslint-plugin-prettier": "5.2.1",
|
29
29
|
"eslint-plugin-yml": "1.14.0",
|
30
30
|
"globals": "15.8.0",
|
31
31
|
"jose": "5.6.3",
|
32
|
-
"nuxt-gtag": "2.0.
|
32
|
+
"nuxt-gtag": "2.0.7",
|
33
33
|
"nuxt-security": "2.0.0-rc.9",
|
34
|
-
"sweetalert2": "11.12.
|
34
|
+
"sweetalert2": "11.12.3",
|
35
35
|
"vue-tsc": "2.0.26"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@unhead/vue": "1.9.
|
38
|
+
"@unhead/vue": "1.9.16",
|
39
39
|
"@urql/devtools": "2.0.3",
|
40
40
|
"@urql/exchange-graphcache": "7.1.2",
|
41
41
|
"@urql/vue": "1.3.2",
|
42
42
|
"consola": "3.2.3",
|
43
|
-
"cookie-es": "1.1
|
43
|
+
"cookie-es": "1.2.1",
|
44
44
|
"defu": "6.1.4",
|
45
45
|
"h3": "1.12.0",
|
46
46
|
"jiti": "1.21.6",
|
47
47
|
"lodash-es": "4.17.21",
|
48
|
-
"nuxt": "3.12.
|
48
|
+
"nuxt": "3.12.4",
|
49
49
|
"pinia": "2.1.7",
|
50
|
-
"prettier": "3.3.
|
50
|
+
"prettier": "3.3.3",
|
51
51
|
"prettier-plugin-tailwindcss": "0.6.5",
|
52
52
|
"serve": "14.2.3",
|
53
53
|
"sharp": "0.33.4",
|
54
|
-
"stylelint": "16.
|
54
|
+
"stylelint": "16.7.0",
|
55
55
|
"stylelint-config-recommended-vue": "1.5.0",
|
56
56
|
"stylelint-config-standard": "36.0.1",
|
57
57
|
"stylelint-no-unsupported-browser-features": "8.0.1",
|
58
|
-
"tailwindcss": "3.4.
|
59
|
-
"unhead": "1.9.
|
60
|
-
"vue": "3.4.
|
58
|
+
"tailwindcss": "3.4.6",
|
59
|
+
"unhead": "1.9.16",
|
60
|
+
"vue": "3.4.33",
|
61
61
|
"vue-router": "4.4.0"
|
62
62
|
},
|
63
63
|
"engines": {
|
@@ -86,8 +86,8 @@
|
|
86
86
|
"main": "nuxt.config.ts",
|
87
87
|
"name": "@dargmuesli/nuxt-vio",
|
88
88
|
"peerDependencies": {
|
89
|
-
"nuxt": "3.12.
|
90
|
-
"vue": "3.4.
|
89
|
+
"nuxt": "3.12.4",
|
90
|
+
"vue": "3.4.33",
|
91
91
|
"vue-router": "4.4.0"
|
92
92
|
},
|
93
93
|
"publishConfig": {
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
|
117
117
|
},
|
118
118
|
"type": "module",
|
119
|
-
"version": "13.2.
|
119
|
+
"version": "13.2.2"
|
120
120
|
}
|