@dargmuesli/nuxt-vio 12.0.2 → 12.0.4
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "12.0.
|
3
|
+
"version": "12.0.4",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/dargmuesli/vio.git"
|
@@ -40,10 +40,10 @@
|
|
40
40
|
"@http-util/status-i18n": "0.8.1",
|
41
41
|
"@intlify/eslint-plugin-vue-i18n": "3.0.0-next.12",
|
42
42
|
"@nuxt/devtools": "1.3.1",
|
43
|
-
"@nuxt/eslint": "0.3.
|
43
|
+
"@nuxt/eslint": "0.3.13",
|
44
44
|
"@nuxt/image": "1.7.0",
|
45
45
|
"@nuxtjs/color-mode": "3.4.1",
|
46
|
-
"@nuxtjs/html-validator": "1.8.
|
46
|
+
"@nuxtjs/html-validator": "1.8.2",
|
47
47
|
"@nuxtjs/i18n": "8.3.0",
|
48
48
|
"@nuxtjs/seo": "2.0.0-rc.10",
|
49
49
|
"@nuxtjs/tailwindcss": "6.12.0",
|
@@ -56,14 +56,14 @@
|
|
56
56
|
"@vuelidate/validators": "2.0.4",
|
57
57
|
"clipboardy": "4.0.0",
|
58
58
|
"dayjs": "2.0.0-alpha.4",
|
59
|
-
"eslint": "9.
|
59
|
+
"eslint": "9.3.0",
|
60
60
|
"eslint-config-prettier": "9.1.0",
|
61
61
|
"eslint-plugin-compat": "4.2.0",
|
62
62
|
"eslint-plugin-prettier": "5.1.3",
|
63
63
|
"eslint-plugin-yml": "1.14.0",
|
64
|
-
"globals": "15.
|
64
|
+
"globals": "15.3.0",
|
65
65
|
"jose": "5.3.0",
|
66
|
-
"nuxt-gtag": "2.0.
|
66
|
+
"nuxt-gtag": "2.0.6",
|
67
67
|
"nuxt-security": "1.4.3",
|
68
68
|
"sweetalert2": "11.11.0"
|
69
69
|
},
|
package/utils/constants.ts
CHANGED
@@ -6,10 +6,7 @@ export const SITE_NAME = 'Vio'
|
|
6
6
|
export const SITE_URL =
|
7
7
|
process.env.SITE_URL ||
|
8
8
|
process.env.NUXT_PUBLIC_SITE_URL ||
|
9
|
-
|
10
|
-
'://' +
|
11
|
-
(process.env.HOST ||
|
12
|
-
`${process.env.HOST || 'localhost'}:${process.env.PORT || '3000'}`)
|
9
|
+
`https://${process.env.HOST || 'localhost'}:${process.env.PORT || '3000'}`
|
13
10
|
export const CACHE_VERSION = 'bOXMwoKlJr'
|
14
11
|
export const COOKIE_PREFIX = SITE_NAME.toLocaleLowerCase()
|
15
12
|
export const COOKIE_SEPARATOR = '_'
|
@@ -100,14 +97,14 @@ export const GET_CSP = (siteUrl: string) =>
|
|
100
97
|
// nuxt
|
101
98
|
'connect-src': [
|
102
99
|
"'self'", // e.g. `/_nuxt/builds/meta/`, `/_payload.json`, `/privacy-policy/_payload.json`
|
103
|
-
...(process.env.NODE_ENV === 'development'
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
100
|
+
// ...(process.env.NODE_ENV === 'development'
|
101
|
+
// ? [
|
102
|
+
// 'http://localhost:3000/_nuxt/', // hot reload
|
103
|
+
// 'https://localhost:3000/_nuxt/', // hot reload
|
104
|
+
// 'ws://localhost:3000/_nuxt/', // hot reload
|
105
|
+
// 'wss://localhost:3000/_nuxt/', // hot reload
|
106
|
+
// ] // TODO: generalize for different ports
|
107
|
+
// : []),
|
111
108
|
],
|
112
109
|
'img-src': [
|
113
110
|
"'self'", // e.g. favicon
|
package/utils/networking.ts
CHANGED
@@ -102,7 +102,9 @@ export const getServiceHref = ({
|
|
102
102
|
|
103
103
|
if (stagingHost) {
|
104
104
|
return `https://${nameSubdomainString}${stagingHost}`
|
105
|
-
|
105
|
+
// TODO: remove disable below (https://github.com/nuxt/nuxt/issues/25323)
|
106
|
+
// eslint-disable-next-line nuxt/prefer-import-meta
|
107
|
+
} else if (isSsr && process.server) {
|
106
108
|
return `http://${name}${portString}`
|
107
109
|
} else {
|
108
110
|
return `https://${nameSubdomainString}${getDomainTldPort(host)}`
|
File without changes
|