ebuilds-shared 0.1.3 → 0.1.5
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-RLGKFHYX.js → chunk-7KNYDZK3.js} +10 -46
- package/dist/{chunk-NYKVFN6V.mjs → chunk-EJOG7JQT.mjs} +10 -46
- package/dist/chunk-NKUZRJRI.js +103 -0
- package/dist/{chunk-TJ475X6H.js → chunk-SXCTVJBQ.js} +1 -1
- package/dist/{chunk-AZ4N2JGX.mjs → chunk-UZQBIKY2.mjs} +1 -1
- package/dist/edit-ZMQBX23S.svg +1 -0
- package/dist/file-KMPKPA5Y.svg +1 -0
- package/dist/freeze-left-OBZRK5VG.svg +1 -0
- package/dist/freeze-right-RNNLJNXY.svg +1 -0
- package/dist/icons/edit.d.mts +2 -0
- package/dist/icons/edit.d.ts +2 -0
- package/dist/icons/edit.js +7 -0
- package/dist/icons/edit.mjs +7 -0
- package/dist/icons/file.d.mts +2 -0
- package/dist/icons/file.d.ts +2 -0
- package/dist/icons/file.js +7 -0
- package/dist/icons/file.mjs +7 -0
- package/dist/icons/freeze-left.d.mts +2 -0
- package/dist/icons/freeze-left.d.ts +2 -0
- package/dist/icons/freeze-left.js +7 -0
- package/dist/icons/freeze-left.mjs +7 -0
- package/dist/icons/freeze-right.d.mts +2 -0
- package/dist/icons/freeze-right.d.ts +2 -0
- package/dist/icons/freeze-right.js +7 -0
- package/dist/icons/freeze-right.mjs +7 -0
- package/dist/icons/locate.d.mts +2 -0
- package/dist/icons/locate.d.ts +2 -0
- package/dist/icons/locate.js +7 -0
- package/dist/icons/locate.mjs +7 -0
- package/dist/icons/menu-default.d.mts +2 -0
- package/dist/icons/menu-default.d.ts +2 -0
- package/dist/icons/menu-default.js +7 -0
- package/dist/icons/menu-default.mjs +7 -0
- package/dist/icons/menu-unfold-one.d.mts +2 -0
- package/dist/icons/menu-unfold-one.d.ts +2 -0
- package/dist/icons/menu-unfold-one.js +7 -0
- package/dist/icons/menu-unfold-one.mjs +7 -0
- package/dist/icons/subnode-add.d.mts +2 -0
- package/dist/icons/subnode-add.d.ts +2 -0
- package/dist/icons/subnode-add.js +7 -0
- package/dist/icons/subnode-add.mjs +7 -0
- package/dist/icons/theme.d.mts +2 -0
- package/dist/icons/theme.d.ts +2 -0
- package/dist/icons/theme.js +7 -0
- package/dist/icons/theme.mjs +7 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/locate-MH33ULC5.svg +1 -0
- package/dist/menu-default-6Z5RZNAO.svg +1 -0
- package/dist/menu-unfold-one-AXIXOR5S.svg +1 -0
- 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/subnode-add-OTHWQE7F.svg +1 -0
- package/dist/theme-PFGRSFJF.svg +1 -0
- 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.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 +80 -79
- 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
|
+
};
|
|
@@ -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 = {
|
|
@@ -6299,7 +6256,9 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6299
6256
|
// 更新日志
|
|
6300
6257
|
updateLog: [],
|
|
6301
6258
|
// 主题色
|
|
6302
|
-
themeColor: ""
|
|
6259
|
+
themeColor: "",
|
|
6260
|
+
// 更新日志是否已更新
|
|
6261
|
+
updateLogLoaded: false
|
|
6303
6262
|
}),
|
|
6304
6263
|
getters: {
|
|
6305
6264
|
getCurlBaseUrl() {
|
|
@@ -6318,18 +6277,22 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6318
6277
|
return this.websiteTitle;
|
|
6319
6278
|
},
|
|
6320
6279
|
getUpdateLog() {
|
|
6280
|
+
this.updateLogLoaded = false;
|
|
6321
6281
|
return this.updateLog;
|
|
6322
6282
|
},
|
|
6323
6283
|
getSystemTitle() {
|
|
6324
6284
|
return this.systemTitle;
|
|
6325
6285
|
},
|
|
6326
6286
|
getPublicUrl() {
|
|
6327
|
-
return
|
|
6287
|
+
return import.meta.env.VITE_APP_PUBLIC_URL;
|
|
6328
6288
|
},
|
|
6329
6289
|
getThemeColor() {
|
|
6330
6290
|
const result = this.themeColor || "#056DB1";
|
|
6331
6291
|
document.documentElement.style.setProperty("--eb-color-primary", result);
|
|
6332
6292
|
return result;
|
|
6293
|
+
},
|
|
6294
|
+
getUpdateLogLoaded() {
|
|
6295
|
+
return this.updateLogLoaded;
|
|
6333
6296
|
}
|
|
6334
6297
|
},
|
|
6335
6298
|
actions: {
|
|
@@ -6366,6 +6329,7 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6366
6329
|
const { data } = await _axios2.default.get(this.getPublicUrl + "/config/updateLog.json", {
|
|
6367
6330
|
params: { _t: Date.now() }
|
|
6368
6331
|
});
|
|
6332
|
+
this.updateLogLoaded = true;
|
|
6369
6333
|
this.updateLog = data;
|
|
6370
6334
|
},
|
|
6371
6335
|
/**
|
|
@@ -6390,7 +6354,7 @@ var useCommonStore = _pinia.defineStore.call(void 0, "common", {
|
|
|
6390
6354
|
enable: true,
|
|
6391
6355
|
option: {
|
|
6392
6356
|
storage: "local",
|
|
6393
|
-
include: ["updateLog", "themeColor"]
|
|
6357
|
+
include: ["updateLog", "themeColor", "updateLogLoaded"]
|
|
6394
6358
|
}
|
|
6395
6359
|
}
|
|
6396
6360
|
});
|
|
@@ -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 = {
|
|
@@ -6299,7 +6256,9 @@ var useCommonStore = defineStore2("common", {
|
|
|
6299
6256
|
// 更新日志
|
|
6300
6257
|
updateLog: [],
|
|
6301
6258
|
// 主题色
|
|
6302
|
-
themeColor: ""
|
|
6259
|
+
themeColor: "",
|
|
6260
|
+
// 更新日志是否已更新
|
|
6261
|
+
updateLogLoaded: false
|
|
6303
6262
|
}),
|
|
6304
6263
|
getters: {
|
|
6305
6264
|
getCurlBaseUrl() {
|
|
@@ -6318,18 +6277,22 @@ var useCommonStore = defineStore2("common", {
|
|
|
6318
6277
|
return this.websiteTitle;
|
|
6319
6278
|
},
|
|
6320
6279
|
getUpdateLog() {
|
|
6280
|
+
this.updateLogLoaded = false;
|
|
6321
6281
|
return this.updateLog;
|
|
6322
6282
|
},
|
|
6323
6283
|
getSystemTitle() {
|
|
6324
6284
|
return this.systemTitle;
|
|
6325
6285
|
},
|
|
6326
6286
|
getPublicUrl() {
|
|
6327
|
-
return
|
|
6287
|
+
return import.meta.env.VITE_APP_PUBLIC_URL;
|
|
6328
6288
|
},
|
|
6329
6289
|
getThemeColor() {
|
|
6330
6290
|
const result = this.themeColor || "#056DB1";
|
|
6331
6291
|
document.documentElement.style.setProperty("--eb-color-primary", result);
|
|
6332
6292
|
return result;
|
|
6293
|
+
},
|
|
6294
|
+
getUpdateLogLoaded() {
|
|
6295
|
+
return this.updateLogLoaded;
|
|
6333
6296
|
}
|
|
6334
6297
|
},
|
|
6335
6298
|
actions: {
|
|
@@ -6366,6 +6329,7 @@ var useCommonStore = defineStore2("common", {
|
|
|
6366
6329
|
const { data } = await axios.get(this.getPublicUrl + "/config/updateLog.json", {
|
|
6367
6330
|
params: { _t: Date.now() }
|
|
6368
6331
|
});
|
|
6332
|
+
this.updateLogLoaded = true;
|
|
6369
6333
|
this.updateLog = data;
|
|
6370
6334
|
},
|
|
6371
6335
|
/**
|
|
@@ -6390,7 +6354,7 @@ var useCommonStore = defineStore2("common", {
|
|
|
6390
6354
|
enable: true,
|
|
6391
6355
|
option: {
|
|
6392
6356
|
storage: "local",
|
|
6393
|
-
include: ["updateLog", "themeColor"]
|
|
6357
|
+
include: ["updateLog", "themeColor", "updateLogLoaded"]
|
|
6394
6358
|
}
|
|
6395
6359
|
}
|
|
6396
6360
|
});
|
|
@@ -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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g class="edit-outline"><g fill="#bdcbc7" fill-rule="evenodd" class="Vector" clip-rule="evenodd"><path d="M2 6.857A4.857 4.857 0 0 1 6.857 2H12a1 1 0 1 1 0 2H6.857A2.857 2.857 0 0 0 4 6.857v10.286A2.857 2.857 0 0 0 6.857 20h10.286A2.857 2.857 0 0 0 20 17.143V12a1 1 0 1 1 2 0v5.143A4.857 4.857 0 0 1 17.143 22H6.857A4.857 4.857 0 0 1 2 17.143z"/><path d="m15.137 13.219l-2.205 1.33l-1.033-1.713l2.205-1.33l.003-.002a1.2 1.2 0 0 0 .232-.182l5.01-5.036a3 3 0 0 0 .145-.157c.331-.386.821-1.15.228-1.746c-.501-.504-1.219-.028-1.684.381a6 6 0 0 0-.36.345l-.034.034l-4.94 4.965a1.2 1.2 0 0 0-.27.41l-.824 2.073a.2.2 0 0 0 .29.245l1.032 1.713c-1.805 1.088-3.96-.74-3.18-2.698l.825-2.072a3.2 3.2 0 0 1 .71-1.081l4.939-4.966l.029-.029c.147-.15.641-.656 1.24-1.02c.327-.197.849-.458 1.494-.508c.74-.059 1.53.174 2.15.797a2.9 2.9 0 0 1 .845 1.75a3.15 3.15 0 0 1-.23 1.517c-.29.717-.774 1.244-.987 1.457l-5.01 5.036q-.28.281-.62.487m4.453-7.126s-.004.003-.013.006z"/></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#bdcbc7" d="M20.68 7.014a3.85 3.85 0 0 0-.92-1.22l-3-2.72a4.15 4.15 0 0 0-2.39-1.07H8.21A5 5 0 0 0 3 6.864v10.3a5 5 0 0 0 3.31 4.53a4.7 4.7 0 0 0 1.92.3h7.56a5 5 0 0 0 5.21-4.86v-8.57a3.75 3.75 0 0 0-.32-1.55m-13-.4h3.26a1 1 0 0 1 0 2H7.68a1 1 0 1 1 0-2m8.7 10.71h-8.7a1 1 0 1 1 0-2h8.7a1 1 0 0 1 0 1.98zm0-4.35h-8.7a1 1 0 1 1 0-2h8.7a1 1 0 1 1 0 2m-.32-5.57a1.08 1.08 0 0 1-1.09-1.08v-2.65c.66.16 3.23 2.8 3.79 3.24a2 2 0 0 1 .42.49z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><defs><mask id="SVGOLB8NbQT"><g fill="none" stroke="#fff" stroke-linejoin="round" stroke-width="4"><rect width="36" height="36" x="6" y="6" fill="#555555" rx="3"/><path stroke-linecap="round" d="M16 6v36m-3 0h6M13 6h6"/></g></mask></defs><path fill="#bdcbc7" d="M0 0h48v48H0z" mask="url(#SVGOLB8NbQT)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><defs><mask id="SVG6GhDtcej"><g fill="none" stroke="#fff" stroke-linejoin="round" stroke-width="4"><rect width="36" height="36" x="6" y="6" fill="#555555" rx="3"/><path stroke-linecap="round" d="M32 6v36m-3 0h6M29 6h6"/></g></mask></defs><path fill="#bdcbc7" d="M0 0h48v48H0z" mask="url(#SVG6GhDtcej)"/></svg>
|