@cloud-app-dev/vidc 4.0.17 → 4.0.19
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/.dumirc.ts +54 -54
- package/.editorconfig +13 -13
- package/.eslintignore +6 -6
- package/.eslintrc.js +3 -3
- package/.fatherrc.ts +14 -14
- package/.hintrc +8 -8
- package/.husky/commit-msg +5 -5
- package/.husky/pre-commit +4 -4
- package/.prettierignore +8 -8
- package/.prettierrc.js +16 -16
- package/.stylelintrc.js +113 -113
- package/README.md +19 -19
- package/{icon-fix.js → icon-fix.mjs} +31 -31
- package/package.json +97 -100
- package/release-build.sh +48 -46
- package/scripts/entry.js +20 -20
- package/theme-config.ts +125 -125
- package/tsconfig.json +16 -16
- package/typings/global.d.ts +4 -4
package/.dumirc.ts
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineConfig } from 'dumi';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { themeConfig } from './theme-config';
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
title: 'CloudApp VIDC',
|
|
7
|
-
favicons: ['https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png'],
|
|
8
|
-
outputPath: 'docs-dist',
|
|
9
|
-
targets: { chrome: 60 },
|
|
10
|
-
apiParser: {
|
|
11
|
-
unpkgHost: 'https://unpkg.zhimg.com',
|
|
12
|
-
},
|
|
13
|
-
resolve: {
|
|
14
|
-
// 配置入口文件路径,API 解析将从这里开始
|
|
15
|
-
entryFile: './src/index.ts',
|
|
16
|
-
},
|
|
17
|
-
theme: {
|
|
18
|
-
'@ant-prefix': 'cloudapp',
|
|
19
|
-
},
|
|
20
|
-
themeConfig: {
|
|
21
|
-
name: 'VIDC',
|
|
22
|
-
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
|
|
23
|
-
navs: [
|
|
24
|
-
null, // null 值代表保留约定式生成的导航,只做增量配置
|
|
25
|
-
{
|
|
26
|
-
title: 'GitLab',
|
|
27
|
-
path: 'https://git.topvdn.com/cloudapp/vidc',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
alias: {
|
|
33
|
-
'@src': path.resolve('./src'),
|
|
34
|
-
},
|
|
35
|
-
proxy: {
|
|
36
|
-
'/api': {
|
|
37
|
-
target: 'http://192.168.101.41:13336',
|
|
38
|
-
changeOrigin: true,
|
|
39
|
-
},
|
|
40
|
-
'/twinmapdataservice': {
|
|
41
|
-
target: 'http://192.168.101.38:8888',
|
|
42
|
-
changeOrigin: true,
|
|
43
|
-
pathRewrite: { twinmapdataservice: 'twinmap' },
|
|
44
|
-
},
|
|
45
|
-
'/twinmap': {
|
|
46
|
-
target: 'http://192.168.101.38:8888',
|
|
47
|
-
changeOrigin: true,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
scripts: ['//at.alicdn.com/t/font_1724012_972m5d05cou.js'],
|
|
51
|
-
styles: [themeConfig],
|
|
52
|
-
|
|
53
|
-
// more config: https://d.umijs.org/config
|
|
54
|
-
});
|
|
1
|
+
import { defineConfig } from 'dumi';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { themeConfig } from './theme-config';
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
title: 'CloudApp VIDC',
|
|
7
|
+
favicons: ['https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png'],
|
|
8
|
+
outputPath: 'docs-dist',
|
|
9
|
+
targets: { chrome: 60 },
|
|
10
|
+
apiParser: {
|
|
11
|
+
unpkgHost: 'https://unpkg.zhimg.com',
|
|
12
|
+
},
|
|
13
|
+
resolve: {
|
|
14
|
+
// 配置入口文件路径,API 解析将从这里开始
|
|
15
|
+
entryFile: './src/index.ts',
|
|
16
|
+
},
|
|
17
|
+
theme: {
|
|
18
|
+
'@ant-prefix': 'cloudapp',
|
|
19
|
+
},
|
|
20
|
+
themeConfig: {
|
|
21
|
+
name: 'VIDC',
|
|
22
|
+
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
|
|
23
|
+
navs: [
|
|
24
|
+
null, // null 值代表保留约定式生成的导航,只做增量配置
|
|
25
|
+
{
|
|
26
|
+
title: 'GitLab',
|
|
27
|
+
path: 'https://git.topvdn.com/cloudapp/vidc',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
alias: {
|
|
33
|
+
'@src': path.resolve('./src'),
|
|
34
|
+
},
|
|
35
|
+
proxy: {
|
|
36
|
+
'/api': {
|
|
37
|
+
target: 'http://192.168.101.41:13336',
|
|
38
|
+
changeOrigin: true,
|
|
39
|
+
},
|
|
40
|
+
'/twinmapdataservice': {
|
|
41
|
+
target: 'http://192.168.101.38:8888',
|
|
42
|
+
changeOrigin: true,
|
|
43
|
+
pathRewrite: { twinmapdataservice: 'twinmap' },
|
|
44
|
+
},
|
|
45
|
+
'/twinmap': {
|
|
46
|
+
target: 'http://192.168.101.38:8888',
|
|
47
|
+
changeOrigin: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
scripts: ['//at.alicdn.com/t/font_1724012_972m5d05cou.js'],
|
|
51
|
+
styles: [themeConfig],
|
|
52
|
+
|
|
53
|
+
// more config: https://d.umijs.org/config
|
|
54
|
+
});
|
package/.editorconfig
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# http://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
indent_style = space
|
|
6
|
-
indent_size = 2
|
|
7
|
-
end_of_line = lf
|
|
8
|
-
charset = utf-8
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
insert_final_newline = true
|
|
11
|
-
|
|
12
|
-
[*.md]
|
|
13
|
-
trim_trailing_whitespace = false
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
indent_style = space
|
|
6
|
+
indent_size = 2
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
charset = utf-8
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
insert_final_newline = true
|
|
11
|
+
|
|
12
|
+
[*.md]
|
|
13
|
+
trim_trailing_whitespace = false
|
package/.eslintignore
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.idea/
|
|
2
|
-
.vscode/
|
|
3
|
-
.cache/
|
|
4
|
-
/node_modules/
|
|
5
|
-
/umd/
|
|
6
|
-
iconfont.js
|
|
1
|
+
.idea/
|
|
2
|
+
.vscode/
|
|
3
|
+
.cache/
|
|
4
|
+
/node_modules/
|
|
5
|
+
/umd/
|
|
6
|
+
iconfont.js
|
package/.eslintrc.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: require.resolve('@umijs/lint/dist/config/eslint'),
|
|
3
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: require.resolve('@umijs/lint/dist/config/eslint'),
|
|
3
|
+
};
|
package/.fatherrc.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineConfig } from 'father';
|
|
2
|
-
|
|
3
|
-
const importProps = {
|
|
4
|
-
style: false,
|
|
5
|
-
camel2DashComponentName: false,
|
|
6
|
-
libraryDirectory: 'es',
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
platform: 'browser',
|
|
11
|
-
esm: {
|
|
12
|
-
output: 'es',
|
|
13
|
-
},
|
|
14
|
-
});
|
|
1
|
+
import { defineConfig } from 'father';
|
|
2
|
+
|
|
3
|
+
const importProps = {
|
|
4
|
+
style: false,
|
|
5
|
+
camel2DashComponentName: false,
|
|
6
|
+
libraryDirectory: 'es',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
platform: 'browser',
|
|
11
|
+
esm: {
|
|
12
|
+
output: 'es',
|
|
13
|
+
},
|
|
14
|
+
});
|
package/.hintrc
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"development"
|
|
4
|
-
],
|
|
5
|
-
"hints": {
|
|
6
|
-
"no-inline-styles": "off",
|
|
7
|
-
"button-type": "off"
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"development"
|
|
4
|
+
],
|
|
5
|
+
"hints": {
|
|
6
|
+
"no-inline-styles": "off",
|
|
7
|
+
"button-type": "off"
|
|
8
|
+
}
|
|
9
9
|
}
|
package/.husky/commit-msg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
. "$(dirname -- "$0")/_/husky.sh"
|
|
3
|
-
|
|
4
|
-
npx commitlint --edit "${1}"
|
|
5
|
-
npx --no-install commitlint --edit
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
. "$(dirname -- "$0")/_/husky.sh"
|
|
3
|
+
|
|
4
|
+
npx commitlint --edit "${1}"
|
|
5
|
+
npx --no-install commitlint --edit
|
package/.husky/pre-commit
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
. "$(dirname -- "$0")/_/husky.sh"
|
|
3
|
-
|
|
4
|
-
npx lint-staged
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
. "$(dirname -- "$0")/_/husky.sh"
|
|
3
|
+
|
|
4
|
+
npx lint-staged
|
package/.prettierignore
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
**/*.svg
|
|
2
|
-
**/*.ejs
|
|
3
|
-
**/*.html
|
|
4
|
-
package.json
|
|
5
|
-
.umi
|
|
6
|
-
.umi-production
|
|
7
|
-
.umi-test
|
|
8
|
-
.mfsu
|
|
1
|
+
**/*.svg
|
|
2
|
+
**/*.ejs
|
|
3
|
+
**/*.html
|
|
4
|
+
package.json
|
|
5
|
+
.umi
|
|
6
|
+
.umi-production
|
|
7
|
+
.umi-test
|
|
8
|
+
.mfsu
|
package/.prettierrc.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
pluginSearchDirs: false,
|
|
3
|
-
plugins: [require.resolve('prettier-plugin-organize-imports'), require.resolve('prettier-plugin-packagejson')],
|
|
4
|
-
printWidth: 200,
|
|
5
|
-
proseWrap: 'never',
|
|
6
|
-
singleQuote: true,
|
|
7
|
-
trailingComma: 'all',
|
|
8
|
-
overrides: [
|
|
9
|
-
{
|
|
10
|
-
files: '*.md',
|
|
11
|
-
options: {
|
|
12
|
-
proseWrap: 'preserve',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
pluginSearchDirs: false,
|
|
3
|
+
plugins: [require.resolve('prettier-plugin-organize-imports'), require.resolve('prettier-plugin-packagejson')],
|
|
4
|
+
printWidth: 200,
|
|
5
|
+
proseWrap: 'never',
|
|
6
|
+
singleQuote: true,
|
|
7
|
+
trailingComma: 'all',
|
|
8
|
+
overrides: [
|
|
9
|
+
{
|
|
10
|
+
files: '*.md',
|
|
11
|
+
options: {
|
|
12
|
+
proseWrap: 'preserve',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
};
|
package/.stylelintrc.js
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
// .stylelintrc.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
processors: [],
|
|
4
|
-
plugins: ['stylelint-order'],
|
|
5
|
-
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
|
|
6
|
-
rules: {
|
|
7
|
-
'selector-class-pattern': [
|
|
8
|
-
// 命名规范 -
|
|
9
|
-
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
10
|
-
{
|
|
11
|
-
message: 'Expected class selector to be kebab-case',
|
|
12
|
-
severity: 'warning',
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
'string-quotes': 'single', // 单引号
|
|
16
|
-
'at-rule-empty-line-before': null,
|
|
17
|
-
'at-rule-no-unknown': null,
|
|
18
|
-
'at-rule-name-case': 'lower', // 指定@规则名的大小写
|
|
19
|
-
'length-zero-no-unit': true, // 禁止零长度的单位(可自动修复)
|
|
20
|
-
'shorthand-property-no-redundant-values': true, // 简写属性
|
|
21
|
-
'number-leading-zero': 'never', // 小数不带0
|
|
22
|
-
'declaration-block-no-duplicate-properties': true, // 禁止声明快重复属性
|
|
23
|
-
'no-descending-specificity': [true, { severity: 'warning' }], // 禁止在具有较高优先级的选择器后出现被其覆盖的较低优先级的选择器。
|
|
24
|
-
'no-duplicate-selectors': [true, { severity: 'warning' }], // 选择器内部重复
|
|
25
|
-
'selector-max-id': 1, // 限制一个选择器中 ID 选择器的数量
|
|
26
|
-
'max-nesting-depth': 10, // 选择器层级
|
|
27
|
-
indentation: [
|
|
28
|
-
2,
|
|
29
|
-
{
|
|
30
|
-
// 指定缩进 warning 提醒
|
|
31
|
-
severity: 'warning',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
'order/properties-order': [
|
|
35
|
-
// 规则顺序
|
|
36
|
-
'position',
|
|
37
|
-
'top',
|
|
38
|
-
'right',
|
|
39
|
-
'bottom',
|
|
40
|
-
'left',
|
|
41
|
-
'z-index',
|
|
42
|
-
'display',
|
|
43
|
-
'float',
|
|
44
|
-
'width',
|
|
45
|
-
'height',
|
|
46
|
-
'max-width',
|
|
47
|
-
'max-height',
|
|
48
|
-
'min-width',
|
|
49
|
-
'min-height',
|
|
50
|
-
'padding',
|
|
51
|
-
'padding-top',
|
|
52
|
-
'padding-right',
|
|
53
|
-
'padding-bottom',
|
|
54
|
-
'padding-left',
|
|
55
|
-
'margin',
|
|
56
|
-
'margin-top',
|
|
57
|
-
'margin-right',
|
|
58
|
-
'margin-bottom',
|
|
59
|
-
'margin-left',
|
|
60
|
-
'margin-collapse',
|
|
61
|
-
'margin-top-collapse',
|
|
62
|
-
'margin-right-collapse',
|
|
63
|
-
'margin-bottom-collapse',
|
|
64
|
-
'margin-left-collapse',
|
|
65
|
-
'overflow',
|
|
66
|
-
'overflow-x',
|
|
67
|
-
'overflow-y',
|
|
68
|
-
'clip',
|
|
69
|
-
'clear',
|
|
70
|
-
'font',
|
|
71
|
-
'font-family',
|
|
72
|
-
'font-size',
|
|
73
|
-
'font-smoothing',
|
|
74
|
-
'osx-font-smoothing',
|
|
75
|
-
'font-style',
|
|
76
|
-
'font-weight',
|
|
77
|
-
'line-height',
|
|
78
|
-
'letter-spacing',
|
|
79
|
-
'word-spacing',
|
|
80
|
-
'color',
|
|
81
|
-
'text-align',
|
|
82
|
-
'text-decoration',
|
|
83
|
-
'text-indent',
|
|
84
|
-
'text-overflow',
|
|
85
|
-
'text-rendering',
|
|
86
|
-
'text-size-adjust',
|
|
87
|
-
'text-shadow',
|
|
88
|
-
'text-transform',
|
|
89
|
-
'word-break',
|
|
90
|
-
'word-wrap',
|
|
91
|
-
'white-space',
|
|
92
|
-
'vertical-align',
|
|
93
|
-
'list-style',
|
|
94
|
-
'list-style-type',
|
|
95
|
-
'list-style-position',
|
|
96
|
-
'list-style-image',
|
|
97
|
-
'pointer-events',
|
|
98
|
-
'cursor',
|
|
99
|
-
'background',
|
|
100
|
-
'background-color',
|
|
101
|
-
'border',
|
|
102
|
-
'border-radius',
|
|
103
|
-
'content',
|
|
104
|
-
'outline',
|
|
105
|
-
'outline-offset',
|
|
106
|
-
'opacity',
|
|
107
|
-
'filter',
|
|
108
|
-
'visibility',
|
|
109
|
-
'size',
|
|
110
|
-
'transform',
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
};
|
|
1
|
+
// .stylelintrc.js
|
|
2
|
+
module.exports = {
|
|
3
|
+
processors: [],
|
|
4
|
+
plugins: ['stylelint-order'],
|
|
5
|
+
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
|
|
6
|
+
rules: {
|
|
7
|
+
'selector-class-pattern': [
|
|
8
|
+
// 命名规范 -
|
|
9
|
+
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
10
|
+
{
|
|
11
|
+
message: 'Expected class selector to be kebab-case',
|
|
12
|
+
severity: 'warning',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
'string-quotes': 'single', // 单引号
|
|
16
|
+
'at-rule-empty-line-before': null,
|
|
17
|
+
'at-rule-no-unknown': null,
|
|
18
|
+
'at-rule-name-case': 'lower', // 指定@规则名的大小写
|
|
19
|
+
'length-zero-no-unit': true, // 禁止零长度的单位(可自动修复)
|
|
20
|
+
'shorthand-property-no-redundant-values': true, // 简写属性
|
|
21
|
+
'number-leading-zero': 'never', // 小数不带0
|
|
22
|
+
'declaration-block-no-duplicate-properties': true, // 禁止声明快重复属性
|
|
23
|
+
'no-descending-specificity': [true, { severity: 'warning' }], // 禁止在具有较高优先级的选择器后出现被其覆盖的较低优先级的选择器。
|
|
24
|
+
'no-duplicate-selectors': [true, { severity: 'warning' }], // 选择器内部重复
|
|
25
|
+
'selector-max-id': 1, // 限制一个选择器中 ID 选择器的数量
|
|
26
|
+
'max-nesting-depth': 10, // 选择器层级
|
|
27
|
+
indentation: [
|
|
28
|
+
2,
|
|
29
|
+
{
|
|
30
|
+
// 指定缩进 warning 提醒
|
|
31
|
+
severity: 'warning',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
'order/properties-order': [
|
|
35
|
+
// 规则顺序
|
|
36
|
+
'position',
|
|
37
|
+
'top',
|
|
38
|
+
'right',
|
|
39
|
+
'bottom',
|
|
40
|
+
'left',
|
|
41
|
+
'z-index',
|
|
42
|
+
'display',
|
|
43
|
+
'float',
|
|
44
|
+
'width',
|
|
45
|
+
'height',
|
|
46
|
+
'max-width',
|
|
47
|
+
'max-height',
|
|
48
|
+
'min-width',
|
|
49
|
+
'min-height',
|
|
50
|
+
'padding',
|
|
51
|
+
'padding-top',
|
|
52
|
+
'padding-right',
|
|
53
|
+
'padding-bottom',
|
|
54
|
+
'padding-left',
|
|
55
|
+
'margin',
|
|
56
|
+
'margin-top',
|
|
57
|
+
'margin-right',
|
|
58
|
+
'margin-bottom',
|
|
59
|
+
'margin-left',
|
|
60
|
+
'margin-collapse',
|
|
61
|
+
'margin-top-collapse',
|
|
62
|
+
'margin-right-collapse',
|
|
63
|
+
'margin-bottom-collapse',
|
|
64
|
+
'margin-left-collapse',
|
|
65
|
+
'overflow',
|
|
66
|
+
'overflow-x',
|
|
67
|
+
'overflow-y',
|
|
68
|
+
'clip',
|
|
69
|
+
'clear',
|
|
70
|
+
'font',
|
|
71
|
+
'font-family',
|
|
72
|
+
'font-size',
|
|
73
|
+
'font-smoothing',
|
|
74
|
+
'osx-font-smoothing',
|
|
75
|
+
'font-style',
|
|
76
|
+
'font-weight',
|
|
77
|
+
'line-height',
|
|
78
|
+
'letter-spacing',
|
|
79
|
+
'word-spacing',
|
|
80
|
+
'color',
|
|
81
|
+
'text-align',
|
|
82
|
+
'text-decoration',
|
|
83
|
+
'text-indent',
|
|
84
|
+
'text-overflow',
|
|
85
|
+
'text-rendering',
|
|
86
|
+
'text-size-adjust',
|
|
87
|
+
'text-shadow',
|
|
88
|
+
'text-transform',
|
|
89
|
+
'word-break',
|
|
90
|
+
'word-wrap',
|
|
91
|
+
'white-space',
|
|
92
|
+
'vertical-align',
|
|
93
|
+
'list-style',
|
|
94
|
+
'list-style-type',
|
|
95
|
+
'list-style-position',
|
|
96
|
+
'list-style-image',
|
|
97
|
+
'pointer-events',
|
|
98
|
+
'cursor',
|
|
99
|
+
'background',
|
|
100
|
+
'background-color',
|
|
101
|
+
'border',
|
|
102
|
+
'border-radius',
|
|
103
|
+
'content',
|
|
104
|
+
'outline',
|
|
105
|
+
'outline-offset',
|
|
106
|
+
'opacity',
|
|
107
|
+
'filter',
|
|
108
|
+
'visibility',
|
|
109
|
+
'size',
|
|
110
|
+
'transform',
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
};
|
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# VIDC
|
|
2
|
-
|
|
3
|
-
### Changlog
|
|
4
|
-
|
|
5
|
-
- 1.0.48 修复工作流 bug
|
|
6
|
-
|
|
7
|
-
### CommitLine
|
|
8
|
-
|
|
9
|
-
- feat: 新增 feature
|
|
10
|
-
- fix: 修复 bug
|
|
11
|
-
- docs: 仅仅修改了文档,如 readme.md
|
|
12
|
-
- style: 仅仅是对格式进行修改,如逗号、缩进、空格等。不改变代码逻辑。
|
|
13
|
-
- refactor: 代码重构,没有新增功能或修复 bug
|
|
14
|
-
- perf: 优化相关,如提升性能、用户体验等。
|
|
15
|
-
- test: 测试用例,包括单元测试、集成测试。
|
|
16
|
-
- chore: 改变构建流程、或者增加依赖库、工具等。
|
|
17
|
-
- revert: 版本回滚
|
|
18
|
-
|
|
19
|
-
`git commit -m "fix: 修补bug"`
|
|
1
|
+
# VIDC
|
|
2
|
+
|
|
3
|
+
### Changlog
|
|
4
|
+
|
|
5
|
+
- 1.0.48 修复工作流 bug
|
|
6
|
+
|
|
7
|
+
### CommitLine
|
|
8
|
+
|
|
9
|
+
- feat: 新增 feature
|
|
10
|
+
- fix: 修复 bug
|
|
11
|
+
- docs: 仅仅修改了文档,如 readme.md
|
|
12
|
+
- style: 仅仅是对格式进行修改,如逗号、缩进、空格等。不改变代码逻辑。
|
|
13
|
+
- refactor: 代码重构,没有新增功能或修复 bug
|
|
14
|
+
- perf: 优化相关,如提升性能、用户体验等。
|
|
15
|
+
- test: 测试用例,包括单元测试、集成测试。
|
|
16
|
+
- chore: 改变构建流程、或者增加依赖库、工具等。
|
|
17
|
+
- revert: 版本回滚
|
|
18
|
+
|
|
19
|
+
`git commit -m "fix: 修补bug"`
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function readFile(path) {
|
|
5
|
-
return new Promise((resolve, reject) => {
|
|
6
|
-
|
|
7
|
-
err ? reject(err) : resolve(data);
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function writeFile(path, data) {
|
|
13
|
-
return new Promise((resolve, reject) => {
|
|
14
|
-
|
|
15
|
-
err ? reject(err) : resolve();
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
async function run() {
|
|
21
|
-
try {
|
|
22
|
-
const url =
|
|
23
|
-
const str = await readFile(url);
|
|
24
|
-
const newStr = str.replace(/fill="\S+"/g, '');
|
|
25
|
-
await writeFile(url, newStr);
|
|
26
|
-
} catch (e) {
|
|
27
|
-
console.error(e);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
run();
|
|
1
|
+
import { readFile as _readFile, writeFile as _writeFile } from 'node:fs';
|
|
2
|
+
import { resolve as _resolve } from 'node:path';
|
|
3
|
+
|
|
4
|
+
function readFile(path) {
|
|
5
|
+
return new Promise((resolve, reject) => {
|
|
6
|
+
_readFile(path, 'utf8', function (err, data) {
|
|
7
|
+
err ? reject(err) : resolve(data);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function writeFile(path, data) {
|
|
13
|
+
return new Promise((resolve, reject) => {
|
|
14
|
+
_writeFile(path, data, 'utf-8', function (err) {
|
|
15
|
+
err ? reject(err) : resolve();
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async function run() {
|
|
21
|
+
try {
|
|
22
|
+
const url = _resolve(process.cwd(), './src/Player/style/iconfont.js');
|
|
23
|
+
const str = await readFile(url);
|
|
24
|
+
const newStr = str.replace(/fill="\S+"/g, '');
|
|
25
|
+
await writeFile(url, newStr);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
console.error(e);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
run();
|
package/package.json
CHANGED
|
@@ -1,100 +1,97 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": false,
|
|
3
|
-
"name": "@cloud-app-dev/vidc",
|
|
4
|
-
"description": "Video Image Data Componennts",
|
|
5
|
-
"version": "4.0.
|
|
6
|
-
"scripts": {
|
|
7
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
-
"build": "npm run entry && father build",
|
|
9
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
-
"entry": "node ./scripts/entry.js",
|
|
11
|
-
"start": "npm run dev",
|
|
12
|
-
"dev": "dumi dev",
|
|
13
|
-
"build:watch": "father dev",
|
|
14
|
-
"docs:build": "dumi build",
|
|
15
|
-
"prepare": "husky install && dumi setup",
|
|
16
|
-
"doctor": "father doctor",
|
|
17
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
18
|
-
"stylelint": "stylelint --fix \"**/*.less\" --custom-syntax postcss-less"
|
|
19
|
-
},
|
|
20
|
-
"publishConfig": {
|
|
21
|
-
"registry": "https://registry.npmjs.org/"
|
|
22
|
-
},
|
|
23
|
-
"main": "es/index.js",
|
|
24
|
-
"module": "es/index.js",
|
|
25
|
-
"typings": "es/index.d.ts",
|
|
26
|
-
"commitlint": {
|
|
27
|
-
"extends": [
|
|
28
|
-
"@commitlint/config-conventional"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"lint-staged": {
|
|
32
|
-
"*.{md,json}": [
|
|
33
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
34
|
-
],
|
|
35
|
-
"*.less": [
|
|
36
|
-
"stylelint --fix --custom-syntax postcss-less"
|
|
37
|
-
],
|
|
38
|
-
"*.{js,jsx}": [
|
|
39
|
-
"eslint --fix",
|
|
40
|
-
"prettier --write"
|
|
41
|
-
],
|
|
42
|
-
"*.{ts,tsx}": [
|
|
43
|
-
"eslint --fix",
|
|
44
|
-
"prettier --parser=typescript --write"
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"@cloud-app-dev/mpegts.js": "^1.7.3",
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@turf/
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@types/
|
|
75
|
-
"@types/
|
|
76
|
-
"@types/
|
|
77
|
-
"@types/
|
|
78
|
-
"@
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"stylelint": "^
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"stylelint-order": "^5.0.0"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"private": false,
|
|
3
|
+
"name": "@cloud-app-dev/vidc",
|
|
4
|
+
"description": "Video Image Data Componennts",
|
|
5
|
+
"version": "4.0.19",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
+
"build": "npm run entry && father build",
|
|
9
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
+
"entry": "node ./scripts/entry.js",
|
|
11
|
+
"start": "npm run dev",
|
|
12
|
+
"dev": "dumi dev",
|
|
13
|
+
"build:watch": "father dev",
|
|
14
|
+
"docs:build": "dumi build",
|
|
15
|
+
"prepare": "husky install && dumi setup",
|
|
16
|
+
"doctor": "father doctor",
|
|
17
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
18
|
+
"stylelint": "stylelint --fix \"**/*.less\" --custom-syntax postcss-less"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"main": "es/index.js",
|
|
24
|
+
"module": "es/index.js",
|
|
25
|
+
"typings": "es/index.d.ts",
|
|
26
|
+
"commitlint": {
|
|
27
|
+
"extends": [
|
|
28
|
+
"@commitlint/config-conventional"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"lint-staged": {
|
|
32
|
+
"*.{md,json}": [
|
|
33
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
34
|
+
],
|
|
35
|
+
"*.less": [
|
|
36
|
+
"stylelint --fix --custom-syntax postcss-less"
|
|
37
|
+
],
|
|
38
|
+
"*.{js,jsx}": [
|
|
39
|
+
"eslint --fix",
|
|
40
|
+
"prettier --write"
|
|
41
|
+
],
|
|
42
|
+
"*.{ts,tsx}": [
|
|
43
|
+
"eslint --fix",
|
|
44
|
+
"prettier --parser=typescript --write"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@cloud-app-dev/mpegts.js": "^1.7.3",
|
|
49
|
+
"@turf/boolean-disjoint": "^6.5.0",
|
|
50
|
+
"@turf/helpers": "^6.5.0",
|
|
51
|
+
"@turf/line-to-polygon": "^6.5.0",
|
|
52
|
+
"@types/js-cookie": "^3.0.3",
|
|
53
|
+
"@types/uuid": "^9.0.1",
|
|
54
|
+
"ahooks": "^3.7.7",
|
|
55
|
+
"axios": "^1.4.0",
|
|
56
|
+
"dayjs": "^1.11.8",
|
|
57
|
+
"db.js": "^0.15.0",
|
|
58
|
+
"history": "^5.3.0",
|
|
59
|
+
"hls.js": "^1.4.8",
|
|
60
|
+
"immer": "^10.0.2",
|
|
61
|
+
"js-cookie": "^3.0.5",
|
|
62
|
+
"lodash-es": "^4.17.21",
|
|
63
|
+
"react-error-boundary": "^3.1.4",
|
|
64
|
+
"react-hotkeys-hook": "^4.4.0",
|
|
65
|
+
"screenfull": "^6.0.2",
|
|
66
|
+
"socket.io-client": "2.5.0",
|
|
67
|
+
"uuid": "^9.0.0"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@commitlint/cli": "^17.6.5",
|
|
71
|
+
"@commitlint/config-conventional": "^17.6.5",
|
|
72
|
+
"@types/db.js": "^0.14.7",
|
|
73
|
+
"@types/leaflet": "^1.9.3",
|
|
74
|
+
"@types/lodash-es": "^4.17.7",
|
|
75
|
+
"@types/node": "^18.16.16",
|
|
76
|
+
"@types/react": "^18.2.9",
|
|
77
|
+
"@types/react-dom": "^18.2.4",
|
|
78
|
+
"@umijs/lint": "^4.0.70",
|
|
79
|
+
"antd": "^5.6.4",
|
|
80
|
+
"babel-plugin-import": "^1.13.6",
|
|
81
|
+
"dumi": "^2.2.1",
|
|
82
|
+
"eslint": "^8.44.0",
|
|
83
|
+
"father": "^4.2.3",
|
|
84
|
+
"gh-pages": "^5.0.0",
|
|
85
|
+
"husky": "^8.0.3",
|
|
86
|
+
"lint-staged": "^13.2.3",
|
|
87
|
+
"prettier": "^2.8.8",
|
|
88
|
+
"prettier-plugin-organize-imports": "^3.2.2",
|
|
89
|
+
"prettier-plugin-packagejson": "^2.4.3",
|
|
90
|
+
"react": "^18.2.0",
|
|
91
|
+
"react-dom": "^18.2.0",
|
|
92
|
+
"stylelint": "^14.16.1",
|
|
93
|
+
"stylelint-config-prettier": "^9.0.5",
|
|
94
|
+
"stylelint-config-standard": "^29.0.0",
|
|
95
|
+
"stylelint-order": "^5.0.0"
|
|
96
|
+
}
|
|
97
|
+
}
|
package/release-build.sh
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
#! /bin/sh
|
|
2
|
-
|
|
3
|
-
pnpm install
|
|
4
|
-
if [ $? -eq 0 ]; then
|
|
5
|
-
echo "packages install success!"
|
|
6
|
-
else
|
|
7
|
-
echo "packages install failed!"
|
|
8
|
-
exit 1
|
|
9
|
-
fi
|
|
10
|
-
|
|
11
|
-
rm -rf .mfsu
|
|
12
|
-
rm -rf src/umi*
|
|
13
|
-
|
|
14
|
-
npm run build
|
|
15
|
-
if [ $? -eq 0 ]; then
|
|
16
|
-
echo "build success!"
|
|
17
|
-
else
|
|
18
|
-
echo "build failed!"
|
|
19
|
-
exit 1
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
npm run deploy
|
|
23
|
-
if [ $? -eq 0 ]; then
|
|
24
|
-
echo "deploy success!"
|
|
25
|
-
else
|
|
26
|
-
echo "deploy failed!"
|
|
27
|
-
exit 1
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
|
-
npm publish
|
|
31
|
-
if [ $? -eq 0 ]; then
|
|
32
|
-
echo "publish success!"
|
|
33
|
-
else
|
|
34
|
-
echo "publish failed!"
|
|
35
|
-
exit 1
|
|
36
|
-
fi
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
git
|
|
41
|
-
|
|
42
|
-
git
|
|
43
|
-
|
|
44
|
-
git
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
#! /bin/sh
|
|
2
|
+
|
|
3
|
+
pnpm install
|
|
4
|
+
if [ $? -eq 0 ]; then
|
|
5
|
+
echo "packages install success!"
|
|
6
|
+
else
|
|
7
|
+
echo "packages install failed!"
|
|
8
|
+
exit 1
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
rm -rf .mfsu
|
|
12
|
+
rm -rf src/umi*
|
|
13
|
+
|
|
14
|
+
npm run build
|
|
15
|
+
if [ $? -eq 0 ]; then
|
|
16
|
+
echo "build success!"
|
|
17
|
+
else
|
|
18
|
+
echo "build failed!"
|
|
19
|
+
exit 1
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
npm run deploy
|
|
23
|
+
if [ $? -eq 0 ]; then
|
|
24
|
+
echo "deploy success!"
|
|
25
|
+
else
|
|
26
|
+
echo "deploy failed!"
|
|
27
|
+
exit 1
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
npm publish
|
|
31
|
+
if [ $? -eq 0 ]; then
|
|
32
|
+
echo "publish success!"
|
|
33
|
+
else
|
|
34
|
+
echo "publish failed!"
|
|
35
|
+
exit 1
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
npm version patch
|
|
39
|
+
|
|
40
|
+
git add .
|
|
41
|
+
|
|
42
|
+
git commit -m "feat: 新版本构建发布"
|
|
43
|
+
|
|
44
|
+
git pull
|
|
45
|
+
|
|
46
|
+
git push
|
|
47
|
+
|
|
48
|
+
exit 1
|
package/scripts/entry.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const componentDir = 'src';
|
|
4
|
-
const cModuleNames = fs.readdirSync(path.resolve(componentDir));
|
|
5
|
-
|
|
6
|
-
function run() {
|
|
7
|
-
let entryText = '';
|
|
8
|
-
let dtsText = '';
|
|
9
|
-
cModuleNames.forEach((name) => {
|
|
10
|
-
if (name.charAt(0) !== '.' && fs.statSync(path.resolve(`${componentDir}/${name}`)).isDirectory()) {
|
|
11
|
-
entryText += `export { default as ${name} } from './${name}';\n`;
|
|
12
|
-
dtsText += `export { default as ${name} } from './src/${name}';\n`;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
fs.writeFileSync(path.resolve('src/index.ts'), entryText);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
run();
|
|
19
|
-
|
|
20
|
-
console.log('================== entry is init! ===================');
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const componentDir = 'src';
|
|
4
|
+
const cModuleNames = fs.readdirSync(path.resolve(componentDir));
|
|
5
|
+
|
|
6
|
+
function run() {
|
|
7
|
+
let entryText = '';
|
|
8
|
+
let dtsText = '';
|
|
9
|
+
cModuleNames.forEach((name) => {
|
|
10
|
+
if (name.charAt(0) !== '.' && fs.statSync(path.resolve(`${componentDir}/${name}`)).isDirectory()) {
|
|
11
|
+
entryText += `export { default as ${name} } from './${name}';\n`;
|
|
12
|
+
dtsText += `export { default as ${name} } from './src/${name}';\n`;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
fs.writeFileSync(path.resolve('src/index.ts'), entryText);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
run();
|
|
19
|
+
|
|
20
|
+
console.log('================== entry is init! ===================');
|
package/theme-config.ts
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
export const themeConfig = `
|
|
2
|
-
:root{
|
|
3
|
-
--primary: #248FFA;
|
|
4
|
-
--primary-light: #248FFA;
|
|
5
|
-
--primary-dark: #227BD5;
|
|
6
|
-
--secondary1: #e8b127;
|
|
7
|
-
--secondary1-light: #e8b127;
|
|
8
|
-
--secondary1-dark: #e8b127;
|
|
9
|
-
--secondary2: #33AAFF;
|
|
10
|
-
--secondary2-light: #61BDFF;
|
|
11
|
-
--secondary2-dark: #2194E5;
|
|
12
|
-
--secondary3: #F3A75F;
|
|
13
|
-
--secondary3-light: #F8B578;
|
|
14
|
-
--secondary3-dark: #DC914C;
|
|
15
|
-
--danger: #F32D37;
|
|
16
|
-
--danger-light: #FF4D4F;
|
|
17
|
-
--danger-dark: #DC1B2A;
|
|
18
|
-
--warn: #FD8535;
|
|
19
|
-
--warn-light: #FF9F5E;
|
|
20
|
-
--warn-dark: #DC1B2A;
|
|
21
|
-
--success: #35BD77;
|
|
22
|
-
--success-light: #55C98D;
|
|
23
|
-
--success-dark: #21965A;
|
|
24
|
-
--gray1: #FFFFFF;
|
|
25
|
-
--gray2: #F3F3F3;
|
|
26
|
-
--gray3: #EEEEEE;
|
|
27
|
-
--gray4: #E7E7E7;
|
|
28
|
-
--gray5: #DCDCDC;
|
|
29
|
-
--gray6: #C5C5C5;
|
|
30
|
-
--gray7: #A6A6A6;
|
|
31
|
-
--gray8: #8B8B8B;
|
|
32
|
-
--gray9: #777777;
|
|
33
|
-
--gray10: #5E5E5E;
|
|
34
|
-
--gray11: #4B4B4B;
|
|
35
|
-
--gray12: #383838;
|
|
36
|
-
--background: #348fe2;
|
|
37
|
-
--content-bg: #ffffff;
|
|
38
|
-
--form-bg:#fff;
|
|
39
|
-
--form-bd:#eee;
|
|
40
|
-
--form-active-bg:#248FFA;
|
|
41
|
-
--icon:#62708B;
|
|
42
|
-
--fs: 14px;
|
|
43
|
-
--fs-small: 12px;
|
|
44
|
-
--fs-large: 20px;
|
|
45
|
-
--bd:rgba(255, 255, 255, 0.3);
|
|
46
|
-
--color:#000000;
|
|
47
|
-
--color1:#ffffff;
|
|
48
|
-
--color2:#fefefe;
|
|
49
|
-
--color3:#eeeeee;
|
|
50
|
-
--color4:#999999;
|
|
51
|
-
--color5:#666666;
|
|
52
|
-
--color6:#333333;
|
|
53
|
-
--color7:#000000;
|
|
54
|
-
--shadow1: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
55
|
-
--shadow2: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
56
|
-
--shadow3: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
57
|
-
--radius1: 4px;
|
|
58
|
-
--radius2: 8px;
|
|
59
|
-
--radius3: 16px;
|
|
60
|
-
|
|
61
|
-
--header-color: #FFFFFF;
|
|
62
|
-
--header-bg: #348fe2;
|
|
63
|
-
--header-height: 66px;
|
|
64
|
-
|
|
65
|
-
--nav-height: 66px;
|
|
66
|
-
--nav-bg: #348fe2;
|
|
67
|
-
--nav-sub-bg: rgba(255,255,255,1);
|
|
68
|
-
--nav-sub-bg2: rgba(241,244,247,0.8);
|
|
69
|
-
--nav-item-bg-selected: #FFFFFF;
|
|
70
|
-
--nav-item-color: #FFFFFF;
|
|
71
|
-
--nav-icon-color: rgba(255, 255, 255, 0.4);
|
|
72
|
-
--nav-icon-color-selected: #3495EF;
|
|
73
|
-
--nav-item-bg: #348fe2;
|
|
74
|
-
--nav-item-color-selected: rgba(0, 0, 0, 0.9);
|
|
75
|
-
--nav-sub-item-bg-selected: #F3F5F6;
|
|
76
|
-
--nav-sub-item-color-selected: #348fe2;
|
|
77
|
-
--nav-sub-item-color: rgba(0, 0, 0, 0.9);
|
|
78
|
-
--nav-bd-color: rgba(0,0,0,0);
|
|
79
|
-
|
|
80
|
-
--tab-height: 34px;
|
|
81
|
-
--tab-bg: #348fe2;
|
|
82
|
-
--tab-item-bg: #348fe2;
|
|
83
|
-
--tab-item-height: 34px;
|
|
84
|
-
--tab-item-color: #FFFFFF;
|
|
85
|
-
--tab-item-selected-bg: #F3F5F6;
|
|
86
|
-
--tab-item-selected-color: rgba(0, 0, 0, 0.9);
|
|
87
|
-
|
|
88
|
-
--drawer-title-height: 48px;
|
|
89
|
-
--drawer-title-bg: rgba(255,255,255,1);
|
|
90
|
-
--drawer-divider-color: rgba(219,225,234,1);
|
|
91
|
-
--drawer-footer-height: 44px;
|
|
92
|
-
--drawer-footer-bg: rgba(255,255,255,1);
|
|
93
|
-
--drawer-content-bg: rgba(243,246,249,1);
|
|
94
|
-
|
|
95
|
-
--modal-title-height: 44px;
|
|
96
|
-
--modal-title-bg: #ffffff;
|
|
97
|
-
--modal-divider-color: rgba(219,225,234,1);
|
|
98
|
-
--modal-footer-height: 44px;
|
|
99
|
-
--modal-footer-bg: rgba(243,246,249,1);
|
|
100
|
-
--modal-content-bg: rgba(243,246,249,1);
|
|
101
|
-
|
|
102
|
-
--card-image-radius: 4px;
|
|
103
|
-
--card-image-bg: rgba(219,225,234,1);
|
|
104
|
-
--card-radius: 4px;
|
|
105
|
-
--card-content-bg: rgba(255,255,255,1);
|
|
106
|
-
--card-shadow: 0 0 4px 0 rgba(0,0,0,0.2);
|
|
107
|
-
--card-bd-color: rgba(219,225,234,1);
|
|
108
|
-
--card-hover-bd-color: rgba(18,122,255,1);
|
|
109
|
-
--card-footer-bg: rgba(219,225,234,1);
|
|
110
|
-
|
|
111
|
-
--table-bg:#ffffff";
|
|
112
|
-
--table-head-bg:#fafafa";
|
|
113
|
-
--table-bd:rgba(245,245,245,1);
|
|
114
|
-
--table-row-hover-color:rgba(237,245,250,1);
|
|
115
|
-
|
|
116
|
-
--scrollbar-width: 8px;
|
|
117
|
-
--scrollbar-track-bg: rgba(239,241,244,1);
|
|
118
|
-
--scrollbar-thumb-bg: rgba(185,193,203,1);
|
|
119
|
-
--scrollbar-thumb-hover-bg: rgba(195,209,229,1);
|
|
120
|
-
--scrollbar-track-shadow: 0 0 3px 0 rgba(255, 255, 255, 0.1) inset;
|
|
121
|
-
--scrollbar-thumb-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3) inset;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
`;
|
|
1
|
+
export const themeConfig = `
|
|
2
|
+
:root{
|
|
3
|
+
--primary: #248FFA;
|
|
4
|
+
--primary-light: #248FFA;
|
|
5
|
+
--primary-dark: #227BD5;
|
|
6
|
+
--secondary1: #e8b127;
|
|
7
|
+
--secondary1-light: #e8b127;
|
|
8
|
+
--secondary1-dark: #e8b127;
|
|
9
|
+
--secondary2: #33AAFF;
|
|
10
|
+
--secondary2-light: #61BDFF;
|
|
11
|
+
--secondary2-dark: #2194E5;
|
|
12
|
+
--secondary3: #F3A75F;
|
|
13
|
+
--secondary3-light: #F8B578;
|
|
14
|
+
--secondary3-dark: #DC914C;
|
|
15
|
+
--danger: #F32D37;
|
|
16
|
+
--danger-light: #FF4D4F;
|
|
17
|
+
--danger-dark: #DC1B2A;
|
|
18
|
+
--warn: #FD8535;
|
|
19
|
+
--warn-light: #FF9F5E;
|
|
20
|
+
--warn-dark: #DC1B2A;
|
|
21
|
+
--success: #35BD77;
|
|
22
|
+
--success-light: #55C98D;
|
|
23
|
+
--success-dark: #21965A;
|
|
24
|
+
--gray1: #FFFFFF;
|
|
25
|
+
--gray2: #F3F3F3;
|
|
26
|
+
--gray3: #EEEEEE;
|
|
27
|
+
--gray4: #E7E7E7;
|
|
28
|
+
--gray5: #DCDCDC;
|
|
29
|
+
--gray6: #C5C5C5;
|
|
30
|
+
--gray7: #A6A6A6;
|
|
31
|
+
--gray8: #8B8B8B;
|
|
32
|
+
--gray9: #777777;
|
|
33
|
+
--gray10: #5E5E5E;
|
|
34
|
+
--gray11: #4B4B4B;
|
|
35
|
+
--gray12: #383838;
|
|
36
|
+
--background: #348fe2;
|
|
37
|
+
--content-bg: #ffffff;
|
|
38
|
+
--form-bg:#fff;
|
|
39
|
+
--form-bd:#eee;
|
|
40
|
+
--form-active-bg:#248FFA;
|
|
41
|
+
--icon:#62708B;
|
|
42
|
+
--fs: 14px;
|
|
43
|
+
--fs-small: 12px;
|
|
44
|
+
--fs-large: 20px;
|
|
45
|
+
--bd:rgba(255, 255, 255, 0.3);
|
|
46
|
+
--color:#000000;
|
|
47
|
+
--color1:#ffffff;
|
|
48
|
+
--color2:#fefefe;
|
|
49
|
+
--color3:#eeeeee;
|
|
50
|
+
--color4:#999999;
|
|
51
|
+
--color5:#666666;
|
|
52
|
+
--color6:#333333;
|
|
53
|
+
--color7:#000000;
|
|
54
|
+
--shadow1: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
55
|
+
--shadow2: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
56
|
+
--shadow3: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
57
|
+
--radius1: 4px;
|
|
58
|
+
--radius2: 8px;
|
|
59
|
+
--radius3: 16px;
|
|
60
|
+
|
|
61
|
+
--header-color: #FFFFFF;
|
|
62
|
+
--header-bg: #348fe2;
|
|
63
|
+
--header-height: 66px;
|
|
64
|
+
|
|
65
|
+
--nav-height: 66px;
|
|
66
|
+
--nav-bg: #348fe2;
|
|
67
|
+
--nav-sub-bg: rgba(255,255,255,1);
|
|
68
|
+
--nav-sub-bg2: rgba(241,244,247,0.8);
|
|
69
|
+
--nav-item-bg-selected: #FFFFFF;
|
|
70
|
+
--nav-item-color: #FFFFFF;
|
|
71
|
+
--nav-icon-color: rgba(255, 255, 255, 0.4);
|
|
72
|
+
--nav-icon-color-selected: #3495EF;
|
|
73
|
+
--nav-item-bg: #348fe2;
|
|
74
|
+
--nav-item-color-selected: rgba(0, 0, 0, 0.9);
|
|
75
|
+
--nav-sub-item-bg-selected: #F3F5F6;
|
|
76
|
+
--nav-sub-item-color-selected: #348fe2;
|
|
77
|
+
--nav-sub-item-color: rgba(0, 0, 0, 0.9);
|
|
78
|
+
--nav-bd-color: rgba(0,0,0,0);
|
|
79
|
+
|
|
80
|
+
--tab-height: 34px;
|
|
81
|
+
--tab-bg: #348fe2;
|
|
82
|
+
--tab-item-bg: #348fe2;
|
|
83
|
+
--tab-item-height: 34px;
|
|
84
|
+
--tab-item-color: #FFFFFF;
|
|
85
|
+
--tab-item-selected-bg: #F3F5F6;
|
|
86
|
+
--tab-item-selected-color: rgba(0, 0, 0, 0.9);
|
|
87
|
+
|
|
88
|
+
--drawer-title-height: 48px;
|
|
89
|
+
--drawer-title-bg: rgba(255,255,255,1);
|
|
90
|
+
--drawer-divider-color: rgba(219,225,234,1);
|
|
91
|
+
--drawer-footer-height: 44px;
|
|
92
|
+
--drawer-footer-bg: rgba(255,255,255,1);
|
|
93
|
+
--drawer-content-bg: rgba(243,246,249,1);
|
|
94
|
+
|
|
95
|
+
--modal-title-height: 44px;
|
|
96
|
+
--modal-title-bg: #ffffff;
|
|
97
|
+
--modal-divider-color: rgba(219,225,234,1);
|
|
98
|
+
--modal-footer-height: 44px;
|
|
99
|
+
--modal-footer-bg: rgba(243,246,249,1);
|
|
100
|
+
--modal-content-bg: rgba(243,246,249,1);
|
|
101
|
+
|
|
102
|
+
--card-image-radius: 4px;
|
|
103
|
+
--card-image-bg: rgba(219,225,234,1);
|
|
104
|
+
--card-radius: 4px;
|
|
105
|
+
--card-content-bg: rgba(255,255,255,1);
|
|
106
|
+
--card-shadow: 0 0 4px 0 rgba(0,0,0,0.2);
|
|
107
|
+
--card-bd-color: rgba(219,225,234,1);
|
|
108
|
+
--card-hover-bd-color: rgba(18,122,255,1);
|
|
109
|
+
--card-footer-bg: rgba(219,225,234,1);
|
|
110
|
+
|
|
111
|
+
--table-bg:#ffffff";
|
|
112
|
+
--table-head-bg:#fafafa";
|
|
113
|
+
--table-bd:rgba(245,245,245,1);
|
|
114
|
+
--table-row-hover-color:rgba(237,245,250,1);
|
|
115
|
+
|
|
116
|
+
--scrollbar-width: 8px;
|
|
117
|
+
--scrollbar-track-bg: rgba(239,241,244,1);
|
|
118
|
+
--scrollbar-thumb-bg: rgba(185,193,203,1);
|
|
119
|
+
--scrollbar-thumb-hover-bg: rgba(195,209,229,1);
|
|
120
|
+
--scrollbar-track-shadow: 0 0 3px 0 rgba(255, 255, 255, 0.1) inset;
|
|
121
|
+
--scrollbar-thumb-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3) inset;
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
`;
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"strict": true,
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"skipLibCheck": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"target": "ES6",
|
|
8
|
-
"jsx": "react",
|
|
9
|
-
"baseUrl": "./",
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"paths": {
|
|
12
|
-
"@@/*": [".dumi/tmp/*"],
|
|
13
|
-
"test/*": ["src/*", "*"]
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"target": "ES6",
|
|
8
|
+
"jsx": "react",
|
|
9
|
+
"baseUrl": "./",
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"paths": {
|
|
12
|
+
"@@/*": [".dumi/tmp/*"],
|
|
13
|
+
"test/*": ["src/*", "*"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
package/typings/global.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// declare module 'axios/lib/core/settle';
|
|
2
|
-
// declare module 'axios/lib/helpers/buildURL';
|
|
3
|
-
// declare module 'axios/lib/core/buildFullPath';
|
|
4
|
-
// declare module 'axios/lib/cancel/CanceledError';
|
|
1
|
+
// declare module 'axios/lib/core/settle';
|
|
2
|
+
// declare module 'axios/lib/helpers/buildURL';
|
|
3
|
+
// declare module 'axios/lib/core/buildFullPath';
|
|
4
|
+
// declare module 'axios/lib/cancel/CanceledError';
|