ebuilds-shared 0.1.1 → 0.1.2
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/{chunk-LATZ6U6A.js → chunk-3UKUH7Z2.js} +2 -10
- package/dist/{chunk-2745YSBV.mjs → chunk-5UW4MJ6S.mjs} +1 -44
- package/dist/chunk-CUXFXKGW.js +79 -0
- package/dist/chunk-ESXS2BQB.mjs +79 -0
- package/dist/{chunk-NMW6V27T.js → chunk-IF5NEXHC.js} +1 -44
- package/dist/{chunk-G4JQ2UQV.mjs → chunk-ZZ7LO5LB.mjs} +2 -10
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.mjs +1 -1
- package/dist/uno-config/index.js +2 -2
- package/dist/uno-config/index.mjs +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/vite-config/index.js +2 -2
- package/dist/vite-config/index.mjs +1 -1
- package/package.json +79 -79
- package/dist/chunk-MXO66M74.js +0 -36
- package/dist/chunk-OW2EL2VY.mjs +0 -36
|
@@ -2734,9 +2734,10 @@ var AutoImportDeps = () => {
|
|
|
2734
2734
|
// src/vite-config/plugin/index.ts
|
|
2735
2735
|
var _vitepluginvuedevtools = require('vite-plugin-vue-devtools'); var _vitepluginvuedevtools2 = _interopRequireDefault(_vitepluginvuedevtools);
|
|
2736
2736
|
var _vite7 = require('unocss/vite'); var _vite8 = _interopRequireDefault(_vite7);
|
|
2737
|
-
var _unocss = require('unocss');
|
|
2738
2737
|
function createVitePlugins(plugins = [], showDevTools) {
|
|
2739
2738
|
return [
|
|
2739
|
+
// css 原子化
|
|
2740
|
+
_vite8.default.call(void 0, ),
|
|
2740
2741
|
// vue 支持
|
|
2741
2742
|
vuePlugin({
|
|
2742
2743
|
template: {
|
|
@@ -2747,15 +2748,6 @@ function createVitePlugins(plugins = [], showDevTools) {
|
|
|
2747
2748
|
}),
|
|
2748
2749
|
// vue 开发者工具
|
|
2749
2750
|
showDevTools && _vitepluginvuedevtools2.default.call(void 0, ),
|
|
2750
|
-
// css 原子化
|
|
2751
|
-
_vite8.default.call(void 0, {
|
|
2752
|
-
transformers: [
|
|
2753
|
-
_unocss.transformerDirectives.call(void 0, ),
|
|
2754
|
-
// 启用 @apply 指令
|
|
2755
|
-
_unocss.transformerVariantGroup.call(void 0, )
|
|
2756
|
-
// 启用 hover:(bg-blue text-white) 语法
|
|
2757
|
-
]
|
|
2758
|
-
}),
|
|
2759
2751
|
// 自动按需引入依赖
|
|
2760
2752
|
...AutoImportDeps(),
|
|
2761
2753
|
...plugins
|
|
@@ -6200,49 +6200,6 @@ var IndexedDBHelp = class {
|
|
|
6200
6200
|
}
|
|
6201
6201
|
};
|
|
6202
6202
|
|
|
6203
|
-
// src/utils/indexedDB/src/install.ts
|
|
6204
|
-
var install_default = {
|
|
6205
|
-
_indexedDBFlag: Symbol("indexedDB-help"),
|
|
6206
|
-
_help: {},
|
|
6207
|
-
// 数据库的 help 的集合,以便于支持多个数据库
|
|
6208
|
-
/**
|
|
6209
|
-
* 根据参数创建一个数据库的实例,初始化数据库
|
|
6210
|
-
* * 删表、建表、添加默认数据
|
|
6211
|
-
* @param {*} info 参数
|
|
6212
|
-
* @returns
|
|
6213
|
-
* * dbFlag: '数据库标识,区分多个数据库',
|
|
6214
|
-
* * dbConfig: { // 连接数据库
|
|
6215
|
-
* * * dbName: 'vite2-blog',
|
|
6216
|
-
* * * ver: 1.0
|
|
6217
|
-
* * },
|
|
6218
|
-
* * init: () => {}, // 初始化完成后的回调函数
|
|
6219
|
-
* * stores: {
|
|
6220
|
-
* * * storeName: { // 对象仓库名
|
|
6221
|
-
* * * * id: 'id', // 主键名称
|
|
6222
|
-
* * * * index: {
|
|
6223
|
-
* * * * * name: ture, // 索引:是否可以重复
|
|
6224
|
-
* * * * },
|
|
6225
|
-
* * * * isDeleteOldTable: false, // 是否删除之前的对象仓库
|
|
6226
|
-
* * * }
|
|
6227
|
-
* * }
|
|
6228
|
-
*/
|
|
6229
|
-
createHelp(info) {
|
|
6230
|
-
const indexedDBFlag = typeof info.dbFlag === "undefined" ? this._indexedDBFlag : info.dbFlag;
|
|
6231
|
-
const help = new IndexedDBHelp(info);
|
|
6232
|
-
this._help[indexedDBFlag] = help;
|
|
6233
|
-
return help;
|
|
6234
|
-
},
|
|
6235
|
-
// 获取静态对象里的数据库实例
|
|
6236
|
-
useDBHelp(_dbFlag) {
|
|
6237
|
-
const flag = typeof _dbFlag === "undefined" ? this._indexedDBFlag : _dbFlag;
|
|
6238
|
-
return this._help[flag];
|
|
6239
|
-
},
|
|
6240
|
-
useStores(_dbFlag) {
|
|
6241
|
-
const flag = typeof _dbFlag === "undefined" ? this._indexedDBFlag : _dbFlag;
|
|
6242
|
-
return this._help[flag].stores();
|
|
6243
|
-
}
|
|
6244
|
-
};
|
|
6245
|
-
|
|
6246
6203
|
// src/stores/modules/dbStore.ts
|
|
6247
6204
|
import { defineStore } from "pinia";
|
|
6248
6205
|
var dbConfig = {
|
|
@@ -6546,7 +6503,7 @@ function setupPermission(router, useMenuStore2, pages = {}, useUserStore) {
|
|
|
6546
6503
|
if (menuStore.getHasGetMenuList) {
|
|
6547
6504
|
await addVersion({ to, next, version });
|
|
6548
6505
|
} else {
|
|
6549
|
-
await menuStore.queryMenuList(router, pages);
|
|
6506
|
+
await menuStore.queryMenuList(router, pages, userStore);
|
|
6550
6507
|
next({ ...to, replace: true });
|
|
6551
6508
|
}
|
|
6552
6509
|
} catch {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/uno-config/index.ts
|
|
2
|
+
var _unocss = require('unocss');
|
|
3
|
+
function createUnoConfig() {
|
|
4
|
+
return _unocss.defineConfig.call(void 0, {
|
|
5
|
+
presets: [
|
|
6
|
+
_unocss.presetUno.call(void 0, ),
|
|
7
|
+
_unocss.presetAttributify.call(void 0, ),
|
|
8
|
+
_unocss.presetTypography.call(void 0, ),
|
|
9
|
+
_unocss.presetIcons.call(void 0, {
|
|
10
|
+
scale: 1.2,
|
|
11
|
+
warn: true,
|
|
12
|
+
extraProperties: {
|
|
13
|
+
display: "inline-block",
|
|
14
|
+
"vertical-align": "middle"
|
|
15
|
+
},
|
|
16
|
+
collections: {
|
|
17
|
+
"icon-park-solid": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/icon-park-solid.json"))).then((i) => i.default),
|
|
18
|
+
"line-md": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/line-md.json"))).then((i) => i.default),
|
|
19
|
+
proicons: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/proicons.json"))).then((i) => i.default),
|
|
20
|
+
mdi: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/mdi.json"))).then((i) => i.default),
|
|
21
|
+
"pepicons-pop": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/pepicons-pop.json"))).then((i) => i.default),
|
|
22
|
+
ep: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/ep.json"))).then((i) => i.default),
|
|
23
|
+
famicons: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/famicons.json"))).then((i) => i.default),
|
|
24
|
+
picon: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/picon.json"))).then((i) => i.default),
|
|
25
|
+
ic: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/ic.json"))).then((i) => i.default),
|
|
26
|
+
"akar-icons": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/akar-icons.json"))).then((i) => i.default),
|
|
27
|
+
solar: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/solar.json"))).then((i) => i.default),
|
|
28
|
+
bx: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/bx.json"))).then((i) => i.default),
|
|
29
|
+
mingcute: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/mingcute.json"))).then((i) => i.default),
|
|
30
|
+
lucide: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/lucide.json"))).then((i) => i.default),
|
|
31
|
+
"icon-park-outline": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/icon-park-outline.json"))).then((i) => i.default),
|
|
32
|
+
subway: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/subway.json"))).then((i) => i.default),
|
|
33
|
+
mage: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/mage.json"))).then((i) => i.default),
|
|
34
|
+
clarity: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/clarity.json"))).then((i) => i.default),
|
|
35
|
+
cil: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/cil.json"))).then((i) => i.default),
|
|
36
|
+
"lets-icons": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/lets-icons.json"))).then((i) => i.default),
|
|
37
|
+
"eos-icons": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/eos-icons.json"))).then((i) => i.default),
|
|
38
|
+
gridicons: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/gridicons.json"))).then((i) => i.default),
|
|
39
|
+
hugeicons: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/hugeicons.json"))).then((i) => i.default),
|
|
40
|
+
wpf: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/wpf.json"))).then((i) => i.default),
|
|
41
|
+
bi: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/bi.json"))).then((i) => i.default),
|
|
42
|
+
ph: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/ph.json"))).then((i) => i.default),
|
|
43
|
+
ri: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/ri.json"))).then((i) => i.default),
|
|
44
|
+
typcn: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/typcn.json"))).then((i) => i.default),
|
|
45
|
+
fluent: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/fluent.json"))).then((i) => i.default),
|
|
46
|
+
"material-symbols": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/material-symbols.json"))).then((i) => i.default),
|
|
47
|
+
basil: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/basil.json"))).then((i) => i.default),
|
|
48
|
+
carbon: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/carbon.json"))).then((i) => i.default),
|
|
49
|
+
healthicons: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/healthicons.json"))).then((i) => i.default),
|
|
50
|
+
ix: () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/ix.json"))).then((i) => i.default),
|
|
51
|
+
"material-symbols-light": () => Promise.resolve().then(() => _interopRequireWildcard(require("@iconify/json/json/material-symbols-light.json"))).then((i) => i.default)
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
],
|
|
55
|
+
shortcuts: [
|
|
56
|
+
{
|
|
57
|
+
"flex-center": "flex items-center justify-center",
|
|
58
|
+
"content-auto": "content-visibility-auto",
|
|
59
|
+
"border-bottom": "border-b border-[#ebeef5] border-b-solid",
|
|
60
|
+
"portal-title": "border-bottom p-x-15px p-y-10px flex items-center justify-between",
|
|
61
|
+
"dashboard-title": "h-30px font-600 line-height-30px ml2 flex-inline",
|
|
62
|
+
"custom-card": "rounded-10px bg-white p10px",
|
|
63
|
+
"custom-border": "border border-solid border-[#E0E0E0]"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
transformers: [
|
|
67
|
+
_unocss.transformerDirectives.call(void 0, ),
|
|
68
|
+
// 启用 @apply 指令
|
|
69
|
+
_unocss.transformerVariantGroup.call(void 0, )
|
|
70
|
+
// 启用 hover:(bg-blue text-white) 语法
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
var uno_config_default = createUnoConfig;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
exports.createUnoConfig = createUnoConfig; exports.uno_config_default = uno_config_default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// src/uno-config/index.ts
|
|
2
|
+
import { defineConfig, presetAttributify, presetIcons, presetTypography, presetUno, transformerDirectives, transformerVariantGroup } from "unocss";
|
|
3
|
+
function createUnoConfig() {
|
|
4
|
+
return defineConfig({
|
|
5
|
+
presets: [
|
|
6
|
+
presetUno(),
|
|
7
|
+
presetAttributify(),
|
|
8
|
+
presetTypography(),
|
|
9
|
+
presetIcons({
|
|
10
|
+
scale: 1.2,
|
|
11
|
+
warn: true,
|
|
12
|
+
extraProperties: {
|
|
13
|
+
display: "inline-block",
|
|
14
|
+
"vertical-align": "middle"
|
|
15
|
+
},
|
|
16
|
+
collections: {
|
|
17
|
+
"icon-park-solid": () => import("@iconify/json/json/icon-park-solid.json").then((i) => i.default),
|
|
18
|
+
"line-md": () => import("@iconify/json/json/line-md.json").then((i) => i.default),
|
|
19
|
+
proicons: () => import("@iconify/json/json/proicons.json").then((i) => i.default),
|
|
20
|
+
mdi: () => import("@iconify/json/json/mdi.json").then((i) => i.default),
|
|
21
|
+
"pepicons-pop": () => import("@iconify/json/json/pepicons-pop.json").then((i) => i.default),
|
|
22
|
+
ep: () => import("@iconify/json/json/ep.json").then((i) => i.default),
|
|
23
|
+
famicons: () => import("@iconify/json/json/famicons.json").then((i) => i.default),
|
|
24
|
+
picon: () => import("@iconify/json/json/picon.json").then((i) => i.default),
|
|
25
|
+
ic: () => import("@iconify/json/json/ic.json").then((i) => i.default),
|
|
26
|
+
"akar-icons": () => import("@iconify/json/json/akar-icons.json").then((i) => i.default),
|
|
27
|
+
solar: () => import("@iconify/json/json/solar.json").then((i) => i.default),
|
|
28
|
+
bx: () => import("@iconify/json/json/bx.json").then((i) => i.default),
|
|
29
|
+
mingcute: () => import("@iconify/json/json/mingcute.json").then((i) => i.default),
|
|
30
|
+
lucide: () => import("@iconify/json/json/lucide.json").then((i) => i.default),
|
|
31
|
+
"icon-park-outline": () => import("@iconify/json/json/icon-park-outline.json").then((i) => i.default),
|
|
32
|
+
subway: () => import("@iconify/json/json/subway.json").then((i) => i.default),
|
|
33
|
+
mage: () => import("@iconify/json/json/mage.json").then((i) => i.default),
|
|
34
|
+
clarity: () => import("@iconify/json/json/clarity.json").then((i) => i.default),
|
|
35
|
+
cil: () => import("@iconify/json/json/cil.json").then((i) => i.default),
|
|
36
|
+
"lets-icons": () => import("@iconify/json/json/lets-icons.json").then((i) => i.default),
|
|
37
|
+
"eos-icons": () => import("@iconify/json/json/eos-icons.json").then((i) => i.default),
|
|
38
|
+
gridicons: () => import("@iconify/json/json/gridicons.json").then((i) => i.default),
|
|
39
|
+
hugeicons: () => import("@iconify/json/json/hugeicons.json").then((i) => i.default),
|
|
40
|
+
wpf: () => import("@iconify/json/json/wpf.json").then((i) => i.default),
|
|
41
|
+
bi: () => import("@iconify/json/json/bi.json").then((i) => i.default),
|
|
42
|
+
ph: () => import("@iconify/json/json/ph.json").then((i) => i.default),
|
|
43
|
+
ri: () => import("@iconify/json/json/ri.json").then((i) => i.default),
|
|
44
|
+
typcn: () => import("@iconify/json/json/typcn.json").then((i) => i.default),
|
|
45
|
+
fluent: () => import("@iconify/json/json/fluent.json").then((i) => i.default),
|
|
46
|
+
"material-symbols": () => import("@iconify/json/json/material-symbols.json").then((i) => i.default),
|
|
47
|
+
basil: () => import("@iconify/json/json/basil.json").then((i) => i.default),
|
|
48
|
+
carbon: () => import("@iconify/json/json/carbon.json").then((i) => i.default),
|
|
49
|
+
healthicons: () => import("@iconify/json/json/healthicons.json").then((i) => i.default),
|
|
50
|
+
ix: () => import("@iconify/json/json/ix.json").then((i) => i.default),
|
|
51
|
+
"material-symbols-light": () => import("@iconify/json/json/material-symbols-light.json").then((i) => i.default)
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
],
|
|
55
|
+
shortcuts: [
|
|
56
|
+
{
|
|
57
|
+
"flex-center": "flex items-center justify-center",
|
|
58
|
+
"content-auto": "content-visibility-auto",
|
|
59
|
+
"border-bottom": "border-b border-[#ebeef5] border-b-solid",
|
|
60
|
+
"portal-title": "border-bottom p-x-15px p-y-10px flex items-center justify-between",
|
|
61
|
+
"dashboard-title": "h-30px font-600 line-height-30px ml2 flex-inline",
|
|
62
|
+
"custom-card": "rounded-10px bg-white p10px",
|
|
63
|
+
"custom-border": "border border-solid border-[#E0E0E0]"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
transformers: [
|
|
67
|
+
transformerDirectives(),
|
|
68
|
+
// 启用 @apply 指令
|
|
69
|
+
transformerVariantGroup()
|
|
70
|
+
// 启用 hover:(bg-blue text-white) 语法
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
var uno_config_default = createUnoConfig;
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
createUnoConfig,
|
|
78
|
+
uno_config_default
|
|
79
|
+
};
|
|
@@ -6200,49 +6200,6 @@ var IndexedDBHelp = class {
|
|
|
6200
6200
|
}
|
|
6201
6201
|
};
|
|
6202
6202
|
|
|
6203
|
-
// src/utils/indexedDB/src/install.ts
|
|
6204
|
-
var install_default = {
|
|
6205
|
-
_indexedDBFlag: Symbol("indexedDB-help"),
|
|
6206
|
-
_help: {},
|
|
6207
|
-
// 数据库的 help 的集合,以便于支持多个数据库
|
|
6208
|
-
/**
|
|
6209
|
-
* 根据参数创建一个数据库的实例,初始化数据库
|
|
6210
|
-
* * 删表、建表、添加默认数据
|
|
6211
|
-
* @param {*} info 参数
|
|
6212
|
-
* @returns
|
|
6213
|
-
* * dbFlag: '数据库标识,区分多个数据库',
|
|
6214
|
-
* * dbConfig: { // 连接数据库
|
|
6215
|
-
* * * dbName: 'vite2-blog',
|
|
6216
|
-
* * * ver: 1.0
|
|
6217
|
-
* * },
|
|
6218
|
-
* * init: () => {}, // 初始化完成后的回调函数
|
|
6219
|
-
* * stores: {
|
|
6220
|
-
* * * storeName: { // 对象仓库名
|
|
6221
|
-
* * * * id: 'id', // 主键名称
|
|
6222
|
-
* * * * index: {
|
|
6223
|
-
* * * * * name: ture, // 索引:是否可以重复
|
|
6224
|
-
* * * * },
|
|
6225
|
-
* * * * isDeleteOldTable: false, // 是否删除之前的对象仓库
|
|
6226
|
-
* * * }
|
|
6227
|
-
* * }
|
|
6228
|
-
*/
|
|
6229
|
-
createHelp(info) {
|
|
6230
|
-
const indexedDBFlag = typeof info.dbFlag === "undefined" ? this._indexedDBFlag : info.dbFlag;
|
|
6231
|
-
const help = new IndexedDBHelp(info);
|
|
6232
|
-
this._help[indexedDBFlag] = help;
|
|
6233
|
-
return help;
|
|
6234
|
-
},
|
|
6235
|
-
// 获取静态对象里的数据库实例
|
|
6236
|
-
useDBHelp(_dbFlag) {
|
|
6237
|
-
const flag = typeof _dbFlag === "undefined" ? this._indexedDBFlag : _dbFlag;
|
|
6238
|
-
return this._help[flag];
|
|
6239
|
-
},
|
|
6240
|
-
useStores(_dbFlag) {
|
|
6241
|
-
const flag = typeof _dbFlag === "undefined" ? this._indexedDBFlag : _dbFlag;
|
|
6242
|
-
return this._help[flag].stores();
|
|
6243
|
-
}
|
|
6244
|
-
};
|
|
6245
|
-
|
|
6246
6203
|
// src/stores/modules/dbStore.ts
|
|
6247
6204
|
|
|
6248
6205
|
var dbConfig = {
|
|
@@ -6546,7 +6503,7 @@ function setupPermission(router, useMenuStore2, pages = {}, useUserStore) {
|
|
|
6546
6503
|
if (menuStore.getHasGetMenuList) {
|
|
6547
6504
|
await addVersion({ to, next, version });
|
|
6548
6505
|
} else {
|
|
6549
|
-
await menuStore.queryMenuList(router, pages);
|
|
6506
|
+
await menuStore.queryMenuList(router, pages, userStore);
|
|
6550
6507
|
next({ ...to, replace: true });
|
|
6551
6508
|
}
|
|
6552
6509
|
} catch (e3) {
|
|
@@ -2734,9 +2734,10 @@ var AutoImportDeps = () => {
|
|
|
2734
2734
|
// src/vite-config/plugin/index.ts
|
|
2735
2735
|
import vueDevTools from "vite-plugin-vue-devtools";
|
|
2736
2736
|
import UnoCSS from "unocss/vite";
|
|
2737
|
-
import { transformerDirectives, transformerVariantGroup } from "unocss";
|
|
2738
2737
|
function createVitePlugins(plugins = [], showDevTools) {
|
|
2739
2738
|
return [
|
|
2739
|
+
// css 原子化
|
|
2740
|
+
UnoCSS(),
|
|
2740
2741
|
// vue 支持
|
|
2741
2742
|
vuePlugin({
|
|
2742
2743
|
template: {
|
|
@@ -2747,15 +2748,6 @@ function createVitePlugins(plugins = [], showDevTools) {
|
|
|
2747
2748
|
}),
|
|
2748
2749
|
// vue 开发者工具
|
|
2749
2750
|
showDevTools && vueDevTools(),
|
|
2750
|
-
// css 原子化
|
|
2751
|
-
UnoCSS({
|
|
2752
|
-
transformers: [
|
|
2753
|
-
transformerDirectives(),
|
|
2754
|
-
// 启用 @apply 指令
|
|
2755
|
-
transformerVariantGroup()
|
|
2756
|
-
// 启用 hover:(bg-blue text-white) 语法
|
|
2757
|
-
]
|
|
2758
|
-
}),
|
|
2759
2751
|
// 自动按需引入依赖
|
|
2760
2752
|
...AutoImportDeps(),
|
|
2761
2753
|
...plugins
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCUXFXKGWjs = require('./chunk-CUXFXKGW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -28,10 +28,10 @@ var _chunkMXO66M74js = require('./chunk-MXO66M74.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkIF5NEXHCjs = require('./chunk-IF5NEXHC.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk3UKUH7Z2js = require('./chunk-3UKUH7Z2.js');
|
|
35
35
|
require('./chunk-QGM4M3NI.js');
|
|
36
36
|
|
|
37
37
|
|
|
@@ -62,4 +62,4 @@ require('./chunk-QGM4M3NI.js');
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
exports.clamp =
|
|
65
|
+
exports.clamp = _chunkIF5NEXHCjs.clamp; exports.createBaseViteConfig = _chunk3UKUH7Z2js.createBaseViteConfig; exports.createUnoConfig = _chunkCUXFXKGWjs.createUnoConfig; exports.duplicateRemovalCompleteSort = _chunkIF5NEXHCjs.duplicateRemovalCompleteSort; exports.encryptPwd = _chunkIF5NEXHCjs.encryptPwd; exports.filterMenu = _chunkIF5NEXHCjs.filterMenu; exports.formatNumber = _chunkIF5NEXHCjs.formatNumber; exports.getDecimalPart = _chunkIF5NEXHCjs.getDecimalPart; exports.getIntegerPart = _chunkIF5NEXHCjs.getIntegerPart; exports.isInteger = _chunkIF5NEXHCjs.isInteger; exports.isNumber = _chunkIF5NEXHCjs.isNumber; exports.jsonp = _chunkIF5NEXHCjs.jsonp; exports.listSort = _chunkIF5NEXHCjs.listSort; exports.numberToChinese = _chunkIF5NEXHCjs.numberToChinese; exports.padZero = _chunkIF5NEXHCjs.padZero; exports.parseFormattedNumber = _chunkIF5NEXHCjs.parseFormattedNumber; exports.prototypeInterceptor = _chunkIF5NEXHCjs.prototypeInterceptor; exports.request = _chunkIF5NEXHCjs.request; exports.roundOrTruncate = _chunkIF5NEXHCjs.roundOrTruncate; exports.setupPermission = _chunkIF5NEXHCjs.setupPermission; exports.store = _chunkIF5NEXHCjs.store; exports.timeFix = _chunkIF5NEXHCjs.timeFix; exports.updateDocumentTitle = _chunkIF5NEXHCjs.updateDocumentTitle; exports.useCommonStore = _chunkIF5NEXHCjs.useCommonStore; exports.useDbStore = _chunkIF5NEXHCjs.useDbStore; exports.useLoginHook = _chunkIF5NEXHCjs.useLoginHook; exports.useMenuStore = _chunkIF5NEXHCjs.useMenuStore; exports.welcome = _chunkIF5NEXHCjs.welcome;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createUnoConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ESXS2BQB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
clamp,
|
|
6
6
|
duplicateRemovalCompleteSort,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
useLoginHook,
|
|
29
29
|
useMenuStore,
|
|
30
30
|
welcome
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5UW4MJ6S.mjs";
|
|
32
32
|
import {
|
|
33
33
|
createBaseViteConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZZ7LO5LB.mjs";
|
|
35
35
|
import "./chunk-6DZX6EAA.mjs";
|
|
36
36
|
export {
|
|
37
37
|
clamp,
|
package/dist/stores/index.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIF5NEXHCjs = require('../chunk-IF5NEXHC.js');
|
|
7
7
|
require('../chunk-QGM4M3NI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.store =
|
|
13
|
+
exports.store = _chunkIF5NEXHCjs.store; exports.useCommonStore = _chunkIF5NEXHCjs.useCommonStore; exports.useDbStore = _chunkIF5NEXHCjs.useDbStore; exports.useMenuStore = _chunkIF5NEXHCjs.useMenuStore;
|
package/dist/stores/index.mjs
CHANGED
package/dist/uno-config/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCUXFXKGWjs = require('../chunk-CUXFXKGW.js');
|
|
5
5
|
require('../chunk-QGM4M3NI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.createUnoConfig =
|
|
9
|
+
exports.createUnoConfig = _chunkCUXFXKGWjs.createUnoConfig; exports.default = _chunkCUXFXKGWjs.uno_config_default;
|
package/dist/utils/index.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkIF5NEXHCjs = require('../chunk-IF5NEXHC.js');
|
|
25
25
|
require('../chunk-QGM4M3NI.js');
|
|
26
26
|
|
|
27
27
|
|
|
@@ -46,4 +46,4 @@ require('../chunk-QGM4M3NI.js');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.clamp =
|
|
49
|
+
exports.clamp = _chunkIF5NEXHCjs.clamp; exports.duplicateRemovalCompleteSort = _chunkIF5NEXHCjs.duplicateRemovalCompleteSort; exports.encryptPwd = _chunkIF5NEXHCjs.encryptPwd; exports.filterMenu = _chunkIF5NEXHCjs.filterMenu; exports.formatNumber = _chunkIF5NEXHCjs.formatNumber; exports.getDecimalPart = _chunkIF5NEXHCjs.getDecimalPart; exports.getIntegerPart = _chunkIF5NEXHCjs.getIntegerPart; exports.isInteger = _chunkIF5NEXHCjs.isInteger; exports.isNumber = _chunkIF5NEXHCjs.isNumber; exports.jsonp = _chunkIF5NEXHCjs.jsonp; exports.listSort = _chunkIF5NEXHCjs.listSort; exports.numberToChinese = _chunkIF5NEXHCjs.numberToChinese; exports.padZero = _chunkIF5NEXHCjs.padZero; exports.parseFormattedNumber = _chunkIF5NEXHCjs.parseFormattedNumber; exports.prototypeInterceptor = _chunkIF5NEXHCjs.prototypeInterceptor; exports.request = _chunkIF5NEXHCjs.request; exports.roundOrTruncate = _chunkIF5NEXHCjs.roundOrTruncate; exports.setupPermission = _chunkIF5NEXHCjs.setupPermission; exports.timeFix = _chunkIF5NEXHCjs.timeFix; exports.updateDocumentTitle = _chunkIF5NEXHCjs.updateDocumentTitle; exports.useLoginHook = _chunkIF5NEXHCjs.useLoginHook; exports.welcome = _chunkIF5NEXHCjs.welcome;
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3UKUH7Z2js = require('../chunk-3UKUH7Z2.js');
|
|
4
4
|
require('../chunk-QGM4M3NI.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.createBaseViteConfig =
|
|
7
|
+
exports.createBaseViteConfig = _chunk3UKUH7Z2js.createBaseViteConfig;
|
package/package.json
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ebuilds-shared",
|
|
3
|
-
"publishConfig": {
|
|
4
|
-
"access": "public"
|
|
5
|
-
},
|
|
6
|
-
"version": "0.1.
|
|
7
|
-
"description": "共享工具库和类型定义",
|
|
8
|
-
"author": "ebuilds",
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"keywords": [
|
|
11
|
-
"shared",
|
|
12
|
-
"utils",
|
|
13
|
-
"vue",
|
|
14
|
-
"pinia",
|
|
15
|
-
"vite"
|
|
16
|
-
],
|
|
17
|
-
"main": "dist/index.js",
|
|
18
|
-
"module": "dist/index.mjs",
|
|
19
|
-
"types": "dist/index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"default": "./dist/index.mjs",
|
|
23
|
-
"import": "./dist/index.mjs",
|
|
24
|
-
"require": "./dist/index.js",
|
|
25
|
-
"types": "./dist/index.d.ts"
|
|
26
|
-
},
|
|
27
|
-
"./utils": {
|
|
28
|
-
"default": "./dist/utils/index.mjs",
|
|
29
|
-
"import": "./dist/utils/index.mjs",
|
|
30
|
-
"require": "./dist/utils/index.js",
|
|
31
|
-
"types": "./dist/utils/index.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./stores": {
|
|
34
|
-
"default": "./dist/stores/index.mjs",
|
|
35
|
-
"import": "./dist/stores/index.mjs",
|
|
36
|
-
"require": "./dist/stores/index.js",
|
|
37
|
-
"types": "./dist/stores/index.d.ts"
|
|
38
|
-
},
|
|
39
|
-
"./vite-config": {
|
|
40
|
-
"default": "./dist/vite-config/index.mjs",
|
|
41
|
-
"import": "./dist/vite-config/index.mjs",
|
|
42
|
-
"require": "./dist/vite-config/index.js",
|
|
43
|
-
"types": "./dist/vite-config/index.d.mts"
|
|
44
|
-
},
|
|
45
|
-
"./uno-config": {
|
|
46
|
-
"default": "./dist/uno-config/index.mjs",
|
|
47
|
-
"import": "./dist/uno-config/index.mjs",
|
|
48
|
-
"require": "./dist/uno-config/index.js",
|
|
49
|
-
"types": "./dist/uno-config/index.d.ts"
|
|
50
|
-
},
|
|
51
|
-
"./functionalComponent": {
|
|
52
|
-
"default": "./dist/functionalComponent/index.mjs",
|
|
53
|
-
"import": "./dist/functionalComponent/index.mjs",
|
|
54
|
-
"require": "./dist/functionalComponent/index.js",
|
|
55
|
-
"types": "./dist/functionalComponent/index.d.ts"
|
|
56
|
-
},
|
|
57
|
-
"./styles": "./dist/styles/index.css"
|
|
58
|
-
},
|
|
59
|
-
"files": [
|
|
60
|
-
"dist"
|
|
61
|
-
],
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "tsup --config tsup.config.ts",
|
|
64
|
-
"dev": "tsup --config tsup.config.ts --watch",
|
|
65
|
-
"lint": "eslint --quiet \"src/**/*.{ts,tsx}\"",
|
|
66
|
-
"lint:fix": "eslint --quiet \"src/**/*.{ts,tsx}\" --fix",
|
|
67
|
-
"pub": "pnpm build && npm publish"
|
|
68
|
-
},
|
|
69
|
-
"peerDependencies": {
|
|
70
|
-
"pinia": "3.0.1"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"axios": "^1.8.4",
|
|
74
|
-
"jsencrypt": "^3.3.2"
|
|
75
|
-
},
|
|
76
|
-
"devDependencies": {
|
|
77
|
-
"tsup": "^8.0.2"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ebuilds-shared",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.1.2",
|
|
7
|
+
"description": "共享工具库和类型定义",
|
|
8
|
+
"author": "ebuilds",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"shared",
|
|
12
|
+
"utils",
|
|
13
|
+
"vue",
|
|
14
|
+
"pinia",
|
|
15
|
+
"vite"
|
|
16
|
+
],
|
|
17
|
+
"main": "dist/index.js",
|
|
18
|
+
"module": "dist/index.mjs",
|
|
19
|
+
"types": "dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"default": "./dist/index.mjs",
|
|
23
|
+
"import": "./dist/index.mjs",
|
|
24
|
+
"require": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./utils": {
|
|
28
|
+
"default": "./dist/utils/index.mjs",
|
|
29
|
+
"import": "./dist/utils/index.mjs",
|
|
30
|
+
"require": "./dist/utils/index.js",
|
|
31
|
+
"types": "./dist/utils/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./stores": {
|
|
34
|
+
"default": "./dist/stores/index.mjs",
|
|
35
|
+
"import": "./dist/stores/index.mjs",
|
|
36
|
+
"require": "./dist/stores/index.js",
|
|
37
|
+
"types": "./dist/stores/index.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./vite-config": {
|
|
40
|
+
"default": "./dist/vite-config/index.mjs",
|
|
41
|
+
"import": "./dist/vite-config/index.mjs",
|
|
42
|
+
"require": "./dist/vite-config/index.js",
|
|
43
|
+
"types": "./dist/vite-config/index.d.mts"
|
|
44
|
+
},
|
|
45
|
+
"./uno-config": {
|
|
46
|
+
"default": "./dist/uno-config/index.mjs",
|
|
47
|
+
"import": "./dist/uno-config/index.mjs",
|
|
48
|
+
"require": "./dist/uno-config/index.js",
|
|
49
|
+
"types": "./dist/uno-config/index.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./functionalComponent": {
|
|
52
|
+
"default": "./dist/functionalComponent/index.mjs",
|
|
53
|
+
"import": "./dist/functionalComponent/index.mjs",
|
|
54
|
+
"require": "./dist/functionalComponent/index.js",
|
|
55
|
+
"types": "./dist/functionalComponent/index.d.ts"
|
|
56
|
+
},
|
|
57
|
+
"./styles": "./dist/styles/index.css"
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsup --config tsup.config.ts",
|
|
64
|
+
"dev": "tsup --config tsup.config.ts --watch",
|
|
65
|
+
"lint": "eslint --quiet \"src/**/*.{ts,tsx}\"",
|
|
66
|
+
"lint:fix": "eslint --quiet \"src/**/*.{ts,tsx}\" --fix",
|
|
67
|
+
"pub": "pnpm build && npm publish"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"pinia": "3.0.1"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"axios": "^1.8.4",
|
|
74
|
+
"jsencrypt": "^3.3.2"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"tsup": "^8.0.2"
|
|
78
|
+
}
|
|
79
|
+
}
|
package/dist/chunk-MXO66M74.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/uno-config/index.ts
|
|
2
|
-
var _unocss = require('unocss');
|
|
3
|
-
function createUnoConfig() {
|
|
4
|
-
return _unocss.defineConfig.call(void 0, {
|
|
5
|
-
presets: [
|
|
6
|
-
_unocss.presetUno.call(void 0, ),
|
|
7
|
-
_unocss.presetAttributify.call(void 0, ),
|
|
8
|
-
_unocss.presetTypography.call(void 0, ),
|
|
9
|
-
_unocss.presetIcons.call(void 0, {
|
|
10
|
-
scale: 1.2,
|
|
11
|
-
warn: true,
|
|
12
|
-
extraProperties: {
|
|
13
|
-
display: "inline-block",
|
|
14
|
-
"vertical-align": "middle"
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
],
|
|
18
|
-
shortcuts: [
|
|
19
|
-
{
|
|
20
|
-
"flex-center": "flex items-center justify-center",
|
|
21
|
-
"content-auto": "content-visibility-auto",
|
|
22
|
-
"border-bottom": "border-b border-[#ebeef5] border-b-solid",
|
|
23
|
-
"portal-title": "border-bottom p-x-15px p-y-10px flex items-center justify-between",
|
|
24
|
-
"dashboard-title": "h-30px font-600 line-height-30px ml2 flex-inline",
|
|
25
|
-
"custom-card": "rounded-10px bg-white p10px",
|
|
26
|
-
"custom-border": "border border-solid border-[#E0E0E0]"
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
var uno_config_default = createUnoConfig;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
exports.createUnoConfig = createUnoConfig; exports.uno_config_default = uno_config_default;
|
package/dist/chunk-OW2EL2VY.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// src/uno-config/index.ts
|
|
2
|
-
import { defineConfig, presetAttributify, presetIcons, presetTypography, presetUno } from "unocss";
|
|
3
|
-
function createUnoConfig() {
|
|
4
|
-
return defineConfig({
|
|
5
|
-
presets: [
|
|
6
|
-
presetUno(),
|
|
7
|
-
presetAttributify(),
|
|
8
|
-
presetTypography(),
|
|
9
|
-
presetIcons({
|
|
10
|
-
scale: 1.2,
|
|
11
|
-
warn: true,
|
|
12
|
-
extraProperties: {
|
|
13
|
-
display: "inline-block",
|
|
14
|
-
"vertical-align": "middle"
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
],
|
|
18
|
-
shortcuts: [
|
|
19
|
-
{
|
|
20
|
-
"flex-center": "flex items-center justify-center",
|
|
21
|
-
"content-auto": "content-visibility-auto",
|
|
22
|
-
"border-bottom": "border-b border-[#ebeef5] border-b-solid",
|
|
23
|
-
"portal-title": "border-bottom p-x-15px p-y-10px flex items-center justify-between",
|
|
24
|
-
"dashboard-title": "h-30px font-600 line-height-30px ml2 flex-inline",
|
|
25
|
-
"custom-card": "rounded-10px bg-white p10px",
|
|
26
|
-
"custom-border": "border border-solid border-[#E0E0E0]"
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
var uno_config_default = createUnoConfig;
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
createUnoConfig,
|
|
35
|
-
uno_config_default
|
|
36
|
-
};
|