newsee-cli 1.0.3 → 1.0.4
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/README.en.md +36 -36
- package/README.md +36 -36
- package/bin/init.js +1 -1
- package/micro_11111/.editorconfig +10 -0
- package/micro_11111/.eslintignore +9 -0
- package/micro_11111/.eslintrc.js +33 -0
- package/micro_11111/.postcssrc.js +21 -0
- package/micro_11111/.prettierignore +10 -0
- package/micro_11111/.prettierrc +12 -0
- package/micro_11111/.stylelintignore +8 -0
- package/micro_11111/.stylelintrc.json +303 -0
- package/micro_11111/README.md +3 -0
- package/micro_11111/babel.config.js +34 -0
- package/micro_11111/env.config.js +62 -0
- package/micro_11111/env.param.config.js +112 -0
- package/micro_11111/favicon.ico +0 -0
- package/micro_11111/index.html +28 -0
- package/micro_11111/jsconfig.json +25 -0
- package/micro_11111/package.json +60 -0
- package/micro_11111/src/App.vue +32 -0
- package/micro_11111/src/Layout/Layout.vue +28 -0
- package/micro_11111/src/UI/index.js +1 -0
- package/micro_11111/src/assets/iconfont/DIN.Alternate.Bold.ttf +0 -0
- package/micro_11111/src/assets/layout/empty.png +0 -0
- package/micro_11111/src/assets/layout/prelogin-header.png +0 -0
- package/micro_11111/src/assets/trigger/close.png +0 -0
- package/micro_11111/src/assets/trigger/company.png +0 -0
- package/micro_11111/src/assets/trigger/department.png +0 -0
- package/micro_11111/src/assets/trigger/left-arrow.png +0 -0
- package/micro_11111/src/assets/trigger/pwd.png +0 -0
- package/micro_11111/src/assets/trigger/right-arrow-gray.png +0 -0
- package/micro_11111/src/assets/trigger/search-gray.png +0 -0
- package/micro_11111/src/assets/trigger/user.png +0 -0
- package/micro_11111/src/assets/trigger/weixin-work.png +0 -0
- package/micro_11111/src/components/Selector/Selector.vue +254 -0
- package/micro_11111/src/components/Selector/components/abyss.vue +308 -0
- package/micro_11111/src/components/Selector/components/search.vue +307 -0
- package/micro_11111/src/config.js +20 -0
- package/micro_11111/src/main.js +14 -0
- package/micro_11111/src/mixins/base.js +57 -0
- package/micro_11111/src/mixins/extension/app.js +80 -0
- package/micro_11111/src/mixins/extension/cryptoPassWord.js +15 -0
- package/micro_11111/src/mixins/extension/wx-relative.js +42 -0
- package/micro_11111/src/mixins/index.js +5 -0
- package/micro_11111/src/router/index.js +12 -0
- package/micro_11111/src/router/routes.js +55 -0
- package/micro_11111/src/service/common.js +72 -0
- package/micro_11111/src/service/preload.js +19 -0
- package/micro_11111/src/service/selector.js +114 -0
- package/micro_11111/src/store/getters.js +10 -0
- package/micro_11111/src/store/index.js +18 -0
- package/micro_11111/src/store/modules/Account.js +27 -0
- package/micro_11111/src/store/modules/Base.js +38 -0
- package/micro_11111/src/style/index.scss +3 -0
- package/micro_11111/src/style/mixins/mixins.scss +11 -0
- package/micro_11111/src/style/public.scss +32 -0
- package/micro_11111/src/style/reset.scss +814 -0
- package/micro_11111/src/utils/core/create-basic.js +16 -0
- package/micro_11111/src/utils/core/create.js +13 -0
- package/micro_11111/src/utils/core/reprefix.js +8 -0
- package/micro_11111/src/utils/fetch/fetch.js +66 -0
- package/micro_11111/src/utils/fetch/fetchDataType.js +53 -0
- package/micro_11111/src/utils/index.js +0 -0
- package/micro_11111/src/utils/library/aes.js +834 -0
- package/micro_11111/src/utils/library/crypto.js +130 -0
- package/micro_11111/src/utils/library/date.js +62 -0
- package/micro_11111/src/utils/library/debounce.js +34 -0
- package/micro_11111/src/utils/library/event.js +45 -0
- package/micro_11111/src/utils/library/image.js +14 -0
- package/micro_11111/src/utils/library/stringcover.js +9 -0
- package/micro_11111/src/utils/library/urlhandle.js +14 -0
- package/micro_11111/src/utils/library/video.js +156 -0
- package/micro_11111/src/views/Home/Home.vue +23 -0
- package/micro_11111/src/views/Login/Login.vue +65 -0
- package/micro_11111/src/views/Login/LoginApp.vue +72 -0
- package/micro_11111/src/views/Login/LoginThirdApp.vue +77 -0
- package/micro_11111/src/views/Login/LoginThirdParty.vue +59 -0
- package/micro_11111/src/views/Prelogin/index.vue +199 -0
- package/micro_11111/static/loadBuffer/loadBuffer.js +19 -0
- package/micro_11111/static/loadBuffer/loading.gif +0 -0
- package/micro_11111/tag.js +19 -0
- package/package.json +46 -46
package/README.en.md
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
# newsee-cli
|
|
2
|
-
|
|
3
|
-
#### Description
|
|
4
|
-
项目初始化
|
|
5
|
-
|
|
6
|
-
#### Software Architecture
|
|
7
|
-
Software architecture description
|
|
8
|
-
|
|
9
|
-
#### Installation
|
|
10
|
-
|
|
11
|
-
1. xxxx
|
|
12
|
-
2. xxxx
|
|
13
|
-
3. xxxx
|
|
14
|
-
|
|
15
|
-
#### Instructions
|
|
16
|
-
|
|
17
|
-
1. xxxx
|
|
18
|
-
2. xxxx
|
|
19
|
-
3. xxxx
|
|
20
|
-
|
|
21
|
-
#### Contribution
|
|
22
|
-
|
|
23
|
-
1. Fork the repository
|
|
24
|
-
2. Create Feat_xxx branch
|
|
25
|
-
3. Commit your code
|
|
26
|
-
4. Create Pull Request
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
#### Gitee Feature
|
|
30
|
-
|
|
31
|
-
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
-
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
-
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
-
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
-
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
-
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
1
|
+
# newsee-cli
|
|
2
|
+
|
|
3
|
+
#### Description
|
|
4
|
+
项目初始化
|
|
5
|
+
|
|
6
|
+
#### Software Architecture
|
|
7
|
+
Software architecture description
|
|
8
|
+
|
|
9
|
+
#### Installation
|
|
10
|
+
|
|
11
|
+
1. xxxx
|
|
12
|
+
2. xxxx
|
|
13
|
+
3. xxxx
|
|
14
|
+
|
|
15
|
+
#### Instructions
|
|
16
|
+
|
|
17
|
+
1. xxxx
|
|
18
|
+
2. xxxx
|
|
19
|
+
3. xxxx
|
|
20
|
+
|
|
21
|
+
#### Contribution
|
|
22
|
+
|
|
23
|
+
1. Fork the repository
|
|
24
|
+
2. Create Feat_xxx branch
|
|
25
|
+
3. Commit your code
|
|
26
|
+
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/README.md
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
# zx-cli
|
|
2
|
-
|
|
3
|
-
#### Description
|
|
4
|
-
项目初始化
|
|
5
|
-
|
|
6
|
-
#### Software Architecture
|
|
7
|
-
Software architecture description
|
|
8
|
-
|
|
9
|
-
#### Installation
|
|
10
|
-
|
|
11
|
-
1. xxxx
|
|
12
|
-
2. xxxx
|
|
13
|
-
3. xxxx
|
|
14
|
-
|
|
15
|
-
#### Instructions
|
|
16
|
-
|
|
17
|
-
1. xxxx
|
|
18
|
-
2. xxxx
|
|
19
|
-
3. xxxx
|
|
20
|
-
|
|
21
|
-
#### Contribution
|
|
22
|
-
|
|
23
|
-
1. Fork the repository
|
|
24
|
-
2. Create Feat_xxx branch
|
|
25
|
-
3. Commit your code
|
|
26
|
-
4. Create Pull Request
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
#### Gitee Feature
|
|
30
|
-
|
|
31
|
-
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
-
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
-
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
-
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
-
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
-
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
1
|
+
# zx-cli
|
|
2
|
+
|
|
3
|
+
#### Description
|
|
4
|
+
项目初始化
|
|
5
|
+
|
|
6
|
+
#### Software Architecture
|
|
7
|
+
Software architecture description
|
|
8
|
+
|
|
9
|
+
#### Installation
|
|
10
|
+
|
|
11
|
+
1. xxxx
|
|
12
|
+
2. xxxx
|
|
13
|
+
3. xxxx
|
|
14
|
+
|
|
15
|
+
#### Instructions
|
|
16
|
+
|
|
17
|
+
1. xxxx
|
|
18
|
+
2. xxxx
|
|
19
|
+
3. xxxx
|
|
20
|
+
|
|
21
|
+
#### Contribution
|
|
22
|
+
|
|
23
|
+
1. Fork the repository
|
|
24
|
+
2. Create Feat_xxx branch
|
|
25
|
+
3. Commit your code
|
|
26
|
+
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/bin/init.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(()=>{var e={843:e=>{e.exports={simulateProgressBar:function(e){let t,r=0,o=10;const s=()=>{r<100&&(r+=o,console.log(`Progress: ${r}%`),r>=70&&(o=15),r>=90&&(o=20),t=setTimeout(s,100*o)),e(r)};return t=setTimeout(s,100),()=>{clearTimeout(t),r=100,console.log(`Progress: ${r}%`),e(100)}}}},22:e=>{"use strict";e.exports=require("chalk")},303:e=>{"use strict";e.exports=require("child_process")},295:e=>{"use strict";e.exports=require("cli-progress")},974:e=>{"use strict";e.exports=require("debug")},545:e=>{"use strict";e.exports=require("download-git-repo")},632:e=>{"use strict";e.exports=require("ejs")},116:e=>{"use strict";e.exports=require("figlet")},470:e=>{"use strict";e.exports=require("fs-extra")},290:e=>{"use strict";e.exports=require("inquirer")},591:e=>{"use strict";e.exports=require("ora")},423:e=>{"use strict";e.exports=require("path")},369:e=>{"use strict";e.exports=require("process")}},t={};function r(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}(()=>{const e=r(591),t=(r(295),r(369)),o=r(116),s=r(290),i=r(545),c=r(632),a=r(470),{exec:n,execSync:
|
|
2
|
+
(()=>{var e={843:e=>{e.exports={simulateProgressBar:function(e){let t,r=0,o=10;const s=()=>{r<100&&(r+=o,console.log(`Progress: ${r}%`),r>=70&&(o=15),r>=90&&(o=20),t=setTimeout(s,100*o)),e(r)};return t=setTimeout(s,100),()=>{clearTimeout(t),r=100,console.log(`Progress: ${r}%`),e(100)}}}},22:e=>{"use strict";e.exports=require("chalk")},303:e=>{"use strict";e.exports=require("child_process")},295:e=>{"use strict";e.exports=require("cli-progress")},974:e=>{"use strict";e.exports=require("debug")},545:e=>{"use strict";e.exports=require("download-git-repo")},632:e=>{"use strict";e.exports=require("ejs")},116:e=>{"use strict";e.exports=require("figlet")},470:e=>{"use strict";e.exports=require("fs-extra")},290:e=>{"use strict";e.exports=require("inquirer")},591:e=>{"use strict";e.exports=require("ora")},423:e=>{"use strict";e.exports=require("path")},369:e=>{"use strict";e.exports=require("process")}},t={};function r(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}(()=>{const e=r(591),t=(r(295),r(369)),o=r(116),s=r(290),i=r(545),c=r(632),a=r(470),{exec:n,execSync:p}=r(303),m=r(22);r(423);t.env.DEBUG="download-git-repo";const u=r(974)("download-git-repo");u.enabled=!0;const{simulateProgressBar:l}=r(843);console.log(o.textSync("newsee cli by nodejs",{font:"Doom",horizontalLayout:"default",verticalLayout:"default"}));const d=e("远端调用模板中-copy...");d.color="yellow";const x=[{name:"pc-template(pc 模板)",value:"http://47.96.187.51:3001/zhouxia/micro-pc-template.git"},{name:"wireless-template(h5 模板)",value:"http://47.96.187.51:3001/zhouxia/micro-wireless-template.git"},{name:"mp-template(小程序 模版)",value:"http://47.96.187.51:3001/zhouxia/micro-mp-template.git"}];(async function(){const e=await s.prompt([{type:"input",name:"projectName",message:"请输入项目名称(示例: micro-arm, 输入arm):"},{type:"input",name:"decs",message:"请输入项目描述(示例: 微前端 - 应收中台):"},{type:"list",name:"isAdd",message:"是否创建新的根目录:",choices:[{value:!0},{value:!1}]},{type:"list",name:"template",message:"请选择模板:",choices:x}]),{projectName:r,decs:o,template:n,isAdd:p}=e,l=".temp/micro_"+r;d.start();try{await function(e,t){return new Promise(((r,o)=>{i("direct:"+e,t,{auth:"bab304614ce90ca324d0236579439f71d88416b0",clone:!0,debug:u},(e=>{e?o(e):r()}))}))}(n,l),await async function(e,t,r,o){const s={projectName:e,decs:t},i=["package.json","README.md","config/injection/index.js"];for(const e of i)if(a.existsSync(`${r}/${e}.ejs`)){let t=await c.renderFile(`${r}/${e}.ejs`,s);await a.writeFile(`${r}/${e}`,t),await a.rm(`${r}/${e}.ejs`)}const n=`${r}/config/injection/version/micro_\${projectName}_0.0.1.js`,p=`${r}/config/injection/version/micro_${e}_0.0.1.js`;a.existsSync(n)&&await a.rename(n,p),o?(a.existsSync(`micro_${e}`)&&await a.remove(`micro_${e}`),await a.mkdir(`micro_${e}`),await a.copy(r,`micro_${e}`)):await a.copy(r,"./")}(r,o,l,p),await a.remove(".temp"),d.succeed("done"),console.log(m.green("模板创建成功")),t.exit(1)}catch(e){await a.remove(".temp"),console.log(m.red("操作失败:",e)),t.exit(1)}})().catch((e=>{console.error(m.red("程序错误:",e)),d.fail("请检查环境"),a.remove(".temp")}))})()})();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// https://eslint.org/docs/user-guide/configuring
|
|
2
|
+
module.exports = {
|
|
3
|
+
root: true,
|
|
4
|
+
parserOptions: {
|
|
5
|
+
parser: 'babel-eslint',
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
env: {
|
|
9
|
+
browser: true,
|
|
10
|
+
node: true,
|
|
11
|
+
es6: true,
|
|
12
|
+
},
|
|
13
|
+
extends: [
|
|
14
|
+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
|
15
|
+
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
|
16
|
+
'plugin:vue/essential',
|
|
17
|
+
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
|
18
|
+
'standard'
|
|
19
|
+
],
|
|
20
|
+
// required to lint *.vue files
|
|
21
|
+
plugins: [
|
|
22
|
+
'vue',
|
|
23
|
+
// new webpack.optimize.CommonsChunkPlugin('common.js'),
|
|
24
|
+
|
|
25
|
+
],
|
|
26
|
+
// add your custom rules here
|
|
27
|
+
rules: {
|
|
28
|
+
// allow async-await
|
|
29
|
+
'generator-star-spacing': 'off',
|
|
30
|
+
// allow debugger during development
|
|
31
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// https://github.com/michael-ciniawsky/postcss-load-config
|
|
2
|
+
const prodConfig = require('./env.param.config').prod;
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
const plugins = {
|
|
6
|
+
"postcss-import": {},
|
|
7
|
+
"postcss-url": {},
|
|
8
|
+
// to edit target browsers: use "browserslist" field in package.json
|
|
9
|
+
"autoprefixer": {},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
if (prodConfig.usepxtorem) {
|
|
13
|
+
plugins['postcss-pxtorem'] = {
|
|
14
|
+
rootValue: 16,
|
|
15
|
+
propList: ['*']
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module.exports = {
|
|
20
|
+
'plugins': plugins
|
|
21
|
+
};
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"stylelint-config-standard",
|
|
4
|
+
"stylelint-config-prettier"
|
|
5
|
+
],
|
|
6
|
+
"plugins": [
|
|
7
|
+
"stylelint-order"
|
|
8
|
+
],
|
|
9
|
+
"rules": {
|
|
10
|
+
"order/order": [
|
|
11
|
+
"declarations",
|
|
12
|
+
"custom-properties",
|
|
13
|
+
"dollar-variables",
|
|
14
|
+
"rules",
|
|
15
|
+
"at-rules"
|
|
16
|
+
],
|
|
17
|
+
"order/properties-order": [
|
|
18
|
+
"position",
|
|
19
|
+
"z-index",
|
|
20
|
+
"top",
|
|
21
|
+
"bottom",
|
|
22
|
+
"left",
|
|
23
|
+
"right",
|
|
24
|
+
"float",
|
|
25
|
+
"clear",
|
|
26
|
+
"columns",
|
|
27
|
+
"columns-width",
|
|
28
|
+
"columns-count",
|
|
29
|
+
"column-rule",
|
|
30
|
+
"column-rule-width",
|
|
31
|
+
"column-rule-style",
|
|
32
|
+
"column-rule-color",
|
|
33
|
+
"column-fill",
|
|
34
|
+
"column-span",
|
|
35
|
+
"column-gap",
|
|
36
|
+
"display",
|
|
37
|
+
"grid",
|
|
38
|
+
"grid-template-rows",
|
|
39
|
+
"grid-template-columns",
|
|
40
|
+
"grid-template-areas",
|
|
41
|
+
"grid-auto-rows",
|
|
42
|
+
"grid-auto-columns",
|
|
43
|
+
"grid-auto-flow",
|
|
44
|
+
"grid-column-gap",
|
|
45
|
+
"grid-row-gap",
|
|
46
|
+
"grid-template",
|
|
47
|
+
"grid-template-rows",
|
|
48
|
+
"grid-template-columns",
|
|
49
|
+
"grid-template-areas",
|
|
50
|
+
"grid-gap",
|
|
51
|
+
"grid-row-gap",
|
|
52
|
+
"grid-column-gap",
|
|
53
|
+
"grid-area",
|
|
54
|
+
"grid-row-start",
|
|
55
|
+
"grid-row-end",
|
|
56
|
+
"grid-column-start",
|
|
57
|
+
"grid-column-end",
|
|
58
|
+
"grid-column",
|
|
59
|
+
"grid-column-start",
|
|
60
|
+
"grid-column-end",
|
|
61
|
+
"grid-row",
|
|
62
|
+
"grid-row-start",
|
|
63
|
+
"grid-row-end",
|
|
64
|
+
"flex",
|
|
65
|
+
"flex-grow",
|
|
66
|
+
"flex-shrink",
|
|
67
|
+
"flex-basis",
|
|
68
|
+
"flex-flow",
|
|
69
|
+
"flex-direction",
|
|
70
|
+
"flex-wrap",
|
|
71
|
+
"justify-content",
|
|
72
|
+
"align-content",
|
|
73
|
+
"align-items",
|
|
74
|
+
"align-self",
|
|
75
|
+
"order",
|
|
76
|
+
"table-layout",
|
|
77
|
+
"empty-cells",
|
|
78
|
+
"caption-side",
|
|
79
|
+
"border-collapse",
|
|
80
|
+
"border-spacing",
|
|
81
|
+
"list-style",
|
|
82
|
+
"list-style-type",
|
|
83
|
+
"list-style-position",
|
|
84
|
+
"list-style-image",
|
|
85
|
+
"ruby-align",
|
|
86
|
+
"ruby-merge",
|
|
87
|
+
"ruby-position",
|
|
88
|
+
"box-sizing",
|
|
89
|
+
"width",
|
|
90
|
+
"min-width",
|
|
91
|
+
"max-width",
|
|
92
|
+
"height",
|
|
93
|
+
"min-height",
|
|
94
|
+
"max-height",
|
|
95
|
+
"padding",
|
|
96
|
+
"padding-top",
|
|
97
|
+
"padding-right",
|
|
98
|
+
"padding-bottom",
|
|
99
|
+
"padding-left",
|
|
100
|
+
"margin",
|
|
101
|
+
"margin-top",
|
|
102
|
+
"margin-right",
|
|
103
|
+
"margin-bottom",
|
|
104
|
+
"margin-left",
|
|
105
|
+
"border",
|
|
106
|
+
"border-width",
|
|
107
|
+
"border-top-width",
|
|
108
|
+
"border-right-width",
|
|
109
|
+
"border-bottom-width",
|
|
110
|
+
"border-left-width",
|
|
111
|
+
"border-style",
|
|
112
|
+
"border-top-style",
|
|
113
|
+
"border-right-style",
|
|
114
|
+
"border-bottom-style",
|
|
115
|
+
"border-left-style",
|
|
116
|
+
"border-color",
|
|
117
|
+
"border-top-color",
|
|
118
|
+
"border-right-color",
|
|
119
|
+
"border-bottom-color",
|
|
120
|
+
"border-left-color",
|
|
121
|
+
"border-image",
|
|
122
|
+
"border-image-source",
|
|
123
|
+
"border-image-slice",
|
|
124
|
+
"border-image-width",
|
|
125
|
+
"border-image-outset",
|
|
126
|
+
"border-image-repeat",
|
|
127
|
+
"border-top",
|
|
128
|
+
"border-top-width",
|
|
129
|
+
"border-top-style",
|
|
130
|
+
"border-top-color",
|
|
131
|
+
"border-top",
|
|
132
|
+
"border-right-width",
|
|
133
|
+
"border-right-style",
|
|
134
|
+
"border-right-color",
|
|
135
|
+
"border-bottom",
|
|
136
|
+
"border-bottom-width",
|
|
137
|
+
"border-bottom-style",
|
|
138
|
+
"border-bottom-color",
|
|
139
|
+
"border-left",
|
|
140
|
+
"border-left-width",
|
|
141
|
+
"border-left-style",
|
|
142
|
+
"border-left-color",
|
|
143
|
+
"border-radius",
|
|
144
|
+
"border-top-right-radius",
|
|
145
|
+
"border-bottom-right-radius",
|
|
146
|
+
"border-bottom-left-radius",
|
|
147
|
+
"border-top-left-radius",
|
|
148
|
+
"outline",
|
|
149
|
+
"outline-width",
|
|
150
|
+
"outline-color",
|
|
151
|
+
"outline-style",
|
|
152
|
+
"outline-offset",
|
|
153
|
+
"overflow",
|
|
154
|
+
"overflow-x",
|
|
155
|
+
"overflow-y",
|
|
156
|
+
"resize",
|
|
157
|
+
"visibility",
|
|
158
|
+
"font",
|
|
159
|
+
"font-style",
|
|
160
|
+
"font-variant",
|
|
161
|
+
"font-weight",
|
|
162
|
+
"font-stretch",
|
|
163
|
+
"font-size",
|
|
164
|
+
"font-family",
|
|
165
|
+
"font-synthesis",
|
|
166
|
+
"font-size-adjust",
|
|
167
|
+
"font-kerning",
|
|
168
|
+
"line-height",
|
|
169
|
+
"text-align",
|
|
170
|
+
"text-align-last",
|
|
171
|
+
"vertical-align",
|
|
172
|
+
"text-overflow",
|
|
173
|
+
"text-justify",
|
|
174
|
+
"text-transform",
|
|
175
|
+
"text-indent",
|
|
176
|
+
"text-emphasis",
|
|
177
|
+
"text-emphasis-style",
|
|
178
|
+
"text-emphasis-color",
|
|
179
|
+
"text-emphasis-position",
|
|
180
|
+
"text-decoration",
|
|
181
|
+
"text-decoration-color",
|
|
182
|
+
"text-decoration-style",
|
|
183
|
+
"text-decoration-line",
|
|
184
|
+
"text-underline-position",
|
|
185
|
+
"text-shadow",
|
|
186
|
+
"white-space",
|
|
187
|
+
"overflow-wrap",
|
|
188
|
+
"word-wrap",
|
|
189
|
+
"word-break",
|
|
190
|
+
"line-break",
|
|
191
|
+
"hyphens",
|
|
192
|
+
"letter-spacing",
|
|
193
|
+
"word-spacing",
|
|
194
|
+
"quotes",
|
|
195
|
+
"tab-size",
|
|
196
|
+
"orphans",
|
|
197
|
+
"writing-mode",
|
|
198
|
+
"text-combine-upright",
|
|
199
|
+
"unicode-bidi",
|
|
200
|
+
"text-orientation",
|
|
201
|
+
"direction",
|
|
202
|
+
"text-rendering",
|
|
203
|
+
"font-feature-settings",
|
|
204
|
+
"font-language-override",
|
|
205
|
+
"image-rendering",
|
|
206
|
+
"image-orientation",
|
|
207
|
+
"image-resolution",
|
|
208
|
+
"shape-image-threshold",
|
|
209
|
+
"shape-outside",
|
|
210
|
+
"shape-margin",
|
|
211
|
+
"color",
|
|
212
|
+
"background",
|
|
213
|
+
"background-image",
|
|
214
|
+
"background-position",
|
|
215
|
+
"background-size",
|
|
216
|
+
"background-repeat",
|
|
217
|
+
"background-origin",
|
|
218
|
+
"background-clip",
|
|
219
|
+
"background-attachment",
|
|
220
|
+
"background-color",
|
|
221
|
+
"background-blend-mode",
|
|
222
|
+
"isolation",
|
|
223
|
+
"clip-path",
|
|
224
|
+
"mask",
|
|
225
|
+
"mask-image",
|
|
226
|
+
"mask-mode",
|
|
227
|
+
"mask-position",
|
|
228
|
+
"mask-size",
|
|
229
|
+
"mask-repeat",
|
|
230
|
+
"mask-origin",
|
|
231
|
+
"mask-clip",
|
|
232
|
+
"mask-composite",
|
|
233
|
+
"mask-type",
|
|
234
|
+
"filter",
|
|
235
|
+
"box-shadow",
|
|
236
|
+
"opacity",
|
|
237
|
+
"transform-style",
|
|
238
|
+
"transform",
|
|
239
|
+
"transform-box",
|
|
240
|
+
"transform-origin",
|
|
241
|
+
"perspective",
|
|
242
|
+
"perspective-origin",
|
|
243
|
+
"backface-visibility",
|
|
244
|
+
"transition",
|
|
245
|
+
"transition-property",
|
|
246
|
+
"transition-duration",
|
|
247
|
+
"transition-timing-function",
|
|
248
|
+
"transition-delay",
|
|
249
|
+
"animation",
|
|
250
|
+
"animation-name",
|
|
251
|
+
"animation-duration",
|
|
252
|
+
"animation-timing-function",
|
|
253
|
+
"animation-delay",
|
|
254
|
+
"animation-iteration-count",
|
|
255
|
+
"animation-direction",
|
|
256
|
+
"animation-fill-mode",
|
|
257
|
+
"animation-play-state",
|
|
258
|
+
"scroll-behavior",
|
|
259
|
+
"scroll-snap-type",
|
|
260
|
+
"scroll-snap-destination",
|
|
261
|
+
"scroll-snap-coordinate",
|
|
262
|
+
"cursor",
|
|
263
|
+
"touch-action",
|
|
264
|
+
"caret-color",
|
|
265
|
+
"ime-mode",
|
|
266
|
+
"object-fit",
|
|
267
|
+
"object-position",
|
|
268
|
+
"content",
|
|
269
|
+
"counter-reset",
|
|
270
|
+
"counter-increment",
|
|
271
|
+
"will-change",
|
|
272
|
+
"pointer-events",
|
|
273
|
+
"all",
|
|
274
|
+
"page-break-before",
|
|
275
|
+
"page-break-after",
|
|
276
|
+
"page-break-inside",
|
|
277
|
+
"widows"
|
|
278
|
+
],
|
|
279
|
+
"selector-pseudo-class-no-unknown": null,
|
|
280
|
+
"shorthand-property-no-redundant-values": null,
|
|
281
|
+
"at-rule-no-unknown": null,
|
|
282
|
+
"at-rule-empty-line-before": null,
|
|
283
|
+
"at-rule-name-space-after": null,
|
|
284
|
+
"comment-empty-line-before": null,
|
|
285
|
+
"declaration-bang-space-before": null,
|
|
286
|
+
"declaration-empty-line-before": null,
|
|
287
|
+
"function-comma-newline-after": null,
|
|
288
|
+
"function-name-case": null,
|
|
289
|
+
"function-parentheses-newline-inside": null,
|
|
290
|
+
"function-max-empty-lines": null,
|
|
291
|
+
"function-whitespace-after": null,
|
|
292
|
+
"number-leading-zero": null,
|
|
293
|
+
"number-no-trailing-zeros": null,
|
|
294
|
+
"rule-empty-line-before": null,
|
|
295
|
+
"selector-combinator-space-after": null,
|
|
296
|
+
"selector-descendant-combinator-no-non-space": null,
|
|
297
|
+
"selector-list-comma-newline-after": null,
|
|
298
|
+
"selector-pseudo-element-colon-notation": null,
|
|
299
|
+
"unit-no-unknown": null,
|
|
300
|
+
"no-descending-specificity": null,
|
|
301
|
+
"value-list-max-empty-lines": null
|
|
302
|
+
}
|
|
303
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: [
|
|
3
|
+
[
|
|
4
|
+
'@babel/preset-env',
|
|
5
|
+
{
|
|
6
|
+
modules: false,
|
|
7
|
+
targets: {
|
|
8
|
+
browsers: ['> 1%', 'last 2 versions', 'not ie <= 8'],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
],
|
|
13
|
+
plugins: [
|
|
14
|
+
[
|
|
15
|
+
'import',
|
|
16
|
+
{
|
|
17
|
+
libraryName: 'vant',
|
|
18
|
+
libraryDirectory: 'es',
|
|
19
|
+
style: true,
|
|
20
|
+
},
|
|
21
|
+
'vant',
|
|
22
|
+
],
|
|
23
|
+
|
|
24
|
+
['@babel/plugin-transform-runtime', { corejs: 3 }],
|
|
25
|
+
'@babel/plugin-syntax-dynamic-import',
|
|
26
|
+
'@babel/plugin-transform-object-assign',
|
|
27
|
+
'@babel/plugin-transform-modules-commonjs',
|
|
28
|
+
['@babel/plugin-proposal-decorators', { legacy: true }],
|
|
29
|
+
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
30
|
+
'@babel/plugin-syntax-jsx',
|
|
31
|
+
'@vue/babel-plugin-transform-vue-jsx',
|
|
32
|
+
'jsx-v-model',
|
|
33
|
+
],
|
|
34
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const merge = require('webpack-merge');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* development env config
|
|
6
|
+
* @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
|
|
7
|
+
*/
|
|
8
|
+
const dev_env = {
|
|
9
|
+
NODE_ENV: '"development"',
|
|
10
|
+
ENV_CONFIG: '"dev"',
|
|
11
|
+
BASE_API: '""',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* mock data in cloud
|
|
16
|
+
* @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
|
|
17
|
+
*/
|
|
18
|
+
const mock_cloud_env = {
|
|
19
|
+
NODE_ENV: '"development"',
|
|
20
|
+
ENV_CONFIG: '"mock"',
|
|
21
|
+
BASE_API: '"https://www.easy-mock.com/mock/5d240fe12102c0666393d2b7/gaocangxiong/"', //mock
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* mock data in local
|
|
26
|
+
* @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
|
|
27
|
+
*/
|
|
28
|
+
const mock_local_env = {
|
|
29
|
+
NODE_ENV: '"development"',
|
|
30
|
+
ENV_CONFIG: '"mock"',
|
|
31
|
+
BASE_API: '""',
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* production env config
|
|
35
|
+
* @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
|
|
36
|
+
*/
|
|
37
|
+
const prod_env = {
|
|
38
|
+
NODE_ENV: '"production"',
|
|
39
|
+
ENV_CONFIG: '"prod"',
|
|
40
|
+
BASE_API: '""',
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* test env config
|
|
44
|
+
* @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
|
|
45
|
+
*/
|
|
46
|
+
const test_env = {
|
|
47
|
+
NODE_ENV: '"testing"',
|
|
48
|
+
ENV_CONFIG: '"test"',
|
|
49
|
+
BASE_API: '"http://192.168.1.210/api"',
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* push module
|
|
54
|
+
* @type {{dev_env: *, mock_env: *, prod_env: {NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}, test_env: *}}
|
|
55
|
+
*/
|
|
56
|
+
module.exports = {
|
|
57
|
+
dev_env: merge(prod_env, dev_env),
|
|
58
|
+
mock_local_env: merge(prod_env, mock_local_env),
|
|
59
|
+
mock_cloud_env: merge(prod_env, mock_cloud_env),
|
|
60
|
+
prod_env: prod_env,
|
|
61
|
+
test_env: merge(dev_env, test_env),
|
|
62
|
+
};
|