@dargmuesli/nuxt-vio 19.0.3 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.config/lint.js
CHANGED
|
@@ -36,13 +36,6 @@ export const VIO_ESLINT_CONFIG = [
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
rules: {
|
|
39
|
-
'@intlify/vue-i18n/no-missing-keys': 'error',
|
|
40
|
-
'@intlify/vue-i18n/no-raw-text': 'error',
|
|
41
|
-
'@intlify/vue-i18n/no-deprecated-i18n-component': 'error', // TODO: do not specify below rules manually, but have them included in `recommended` https://github.com/intlify/eslint-plugin-vue-i18n/issues/275
|
|
42
|
-
'@intlify/vue-i18n/no-deprecated-i18n-place-attr': 'error',
|
|
43
|
-
'@intlify/vue-i18n/no-deprecated-i18n-places-prop': 'error',
|
|
44
|
-
'@intlify/vue-i18n/no-i18n-t-path-prop': 'error',
|
|
45
|
-
'@intlify/vue-i18n/valid-message-syntax': 'error',
|
|
46
39
|
'@intlify/vue-i18n/key-format-style': 'error',
|
|
47
40
|
'@intlify/vue-i18n/no-duplicate-keys-in-locale': 'error',
|
|
48
41
|
'@intlify/vue-i18n/no-dynamic-keys': 'error',
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"nuxt-gtag": "4.1.0",
|
|
35
35
|
"nuxt-security": "2.5.0",
|
|
36
36
|
"sweetalert2": "11.26.3",
|
|
37
|
-
"vue-tsc": "3.1.
|
|
37
|
+
"vue-tsc": "3.1.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "24.10.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"stylelint-config-standard": "39.0.1",
|
|
56
56
|
"stylelint-no-unsupported-browser-features": "8.0.5",
|
|
57
57
|
"tailwindcss": "4.1.17",
|
|
58
|
-
"vue": "3.5.
|
|
58
|
+
"vue": "3.5.25",
|
|
59
59
|
"vue-router": "4.6.3"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"start:static": "serve playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
|
|
107
107
|
},
|
|
108
108
|
"type": "module",
|
|
109
|
-
"version": "19.0
|
|
109
|
+
"version": "19.1.0"
|
|
110
110
|
}
|
package/server/utils/timezone.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { H3Event } from 'h3'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
export const getTimezoneServer = async (event: H3Event) => {
|
|
3
|
+
export const getTimezone = async (event: H3Event) => {
|
|
5
4
|
const timezoneBySsr = event.context.$timezone
|
|
6
5
|
|
|
7
6
|
if (timezoneBySsr) return timezoneBySsr
|
|
@@ -113,14 +113,6 @@ export const VIO_GET_CSP = ({ siteUrl }: { siteUrl: URL }) =>
|
|
|
113
113
|
: {}),
|
|
114
114
|
'connect-src': [
|
|
115
115
|
"'self'", // e.g. `/_nuxt/builds/meta/`, `/_payload.json`, `/privacy-policy/_payload.json`
|
|
116
|
-
// ...(process.env.NODE_ENV === 'development'
|
|
117
|
-
// ? [
|
|
118
|
-
// 'http://localhost:3000/_nuxt/', // hot reload
|
|
119
|
-
// 'https://localhost:3000/_nuxt/', // hot reload
|
|
120
|
-
// 'ws://localhost:3000/_nuxt/', // hot reload
|
|
121
|
-
// 'wss://localhost:3000/_nuxt/', // hot reload
|
|
122
|
-
// ] // TODO: generalize for different ports
|
|
123
|
-
// : []),
|
|
124
116
|
],
|
|
125
117
|
'img-src': [
|
|
126
118
|
"'self'", // e.g. favicon
|
|
@@ -103,9 +103,7 @@ export const getServiceHref = ({
|
|
|
103
103
|
|
|
104
104
|
if (stagingHost) {
|
|
105
105
|
return `https://${nameSubdomainString}${stagingHost}`
|
|
106
|
-
|
|
107
|
-
// eslint-disable-next-line nuxt/prefer-import-meta
|
|
108
|
-
} else if (isSsr && process.server) {
|
|
106
|
+
} else if (isSsr && import.meta.server) {
|
|
109
107
|
return `http://${name}${portString}`
|
|
110
108
|
} else {
|
|
111
109
|
return `https://${nameSubdomainString}${getRootHost(host)}`
|