create-jwn-js 1.2.1 → 1.2.3
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/package.json +1 -1
- package/template-vite-node-mts/src/scripts/test.setup.mts +2 -2
- package/template-vite-node-mts/vite.config.mts +1 -1
- package/template-vite-vue3-mts/src/scripts/test.setup.mts +9 -6
- package/template-vite-vue3-mts/src/scripts/vitest.global.setup.mts +3 -3
- package/template-vite-vue3-mts/{vite.config.ts → vite.config.mts} +1 -1
- package/template-vite-vue3-pinia-mts/dist/client/.vite/manifest.json +38 -0
- package/template-vite-vue3-pinia-mts/dist/client/.vite/ssr-manifest.json +1169 -69
- package/template-vite-vue3-pinia-mts/dist/client/assets/index-B40M1W6I.css +1 -0
- package/template-vite-vue3-pinia-mts/dist/client/assets/index-CIJvTamH.js +249 -0
- package/template-vite-vue3-pinia-mts/dist/client/assets/primeicons-C6QP2o4f.woff2 +0 -0
- package/template-vite-vue3-pinia-mts/dist/client/assets/primeicons-DMOk5skT.eot +0 -0
- package/template-vite-vue3-pinia-mts/dist/client/assets/primeicons-Dr5RGzOO.svg +345 -0
- package/template-vite-vue3-pinia-mts/dist/client/assets/primeicons-MpK4pl85.ttf +0 -0
- package/template-vite-vue3-pinia-mts/dist/client/assets/primeicons-WjwUDZjB.woff +0 -0
- package/template-vite-vue3-pinia-mts/dist/client/robots.txt +2 -0
- package/template-vite-vue3-pinia-mts/dist/server/entry-server.mjs +287 -378
- package/template-vite-vue3-pinia-mts/dist/server/package.json +2 -1
- package/template-vite-vue3-pinia-mts/dist/server/robots.txt +2 -0
- package/template-vite-vue3-pinia-mts/package.json +4 -4
- package/template-vite-vue3-pinia-mts/src/frontend/entry-options.mts +3 -3
- package/template-vite-vue3-pinia-mts/src/helpers/parseLang.mts +2 -2
- package/template-vite-vue3-pinia-mts/src/scripts/vitest.global.setup.mts +1 -1
- package/template-vite-vue3-pinia-mts/{vite.config.ts → vite.config.mts} +1 -1
- package/template-vite-vue3-pinia-mts/yarn.lock +260 -323
- package/template-vite-vue3-pinia-mts/dist/client/assets/index-B8XEaJMM.css +0 -1
- package/template-vite-vue3-pinia-mts/dist/client/assets/index-DJNddzdM.js +0 -224
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"postcss-plugin": "^1.0.0",
|
|
30
30
|
"postcss-scss": "^4.0.9",
|
|
31
31
|
"typescript": "^5.8.3",
|
|
32
|
-
"vite": "^
|
|
32
|
+
"vite": "^7.1.12",
|
|
33
33
|
"vite-svg-loader": "^5.1.0",
|
|
34
|
-
"vitest": "^
|
|
34
|
+
"vitest": "^4.0.4"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@jwn-js/common": "^2.3.
|
|
37
|
+
"@jwn-js/common": "^2.3.14",
|
|
38
38
|
"@jwn-js/plugins": "^1.0.16",
|
|
39
39
|
"@primevue/themes": "^4.2.4",
|
|
40
40
|
"@vue/server-renderer": "^3.5.12",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"primeflex": "^3.3.1",
|
|
52
52
|
"primeicons": "^7.0.0",
|
|
53
53
|
"primevue": "^4.3.3",
|
|
54
|
-
"vite-ssr-vue": "^1.1.
|
|
54
|
+
"vite-ssr-vue": "^1.1.5",
|
|
55
55
|
"vue": "^3.5.12",
|
|
56
56
|
"vue-router": "^4.5.0"
|
|
57
57
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Context, CreatorOptions} from "vite-ssr-vue";
|
|
1
|
+
import type {Context, CreatorOptions} from "vite-ssr-vue";
|
|
2
2
|
import createRouter from "./routes/index.mjs";
|
|
3
3
|
import {createHead} from "@vueuse/head";
|
|
4
4
|
import {createPrefetch} from "@vuemod/prefetch";
|
|
@@ -6,7 +6,7 @@ import {amitt} from "amitt";
|
|
|
6
6
|
|
|
7
7
|
// Multilang
|
|
8
8
|
import Multilang from "@jwn-js/plugins/Multilang";
|
|
9
|
-
import {parseLang} from "@/helpers/parseLang";
|
|
9
|
+
import {parseLang} from "@/helpers/parseLang.mjs";
|
|
10
10
|
|
|
11
11
|
// Primevue
|
|
12
12
|
import PrimeVue from 'primevue/config';
|
|
@@ -23,7 +23,7 @@ const defaultLang = "ru";
|
|
|
23
23
|
|
|
24
24
|
export default {
|
|
25
25
|
created({app, context, req, res, isClient}) {
|
|
26
|
-
const emitter = amitt();
|
|
26
|
+
const emitter = amitt<"ga-pageview"|"ga-buttons"|"web-notification">();
|
|
27
27
|
const head = createHead();
|
|
28
28
|
const router = createRouter({isClient});
|
|
29
29
|
const pinia = createPinia();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const parseLang = (url: string, defaultLang = "
|
|
2
|
-
const result = url.match(/^\/(ru|ua|en)
|
|
1
|
+
export const parseLang = (url: string, defaultLang = "ua") => {
|
|
2
|
+
const result = url.match(/^\/(ru|ua|en)(\/|$)/i);
|
|
3
3
|
return result && result.length > 0 ? result[1] : defaultLang;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as path from "path";
|
|
2
2
|
import chalk from "chalk";
|
|
3
|
-
import {defineConfig, ResolvedConfig} from "vite";
|
|
3
|
+
import {defineConfig, type ResolvedConfig} from "vite";
|
|
4
4
|
import vue from "@vitejs/plugin-vue";
|
|
5
5
|
import ssr from "vite-ssr-vue/plugin";
|
|
6
6
|
import svgLoader from "vite-svg-loader";
|