wcz-test 6.9.6 → 6.10.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/dist/vite.js +1 -9
- package/dist/vite.js.map +1 -1
- package/package.json +15 -15
package/dist/vite.js
CHANGED
|
@@ -16,15 +16,7 @@ function viteWczLayout() {
|
|
|
16
16
|
exclude: [virtualModuleId]
|
|
17
17
|
},
|
|
18
18
|
ssr: {
|
|
19
|
-
|
|
20
|
-
include: [
|
|
21
|
-
"@mui/x-data-grid",
|
|
22
|
-
"@mui/x-data-grid-pro",
|
|
23
|
-
"@mui/x-data-grid-premium",
|
|
24
|
-
"@mui/x-date-pickers",
|
|
25
|
-
"@mui/x-date-pickers-pro"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
19
|
+
noExternal: ["@mui/*"]
|
|
28
20
|
}
|
|
29
21
|
};
|
|
30
22
|
},
|
package/dist/vite.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","sources":["../src/lib/vite-plugin.ts"],"sourcesContent":["import fs from \"node:fs\";\r\nimport path from \"node:path\";\r\nimport type { Resource } from \"i18next\";\r\nimport type { Plugin } from \"vite\";\r\n\r\nexport function viteWczLayout(): Plugin {\r\n const virtualModuleId = \"virtual:wcz-layout\";\r\n const resolvedVirtualModuleId = \"\\0\" + virtualModuleId;\r\n\r\n let localesPath: string;\r\n\r\n return {\r\n name: \"vite:wcz-layout\",\r\n enforce: \"pre\",\r\n configResolved(resolvedConfig) {\r\n localesPath = path.resolve(resolvedConfig.root, \"src/locales\");\r\n },\r\n config() {\r\n return {\r\n optimizeDeps: {\r\n exclude: [virtualModuleId],\r\n },\r\n ssr: {\r\n
|
|
1
|
+
{"version":3,"file":"vite.js","sources":["../src/lib/vite-plugin.ts"],"sourcesContent":["import fs from \"node:fs\";\r\nimport path from \"node:path\";\r\nimport type { Resource } from \"i18next\";\r\nimport type { Plugin } from \"vite\";\r\n\r\nexport function viteWczLayout(): Plugin {\r\n const virtualModuleId = \"virtual:wcz-layout\";\r\n const resolvedVirtualModuleId = \"\\0\" + virtualModuleId;\r\n\r\n let localesPath: string;\r\n\r\n return {\r\n name: \"vite:wcz-layout\",\r\n enforce: \"pre\",\r\n configResolved(resolvedConfig) {\r\n localesPath = path.resolve(resolvedConfig.root, \"src/locales\");\r\n },\r\n config() {\r\n return {\r\n optimizeDeps: {\r\n exclude: [virtualModuleId],\r\n },\r\n ssr: {\r\n noExternal: [\"@mui/*\"],\r\n },\r\n };\r\n },\r\n resolveId(id) {\r\n if (id === virtualModuleId) return resolvedVirtualModuleId;\r\n return null;\r\n },\r\n load(id) {\r\n if (id !== resolvedVirtualModuleId) return null;\r\n\r\n if (!fs.existsSync(localesPath)) {\r\n fs.mkdirSync(localesPath, { recursive: true });\r\n }\r\n\r\n const enPath = path.join(localesPath, \"en.json\");\r\n if (!fs.existsSync(enPath)) {\r\n fs.writeFileSync(enPath, JSON.stringify({}));\r\n }\r\n\r\n const files = fs.readdirSync(localesPath);\r\n const jsonFiles = files.filter((f) => f.endsWith(\".json\"));\r\n\r\n const resources: Resource = {};\r\n\r\n for (const file of jsonFiles) {\r\n const lang = path.basename(file, \".json\");\r\n const filePath = path.join(localesPath, file);\r\n\r\n try {\r\n const content = fs.readFileSync(filePath, \"utf-8\");\r\n const translations = JSON.parse(content);\r\n resources[lang] = { translation: translations };\r\n } catch (error) {\r\n console.error(`[vite:layout] Error parsing ${file}:`, error);\r\n resources[lang] = { translation: {} };\r\n }\r\n\r\n this.addWatchFile(filePath);\r\n }\r\n\r\n return `export const resources = ${JSON.stringify(resources)};`;\r\n },\r\n };\r\n}\r\n"],"names":[],"mappings":";;AAKO,SAAS,gBAAwB;AACpC,QAAM,kBAAkB;AACxB,QAAM,0BAA0B,OAAO;AAEvC,MAAI;AAEJ,SAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,IACT,eAAe,gBAAgB;AAC3B,oBAAc,KAAK,QAAQ,e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 -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wcz-test",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -62,20 +62,8 @@
|
|
|
62
62
|
"prepublishOnly": "npm run build"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@emotion/react": "^11.14.0",
|
|
66
|
-
"@emotion/styled": "^11.14.1",
|
|
67
|
-
"@mui/icons-material": "^7.3.5",
|
|
68
|
-
"@mui/material": "^7.3.5",
|
|
69
|
-
"@mui/x-data-grid-premium": "^8.20.0",
|
|
70
|
-
"@mui/x-date-pickers-pro": "^8.19.0",
|
|
71
65
|
"@t3-oss/env-core": "^0.13.8",
|
|
72
|
-
"@
|
|
73
|
-
"@tanstack/react-db": "^0.1.53",
|
|
74
|
-
"@tanstack/react-form": "^1.26.0",
|
|
75
|
-
"@tanstack/react-query": "^5.90.11",
|
|
76
|
-
"@tanstack/react-router": "^1.139.12",
|
|
77
|
-
"@tanstack/react-router-ssr-query": "^1.139.12",
|
|
78
|
-
"@tanstack/react-start": "^1.139.12",
|
|
66
|
+
"@types/pg": "^8.15.6",
|
|
79
67
|
"axios": "^1.13.2",
|
|
80
68
|
"better-auth": "1.4.1",
|
|
81
69
|
"dayjs": "^1.11.19",
|
|
@@ -98,7 +86,6 @@
|
|
|
98
86
|
"@tanstack/eslint-plugin-router": "^1.139.0",
|
|
99
87
|
"@types/file-saver": "^2.0.7",
|
|
100
88
|
"@types/node": "^22.10.2",
|
|
101
|
-
"@types/pg": "^8.15.6",
|
|
102
89
|
"@types/react": "^19.2.7",
|
|
103
90
|
"@types/react-dom": "^19.2.3",
|
|
104
91
|
"@vitejs/plugin-react": "^5.1.1",
|
|
@@ -114,6 +101,19 @@
|
|
|
114
101
|
"vite-tsconfig-paths": "^5.1.4"
|
|
115
102
|
},
|
|
116
103
|
"peerDependencies": {
|
|
104
|
+
"@emotion/react": "11.x",
|
|
105
|
+
"@emotion/styled": "11.x",
|
|
106
|
+
"@mui/icons-material": "7.x",
|
|
107
|
+
"@mui/material": "7.x",
|
|
108
|
+
"@mui/x-data-grid-premium": "8.x",
|
|
109
|
+
"@mui/x-date-pickers-pro": "8.x",
|
|
110
|
+
"@tanstack/query-db-collection": "1.x",
|
|
111
|
+
"@tanstack/react-db": "0.x",
|
|
112
|
+
"@tanstack/react-form": "1.x",
|
|
113
|
+
"@tanstack/react-query": "5.x",
|
|
114
|
+
"@tanstack/react-router": "1.x",
|
|
115
|
+
"@tanstack/react-router-ssr-query": "1.x",
|
|
116
|
+
"@tanstack/react-start": "1.x",
|
|
117
117
|
"react": "19.x",
|
|
118
118
|
"react-dom": "19.x"
|
|
119
119
|
}
|