system-clients 3.0.46 → 3.0.47-fanxian

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.
Files changed (100) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.eslintrc.js +16 -16
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/README.md +36 -36
  6. package/SystemClient.iml +11 -11
  7. package/build/css-loaders.js +34 -34
  8. package/build/dev-client.js +8 -8
  9. package/build/example-server.js +80 -80
  10. package/build/release.sh +28 -28
  11. package/build/utils.js +71 -71
  12. package/build/webpack.base.conf.js +75 -75
  13. package/build/webpack.dev.conf.js +31 -31
  14. package/build/webpack.example.conf.js +49 -49
  15. package/build/webpack.prod.conf.js +60 -60
  16. package/build/webpack.test.conf.js +31 -31
  17. package/build.gradle +6 -6
  18. package/config/dev.env.js +6 -6
  19. package/config/index.js +38 -38
  20. package/config/prod.env.js +3 -3
  21. package/config/test.env.js +6 -6
  22. package/doc/Login.md +7 -7
  23. package/examples/ReadCard/App.vue +23 -23
  24. package/examples/ReadCard/index.html +11 -11
  25. package/examples/ReadCard/main.js +12 -12
  26. package/index.html +21 -21
  27. package/package.json +1 -1
  28. package/release.bat +5 -5
  29. package/src/App.vue +24 -24
  30. package/src/LodopFuncs.js +123 -123
  31. package/src/assets/binding.svg +1 -1
  32. package/src/assets/unbind.svg +1 -1
  33. package/src/assets//345/205/254/345/221/212.svg +1 -1
  34. package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
  35. package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
  36. package/src/components/List.vue +51 -51
  37. package/src/components/Main.vue +632 -533
  38. package/src/components/Table.js +74 -74
  39. package/src/components/Util.js +343 -343
  40. package/src/components/equipment/EquipmentManage.vue +65 -65
  41. package/src/components/equipment/PcAdd.vue +105 -105
  42. package/src/components/equipment/PcList.vue +119 -119
  43. package/src/components/equipment/PcManage.vue +60 -60
  44. package/src/components/equipment/PhoneAdd.vue +94 -94
  45. package/src/components/equipment/PhoneList.vue +102 -102
  46. package/src/components/equipment/PhoneManage.vue +60 -60
  47. package/src/components/equipment/PosAdd.vue +137 -137
  48. package/src/components/equipment/PosList.vue +156 -156
  49. package/src/components/equipment/PosManage.vue +67 -67
  50. package/src/components/materialManage/materialData.vue +44 -44
  51. package/src/components/materialManage/materialList.vue +255 -255
  52. package/src/components/parammanage/AlarmInformation.vue +122 -0
  53. package/src/components/parammanage/ParamManage.vue +42 -42
  54. package/src/components/parammanage/ParamManages.vue +43 -43
  55. package/src/components/parammanage/ParamPage.vue +314 -314
  56. package/src/components/parammanage/ParamPages.vue +214 -222
  57. package/src/components/parammanage/SinglePage.vue +237 -235
  58. package/src/components/parammanage/SinglePages.vue +161 -167
  59. package/src/components/server/AddChangeMsg.vue +66 -66
  60. package/src/components/server/ChangeDeclare.vue +45 -45
  61. package/src/components/server/IconTree.vue +26 -26
  62. package/src/components/server/LeftTree.vue +111 -111
  63. package/src/components/server/LoadData.vue +36 -36
  64. package/src/components/server/Login.vue +625 -624
  65. package/src/components/server/Menu.vue +188 -188
  66. package/src/components/server/ModifyPw.vue +125 -106
  67. package/src/components/server/ResSelect.vue +150 -150
  68. package/src/components/server/ResSelectGroup.vue +140 -140
  69. package/src/components/server/RightTree.vue +263 -263
  70. package/src/components/server/RoleSelector.vue +88 -88
  71. package/src/components/server/TestResSelect.vue +1 -1
  72. package/src/components/server/TestResSelectGroup.vue +388 -388
  73. package/src/components/server/TestRightTree.vue +42 -42
  74. package/src/index.js +7 -7
  75. package/src/plugins/GetLoginInfoService.js +509 -513
  76. package/src/plugins/validation.js +7 -7
  77. package/src/project/ProjectPage.vue +24 -24
  78. package/src/project/State.js +17 -17
  79. package/src/stores/AppData.js +38 -38
  80. package/src/system.js +78 -76
  81. package/src/systemphone.js +11 -11
  82. package/src/util/LdapHelper.js +75 -75
  83. package/static/newStyle/alarm.mp3 +0 -0
  84. package/test/e2e/custom-assertions/elementCount.js +26 -26
  85. package/test/e2e/nightwatch.conf.js +40 -40
  86. package/test/e2e/runner.js +30 -30
  87. package/test/e2e/specs/test.js +14 -14
  88. package/test/unit/.eslintrc +5 -5
  89. package/test/unit/index.js +13 -13
  90. package/test/unit/init.js +10 -10
  91. package/test/unit/specs/base64.spec.js +5 -5
  92. package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
  93. package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
  94. package/test/unit/specs/components/server/LoadData.spec.js +24 -24
  95. package/test/unit/specs/components/server/Login.spec.js +61 -61
  96. package/test/unit/specs/components/server/RightTree.spec.js +50 -50
  97. package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
  98. package/test/unit/test.html +76 -76
  99. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  100. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
