kn-cli 1.0.44 → 1.0.45
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/package.json +2 -1
- package/readme.md +3 -0
- package/src/utils/index.js +1 -1
- package/templates/template_admin/.gitignore +6 -0
- package/templates/template_admin/build.sh +2 -0
- package/templates/template_admin/cli.config.js +21 -0
- package/templates/template_admin/dev.sh +89 -0
- package/templates/template_admin/frontend_build.sh +83 -0
- package/templates/template_admin/init/prepare-commit-msg +5 -0
- package/templates/template_admin/init.sh +33 -0
- package/templates/template_admin/package.json +23 -0
- package/templates/template_admin/public/404.html +26 -0
- package/templates/template_admin/public/favicon.ico +0 -0
- package/templates/template_admin/public/favicon.png +0 -0
- package/templates/template_admin/public/index.html +43 -0
- package/templates/template_admin/public/src/_antd.less +4 -0
- package/templates/template_admin/public/src/_reset.less +128 -0
- package/templates/template_admin/public/src/_variable.less +80 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.eot +0 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.less +57 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.svg +36 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.ttf +0 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.woff +0 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.woff2 +0 -0
- package/templates/template_admin/public/src/assets/images/avatar.png +0 -0
- package/templates/template_admin/public/src/assets/images/loading.svg +40 -0
- package/templates/template_admin/public/src/components/Alert/index.jsx +0 -0
- package/templates/template_admin/public/src/components/Alert/index.less +0 -0
- package/templates/template_admin/public/src/components/Auth/index.jsx +44 -0
- package/templates/template_admin/public/src/components/Header/index.jsx +57 -0
- package/templates/template_admin/public/src/components/Header/index.less +57 -0
- package/templates/template_admin/public/src/components/IconFont/index.jsx +10 -0
- package/templates/template_admin/public/src/components/IconFont/index.less +5 -0
- package/templates/template_admin/public/src/components/Layout/Basic/index.jsx +26 -0
- package/templates/template_admin/public/src/components/Layout/Basic/index.less +37 -0
- package/templates/template_admin/public/src/components/Layout/CenterBody/index.jsx +15 -0
- package/templates/template_admin/public/src/components/Layout/CenterBody/index.less +30 -0
- package/templates/template_admin/public/src/components/Layout/Provider/index.jsx +12 -0
- package/templates/template_admin/public/src/components/Layout/index.jsx +27 -0
- package/templates/template_admin/public/src/components/Layout/index.less +63 -0
- package/templates/template_admin/public/src/components/Link/index.jsx +24 -0
- package/templates/template_admin/public/src/components/Link/index.less +11 -0
- package/templates/template_admin/public/src/components/Loading/index.jsx +14 -0
- package/templates/template_admin/public/src/components/Loading/index.less +85 -0
- package/templates/template_admin/public/src/components/Menu/index.jsx +126 -0
- package/templates/template_admin/public/src/components/Menu/index.less +19 -0
- package/templates/template_admin/public/src/components/Page/PageLoading/index.jsx +30 -0
- package/templates/template_admin/public/src/components/Page/PageLoading/index.less +29 -0
- package/templates/template_admin/public/src/components/Popup/index.jsx +22 -0
- package/templates/template_admin/public/src/components/Popup/index.less +18 -0
- package/templates/template_admin/public/src/components/Toast/index.jsx +60 -0
- package/templates/template_admin/public/src/components/Toast/index.less +43 -0
- package/templates/template_admin/public/src/components/TopMenu/index.jsx +228 -0
- package/templates/template_admin/public/src/components/TopMenu/index.less +105 -0
- package/templates/template_admin/public/src/components/mask/index.jsx +47 -0
- package/templates/template_admin/public/src/components/mask/index.less +32 -0
- package/templates/template_admin/public/src/dictionary/index.js +103 -0
- package/templates/template_admin/public/src/hooks/index.jsx +18 -0
- package/templates/template_admin/public/src/hooks/useDelay.jsx +29 -0
- package/templates/template_admin/public/src/hooks/useImageLoader.jsx +27 -0
- package/templates/template_admin/public/src/hooks/useLoading.jsx +42 -0
- package/templates/template_admin/public/src/hooks/useLogin.jsx +33 -0
- package/templates/template_admin/public/src/hooks/useNextPage.jsx +89 -0
- package/templates/template_admin/public/src/hooks/usePreload.jsx +66 -0
- package/templates/template_admin/public/src/hooks/useScrollTop.jsx +32 -0
- package/templates/template_admin/public/src/hooks/useSearch.jsx +137 -0
- package/templates/template_admin/public/src/hooks/useUpdate.jsx +11 -0
- package/templates/template_admin/public/src/index.jsx +50 -0
- package/templates/template_admin/public/src/mock/auth.js +91 -0
- package/templates/template_admin/public/src/mock/index.js +63 -0
- package/templates/template_admin/public/src/mock/user.js +70 -0
- package/templates/template_admin/public/src/mock/utils.js +33 -0
- package/templates/template_admin/public/src/pages/checkLogin/index.jsx +13 -0
- package/templates/template_admin/public/src/pages/index.jsx +23 -0
- package/templates/template_admin/public/src/pages/index.less +22 -0
- package/templates/template_admin/public/src/pages/login/index.jsx +27 -0
- package/templates/template_admin/public/src/pages/login/index.less +44 -0
- package/templates/template_admin/public/src/pages/material/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/order/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/permission/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/subHome/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/subHome2/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/subHome3/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/suggest/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/superAdminLogin/index.jsx +57 -0
- package/templates/template_admin/public/src/pages/superAdminLogin/index.less +44 -0
- package/templates/template_admin/public/src/pages/user/index.jsx +13 -0
- package/templates/template_admin/public/src/pages/userData/index.jsx +12 -0
- package/templates/template_admin/public/src/pages/video/index.jsx +12 -0
- package/templates/template_admin/public/src/provider/app.jsx +119 -0
- package/templates/template_admin/public/src/provider/menu.jsx +20 -0
- package/templates/template_admin/public/src/route.jsx +77 -0
- package/templates/template_admin/public/src/services/auth.js +28 -0
- package/templates/template_admin/public/src/services/index.js +181 -0
- package/templates/template_admin/public/src/services/user.js +26 -0
- package/templates/template_admin/public/src/utils/index.js +38 -0
- package/templates/template_admin/public/static/about.html +1 -0
- package/templates/template_admin/public/static/kssoLogin.html +22 -0
- package/templates/template_admin/readme.md +55 -0
- package/templates/template_admin/report.sh +68 -0
- package/templates/template_admin/tools/iconfont/gulpfile.js +70 -0
- package/templates/template_admin/tools/iconfont/package.json +20 -0
- package/templates/template_admin/tools/iconfont/run.sh +39 -0
- package/templates/template_admin/tools/iconfont/svg/arrowBack.svg +1 -0
- package/templates/template_admin/tools/iconfont/svg/check.svg +1 -0
- package/templates/template_admin/tools/iconfont/svg/close.svg +1 -0
- package/templates/template_admin/tools/iconfont/svg/down.svg +1 -0
- package/templates/template_admin/tools/iconfont/svg/image.svg +1 -0
- package/templates/template_admin/tools/iconfont/svg/play.svg +1 -0
- package/templates/template_admin/tools/iconfont/svg/refresh.svg +1 -0
- package/templates/template_admin/tools/iconfont/svg/warn.svg +1 -0
- package/templates/template_admin/tools/iconfont/templates/_icons.css +26 -0
- package/templates/template_admin/tools/iconfont/templates/_icons.less +29 -0
- package/templates/template_admin/tools/iconfont/templates/index.html +56 -0
- package/templates/template_admin/tools/tinypng/package.json +11 -0
- package/templates/template_admin/tools/tinypng/run.sh +15 -0
- package/templates/template_admin/webpack.api.js +33 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kn-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"bin/",
|
|
11
11
|
"src/",
|
|
12
12
|
"templates/template_app/",
|
|
13
|
+
"templates/template_admin/",
|
|
13
14
|
"build"
|
|
14
15
|
],
|
|
15
16
|
"bin": {
|
package/readme.md
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
module.exports = {
|
|
3
|
+
name:'template-admin',
|
|
4
|
+
registryType:'npm',//npm镜像源,taobao|npm
|
|
5
|
+
less:{
|
|
6
|
+
javascriptEnabled:true,//是否开启less js
|
|
7
|
+
},
|
|
8
|
+
cssModule: (resourcePath) => {
|
|
9
|
+
console.log(resourcePath)
|
|
10
|
+
// antd.less编译的时候使用global模式
|
|
11
|
+
if (/antd.less$/i.test(resourcePath)) {
|
|
12
|
+
return 'global'
|
|
13
|
+
}
|
|
14
|
+
return "local";
|
|
15
|
+
},
|
|
16
|
+
// 自定义多入口
|
|
17
|
+
// entry:{
|
|
18
|
+
// 'home/index': 'src/jsx/home/index.jsx',
|
|
19
|
+
// },
|
|
20
|
+
// copyFolder:['images','plugins'],//完整复制的文件夹
|
|
21
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
if [ -d "${HOME}/.nvm/" ]
|
|
2
|
+
then
|
|
3
|
+
. ${HOME}/.nvm/nvm.sh
|
|
4
|
+
fi
|
|
5
|
+
|
|
6
|
+
node_version="v16.18.0"
|
|
7
|
+
|
|
8
|
+
checkNode(){
|
|
9
|
+
for line in `node -v`
|
|
10
|
+
do
|
|
11
|
+
if [ $line != $node_version ]
|
|
12
|
+
then
|
|
13
|
+
echo "change Node from $line to $node_version"
|
|
14
|
+
nvm use $node_version
|
|
15
|
+
ret=$?
|
|
16
|
+
if [ $ret != 0 ]
|
|
17
|
+
then
|
|
18
|
+
echo "Please run nvm install $node_version"
|
|
19
|
+
exit 3
|
|
20
|
+
else
|
|
21
|
+
return 0
|
|
22
|
+
fi
|
|
23
|
+
else
|
|
24
|
+
return 0
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
checkResult(){
|
|
30
|
+
ret=$?
|
|
31
|
+
if [ $ret != 0 ]
|
|
32
|
+
then
|
|
33
|
+
echo "[$1]执行失败"
|
|
34
|
+
exit 2
|
|
35
|
+
return 0
|
|
36
|
+
else
|
|
37
|
+
echo "[$1]执行成功"
|
|
38
|
+
return 0
|
|
39
|
+
fi
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# 智能检测并安装/升级CLI的版本
|
|
46
|
+
checkKnCli(){
|
|
47
|
+
# dev只需要保持安装了就行,版本通过开发自己控制
|
|
48
|
+
if ! [ -x "$(command -v kn-cli)" ]
|
|
49
|
+
then
|
|
50
|
+
echo "安装kn-cli"
|
|
51
|
+
npm i kn-cli -g
|
|
52
|
+
return 0
|
|
53
|
+
fi
|
|
54
|
+
# for line in `npm view kn-cli version`
|
|
55
|
+
# do
|
|
56
|
+
# for line2 in `kn-cli -v`
|
|
57
|
+
# do
|
|
58
|
+
# if [ $line != $line2 ]
|
|
59
|
+
# then
|
|
60
|
+
# echo "升级kn-cli"
|
|
61
|
+
# npm upgrade kn-cli -g
|
|
62
|
+
# return 0
|
|
63
|
+
# fi
|
|
64
|
+
# done
|
|
65
|
+
# done
|
|
66
|
+
# return 0
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
build(){
|
|
72
|
+
npm config delete registry -g
|
|
73
|
+
npm config delete registry
|
|
74
|
+
|
|
75
|
+
checkKnCli
|
|
76
|
+
checkResult "检查kn-cli"
|
|
77
|
+
# dev_mode=watch 代表使用 webpack -w模式将文件编译后生成到磁盘上进行监听更新
|
|
78
|
+
# 默认情况下为 webpack-dev-server模式,将资源编译后放入内存监听
|
|
79
|
+
# export dev_mode=watch
|
|
80
|
+
|
|
81
|
+
kn-cli --dev
|
|
82
|
+
checkResult "kn-cli --dev"
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
checkNode
|
|
86
|
+
checkResult "检查node"
|
|
87
|
+
|
|
88
|
+
build
|
|
89
|
+
checkResult "build"
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
if [ -d "${HOME}/.nvm/" ]
|
|
2
|
+
then
|
|
3
|
+
. ${HOME}/.nvm/nvm.sh
|
|
4
|
+
fi
|
|
5
|
+
|
|
6
|
+
export mock=0
|
|
7
|
+
export oSkipNpmInstall=1
|
|
8
|
+
node_version="v16.18.0"
|
|
9
|
+
|
|
10
|
+
checkNode(){
|
|
11
|
+
for line in `node -v`
|
|
12
|
+
do
|
|
13
|
+
if [ $line != $node_version ]
|
|
14
|
+
then
|
|
15
|
+
echo "change Node from $line to $node_version"
|
|
16
|
+
nvm use $node_version
|
|
17
|
+
ret=$?
|
|
18
|
+
if [ $ret != 0 ]
|
|
19
|
+
then
|
|
20
|
+
echo "Please run nvm install $node_version"
|
|
21
|
+
exit 3
|
|
22
|
+
else
|
|
23
|
+
return 0
|
|
24
|
+
fi
|
|
25
|
+
else
|
|
26
|
+
return 0
|
|
27
|
+
fi
|
|
28
|
+
done
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
checkKnCli(){
|
|
33
|
+
if ! [ -x "$(command -v kn-cli)" ]
|
|
34
|
+
then
|
|
35
|
+
npm i kn-cli -g
|
|
36
|
+
return 0
|
|
37
|
+
fi
|
|
38
|
+
return 0
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
checkResult(){
|
|
43
|
+
ret=$?
|
|
44
|
+
if [ $ret != 0 ]
|
|
45
|
+
then
|
|
46
|
+
echo "[$1]执行失败"
|
|
47
|
+
exit 2
|
|
48
|
+
return 0
|
|
49
|
+
else
|
|
50
|
+
echo "[$1]执行成功"
|
|
51
|
+
return 0
|
|
52
|
+
fi
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
build(){
|
|
56
|
+
npm config delete registry -g
|
|
57
|
+
npm config delete registry
|
|
58
|
+
|
|
59
|
+
rm -rf release
|
|
60
|
+
checkResult "清理release"
|
|
61
|
+
|
|
62
|
+
checkKnCli
|
|
63
|
+
checkResult "检查kn-cli"
|
|
64
|
+
|
|
65
|
+
# npm i kn-cli@1.0.2 -g
|
|
66
|
+
# checkResult "npm kn-cli"
|
|
67
|
+
|
|
68
|
+
kn-cli --build
|
|
69
|
+
checkResult "kn-cli --build"
|
|
70
|
+
|
|
71
|
+
mv public/dist release/
|
|
72
|
+
checkResult "打包结果同步至release"
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
checkNode
|
|
76
|
+
checkResult "检查node"
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
build
|
|
80
|
+
checkResult "build"
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
checkResult(){
|
|
2
|
+
ret=$?
|
|
3
|
+
if [ $ret != 0 ]
|
|
4
|
+
then
|
|
5
|
+
echo "[$1]执行失败"
|
|
6
|
+
exit 2
|
|
7
|
+
return 0
|
|
8
|
+
else
|
|
9
|
+
echo "[$1]执行成功"
|
|
10
|
+
return 0
|
|
11
|
+
fi
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
echo "安装git提交钩子脚本 cp prepare-commit-msg ./.git/hooks/prepare-commit-msg"
|
|
15
|
+
ls -A ./.git/
|
|
16
|
+
ret=$?
|
|
17
|
+
if [ $ret != 0 ]
|
|
18
|
+
then
|
|
19
|
+
echo "缺少.git文件夹"
|
|
20
|
+
exit 2
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
ls -A ./.git/hooks/
|
|
24
|
+
ret=$?
|
|
25
|
+
if [ $ret != 0 ]
|
|
26
|
+
then
|
|
27
|
+
mkdir ./.git/hooks
|
|
28
|
+
checkResult '创建hooks文件夹'
|
|
29
|
+
fi
|
|
30
|
+
cp ./init/prepare-commit-msg ./.git/hooks/prepare-commit-msg
|
|
31
|
+
checkResult '复制prepare-commit-msg'
|
|
32
|
+
chmod u+x ./.git/hooks/prepare-commit-msg
|
|
33
|
+
checkResult '权限变更prepare-commit-msg'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mobile-app",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "lib/index",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"clean": "rm -rf ./dist"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"antd": "~4.24.8",
|
|
11
|
+
"axios": "~1.1.3",
|
|
12
|
+
"moment": "~2.29.4",
|
|
13
|
+
"react": "~17.0.2",
|
|
14
|
+
"react-dom": "~17.0.2",
|
|
15
|
+
"react-router": "~6.3.0",
|
|
16
|
+
"react-router-dom": "~6.3.0",
|
|
17
|
+
"unstated-next": "~1.1.0",
|
|
18
|
+
"vconsole": "~3.9.5"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": "16.18.0"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
7
|
+
<title>404</title>
|
|
8
|
+
<style>
|
|
9
|
+
body{
|
|
10
|
+
background-color:#444;
|
|
11
|
+
font-size:14px;
|
|
12
|
+
}
|
|
13
|
+
h3{
|
|
14
|
+
font-size:60px;
|
|
15
|
+
color:#eee;
|
|
16
|
+
text-align:center;
|
|
17
|
+
padding-top:30px;
|
|
18
|
+
font-weight:normal;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
</head>
|
|
22
|
+
|
|
23
|
+
<body>
|
|
24
|
+
<h3>404,您请求的文件不存在!</h3>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport"
|
|
7
|
+
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no,viewport-fit=cover" />
|
|
8
|
+
<meta name="format-detection" content="telephone=no,email=no,adress=no">
|
|
9
|
+
<meta name="apple-touch-fullscreen" content="yes">
|
|
10
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
11
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
12
|
+
|
|
13
|
+
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
|
14
|
+
<link rel="icon" href="favicon.png" type="image/png">
|
|
15
|
+
<title></title>
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body>
|
|
19
|
+
<div id="main-view" />
|
|
20
|
+
<script>
|
|
21
|
+
var docEl = document.documentElement;
|
|
22
|
+
function setRemUnit(type) {
|
|
23
|
+
let w = Math.max(window.innerWidth, docEl.clientWidth, docEl.offsetWidth);
|
|
24
|
+
let defaultWidth = 375;//填入设计稿上的宽度
|
|
25
|
+
w = w > defaultWidth ? defaultWidth : w;
|
|
26
|
+
var rem = w / defaultWidth * 100;
|
|
27
|
+
docEl.style.fontSize = rem + 'px'
|
|
28
|
+
}
|
|
29
|
+
setRemUnit('init');
|
|
30
|
+
if (document.readyState === 'interactive') {
|
|
31
|
+
setRemUnit('init');
|
|
32
|
+
} else {
|
|
33
|
+
window.addEventListener('DOMContentLoaded', function () {
|
|
34
|
+
setRemUnit('init');
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
window.addEventListener("resize", function () {
|
|
38
|
+
setRemUnit('resize');
|
|
39
|
+
});
|
|
40
|
+
</script>
|
|
41
|
+
</body>
|
|
42
|
+
|
|
43
|
+
</html>
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
|
|
2
|
+
@import '~@/assets/iconfont/iconfont.less';
|
|
3
|
+
@import './_variable.less';
|
|
4
|
+
|
|
5
|
+
:global {
|
|
6
|
+
html{
|
|
7
|
+
// ios webview 进入后高度不正确的问题
|
|
8
|
+
background-color: white;
|
|
9
|
+
width:100vw;
|
|
10
|
+
height: 100%;
|
|
11
|
+
// height:100vh;
|
|
12
|
+
padding:var(--safeTop) var(--safeRight) var(--safeBottom) var(--safeLeft);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body,#main-view{
|
|
16
|
+
background-color: #f2f2f2;
|
|
17
|
+
width:100%;
|
|
18
|
+
height:100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body,html{
|
|
22
|
+
overflow:hidden;
|
|
23
|
+
}
|
|
24
|
+
#main-view {
|
|
25
|
+
overflow: auto;
|
|
26
|
+
overflow: scroll;
|
|
27
|
+
-webkit-overflow-scrolling: touch;
|
|
28
|
+
// font-size: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
u {
|
|
33
|
+
font-weight: inherit;
|
|
34
|
+
}
|
|
35
|
+
u,
|
|
36
|
+
b,
|
|
37
|
+
strong {
|
|
38
|
+
font-size: inherit;
|
|
39
|
+
color: inherit;
|
|
40
|
+
line-height: inherit;
|
|
41
|
+
letter-spacing: inherit;
|
|
42
|
+
}
|
|
43
|
+
*[data-inherit] {
|
|
44
|
+
font-weight: inherit;
|
|
45
|
+
font-size: inherit;
|
|
46
|
+
color: inherit;
|
|
47
|
+
line-height: inherit;
|
|
48
|
+
letter-spacing: inherit;
|
|
49
|
+
}
|
|
50
|
+
a{
|
|
51
|
+
color: var(--color-primary);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
a,div,p,span,section,hgroup{
|
|
56
|
+
// -webkit-touch-callout:none;
|
|
57
|
+
// -webkit-user-drag:none;
|
|
58
|
+
// -webkit-user-select:none;
|
|
59
|
+
// -moz-user-select:none;
|
|
60
|
+
// -ms-user-select:none;
|
|
61
|
+
// user-select:none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
* {
|
|
66
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
67
|
+
position: relative;
|
|
68
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
69
|
+
-webkit-text-size-adjust: none;
|
|
70
|
+
-webkit-box-sizing: border-box;
|
|
71
|
+
-moz-box-sizing: border-box;
|
|
72
|
+
-ms-box-sizing: border-box;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
border: 0;
|
|
78
|
+
border-spacing: 0;
|
|
79
|
+
outline: none;
|
|
80
|
+
-webkit-font-smoothing: antialiased;
|
|
81
|
+
-moz-osx-font-smoothing: grayscale;
|
|
82
|
+
-webkit-touch-callout: none;
|
|
83
|
+
// font-size:1px;
|
|
84
|
+
font-weight:var(--weight-Regular);
|
|
85
|
+
font-size:var(--font-Regular);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
html{
|
|
89
|
+
font-size: 100PX;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
*[data-weight-thin]{font-weight: var(--weight-Thin);}//极细体
|
|
93
|
+
*[data-weight-ultraLight]{font-weight: var(--weight-Ultralight);}//纤细体
|
|
94
|
+
*[data-weight-light]{font-weight: var(--weight-Light);}//细体
|
|
95
|
+
*[data-weight-regular]{font-weight: var(--weight-Regular);}//常规
|
|
96
|
+
*[data-weight-medium]{font-weight: var(--weight-Medium);}//中黑、中粗
|
|
97
|
+
*[data-weight-semibold]{font-weight: var(--weight-Semibold);}//中黑、中粗
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
#__vconsole *{
|
|
101
|
+
font-size:14PX;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
body[data-debug-layout]{
|
|
105
|
+
border:4px solid #d64f68;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
#main-view{
|
|
109
|
+
background-color: white;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
body[scroll]{
|
|
113
|
+
overflow:visible;
|
|
114
|
+
}
|
|
115
|
+
.touch-scroll {
|
|
116
|
+
overflow: scroll;
|
|
117
|
+
-webkit-overflow-scrolling: touch;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
p,div,section,hgroup
|
|
123
|
+
{
|
|
124
|
+
&[data-text-break]{
|
|
125
|
+
white-space: pre-wrap;
|
|
126
|
+
word-break:break-all;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
@pullLoadHeight:100;
|
|
3
|
+
|
|
4
|
+
:root{
|
|
5
|
+
--safeTop: constant(safe-area-inset-top);
|
|
6
|
+
--safeBottom: constant(safe-area-inset-bottom);
|
|
7
|
+
--safeLeft: constant(safe-area-inset-left);
|
|
8
|
+
--safeRight: constant(safe-area-inset-right);
|
|
9
|
+
|
|
10
|
+
--safeTop: env(safe-area-inset-top);
|
|
11
|
+
--safeBottom: env(safe-area-inset-bottom);
|
|
12
|
+
--safeLeft: env(safe-area-inset-left);
|
|
13
|
+
--safeRight: env(safe-area-inset-right);
|
|
14
|
+
|
|
15
|
+
--weight-Thin:100;
|
|
16
|
+
--weight-Ultralight:200;
|
|
17
|
+
--weight-Light:300;
|
|
18
|
+
--weight-Regular:400;
|
|
19
|
+
--weight-Medium:500;
|
|
20
|
+
--weight-Semibold:700;
|
|
21
|
+
|
|
22
|
+
--font-Regular:14px;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
--color-primary-dark:#001529;
|
|
26
|
+
--color-primary:#2F7CFF;
|
|
27
|
+
--color-primary-hover:#1565c0;
|
|
28
|
+
|
|
29
|
+
--color-font-bold:#141414;
|
|
30
|
+
--color-font-gray:#8C8C8C;
|
|
31
|
+
--color-underscore:#D9D9D9;
|
|
32
|
+
--color-error:#d32f2f;
|
|
33
|
+
|
|
34
|
+
--color-border-hover:rgba(0, 0, 0, 0.9);
|
|
35
|
+
--color-text:#262626;
|
|
36
|
+
--color-text-hover:rgba(0,0,0,.9);
|
|
37
|
+
--color-menu-text:rgba(0, 0, 0, 0.45);
|
|
38
|
+
--color-menu-text-active:white;
|
|
39
|
+
|
|
40
|
+
--color-dropmenu-hover:rgba(0, 0, 0, 0.04);
|
|
41
|
+
--color-dropmenu-text:rgba(0, 0, 0, 0.7);
|
|
42
|
+
--color-box-shadow:#dddddd;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
--color-body-background:#F0F2F3;
|
|
46
|
+
|
|
47
|
+
--radius-default: 8px;
|
|
48
|
+
--radius-small: 4px;
|
|
49
|
+
|
|
50
|
+
--margin-default:12px;
|
|
51
|
+
--margin-larger:24px;
|
|
52
|
+
--margin-small:8px;
|
|
53
|
+
|
|
54
|
+
--padding-default:26px;
|
|
55
|
+
--padding-larger:32px;
|
|
56
|
+
--padding-small:16px;
|
|
57
|
+
|
|
58
|
+
--padding-body:34px 24px;
|
|
59
|
+
|
|
60
|
+
--nav-width:240px;
|
|
61
|
+
--center-body-width:100%;
|
|
62
|
+
--body-width:640px;
|
|
63
|
+
|
|
64
|
+
--height-header:40px;
|
|
65
|
+
--topMenu-height:64px;
|
|
66
|
+
--height-input:50px;
|
|
67
|
+
--height-input-small:40px;
|
|
68
|
+
|
|
69
|
+
// 100以下为非弹出式的UI
|
|
70
|
+
--z-nav-pc:10;
|
|
71
|
+
--z-top-menu:10;
|
|
72
|
+
--z-nav-mobile:50;
|
|
73
|
+
|
|
74
|
+
// 100以上为弹出式的UI
|
|
75
|
+
--z-dropMenu:100;
|
|
76
|
+
--z-dialog:1040;
|
|
77
|
+
--z-toast:1045;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
:global{
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "iconfont";
|
|
4
|
+
src: url('~@/assets/iconfont/iconfont.eot');
|
|
5
|
+
src: url('~@/assets/iconfont/iconfont.eot?#iefix') format('eot'),
|
|
6
|
+
url('~@/assets/iconfont/iconfont.woff') format('woff'),
|
|
7
|
+
url('~@/assets/iconfont/iconfont.ttf') format('truetype'),
|
|
8
|
+
url('~@/assets/iconfont/iconfont.svg#iconfont') format('svg');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.iconfont:before {
|
|
12
|
+
font-family: "iconfont";
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-variant: normal;
|
|
17
|
+
font-weight: normal;
|
|
18
|
+
/* speak: none; only necessary if not using the private unicode range (firstGlyph option) */
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
text-transform: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
.icon-arrowBack:before {
|
|
25
|
+
content: "\E001";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon-check:before {
|
|
29
|
+
content: "\E002";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.icon-close:before {
|
|
33
|
+
content: "\E003";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.icon-down:before {
|
|
37
|
+
content: "\E004";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icon-image:before {
|
|
41
|
+
content: "\E005";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.icon-play:before {
|
|
45
|
+
content: "\E006";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-refresh:before {
|
|
49
|
+
content: "\E007";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.icon-warn:before {
|
|
53
|
+
content: "\E008";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
}
|