ebuilds-shared 0.1.2 → 0.1.4
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-2HIGYC6X.mjs +103 -0
- package/dist/{chunk-IF5NEXHC.js → chunk-7KNYDZK3.js} +32 -3
- package/dist/{chunk-5UW4MJ6S.mjs → chunk-EJOG7JQT.mjs} +32 -3
- package/dist/chunk-NKUZRJRI.js +103 -0
- package/dist/{chunk-3UKUH7Z2.js → chunk-SXCTVJBQ.js} +1 -1
- package/dist/{chunk-ZZ7LO5LB.mjs → chunk-UZQBIKY2.mjs} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.mjs +5 -3
- package/dist/stores/index.d.mts +3 -1
- package/dist/stores/index.d.ts +3 -1
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.mjs +1 -1
- package/dist/uno-config/index.d.mts +2 -2
- package/dist/uno-config/index.d.ts +2 -2
- package/dist/uno-config/index.js +2 -2
- package/dist/uno-config/index.mjs +1 -1
- package/dist/utils/index.d.mts +9 -1
- package/dist/utils/index.d.ts +9 -1
- package/dist/utils/index.js +4 -2
- package/dist/utils/index.mjs +3 -1
- package/dist/vite-config/index.js +2 -2
- package/dist/vite-config/index.mjs +1 -1
- package/package.json +3 -2
- package/dist/chunk-CUXFXKGW.js +0 -79
- package/dist/chunk-ESXS2BQB.mjs +0 -79
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// src/uno-config/index.ts
|
|
2
|
+
import {
|
|
3
|
+
defineConfig,
|
|
4
|
+
presetAttributify,
|
|
5
|
+
presetIcons,
|
|
6
|
+
presetTypography,
|
|
7
|
+
presetUno,
|
|
8
|
+
transformerDirectives,
|
|
9
|
+
transformerVariantGroup
|
|
10
|
+
} from "unocss";
|
|
11
|
+
|
|
12
|
+
// ../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/misc/strings.js
|
|
13
|
+
function camelize(str) {
|
|
14
|
+
return str.replace(/-([a-z0-9])/g, (g) => g[1].toUpperCase());
|
|
15
|
+
}
|
|
16
|
+
function pascalize(str) {
|
|
17
|
+
const camel = camelize(str);
|
|
18
|
+
return camel.slice(0, 1).toUpperCase() + camel.slice(1);
|
|
19
|
+
}
|
|
20
|
+
function camelToKebab(key) {
|
|
21
|
+
return key.replace(/:/g, "-").replace(/([A-Z])/g, " $1").trim().split(/\s+/g).join("-").toLowerCase();
|
|
22
|
+
}
|
|
23
|
+
function snakelize(str) {
|
|
24
|
+
return camelToKebab(str).replace(/-/g, "_");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/loader/node-loaders.js
|
|
28
|
+
import { promises } from "fs";
|
|
29
|
+
function FileSystemIconLoader(dir, transform) {
|
|
30
|
+
return async (name) => {
|
|
31
|
+
const paths = [
|
|
32
|
+
`${dir}/${name}.svg`,
|
|
33
|
+
`${dir}/${camelize(name)}.svg`,
|
|
34
|
+
`${dir}/${pascalize(name)}.svg`,
|
|
35
|
+
`${dir}/${snakelize(name)}.svg`
|
|
36
|
+
];
|
|
37
|
+
let stat;
|
|
38
|
+
for (const path2 of paths) {
|
|
39
|
+
try {
|
|
40
|
+
stat = await promises.lstat(path2);
|
|
41
|
+
} catch (err) {
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (stat.isFile()) {
|
|
45
|
+
let svg = await promises.readFile(path2, "utf-8");
|
|
46
|
+
const cleanupIdx = svg.indexOf("<svg");
|
|
47
|
+
if (cleanupIdx > 0) svg = svg.slice(cleanupIdx);
|
|
48
|
+
return typeof transform === "function" ? await transform(svg) : svg;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// src/uno-config/index.ts
|
|
55
|
+
import path from "path";
|
|
56
|
+
var LIB_ROOT_DIR = path.resolve(__dirname, "..");
|
|
57
|
+
var COMMON_ICONS_DIR = path.join(LIB_ROOT_DIR, "src", "icons");
|
|
58
|
+
function createUnoConfig(iconCollections) {
|
|
59
|
+
return defineConfig({
|
|
60
|
+
presets: [
|
|
61
|
+
presetUno(),
|
|
62
|
+
presetAttributify(),
|
|
63
|
+
presetTypography(),
|
|
64
|
+
presetIcons({
|
|
65
|
+
prefix: "i-",
|
|
66
|
+
collections: {
|
|
67
|
+
"common-icons": FileSystemIconLoader(COMMON_ICONS_DIR, (svg) => svg.replace(/^<svg /, '<svg fill="currentColor" ')),
|
|
68
|
+
...iconCollections
|
|
69
|
+
},
|
|
70
|
+
scale: 1.2,
|
|
71
|
+
autoInstall: false,
|
|
72
|
+
warn: true,
|
|
73
|
+
extraProperties: {
|
|
74
|
+
display: "inline-block",
|
|
75
|
+
"vertical-align": "middle"
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
],
|
|
79
|
+
shortcuts: [
|
|
80
|
+
{
|
|
81
|
+
"flex-center": "flex items-center justify-center",
|
|
82
|
+
"content-auto": "content-visibility-auto",
|
|
83
|
+
"border-bottom": "border-b border-[#ebeef5] border-b-solid",
|
|
84
|
+
"portal-title": "border-bottom p-x-15px p-y-10px flex items-center justify-between",
|
|
85
|
+
"dashboard-title": "h-30px font-600 line-height-30px ml2 flex-inline",
|
|
86
|
+
"custom-card": "rounded-10px bg-white p10px",
|
|
87
|
+
"custom-border": "border border-solid border-[#E0E0E0]"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
transformers: [
|
|
91
|
+
transformerDirectives(),
|
|
92
|
+
// 启用 @apply 指令
|
|
93
|
+
transformerVariantGroup()
|
|
94
|
+
// 启用 hover:(bg-blue text-white) 语法
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
var uno_config_default = createUnoConfig;
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
createUnoConfig,
|
|
102
|
+
uno_config_default
|
|
103
|
+
};
|
|
@@ -6256,7 +6256,9 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6256
6256
|
// 更新日志
|
|
6257
6257
|
updateLog: [],
|
|
6258
6258
|
// 主题色
|
|
6259
|
-
themeColor: ""
|
|
6259
|
+
themeColor: "",
|
|
6260
|
+
// 更新日志是否已更新
|
|
6261
|
+
updateLogLoaded: false
|
|
6260
6262
|
}),
|
|
6261
6263
|
getters: {
|
|
6262
6264
|
getCurlBaseUrl() {
|
|
@@ -6275,6 +6277,7 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6275
6277
|
return this.websiteTitle;
|
|
6276
6278
|
},
|
|
6277
6279
|
getUpdateLog() {
|
|
6280
|
+
this.updateLogLoaded = false;
|
|
6278
6281
|
return this.updateLog;
|
|
6279
6282
|
},
|
|
6280
6283
|
getSystemTitle() {
|
|
@@ -6287,6 +6290,9 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6287
6290
|
const result = this.themeColor || "#056DB1";
|
|
6288
6291
|
document.documentElement.style.setProperty("--eb-color-primary", result);
|
|
6289
6292
|
return result;
|
|
6293
|
+
},
|
|
6294
|
+
getUpdateLogLoaded() {
|
|
6295
|
+
return this.updateLogLoaded;
|
|
6290
6296
|
}
|
|
6291
6297
|
},
|
|
6292
6298
|
actions: {
|
|
@@ -6323,6 +6329,7 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6323
6329
|
const { data } = await _axios2.default.get(this.getPublicUrl + "/config/updateLog.json", {
|
|
6324
6330
|
params: { _t: Date.now() }
|
|
6325
6331
|
});
|
|
6332
|
+
this.updateLogLoaded = true;
|
|
6326
6333
|
this.updateLog = data;
|
|
6327
6334
|
},
|
|
6328
6335
|
/**
|
|
@@ -6347,7 +6354,7 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6347
6354
|
enable: true,
|
|
6348
6355
|
option: {
|
|
6349
6356
|
storage: "local",
|
|
6350
|
-
include: ["updateLog", "themeColor"]
|
|
6357
|
+
include: ["updateLog", "themeColor", "updateLogLoaded"]
|
|
6351
6358
|
}
|
|
6352
6359
|
}
|
|
6353
6360
|
});
|
|
@@ -6489,6 +6496,7 @@ function setupPermission(router, useMenuStore2, pages = {}, useUserStore) {
|
|
|
6489
6496
|
if (window.microApp) {
|
|
6490
6497
|
const data = window.microApp.getData();
|
|
6491
6498
|
if (data.userState) {
|
|
6499
|
+
data.userState.toPath = to.path;
|
|
6492
6500
|
userStore.setState(data.userState);
|
|
6493
6501
|
}
|
|
6494
6502
|
}
|
|
@@ -6760,6 +6768,26 @@ var jsonp = (url, params = {}, options = {}) => {
|
|
|
6760
6768
|
});
|
|
6761
6769
|
};
|
|
6762
6770
|
|
|
6771
|
+
// src/utils/functionalComponent.ts
|
|
6772
|
+
|
|
6773
|
+
function createFunctionalComponent(component, options) {
|
|
6774
|
+
const { slots, ...props } = options;
|
|
6775
|
+
const container = document.createElement("div");
|
|
6776
|
+
const vnode = _vue.createVNode.call(void 0, component, props, slots);
|
|
6777
|
+
_vue.render.call(void 0, vnode, container);
|
|
6778
|
+
document.body.appendChild(container.firstElementChild);
|
|
6779
|
+
const instance = _optionalChain([vnode, 'access', _12 => _12.component, 'optionalAccess', _13 => _13.exposed]) || {};
|
|
6780
|
+
instance.destroy = (delay = 300) => {
|
|
6781
|
+
setTimeout(() => {
|
|
6782
|
+
_vue.render.call(void 0, null, container);
|
|
6783
|
+
if (container.firstElementChild) {
|
|
6784
|
+
document.body.removeChild(container.firstElementChild);
|
|
6785
|
+
}
|
|
6786
|
+
}, delay);
|
|
6787
|
+
};
|
|
6788
|
+
return instance;
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6763
6791
|
// src/stores/modules/menuStore.ts
|
|
6764
6792
|
var handleRoutes = (routes, pages) => {
|
|
6765
6793
|
return routes.map((route) => {
|
|
@@ -6865,7 +6893,8 @@ function store(app, option = {}) {
|
|
|
6865
6893
|
|
|
6866
6894
|
|
|
6867
6895
|
|
|
6868
|
-
|
|
6896
|
+
|
|
6897
|
+
exports.useDbStore = useDbStore; exports.useCommonStore = useCommonStore; exports.useMenuStore = useMenuStore; exports.store = store; exports.request = request; exports.useLoginHook = useLoginHook; exports.updateDocumentTitle = updateDocumentTitle; exports.filterMenu = filterMenu; exports.setupPermission = setupPermission; exports.listSort = listSort; exports.duplicateRemovalCompleteSort = duplicateRemovalCompleteSort; exports.roundOrTruncate = roundOrTruncate; exports.formatNumber = formatNumber; exports.parseFormattedNumber = parseFormattedNumber; exports.padZero = padZero; exports.getIntegerPart = getIntegerPart; exports.getDecimalPart = getDecimalPart; exports.numberToChinese = numberToChinese; exports.clamp = clamp; exports.isInteger = isInteger; exports.isNumber = isNumber; exports.prototypeInterceptor = prototypeInterceptor; exports.timeFix = timeFix; exports.welcome = welcome; exports.encryptPwd = encryptPwd; exports.jsonp = jsonp; exports.createFunctionalComponent = createFunctionalComponent;
|
|
6869
6898
|
/*! Bundled license information:
|
|
6870
6899
|
|
|
6871
6900
|
lodash/lodash.js:
|
|
@@ -6256,7 +6256,9 @@ var useCommonStore = defineStore2("common", {
|
|
|
6256
6256
|
// 更新日志
|
|
6257
6257
|
updateLog: [],
|
|
6258
6258
|
// 主题色
|
|
6259
|
-
themeColor: ""
|
|
6259
|
+
themeColor: "",
|
|
6260
|
+
// 更新日志是否已更新
|
|
6261
|
+
updateLogLoaded: false
|
|
6260
6262
|
}),
|
|
6261
6263
|
getters: {
|
|
6262
6264
|
getCurlBaseUrl() {
|
|
@@ -6275,6 +6277,7 @@ var useCommonStore = defineStore2("common", {
|
|
|
6275
6277
|
return this.websiteTitle;
|
|
6276
6278
|
},
|
|
6277
6279
|
getUpdateLog() {
|
|
6280
|
+
this.updateLogLoaded = false;
|
|
6278
6281
|
return this.updateLog;
|
|
6279
6282
|
},
|
|
6280
6283
|
getSystemTitle() {
|
|
@@ -6287,6 +6290,9 @@ var useCommonStore = defineStore2("common", {
|
|
|
6287
6290
|
const result = this.themeColor || "#056DB1";
|
|
6288
6291
|
document.documentElement.style.setProperty("--eb-color-primary", result);
|
|
6289
6292
|
return result;
|
|
6293
|
+
},
|
|
6294
|
+
getUpdateLogLoaded() {
|
|
6295
|
+
return this.updateLogLoaded;
|
|
6290
6296
|
}
|
|
6291
6297
|
},
|
|
6292
6298
|
actions: {
|
|
@@ -6323,6 +6329,7 @@ var useCommonStore = defineStore2("common", {
|
|
|
6323
6329
|
const { data } = await axios.get(this.getPublicUrl + "/config/updateLog.json", {
|
|
6324
6330
|
params: { _t: Date.now() }
|
|
6325
6331
|
});
|
|
6332
|
+
this.updateLogLoaded = true;
|
|
6326
6333
|
this.updateLog = data;
|
|
6327
6334
|
},
|
|
6328
6335
|
/**
|
|
@@ -6347,7 +6354,7 @@ var useCommonStore = defineStore2("common", {
|
|
|
6347
6354
|
enable: true,
|
|
6348
6355
|
option: {
|
|
6349
6356
|
storage: "local",
|
|
6350
|
-
include: ["updateLog", "themeColor"]
|
|
6357
|
+
include: ["updateLog", "themeColor", "updateLogLoaded"]
|
|
6351
6358
|
}
|
|
6352
6359
|
}
|
|
6353
6360
|
});
|
|
@@ -6489,6 +6496,7 @@ function setupPermission(router, useMenuStore2, pages = {}, useUserStore) {
|
|
|
6489
6496
|
if (window.microApp) {
|
|
6490
6497
|
const data = window.microApp.getData();
|
|
6491
6498
|
if (data.userState) {
|
|
6499
|
+
data.userState.toPath = to.path;
|
|
6492
6500
|
userStore.setState(data.userState);
|
|
6493
6501
|
}
|
|
6494
6502
|
}
|
|
@@ -6760,6 +6768,26 @@ var jsonp = (url, params = {}, options = {}) => {
|
|
|
6760
6768
|
});
|
|
6761
6769
|
};
|
|
6762
6770
|
|
|
6771
|
+
// src/utils/functionalComponent.ts
|
|
6772
|
+
import { createVNode, render } from "vue";
|
|
6773
|
+
function createFunctionalComponent(component, options) {
|
|
6774
|
+
const { slots, ...props } = options;
|
|
6775
|
+
const container = document.createElement("div");
|
|
6776
|
+
const vnode = createVNode(component, props, slots);
|
|
6777
|
+
render(vnode, container);
|
|
6778
|
+
document.body.appendChild(container.firstElementChild);
|
|
6779
|
+
const instance = vnode.component?.exposed || {};
|
|
6780
|
+
instance.destroy = (delay = 300) => {
|
|
6781
|
+
setTimeout(() => {
|
|
6782
|
+
render(null, container);
|
|
6783
|
+
if (container.firstElementChild) {
|
|
6784
|
+
document.body.removeChild(container.firstElementChild);
|
|
6785
|
+
}
|
|
6786
|
+
}, delay);
|
|
6787
|
+
};
|
|
6788
|
+
return instance;
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6763
6791
|
// src/stores/modules/menuStore.ts
|
|
6764
6792
|
var handleRoutes = (routes, pages) => {
|
|
6765
6793
|
return routes.map((route) => {
|
|
@@ -6864,7 +6892,8 @@ export {
|
|
|
6864
6892
|
timeFix,
|
|
6865
6893
|
welcome,
|
|
6866
6894
|
encryptPwd,
|
|
6867
|
-
jsonp
|
|
6895
|
+
jsonp,
|
|
6896
|
+
createFunctionalComponent
|
|
6868
6897
|
};
|
|
6869
6898
|
/*! Bundled license information:
|
|
6870
6899
|
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/uno-config/index.ts
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _unocss = require('unocss');
|
|
11
|
+
|
|
12
|
+
// ../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/misc/strings.js
|
|
13
|
+
function camelize(str) {
|
|
14
|
+
return str.replace(/-([a-z0-9])/g, (g) => g[1].toUpperCase());
|
|
15
|
+
}
|
|
16
|
+
function pascalize(str) {
|
|
17
|
+
const camel = camelize(str);
|
|
18
|
+
return camel.slice(0, 1).toUpperCase() + camel.slice(1);
|
|
19
|
+
}
|
|
20
|
+
function camelToKebab(key) {
|
|
21
|
+
return key.replace(/:/g, "-").replace(/([A-Z])/g, " $1").trim().split(/\s+/g).join("-").toLowerCase();
|
|
22
|
+
}
|
|
23
|
+
function snakelize(str) {
|
|
24
|
+
return camelToKebab(str).replace(/-/g, "_");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/loader/node-loaders.js
|
|
28
|
+
var _fs = require('fs');
|
|
29
|
+
function FileSystemIconLoader(dir, transform) {
|
|
30
|
+
return async (name) => {
|
|
31
|
+
const paths = [
|
|
32
|
+
`${dir}/${name}.svg`,
|
|
33
|
+
`${dir}/${camelize(name)}.svg`,
|
|
34
|
+
`${dir}/${pascalize(name)}.svg`,
|
|
35
|
+
`${dir}/${snakelize(name)}.svg`
|
|
36
|
+
];
|
|
37
|
+
let stat;
|
|
38
|
+
for (const path2 of paths) {
|
|
39
|
+
try {
|
|
40
|
+
stat = await _fs.promises.lstat(path2);
|
|
41
|
+
} catch (err) {
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (stat.isFile()) {
|
|
45
|
+
let svg = await _fs.promises.readFile(path2, "utf-8");
|
|
46
|
+
const cleanupIdx = svg.indexOf("<svg");
|
|
47
|
+
if (cleanupIdx > 0) svg = svg.slice(cleanupIdx);
|
|
48
|
+
return typeof transform === "function" ? await transform(svg) : svg;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// src/uno-config/index.ts
|
|
55
|
+
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
56
|
+
var LIB_ROOT_DIR = _path2.default.resolve(__dirname, "..");
|
|
57
|
+
var COMMON_ICONS_DIR = _path2.default.join(LIB_ROOT_DIR, "src", "icons");
|
|
58
|
+
function createUnoConfig(iconCollections) {
|
|
59
|
+
return _unocss.defineConfig.call(void 0, {
|
|
60
|
+
presets: [
|
|
61
|
+
_unocss.presetUno.call(void 0, ),
|
|
62
|
+
_unocss.presetAttributify.call(void 0, ),
|
|
63
|
+
_unocss.presetTypography.call(void 0, ),
|
|
64
|
+
_unocss.presetIcons.call(void 0, {
|
|
65
|
+
prefix: "i-",
|
|
66
|
+
collections: {
|
|
67
|
+
"common-icons": FileSystemIconLoader(COMMON_ICONS_DIR, (svg) => svg.replace(/^<svg /, '<svg fill="currentColor" ')),
|
|
68
|
+
...iconCollections
|
|
69
|
+
},
|
|
70
|
+
scale: 1.2,
|
|
71
|
+
autoInstall: false,
|
|
72
|
+
warn: true,
|
|
73
|
+
extraProperties: {
|
|
74
|
+
display: "inline-block",
|
|
75
|
+
"vertical-align": "middle"
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
],
|
|
79
|
+
shortcuts: [
|
|
80
|
+
{
|
|
81
|
+
"flex-center": "flex items-center justify-center",
|
|
82
|
+
"content-auto": "content-visibility-auto",
|
|
83
|
+
"border-bottom": "border-b border-[#ebeef5] border-b-solid",
|
|
84
|
+
"portal-title": "border-bottom p-x-15px p-y-10px flex items-center justify-between",
|
|
85
|
+
"dashboard-title": "h-30px font-600 line-height-30px ml2 flex-inline",
|
|
86
|
+
"custom-card": "rounded-10px bg-white p10px",
|
|
87
|
+
"custom-border": "border border-solid border-[#E0E0E0]"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
transformers: [
|
|
91
|
+
_unocss.transformerDirectives.call(void 0, ),
|
|
92
|
+
// 启用 @apply 指令
|
|
93
|
+
_unocss.transformerVariantGroup.call(void 0, )
|
|
94
|
+
// 启用 hover:(bg-blue text-white) 语法
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
var uno_config_default = createUnoConfig;
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
exports.createUnoConfig = createUnoConfig; exports.uno_config_default = uno_config_default;
|
|
@@ -133,7 +133,7 @@ var require_supports_color = _chunkQGM4M3NIjs.__commonJS.call(void 0, {
|
|
|
133
133
|
// src/vite-config/index.ts
|
|
134
134
|
var _vite = require('vite');
|
|
135
135
|
|
|
136
|
-
// ../node_modules/.pnpm/@vitejs+plugin-vue@5.2.4_vite@6.4.1_@types+node@22.19.
|
|
136
|
+
// ../node_modules/.pnpm/@vitejs+plugin-vue@5.2.4_vite@6.4.1_@types+node@22.19.3_jiti@2.6.1_less@4.5.1_sass-embedded@1_s4xy5zaghyb6yswdann26222ty/node_modules/@vitejs/plugin-vue/dist/index.mjs
|
|
137
137
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
138
138
|
|
|
139
139
|
var _vue = require('vue');
|
|
@@ -133,7 +133,7 @@ var require_supports_color = __commonJS({
|
|
|
133
133
|
// src/vite-config/index.ts
|
|
134
134
|
import { defineConfig, loadEnv } from "vite";
|
|
135
135
|
|
|
136
|
-
// ../node_modules/.pnpm/@vitejs+plugin-vue@5.2.4_vite@6.4.1_@types+node@22.19.
|
|
136
|
+
// ../node_modules/.pnpm/@vitejs+plugin-vue@5.2.4_vite@6.4.1_@types+node@22.19.3_jiti@2.6.1_less@4.5.1_sass-embedded@1_s4xy5zaghyb6yswdann26222ty/node_modules/@vitejs/plugin-vue/dist/index.mjs
|
|
137
137
|
import fs from "fs";
|
|
138
138
|
import { normalizePath as normalizePath$1, isCSSRequest, transformWithEsbuild, formatPostcssSourceMap, createFilter } from "vite";
|
|
139
139
|
import { shallowRef, computed } from "vue";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FormState, clamp, curlParams, duplicateRemovalCompleteSort, encryptPwd, formatNumber, getDecimalPart, getIntegerPart, isInteger, isNumber, jsonp, listSort, numberToChinese, padZero, parseFormattedNumber, prototypeInterceptor, request, roundOrTruncate, setupPermission, timeFix, useLoginHook, welcome } from './utils/index.mjs';
|
|
1
|
+
export { FormState, clamp, createFunctionalComponent, curlParams, duplicateRemovalCompleteSort, encryptPwd, formatNumber, getDecimalPart, getIntegerPart, isInteger, isNumber, jsonp, listSort, numberToChinese, padZero, parseFormattedNumber, prototypeInterceptor, request, roundOrTruncate, setupPermission, timeFix, useLoginHook, welcome } from './utils/index.mjs';
|
|
2
2
|
export { M as MenuItem, f as filterMenu, u as updateDocumentTitle } from './index-CVmrbYyU.mjs';
|
|
3
3
|
export { createBaseViteConfig } from './vite-config/index.mjs';
|
|
4
4
|
export { MenuState, store, useCommonStore, useDbStore, useMenuStore } from './stores/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FormState, clamp, curlParams, duplicateRemovalCompleteSort, encryptPwd, formatNumber, getDecimalPart, getIntegerPart, isInteger, isNumber, jsonp, listSort, numberToChinese, padZero, parseFormattedNumber, prototypeInterceptor, request, roundOrTruncate, setupPermission, timeFix, useLoginHook, welcome } from './utils/index.js';
|
|
1
|
+
export { FormState, clamp, createFunctionalComponent, curlParams, duplicateRemovalCompleteSort, encryptPwd, formatNumber, getDecimalPart, getIntegerPart, isInteger, isNumber, jsonp, listSort, numberToChinese, padZero, parseFormattedNumber, prototypeInterceptor, request, roundOrTruncate, setupPermission, timeFix, useLoginHook, welcome } from './utils/index.js';
|
|
2
2
|
export { M as MenuItem, f as filterMenu, u as updateDocumentTitle } from './index-CVmrbYyU.js';
|
|
3
3
|
export { createBaseViteConfig } from './vite-config/index.js';
|
|
4
4
|
export { MenuState, store, useCommonStore, useDbStore, useMenuStore } from './stores/index.js';
|
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 _chunkNKUZRJRIjs = require('./chunk-NKUZRJRI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -28,10 +28,11 @@ var _chunkCUXFXKGWjs = require('./chunk-CUXFXKGW.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var _chunkIF5NEXHCjs = require('./chunk-IF5NEXHC.js');
|
|
32
31
|
|
|
32
|
+
var _chunk7KNYDZK3js = require('./chunk-7KNYDZK3.js');
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
var _chunkSXCTVJBQjs = require('./chunk-SXCTVJBQ.js');
|
|
35
36
|
require('./chunk-QGM4M3NI.js');
|
|
36
37
|
|
|
37
38
|
|
|
@@ -62,4 +63,5 @@ require('./chunk-QGM4M3NI.js');
|
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
|
|
67
|
+
exports.clamp = _chunk7KNYDZK3js.clamp; exports.createBaseViteConfig = _chunkSXCTVJBQjs.createBaseViteConfig; exports.createFunctionalComponent = _chunk7KNYDZK3js.createFunctionalComponent; exports.createUnoConfig = _chunkNKUZRJRIjs.createUnoConfig; exports.duplicateRemovalCompleteSort = _chunk7KNYDZK3js.duplicateRemovalCompleteSort; exports.encryptPwd = _chunk7KNYDZK3js.encryptPwd; exports.filterMenu = _chunk7KNYDZK3js.filterMenu; exports.formatNumber = _chunk7KNYDZK3js.formatNumber; exports.getDecimalPart = _chunk7KNYDZK3js.getDecimalPart; exports.getIntegerPart = _chunk7KNYDZK3js.getIntegerPart; exports.isInteger = _chunk7KNYDZK3js.isInteger; exports.isNumber = _chunk7KNYDZK3js.isNumber; exports.jsonp = _chunk7KNYDZK3js.jsonp; exports.listSort = _chunk7KNYDZK3js.listSort; exports.numberToChinese = _chunk7KNYDZK3js.numberToChinese; exports.padZero = _chunk7KNYDZK3js.padZero; exports.parseFormattedNumber = _chunk7KNYDZK3js.parseFormattedNumber; exports.prototypeInterceptor = _chunk7KNYDZK3js.prototypeInterceptor; exports.request = _chunk7KNYDZK3js.request; exports.roundOrTruncate = _chunk7KNYDZK3js.roundOrTruncate; exports.setupPermission = _chunk7KNYDZK3js.setupPermission; exports.store = _chunk7KNYDZK3js.store; exports.timeFix = _chunk7KNYDZK3js.timeFix; exports.updateDocumentTitle = _chunk7KNYDZK3js.updateDocumentTitle; exports.useCommonStore = _chunk7KNYDZK3js.useCommonStore; exports.useDbStore = _chunk7KNYDZK3js.useDbStore; exports.useLoginHook = _chunk7KNYDZK3js.useLoginHook; exports.useMenuStore = _chunk7KNYDZK3js.useMenuStore; exports.welcome = _chunk7KNYDZK3js.welcome;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createUnoConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2HIGYC6X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
clamp,
|
|
6
|
+
createFunctionalComponent,
|
|
6
7
|
duplicateRemovalCompleteSort,
|
|
7
8
|
encryptPwd,
|
|
8
9
|
filterMenu,
|
|
@@ -28,14 +29,15 @@ import {
|
|
|
28
29
|
useLoginHook,
|
|
29
30
|
useMenuStore,
|
|
30
31
|
welcome
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EJOG7JQT.mjs";
|
|
32
33
|
import {
|
|
33
34
|
createBaseViteConfig
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UZQBIKY2.mjs";
|
|
35
36
|
import "./chunk-6DZX6EAA.mjs";
|
|
36
37
|
export {
|
|
37
38
|
clamp,
|
|
38
39
|
createBaseViteConfig,
|
|
40
|
+
createFunctionalComponent,
|
|
39
41
|
createUnoConfig,
|
|
40
42
|
duplicateRemovalCompleteSort,
|
|
41
43
|
encryptPwd,
|
package/dist/stores/index.d.mts
CHANGED
|
@@ -235,9 +235,10 @@ interface CommonState {
|
|
|
235
235
|
content: {
|
|
236
236
|
title: string;
|
|
237
237
|
content: string[];
|
|
238
|
-
};
|
|
238
|
+
}[];
|
|
239
239
|
}[];
|
|
240
240
|
themeColor: string;
|
|
241
|
+
updateLogLoaded: boolean;
|
|
241
242
|
}
|
|
242
243
|
declare const useCommonStore: pinia.StoreDefinition<"common", CommonState, {
|
|
243
244
|
getCurlBaseUrl(): CommonState["curlBaseUrl"];
|
|
@@ -249,6 +250,7 @@ declare const useCommonStore: pinia.StoreDefinition<"common", CommonState, {
|
|
|
249
250
|
getSystemTitle(): CommonState["systemTitle"];
|
|
250
251
|
getPublicUrl(): string;
|
|
251
252
|
getThemeColor(): CommonState["themeColor"];
|
|
253
|
+
getUpdateLogLoaded(): CommonState["updateLogLoaded"];
|
|
252
254
|
}, {
|
|
253
255
|
/**
|
|
254
256
|
* 加载配置
|
package/dist/stores/index.d.ts
CHANGED
|
@@ -235,9 +235,10 @@ interface CommonState {
|
|
|
235
235
|
content: {
|
|
236
236
|
title: string;
|
|
237
237
|
content: string[];
|
|
238
|
-
};
|
|
238
|
+
}[];
|
|
239
239
|
}[];
|
|
240
240
|
themeColor: string;
|
|
241
|
+
updateLogLoaded: boolean;
|
|
241
242
|
}
|
|
242
243
|
declare const useCommonStore: pinia.StoreDefinition<"common", CommonState, {
|
|
243
244
|
getCurlBaseUrl(): CommonState["curlBaseUrl"];
|
|
@@ -249,6 +250,7 @@ declare const useCommonStore: pinia.StoreDefinition<"common", CommonState, {
|
|
|
249
250
|
getSystemTitle(): CommonState["systemTitle"];
|
|
250
251
|
getPublicUrl(): string;
|
|
251
252
|
getThemeColor(): CommonState["themeColor"];
|
|
253
|
+
getUpdateLogLoaded(): CommonState["updateLogLoaded"];
|
|
252
254
|
}, {
|
|
253
255
|
/**
|
|
254
256
|
* 加载配置
|
package/dist/stores/index.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7KNYDZK3js = require('../chunk-7KNYDZK3.js');
|
|
7
7
|
require('../chunk-QGM4M3NI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.store =
|
|
13
|
+
exports.store = _chunk7KNYDZK3js.store; exports.useCommonStore = _chunk7KNYDZK3js.useCommonStore; exports.useDbStore = _chunk7KNYDZK3js.useDbStore; exports.useMenuStore = _chunk7KNYDZK3js.useMenuStore;
|
package/dist/stores/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PresetOptions, UserConfig } from 'unocss';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 创建 UnoCSS 配置
|
|
5
5
|
*/
|
|
6
|
-
declare function createUnoConfig():
|
|
6
|
+
declare function createUnoConfig(iconCollections?: PresetOptions['collections']): UserConfig;
|
|
7
7
|
|
|
8
8
|
export { createUnoConfig, createUnoConfig as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PresetOptions, UserConfig } from 'unocss';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 创建 UnoCSS 配置
|
|
5
5
|
*/
|
|
6
|
-
declare function createUnoConfig():
|
|
6
|
+
declare function createUnoConfig(iconCollections?: PresetOptions['collections']): UserConfig;
|
|
7
7
|
|
|
8
8
|
export { createUnoConfig, createUnoConfig as default };
|
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 _chunkNKUZRJRIjs = require('../chunk-NKUZRJRI.js');
|
|
5
5
|
require('../chunk-QGM4M3NI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.createUnoConfig =
|
|
9
|
+
exports.createUnoConfig = _chunkNKUZRJRIjs.createUnoConfig; exports.default = _chunkNKUZRJRIjs.uno_config_default;
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -156,4 +156,12 @@ declare const jsonp: <T = any>(url: string, params?: Record<string, any>, option
|
|
|
156
156
|
timeout?: number;
|
|
157
157
|
}) => Promise<T>;
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
/**
|
|
160
|
+
* @description 创建函数式组件实例,支持动态挂载和销毁
|
|
161
|
+
* @param component 需要创建的Vue组件
|
|
162
|
+
* @param options 组件的配置项,包含props、provide和slots
|
|
163
|
+
* @returns 返回组件实例,包含destroy方法用于销毁组件
|
|
164
|
+
*/
|
|
165
|
+
declare function createFunctionalComponent(component: any, options: Record<string, any>): Record<string, any>;
|
|
166
|
+
|
|
167
|
+
export { type FormState, clamp, createFunctionalComponent, type curlParams, duplicateRemovalCompleteSort, encryptPwd, formatNumber, getDecimalPart, getIntegerPart, isInteger, isNumber, jsonp, listSort, numberToChinese, padZero, parseFormattedNumber, prototypeInterceptor, request, roundOrTruncate, setupPermission, timeFix, useLoginHook, welcome };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -156,4 +156,12 @@ declare const jsonp: <T = any>(url: string, params?: Record<string, any>, option
|
|
|
156
156
|
timeout?: number;
|
|
157
157
|
}) => Promise<T>;
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
/**
|
|
160
|
+
* @description 创建函数式组件实例,支持动态挂载和销毁
|
|
161
|
+
* @param component 需要创建的Vue组件
|
|
162
|
+
* @param options 组件的配置项,包含props、provide和slots
|
|
163
|
+
* @returns 返回组件实例,包含destroy方法用于销毁组件
|
|
164
|
+
*/
|
|
165
|
+
declare function createFunctionalComponent(component: any, options: Record<string, any>): Record<string, any>;
|
|
166
|
+
|
|
167
|
+
export { type FormState, clamp, createFunctionalComponent, type curlParams, duplicateRemovalCompleteSort, encryptPwd, formatNumber, getDecimalPart, getIntegerPart, isInteger, isNumber, jsonp, listSort, numberToChinese, padZero, parseFormattedNumber, prototypeInterceptor, request, roundOrTruncate, setupPermission, timeFix, useLoginHook, welcome };
|
package/dist/utils/index.js
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
var _chunk7KNYDZK3js = require('../chunk-7KNYDZK3.js');
|
|
25
26
|
require('../chunk-QGM4M3NI.js');
|
|
26
27
|
|
|
27
28
|
|
|
@@ -46,4 +47,5 @@ require('../chunk-QGM4M3NI.js');
|
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
|
|
51
|
+
exports.clamp = _chunk7KNYDZK3js.clamp; exports.createFunctionalComponent = _chunk7KNYDZK3js.createFunctionalComponent; exports.duplicateRemovalCompleteSort = _chunk7KNYDZK3js.duplicateRemovalCompleteSort; exports.encryptPwd = _chunk7KNYDZK3js.encryptPwd; exports.filterMenu = _chunk7KNYDZK3js.filterMenu; exports.formatNumber = _chunk7KNYDZK3js.formatNumber; exports.getDecimalPart = _chunk7KNYDZK3js.getDecimalPart; exports.getIntegerPart = _chunk7KNYDZK3js.getIntegerPart; exports.isInteger = _chunk7KNYDZK3js.isInteger; exports.isNumber = _chunk7KNYDZK3js.isNumber; exports.jsonp = _chunk7KNYDZK3js.jsonp; exports.listSort = _chunk7KNYDZK3js.listSort; exports.numberToChinese = _chunk7KNYDZK3js.numberToChinese; exports.padZero = _chunk7KNYDZK3js.padZero; exports.parseFormattedNumber = _chunk7KNYDZK3js.parseFormattedNumber; exports.prototypeInterceptor = _chunk7KNYDZK3js.prototypeInterceptor; exports.request = _chunk7KNYDZK3js.request; exports.roundOrTruncate = _chunk7KNYDZK3js.roundOrTruncate; exports.setupPermission = _chunk7KNYDZK3js.setupPermission; exports.timeFix = _chunk7KNYDZK3js.timeFix; exports.updateDocumentTitle = _chunk7KNYDZK3js.updateDocumentTitle; exports.useLoginHook = _chunk7KNYDZK3js.useLoginHook; exports.welcome = _chunk7KNYDZK3js.welcome;
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clamp,
|
|
3
|
+
createFunctionalComponent,
|
|
3
4
|
duplicateRemovalCompleteSort,
|
|
4
5
|
encryptPwd,
|
|
5
6
|
filterMenu,
|
|
@@ -21,10 +22,11 @@ import {
|
|
|
21
22
|
updateDocumentTitle,
|
|
22
23
|
useLoginHook,
|
|
23
24
|
welcome
|
|
24
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-EJOG7JQT.mjs";
|
|
25
26
|
import "../chunk-6DZX6EAA.mjs";
|
|
26
27
|
export {
|
|
27
28
|
clamp,
|
|
29
|
+
createFunctionalComponent,
|
|
28
30
|
duplicateRemovalCompleteSort,
|
|
29
31
|
encryptPwd,
|
|
30
32
|
filterMenu,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSXCTVJBQjs = require('../chunk-SXCTVJBQ.js');
|
|
4
4
|
require('../chunk-QGM4M3NI.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.createBaseViteConfig =
|
|
7
|
+
exports.createBaseViteConfig = _chunkSXCTVJBQjs.createBaseViteConfig;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.4",
|
|
7
7
|
"description": "共享工具库和类型定义",
|
|
8
8
|
"author": "ebuilds",
|
|
9
9
|
"license": "MIT",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"dev": "tsup --config tsup.config.ts --watch",
|
|
65
65
|
"lint": "eslint --quiet \"src/**/*.{ts,tsx}\"",
|
|
66
66
|
"lint:fix": "eslint --quiet \"src/**/*.{ts,tsx}\" --fix",
|
|
67
|
-
"pub": "
|
|
67
|
+
"pub": "npm publish"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"pinia": "3.0.1"
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"jsencrypt": "^3.3.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
+
"@monorepo/ebuilds-ui": "workspace:*",
|
|
77
78
|
"tsup": "^8.0.2"
|
|
78
79
|
}
|
|
79
80
|
}
|
package/dist/chunk-CUXFXKGW.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
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;
|
package/dist/chunk-ESXS2BQB.mjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
};
|