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
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
|
|
|
@@ -29,10 +29,10 @@ var _chunkCUXFXKGWjs = require('./chunk-CUXFXKGW.js');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk7KNYDZK3js = require('./chunk-7KNYDZK3.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkSXCTVJBQjs = require('./chunk-SXCTVJBQ.js');
|
|
36
36
|
require('./chunk-QGM4M3NI.js');
|
|
37
37
|
|
|
38
38
|
|
|
@@ -64,4 +64,4 @@ require('./chunk-QGM4M3NI.js');
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
exports.clamp =
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createUnoConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2HIGYC6X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
clamp,
|
|
6
6
|
createFunctionalComponent,
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
useLoginHook,
|
|
30
30
|
useMenuStore,
|
|
31
31
|
welcome
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EJOG7JQT.mjs";
|
|
33
33
|
import {
|
|
34
34
|
createBaseViteConfig
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UZQBIKY2.mjs";
|
|
36
36
|
import "./chunk-6DZX6EAA.mjs";
|
|
37
37
|
export {
|
|
38
38
|
clamp,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 512 512"><!-- Icon from IonIcons by Ben Sperry - https://github.com/ionic-team/ionicons/blob/main/LICENSE --><path d="M256 176c-44.004 0-80.001 36-80.001 80 0 44.004 35.997 80 80.001 80 44.005 0 79.999-35.996 79.999-80 0-44-35.994-80-79.999-80zm190.938 58.667c-9.605-88.531-81.074-160-169.605-169.599V32h-42.666v33.067c-88.531 9.599-160 81.068-169.604 169.599H32v42.667h33.062c9.604 88.531 81.072 160 169.604 169.604V480h42.666v-33.062c88.531-9.604 160-81.073 169.605-169.604H480v-42.667h-33.062zM256 405.333c-82.137 0-149.334-67.198-149.334-149.333 0-82.136 67.197-149.333 149.334-149.333 82.135 0 149.332 67.198 149.332 149.333S338.135 405.333 256 405.333z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024"><path fill="#bdcbc7" d="M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><g fill="none" stroke="#bdcbc7" stroke-linejoin="round" stroke-width="4"><path stroke-linecap="round" d="M8 10.5h32m-16 9h16m-16 9h16m-32 9h32"/><path fill="#bdcbc7" d="m16 19l-8 5l8 5z"/></g></svg>
|
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="#bdcbc7" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M14.5 19.5h-1c-2.828 0-4.243 0-5.121-.879C7.5 17.743 7.5 16.328 7.5 13.5v-2m0-3.5v3.5m0 0H12"/><path d="M14.5 19.5c0-1.178 0-1.768.351-2.134C15.204 17 15.77 17 16.9 17h1.2c1.131 0 1.697 0 2.048.366c.352.366.352.956.352 2.134s0 1.768-.352 2.134c-.35.366-.917.366-2.048.366h-1.2c-1.131 0-1.697 0-2.048-.366c-.352-.366-.352-.956-.352-2.134ZM5.786 2h3.428C11.29 2 11.5 3.11 11.5 5s-.211 3-2.286 3H5.786C3.71 8 3.5 6.89 3.5 5s.211-3 2.286-3Z"/><path stroke-linecap="round" stroke-linejoin="round" d="M17.5 9v5m2.5-2.5h-5"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="#bdcbc7" d="M2.75 12A9.25 9.25 0 0 0 12 21.25V2.75A9.25 9.25 0 0 0 2.75 12"/><path stroke="#bdcbc7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21.25a9.25 9.25 0 0 0 0-18.5m0 18.5a9.25 9.25 0 0 1 0-18.5m0 18.5V2.75"/></g></svg>
|
|
@@ -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.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk7KNYDZK3js = require('../chunk-7KNYDZK3.js');
|
|
26
26
|
require('../chunk-QGM4M3NI.js');
|
|
27
27
|
|
|
28
28
|
|
|
@@ -48,4 +48,4 @@ require('../chunk-QGM4M3NI.js');
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
exports.clamp =
|
|
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,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
|
@@ -1,79 +1,80 @@
|
|
|
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": "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
|
-
"
|
|
78
|
-
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ebuilds-shared",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.1.5",
|
|
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": "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
|
+
"@monorepo/ebuilds-ui": "workspace:*",
|
|
78
|
+
"tsup": "^8.0.2"
|
|
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
|
-
};
|