@@ -1,75 +1,75 @@
1
- var path = require('path')
2
- var cssLoaders = require('./css-loaders')
3
- var projectRoot = path.resolve(__dirname, '../')
4
-
5
- module.exports = {
6
- entry: {
7
- app: './src/main.js'
8
- },
9
- output: {
10
- path: path.resolve(__dirname, '../dist/static'),
11
- publicPath: 'static/',
12
- filename: '[name].js'
13
- },
14
- resolve: {
15
- extensions: ['', '.js', '.vue'],
16
- fallback: [path.join(__dirname, '../node_modules')],
17
- alias: {
18
- 'test': path.resolve(__dirname, '../test'),
19
- 'src': path.resolve(__dirname, '../src')
20
- }
21
- },
22
- resolveLoader: {
23
- fallback: [path.join(__dirname, '../node_modules')]
24
- },
25
- module: {
26
- loaders: [
27
- {
28
- test: /\.vue$/,
29
- loader: 'vue'
30
- },
31
- {
32
- test: /\.js$/,
33
- loader: 'babel',
34
- include: [
35
- `${projectRoot}\\src`,
36
- `${projectRoot}\\build`,
37
- `${projectRoot}\\examples`,
38
- `${projectRoot}\\test`,
39
- `${projectRoot}\\node_modules\\vue-client\\src`,
40
- `${projectRoot}\\node_modules\\vue-strap\\src`
41
- ]
42
- },
43
- {
44
- test: /\.json$/,
45
- loader: 'json'
46
- },
47
- {
48
- test: /\.html$/,
49
- loader: 'vue-html'
50
- },
51
- {
52
- test: /\.less$/,
53
- loader: 'style!css!less'
54
- },
55
- {
56
- test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
57
- loader: 'url',
58
- query: {
59
- limit: 10000,
60
- name: '[name].[ext]?[hash:7]'
61
- }
62
- }
63
- ]
64
- },
65
- vue: {
66
- loaders: cssLoaders({
67
- sourceMap: false,
68
- extract: false
69
- })
70
- },
71
- plugins: [],
72
- eslint: {
73
- formatter: require('eslint-friendly-formatter')
74
- }
75
- }
1
+ var path = require('path')
2
+ var cssLoaders = require('./css-loaders')
3
+ var projectRoot = path.resolve(__dirname, '../')
4
+
5
+ module.exports = {
6
+ entry: {
7
+ app: './src/main.js'
8
+ },
9
+ output: {
10
+ path: path.resolve(__dirname, '../dist/static'),
11
+ publicPath: 'static/',
12
+ filename: '[name].js'
13
+ },
14
+ resolve: {
15
+ extensions: ['', '.js', '.vue'],
16
+ fallback: [path.join(__dirname, '../node_modules')],
17
+ alias: {
18
+ 'test': path.resolve(__dirname, '../test'),
19
+ 'src': path.resolve(__dirname, '../src')
20
+ }
21
+ },
22
+ resolveLoader: {
23
+ fallback: [path.join(__dirname, '../node_modules')]
24
+ },
25
+ module: {
26
+ loaders: [
27
+ {
28
+ test: /\.vue$/,
29
+ loader: 'vue'
30
+ },
31
+ {
32
+ test: /\.js$/,
33
+ loader: 'babel',
34
+ include: [
35
+ `${projectRoot}\\src`,
36
+ `${projectRoot}\\build`,
37
+ `${projectRoot}\\examples`,
38
+ `${projectRoot}\\test`,
39
+ `${projectRoot}\\node_modules\\vue-client\\src`,
40
+ `${projectRoot}\\node_modules\\vue-strap\\src`
41
+ ]
42
+ },
43
+ {
44
+ test: /\.json$/,
45
+ loader: 'json'
46
+ },
47
+ {
48
+ test: /\.html$/,
49
+ loader: 'vue-html'
50
+ },
51
+ {
52
+ test: /\.less$/,
53
+ loader: 'style!css!less'
54
+ },
55
+ {
56
+ test: /\.(png|jpg|gif|svg|woff2?|eot|ttf|mp3)(\?.*)?$/,
57
+ loader: 'url',
58
+ query: {
59
+ limit: 10000,
60
+ name: '[name].[ext]?[hash:7]'
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ vue: {
66
+ loaders: cssLoaders({
67
+ sourceMap: false,
68
+ extract: false
69
+ })
70
+ },
71
+ plugins: [],
72
+ eslint: {
73
+ formatter: require('eslint-friendly-formatter')
74
+ }
75
+ }
@@ -1,31 +1,31 @@
1
- var webpack = require('webpack')
2
- var merge = require('webpack-merge')
3
- var baseConfig = require('./webpack.base.conf')
4
- var HtmlWebpackPlugin = require('html-webpack-plugin')
5
-
6
- // add hot-reload related code to entry chunks
7
- Object.keys(baseConfig.entry).forEach(function (name) {
8
- baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
- })
10
-
11
- module.exports = merge(baseConfig, {
12
- // eval-source-map is faster for development
13
- devtool: '#eval-source-map',
14
- output: {
15
- // necessary for the html plugin to work properly
16
- // when serving the html from in-memory
17
- publicPath: '/'
18
- },
19
- plugins: [
20
- // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
21
- new webpack.optimize.OccurenceOrderPlugin(),
22
- new webpack.HotModuleReplacementPlugin(),
23
- new webpack.NoErrorsPlugin(),
24
- // https://github.com/ampedandwired/html-webpack-plugin
25
- new HtmlWebpackPlugin({
26
- filename: 'index.html',
27
- template: 'index.html',
28
- inject: true
29
- })
30
- ]
31
- })
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
5
+
6
+ // add hot-reload related code to entry chunks
7
+ Object.keys(baseConfig.entry).forEach(function (name) {
8
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
+ })
10
+
11
+ module.exports = merge(baseConfig, {
12
+ // eval-source-map is faster for development
13
+ devtool: '#eval-source-map',
14
+ output: {
15
+ // necessary for the html plugin to work properly
16
+ // when serving the html from in-memory
17
+ publicPath: '/'
18
+ },
19
+ plugins: [
20
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
21
+ new webpack.optimize.OccurenceOrderPlugin(),
22
+ new webpack.HotModuleReplacementPlugin(),
23
+ new webpack.NoErrorsPlugin(),
24
+ // https://github.com/ampedandwired/html-webpack-plugin
25
+ new HtmlWebpackPlugin({
26
+ filename: 'index.html',
27
+ template: 'index.html',
28
+ inject: true
29
+ })
30
+ ]
31
+ })
@@ -1,49 +1,49 @@
1
- var fs = require('fs')
2
- var webpack = require('webpack')
3
- var merge = require('webpack-merge')
4
- var baseConfig = require('./webpack.base.conf')
5
- var HtmlWebpackPlugin = require('html-webpack-plugin')
6
-
7
- // add hot-reload related code to entry chunks
8
- Object.keys(baseConfig.entry).forEach(function (name) {
9
- baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
10
- })
11
-
12
- // 把examples下所有index.html转换成测试例子.html
13
- fs.readdirSync('./examples').forEach((file) => {
14
- baseConfig.plugins.push(
15
- // https://github.com/ampedandwired/html-webpack-plugin
16
- new HtmlWebpackPlugin({
17
- filename: file + '.html',
18
- template: `examples/${file}/index.html`,
19
- inject: false
20
- })
21
- )
22
- })
23
-
24
- // 把examples下子目录里的main.js打包成对应组件名的App.js
25
- fs.readdirSync('./examples').forEach((file) => {
26
- baseConfig.entry[file + 'App'] = `./examples/${file}/main.js`
27
- })
28
-
29
- module.exports = merge(baseConfig, {
30
- // eval-source-map is faster for development
31
- devtool: '#eval-source-map',
32
- output: {
33
- // necessary for the html plugin to work properly
34
- // when serving the html from in-memory
35
- publicPath: '/'
36
- },
37
- plugins: [
38
- // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
39
- new webpack.optimize.OccurenceOrderPlugin(),
40
- new webpack.HotModuleReplacementPlugin(),
41
- new webpack.NoErrorsPlugin(),
42
- // https://github.com/ampedandwired/html-webpack-plugin
43
- new HtmlWebpackPlugin({
44
- filename: 'index.html',
45
- template: 'index.html',
46
- inject: true
47
- })
48
- ]
49
- })
1
+ var fs = require('fs')
2
+ var webpack = require('webpack')
3
+ var merge = require('webpack-merge')
4
+ var baseConfig = require('./webpack.base.conf')
5
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
6
+
7
+ // add hot-reload related code to entry chunks
8
+ Object.keys(baseConfig.entry).forEach(function (name) {
9
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
10
+ })
11
+
12
+ // 把examples下所有index.html转换成测试例子.html
13
+ fs.readdirSync('./examples').forEach((file) => {
14
+ baseConfig.plugins.push(
15
+ // https://github.com/ampedandwired/html-webpack-plugin
16
+ new HtmlWebpackPlugin({
17
+ filename: file + '.html',
18
+ template: `examples/${file}/index.html`,
19
+ inject: false
20
+ })
21
+ )
22
+ })
23
+
24
+ // 把examples下子目录里的main.js打包成对应组件名的App.js
25
+ fs.readdirSync('./examples').forEach((file) => {
26
+ baseConfig.entry[file + 'App'] = `./examples/${file}/main.js`
27
+ })
28
+
29
+ module.exports = merge(baseConfig, {
30
+ // eval-source-map is faster for development
31
+ devtool: '#eval-source-map',
32
+ output: {
33
+ // necessary for the html plugin to work properly
34
+ // when serving the html from in-memory
35
+ publicPath: '/'
36
+ },
37
+ plugins: [
38
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
39
+ new webpack.optimize.OccurenceOrderPlugin(),
40
+ new webpack.HotModuleReplacementPlugin(),
41
+ new webpack.NoErrorsPlugin(),
42
+ // https://github.com/ampedandwired/html-webpack-plugin
43
+ new HtmlWebpackPlugin({
44
+ filename: 'index.html',
45
+ template: 'index.html',
46
+ inject: true
47
+ })
48
+ ]
49
+ })
@@ -1,60 +1,60 @@
1
- var webpack = require('webpack')
2
- var merge = require('webpack-merge')
3
- var baseConfig = require('./webpack.base.conf')
4
- var cssLoaders = require('./css-loaders')
5
- var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
- var HtmlWebpackPlugin = require('html-webpack-plugin')
7
-
8
- // whether to generate source map for production files.
9
- // disabling this can speed up the build.
10
- var SOURCE_MAP = true
11
-
12
- module.exports = merge(baseConfig, {
13
- stats: {
14
- children: false
15
- },
16
- devtool: SOURCE_MAP ? '#source-map' : false,
17
- output: {
18
- // naming output files with hashes for better caching.
19
- // dist/index.html will be auto-generated with correct URLs.
20
- filename: '[name][chunkhash].js',
21
- chunkFilename: '[id].[chunkhash].js'
22
- },
23
- vue: {
24
- loaders: cssLoaders({
25
- sourceMap: SOURCE_MAP,
26
- extract: true
27
- })
28
- },
29
- plugins: [
30
- // http://vuejs.github.io/vue-loader/workflow/production.html
31
- new webpack.DefinePlugin({
32
- 'process.env': {
33
- NODE_ENV: '"production"'
34
- }
35
- }),
36
- new webpack.optimize.UglifyJsPlugin({
37
- compress: {
38
- warnings: false
39
- }
40
- }),
41
- new webpack.optimize.OccurenceOrderPlugin(),
42
- // extract css into its own file
43
- new ExtractTextPlugin('[name].css'),
44
- // generate dist index.html with correct asset hash for caching.
45
- // you can customize output by editing /index.html
46
- // see https://github.com/ampedandwired/html-webpack-plugin
47
- new HtmlWebpackPlugin({
48
- filename: '../index.html',
49
- template: 'index.html',
50
- inject: true,
51
- minify: {
52
- removeComments: true,
53
- collapseWhitespace: true,
54
- removeAttributeQuotes: true
55
- // more options:
56
- // https://github.com/kangax/html-minifier#options-quick-reference
57
- }
58
- })
59
- ]
60
- })
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var cssLoaders = require('./css-loaders')
5
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
7
+
8
+ // whether to generate source map for production files.
9
+ // disabling this can speed up the build.
10
+ var SOURCE_MAP = true
11
+
12
+ module.exports = merge(baseConfig, {
13
+ stats: {
14
+ children: false
15
+ },
16
+ devtool: SOURCE_MAP ? '#source-map' : false,
17
+ output: {
18
+ // naming output files with hashes for better caching.
19
+ // dist/index.html will be auto-generated with correct URLs.
20
+ filename: '[name][chunkhash].js',
21
+ chunkFilename: '[id].[chunkhash].js'
22
+ },
23
+ vue: {
24
+ loaders: cssLoaders({
25
+ sourceMap: SOURCE_MAP,
26
+ extract: true
27
+ })
28
+ },
29
+ plugins: [
30
+ // http://vuejs.github.io/vue-loader/workflow/production.html
31
+ new webpack.DefinePlugin({
32
+ 'process.env': {
33
+ NODE_ENV: '"production"'
34
+ }
35
+ }),
36
+ new webpack.optimize.UglifyJsPlugin({
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ }),
41
+ new webpack.optimize.OccurenceOrderPlugin(),
42
+ // extract css into its own file
43
+ new ExtractTextPlugin('[name].css'),
44
+ // generate dist index.html with correct asset hash for caching.
45
+ // you can customize output by editing /index.html
46
+ // see https://github.com/ampedandwired/html-webpack-plugin
47
+ new HtmlWebpackPlugin({
48
+ filename: '../index.html',
49
+ template: 'index.html',
50
+ inject: true,
51
+ minify: {
52
+ removeComments: true,
53
+ collapseWhitespace: true,
54
+ removeAttributeQuotes: true
55
+ // more options:
56
+ // https://github.com/kangax/html-minifier#options-quick-reference
57
+ }
58
+ })
59
+ ]
60
+ })
@@ -1,31 +1,31 @@
1
- // This is the webpack config used for unit tests.
2
-
3
- var utils = require('./utils')
4
- var webpack = require('webpack')
5
- var merge = require('webpack-merge')
6
- var baseConfig = require('./webpack.base.conf')
7
-
8
- var webpackConfig = merge(baseConfig, {
9
- module: {
10
- rules: utils.styleLoaders()
11
- },
12
- // use inline sourcemap for karma-sourcemap-loader
13
- devtool: '#inline-source-map',
14
- resolveLoader: {
15
- alias: {
16
- // necessary to to make lang="scss" work in test when using vue-loader's ?inject option
17
- // see discussion at https://github.com/vuejs/vue-loader/issues/724
18
- 'scss-loader': 'sass-loader'
19
- }
20
- },
21
- plugins: [
22
- new webpack.DefinePlugin({
23
- 'process.env': require('../config/test.env')
24
- })
25
- ]
26
- })
27
-
28
- // no need for app entry during tests
29
- delete webpackConfig.entry
30
-
31
- module.exports = webpackConfig
1
+ // This is the webpack config used for unit tests.
2
+
3
+ var utils = require('./utils')
4
+ var webpack = require('webpack')
5
+ var merge = require('webpack-merge')
6
+ var baseConfig = require('./webpack.base.conf')
7
+
8
+ var webpackConfig = merge(baseConfig, {
9
+ module: {
10
+ rules: utils.styleLoaders()
11
+ },
12
+ // use inline sourcemap for karma-sourcemap-loader
13
+ devtool: '#inline-source-map',
14
+ resolveLoader: {
15
+ alias: {
16
+ // necessary to to make lang="scss" work in test when using vue-loader's ?inject option
17
+ // see discussion at https://github.com/vuejs/vue-loader/issues/724
18
+ 'scss-loader': 'sass-loader'
19
+ }
20
+ },
21
+ plugins: [
22
+ new webpack.DefinePlugin({
23
+ 'process.env': require('../config/test.env')
24
+ })
25
+ ]
26
+ })
27
+
28
+ // no need for app entry during tests
29
+ delete webpackConfig.entry
30
+
31
+ module.exports = webpackConfig
package/build.gradle CHANGED
@@ -1,6 +1,6 @@
1
- version = '3.0.17'
2
-
3
- task release(type:Exec) {
4
- workingDir '.'
5
- commandLine 'cmd', '/c', 'release.bat ' + version
6
- }
1
+ version = '3.0.17'
2
+
3
+ task release(type:Exec) {
4
+ workingDir '.'
5
+ commandLine 'cmd', '/c', 'release.bat ' + version
6
+ }
package/config/dev.env.js CHANGED
@@ -1,6 +1,6 @@
1
- var merge = require('webpack-merge')
2
- var prodEnv = require('./prod.env')
3
-
4
- module.exports = merge(prodEnv, {
5
- NODE_ENV: '"development"'
6
- })
1
+ var merge = require('webpack-merge')
2
+ var prodEnv = require('./prod.env')
3
+
4
+ module.exports = merge(prodEnv, {
5
+ NODE_ENV: '"development"'
6
+ })
package/config/index.js CHANGED
@@ -1,38 +1,38 @@
1
- // see http://vuejs-templates.github.io/webpack for documentation.
2
- var path = require('path')
3
-
4
- module.exports = {
5
- build: {
6
- env: require('./prod.env'),
7
- index: path.resolve(__dirname, '../dist/index.html'),
8
- assetsRoot: path.resolve(__dirname, '../dist'),
9
- assetsSubDirectory: 'static',
10
- assetsPublicPath: '/',
11
- productionSourceMap: true,
12
- // Gzip off by default as many popular static hosts such as
13
- // Surge or Netlify already gzip all static assets for you.
14
- // Before setting to `true`, make sure to:
15
- // npm install --save-dev compression-webpack-plugin
16
- productionGzip: false,
17
- productionGzipExtensions: ['js', 'css'],
18
- // Run the build command with an extra argument to
19
- // View the bundle analyzer report after build finishes:
20
- // `npm run build --report`
21
- // Set to `true` or `false` to always turn it on or off
22
- bundleAnalyzerReport: process.env.npm_config_report
23
- },
24
- dev: {
25
- env: require('./dev.env'),
26
- port: 8080,
27
- autoOpenBrowser: true,
28
- assetsSubDirectory: 'static',
29
- assetsPublicPath: '/',
30
- proxyTable: {},
31
- // CSS Sourcemaps off by default because relative paths are "buggy"
32
- // with this option, according to the CSS-Loader README
33
- // (https://github.com/webpack/css-loader#sourcemaps)
34
- // In our experience, they generally work as expected,
35
- // just be aware of this issue when enabling this option.
36
- cssSourceMap: false
37
- }
38
- }
1
+ // see http://vuejs-templates.github.io/webpack for documentation.
2
+ var path = require('path')
3
+
4
+ module.exports = {
5
+ build: {
6
+ env: require('./prod.env'),
7
+ index: path.resolve(__dirname, '../dist/index.html'),
8
+ assetsRoot: path.resolve(__dirname, '../dist'),
9
+ assetsSubDirectory: 'static',
10
+ assetsPublicPath: '/',
11
+ productionSourceMap: true,
12
+ // Gzip off by default as many popular static hosts such as
13
+ // Surge or Netlify already gzip all static assets for you.
14
+ // Before setting to `true`, make sure to:
15
+ // npm install --save-dev compression-webpack-plugin
16
+ productionGzip: false,
17
+ productionGzipExtensions: ['js', 'css'],
18
+ // Run the build command with an extra argument to
19
+ // View the bundle analyzer report after build finishes:
20
+ // `npm run build --report`
21
+ // Set to `true` or `false` to always turn it on or off
22
+ bundleAnalyzerReport: process.env.npm_config_report
23
+ },
24
+ dev: {
25
+ env: require('./dev.env'),
26
+ port: 8080,
27
+ autoOpenBrowser: true,
28
+ assetsSubDirectory: 'static',
29
+ assetsPublicPath: '/',
30
+ proxyTable: {},
31
+ // CSS Sourcemaps off by default because relative paths are "buggy"
32
+ // with this option, according to the CSS-Loader README
33
+ // (https://github.com/webpack/css-loader#sourcemaps)
34
+ // In our experience, they generally work as expected,
35
+ // just be aware of this issue when enabling this option.
36
+ cssSourceMap: false
37
+ }
38
+ }
@@ -1,3 +1,3 @@
1
- module.exports = {
2
- NODE_ENV: '"production"'
3
- }
1
+ module.exports = {
2
+ NODE_ENV: '"production"'
3
+ }
@@ -1,6 +1,6 @@
1
- var merge = require('webpack-merge')
2
- var devEnv = require('./dev.env')
3
-
4
- module.exports = merge(devEnv, {
5
- NODE_ENV: '"testing"'
6
- })
1
+ var merge = require('webpack-merge')
2
+ var devEnv = require('./dev.env')
3
+
4
+ module.exports = merge(devEnv, {
5
+ NODE_ENV: '"testing"'
6
+ })
package/doc/Login.md CHANGED
@@ -1,7 +1,7 @@
1
- # Login
2
-
3
- PC端登录组件
4
-
5
- ## 登录后处理
6
-
7
- - 把登录人员id存放在cookie的loginId中
1
+ # Login
2
+
3
+ PC端登录组件
4
+
5
+ ## 登录后处理
6
+
7
+ - 把登录人员id存放在cookie的loginId中