@vixt/vue 0.1.35 → 0.1.37
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/index.mjs +20 -3
- package/package.json +6 -5
package/dist/index.mjs
CHANGED
|
@@ -222,12 +222,29 @@ const appVue = defineVixtModule({
|
|
|
222
222
|
|
|
223
223
|
const presetVue = defineVixtModule({
|
|
224
224
|
async setup(_, vixt) {
|
|
225
|
-
const { components, composables = [], constants = [], utils = [], stores = [], pages, layouts } = resolveLayersDirs(vixt._layers);
|
|
225
|
+
const { components = [], composables = [], constants = [], utils = [], stores = [], pages = [], layouts = [] } = resolveLayersDirs(vixt._layers);
|
|
226
226
|
const { buildTypesDir, buildImportsDir } = vixt.options;
|
|
227
227
|
const defaultOptions = {
|
|
228
228
|
vue: {},
|
|
229
|
-
router: {
|
|
230
|
-
|
|
229
|
+
router: {
|
|
230
|
+
dts: `${buildTypesDir}/typed-router.d.ts`,
|
|
231
|
+
routesFolder: pages,
|
|
232
|
+
/** Fix overrides priority */
|
|
233
|
+
extendRoute(route) {
|
|
234
|
+
const node = route.node.value;
|
|
235
|
+
const overrides = node._overrides;
|
|
236
|
+
if (overrides.size <= 1)
|
|
237
|
+
return;
|
|
238
|
+
for (const layer of vixt._layers) {
|
|
239
|
+
const matched = overrides.keys().find((e) => e.match(layer.cwd));
|
|
240
|
+
if (matched) {
|
|
241
|
+
node.components.set("default", matched);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
layouts: { layoutsDirs: [...layouts].reverse(), pagesDirs: pages },
|
|
231
248
|
components: {
|
|
232
249
|
dts: `${buildTypesDir}/components.d.ts`,
|
|
233
250
|
dirs: components,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.37",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -18,20 +18,21 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
22
|
-
"@vitejs/plugin-vue-jsx": "^4.1.
|
|
21
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
22
|
+
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
23
|
+
"@vue/compiler-sfc": "^3.5.13",
|
|
23
24
|
"@vueuse/core": "^12.7.0",
|
|
24
25
|
"pinia": "^3.0.1",
|
|
25
26
|
"pinia-plugin-persistedstate": "^4.2.0",
|
|
26
27
|
"unocss": "^66.0.0",
|
|
27
28
|
"unplugin-auto-import": "^19.1.0",
|
|
28
|
-
"unplugin-vue-components": "
|
|
29
|
+
"unplugin-vue-components": "28.0.0",
|
|
29
30
|
"unplugin-vue-router": "^0.11.2",
|
|
30
31
|
"vite-plugin-vue-devtools": "^7.7.2",
|
|
31
32
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
32
33
|
"vue": "^3.5.13",
|
|
33
34
|
"vue-router": "^4.5.0",
|
|
34
|
-
"@vixt/core": "0.1.
|
|
35
|
+
"@vixt/core": "0.1.37"
|
|
35
36
|
},
|
|
36
37
|
"scripts": {
|
|
37
38
|
"build": "unbuild"
|