bilitoolkit-ui 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -201
- package/README.md +1 -1
- package/dist/bilitoolkit-ui.css +1 -6
- package/dist/common.d.ts +26 -0
- package/dist/common.js +22 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +3213 -28
- package/dist/index.js +1526 -0
- package/dist/styles/animations.scss +9 -0
- package/dist/styles/mixins.scss +36 -13
- package/package.json +40 -40
- package/dist/api/toolkit-api.d.ts +0 -2
- package/dist/bilitoolkit-ui.js +0 -117707
- package/dist/bilitoolkit-ui.umd.cjs +0 -85
- package/dist/common/ui-constants.d.ts +0 -9
- package/dist/components/bili/BiliAccountCard.vue.d.ts +0 -18
- package/dist/components/bili/types.d.ts +0 -7
- package/dist/components/common/AppIcon.vue.d.ts +0 -9
- package/dist/components/common/AppTooltip.vue.d.ts +0 -25
- package/dist/components/common/ExternalLink.vue.d.ts +0 -20
- package/dist/components/common/IconButton.vue.d.ts +0 -27
- package/dist/components/common/IconLabel.vue.d.ts +0 -20
- package/dist/components/common/LogPrint.vue.d.ts +0 -5
- package/dist/components/dialog/countdown/CountdownDialog.vue.d.ts +0 -22
- package/dist/components/dialog/countdown/types.d.ts +0 -11
- package/dist/components/dialog/countdown/useCountdown.d.ts +0 -9
- package/dist/components/dialog/loading/LoadingDialog.vue.d.ts +0 -16
- package/dist/components/dialog/loading/loadingService.d.ts +0 -12
- package/dist/components/dialog/loading/types.d.ts +0 -21
- package/dist/components/plugin/PluginMenuItem.vue.d.ts +0 -3
- package/dist/components/plugin/PluginMenus.vue.d.ts +0 -25
- package/dist/components/plugin/PluginPageContent.vue.d.ts +0 -17
- package/dist/components/plugin/PluginPageHeader.vue.d.ts +0 -7
- package/dist/components/plugin/types.d.ts +0 -12
- package/dist/components/settings/SettingGroup.vue.d.ts +0 -20
- package/dist/components/settings/SettingItem.vue.d.ts +0 -22
- package/dist/composables/useLoadingData.d.ts +0 -4
- package/dist/main.d.ts +0 -0
- package/dist/stores/app-theme.d.ts +0 -31
- package/dist/stores/selected-account.d.ts +0 -26
- package/dist/stores/test-data.d.ts +0 -70
- package/dist/test/menus.d.ts +0 -2
- package/dist/test/user.d.ts +0 -12
- package/dist/ui.d.ts +0 -10
- package/dist/utils/app-utils.d.ts +0 -20
- package/dist/utils/theme-utils.d.ts +0 -10
- package/dist/views/HomeView.vue.d.ts +0 -2
package/dist/styles/mixins.scss
CHANGED
|
@@ -1,29 +1,44 @@
|
|
|
1
|
+
/** 省略内容对于单行或者多行的处理 */
|
|
2
|
+
@mixin txt-ellipsis-lines {
|
|
3
|
+
&.single-line {
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&:not(.single-line) {
|
|
8
|
+
display: -webkit-box;
|
|
9
|
+
line-clamp: v-bind(lines);
|
|
10
|
+
-webkit-line-clamp: v-bind(lines);
|
|
11
|
+
-webkit-box-orient: vertical;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
1
15
|
/**
|
|
2
16
|
省略左边内容
|
|
3
17
|
注意,内容前后需要加上【‎】(左至右符号)
|
|
4
18
|
https://stackoverflow.com/questions/27957443/strange-special-characters-issue-in-left-side-ellipsis
|
|
5
19
|
*/
|
|
6
|
-
@mixin txt-
|
|
20
|
+
@mixin txt-ellipsis-left {
|
|
7
21
|
background: var(--app-color-foreground-transparent-10);
|
|
8
22
|
width: fit-content;
|
|
9
23
|
max-width: 100%;
|
|
10
24
|
overflow: hidden;
|
|
11
25
|
text-overflow: ellipsis;
|
|
12
|
-
white-space: nowrap;
|
|
13
26
|
direction: rtl; //定义方向
|
|
14
27
|
text-align: left; // 防止父元素宽度足够的时候文字靠右右边
|
|
28
|
+
|
|
15
29
|
}
|
|
16
30
|
|
|
17
31
|
/* 省略右边内容 */
|
|
18
|
-
@mixin txt-ellipsis {
|
|
32
|
+
@mixin txt-ellipsis-right {
|
|
19
33
|
width: fit-content;
|
|
20
34
|
max-width: 100%;
|
|
21
35
|
overflow: hidden;
|
|
22
36
|
text-overflow: ellipsis;
|
|
23
|
-
white-space: nowrap;
|
|
37
|
+
//white-space: nowrap;
|
|
24
38
|
direction: ltr; //定义方向
|
|
25
39
|
text-align: left; // 防止父元素宽度足够的时候文字靠右右边
|
|
26
40
|
unicode-bidi: plaintext; // 防止尾部特殊字符显示在前面
|
|
41
|
+
|
|
27
42
|
}
|
|
28
43
|
|
|
29
44
|
/** 伪元素实现的svg背景 */
|
|
@@ -117,9 +132,11 @@
|
|
|
117
132
|
}
|
|
118
133
|
|
|
119
134
|
/* 图标按钮 */
|
|
120
|
-
@mixin icon-btn($size:18px
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
@mixin icon-btn($size:18px, $color:var(--el-color-primary),
|
|
136
|
+
$hover-bg: color-mix(in srgb, $color, transparent 85%) // 基于主色自动生成
|
|
137
|
+
) {
|
|
138
|
+
width: calc($size + 10px);
|
|
139
|
+
height: calc($size + 10px);
|
|
123
140
|
font-size: $size;
|
|
124
141
|
line-height: $size;
|
|
125
142
|
color: $color;
|
|
@@ -127,20 +144,26 @@
|
|
|
127
144
|
padding: 5px;
|
|
128
145
|
|
|
129
146
|
&:hover {
|
|
130
|
-
background:
|
|
147
|
+
background: $hover-bg;
|
|
148
|
+
// background: var(--app-color-primary-transparent-15);
|
|
131
149
|
}
|
|
132
150
|
}
|
|
133
151
|
|
|
134
152
|
/* 圆形图标按钮 */
|
|
135
|
-
@mixin circle-icon-btn($size:18px,$color:var(--el-color-primary)
|
|
136
|
-
|
|
153
|
+
@mixin circle-icon-btn($size:18px,$color:var(--el-color-primary),
|
|
154
|
+
$hover-bg: color-mix(in srgb, $color, transparent 85%) // 基于主色自动生成
|
|
155
|
+
) {
|
|
156
|
+
@include icon-btn($size, $color, $hover-bg);
|
|
137
157
|
border-radius: 50%;
|
|
138
158
|
}
|
|
139
159
|
|
|
140
160
|
/* 旋转的圆形图标按钮 */
|
|
141
|
-
@mixin circle-icon-btn--rotate($size:18px
|
|
142
|
-
|
|
161
|
+
@mixin circle-icon-btn--rotate($size:18px, $speed: 3s, $color:var(--el-color-primary),
|
|
162
|
+
$hover-bg: color-mix(in srgb, $color, transparent 85%) // 基于主色自动生成
|
|
163
|
+
) {
|
|
164
|
+
@include circle-icon-btn($size, $color, $hover-bg);
|
|
143
165
|
&:hover {
|
|
144
|
-
animation: rotate
|
|
166
|
+
animation: rotate $speed linear infinite;
|
|
145
167
|
}
|
|
146
168
|
}
|
|
169
|
+
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bilitoolkit-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"productName": "bilitoolkit-ui",
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "『哔哩工具姬』的 UI 库",
|
|
8
8
|
"author": "hzhilong",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"BiliToolkit",
|
|
11
11
|
"哔哩工具姬"
|
|
12
12
|
],
|
|
13
|
-
"license": "Apache-2.0",
|
|
14
13
|
"repository": {
|
|
15
14
|
"type": "git",
|
|
16
15
|
"url": "https://github.com/hzhilong/bilitoolkit-ui"
|
|
@@ -19,18 +18,19 @@
|
|
|
19
18
|
"url": "https://github.com/hzhilong/bilitoolkit-ui/issues"
|
|
20
19
|
},
|
|
21
20
|
"homepage": "https://github.com/hzhilong/bilitoolkit-ui#readme",
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"types": "dist/index.d.ts",
|
|
28
|
-
"style": "dist/bilitoolkit-ui.css",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"module": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"style": "./dist/index.css",
|
|
29
26
|
"exports": {
|
|
30
27
|
".": {
|
|
31
28
|
"types": "./dist/index.d.ts",
|
|
32
|
-
"import": "./dist/
|
|
33
|
-
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./common": {
|
|
32
|
+
"types": "./dist/common.d.ts",
|
|
33
|
+
"import": "./dist/common.js"
|
|
34
34
|
},
|
|
35
35
|
"./style.css": "./dist/bilitoolkit-ui.css",
|
|
36
36
|
"./variables.scss": "./dist/styles/variables.scss",
|
|
@@ -41,28 +41,20 @@
|
|
|
41
41
|
"dist",
|
|
42
42
|
"!dist/bundle-stats.*"
|
|
43
43
|
],
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
"npm 登录": " npm login",
|
|
50
|
-
"npm 发布": " npm publish --access public",
|
|
51
|
-
"本地构建并发布": "vite build --mode library && yalc publish",
|
|
52
|
-
"添加本地依赖包": "yalc add bilitoolkit-api-types @ybgnb/utils --peer",
|
|
53
|
-
"移除本地依赖包": "yalc remove --all",
|
|
54
|
-
"type-check": "vue-tsc --build",
|
|
55
|
-
"lint": "eslint . --fix"
|
|
56
|
-
},
|
|
44
|
+
"sideEffects": [
|
|
45
|
+
"**/*.css",
|
|
46
|
+
"**/*.scss",
|
|
47
|
+
"**/*.less"
|
|
48
|
+
],
|
|
57
49
|
"devDependencies": {
|
|
58
50
|
"@tsconfig/node22": "^22.0.2",
|
|
51
|
+
"@types/lodash-es": "^4.17.12",
|
|
59
52
|
"@types/node": "^22.16.5",
|
|
60
53
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
61
54
|
"@vitejs/plugin-vue-jsx": "^5.0.1",
|
|
62
55
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
63
56
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
64
57
|
"@vue/language-core": "^3.0.7",
|
|
65
|
-
"@vue/tsconfig": "^0.7.0",
|
|
66
58
|
"eslint": "^9.31.0",
|
|
67
59
|
"eslint-plugin-vue": "~10.3.0",
|
|
68
60
|
"jiti": "^2.4.2",
|
|
@@ -70,25 +62,33 @@
|
|
|
70
62
|
"prettier": "3.6.2",
|
|
71
63
|
"rollup-plugin-bundle-stats": "^4.21.3",
|
|
72
64
|
"sass": "^1.92.1",
|
|
73
|
-
"typescript": "
|
|
74
|
-
"unplugin-auto-import": "^
|
|
75
|
-
"unplugin-vue-components": "^
|
|
76
|
-
"vite": "^7.
|
|
65
|
+
"typescript": "^5.9.3",
|
|
66
|
+
"unplugin-auto-import": "^21.0.0",
|
|
67
|
+
"unplugin-vue-components": "^32.0.0",
|
|
68
|
+
"vite": "^7.3.3",
|
|
77
69
|
"vite-plugin-dts": "^4.5.4",
|
|
78
70
|
"vite-plugin-static-copy": "^3.1.2",
|
|
79
|
-
"vue-tsc": "^3.0.4"
|
|
71
|
+
"vue-tsc": "^3.0.4",
|
|
72
|
+
"remixicon": "^4.6.0"
|
|
80
73
|
},
|
|
81
74
|
"peerDependencies": {
|
|
82
|
-
"@
|
|
83
|
-
"
|
|
84
|
-
"bilitoolkit-api-types": "file:.yalc/bilitoolkit-api-types",
|
|
85
|
-
"element-plus": "^2.11.2",
|
|
75
|
+
"@ybgnb/utils": "^0.2.8",
|
|
76
|
+
"element-plus": "^2.13.7",
|
|
86
77
|
"lodash-es": "^4.17.21",
|
|
87
78
|
"pinia": "^3.0.3",
|
|
88
|
-
"vue": "^3.5.
|
|
79
|
+
"vue": "^3.5.34",
|
|
80
|
+
"@vue/language-core": "^3.2.6",
|
|
81
|
+
"@ybgnb/bili-api": "^0.0.3",
|
|
82
|
+
"bilitoolkit-types": "^0.0.1",
|
|
83
|
+
"bilitoolkit-runtime": "^0.0.1"
|
|
89
84
|
},
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
85
|
+
"scripts": {
|
|
86
|
+
"check": "vue-tsc -p tsconfig.web.json --noEmit",
|
|
87
|
+
"lint": "eslint . --fix",
|
|
88
|
+
"format": "prettier --write src/",
|
|
89
|
+
"dev": "chcp 65001 && vite",
|
|
90
|
+
"build": "vite build --mode library",
|
|
91
|
+
"npm login": "npm login",
|
|
92
|
+
"pnpm publish": "pnpm publish --access public"
|
|
93
93
|
}
|
|
94
|
-
}
|
|
94
|
+
}
|