address-client 3.2.91 → 3.2.93

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.
@@ -1,174 +1,174 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- var httpProxy = require('http-proxy')
6
-
7
- var app = express()
8
- var compiler = webpack(config)
9
- var proxy = httpProxy.createProxyServer()
10
-
11
- // Define HTTP proxies to your custom API backend
12
- // https://github.com/chimurai/http-proxy-middleware
13
- var str = 'http://127.0.0.1:8288', str2= 'http://192.168.50.4:8400/'
14
- var str3= 'http://192.168.50.4:8400/'
15
- var proxyTable = {
16
- '/rs/entity': {
17
- target: str
18
- // secure:true,
19
- // changeOrigin:true
20
- // target: 'http://127.0.0.1:8080'
21
- },
22
- '/webapps':{
23
- target: str3,
24
- secure:true,
25
- changeOrigin:true
26
- // target: 'http://127.0.0.1:8080'
27
- },
28
- '/rs/logic/getLogin': {
29
- target: str3,
30
- secure:true,
31
- changeOrigin:true
32
- },
33
- '/rs/logic/getInitData': {
34
- target: str3,
35
- secure:true,
36
- changeOrigin:true,
37
- },
38
- '/rs/logic/getSaleInitData': {
39
- target: str3,
40
- secure:true,
41
- changeOrigin:true
42
- },
43
- // '/rs/logic':{
44
- // target: str3,
45
- // secure:true,
46
- // changeOrigin:true
47
- // // target: 'http://127.0.0.1:8080'
48
- // },
49
- '/rs/vue': {
50
- target: str3,
51
- secure:true,
52
- changeOrigin:true
53
- },
54
- '/rs/user': {
55
- target: str3,
56
- secure:true,
57
- changeOrigin:true
58
- },
59
- '/rs/db': {
60
- target: str3,
61
- secure:true,
62
- changeOrigin:true
63
- },
64
- '/rs/search': {
65
- target: str3,
66
- secure:true,
67
- changeOrigin:true
68
- // target: 'http://127.0.0.1:8080'
69
- },
70
- '/rs/data': {
71
- target: str3,
72
- secure:true,
73
- changeOrigin:true
74
- },
75
- '/rs/sql': {
76
- target: str
77
- // secure: true,
78
- // changeOrigin:true
79
- // target: 'http://127.0.0.1:8080'
80
- },
81
- '/rs/logic': {
82
- target: str
83
- // secure: true,
84
- // changeOrigin:true
85
- // target: 'http://127.0.0.1:8080'
86
- },
87
- '/rs': {
88
- // target: 'http://192.168.50.199:8300'
89
- target: str3,
90
- secure:true,
91
- changeOrigin:true
92
- }
93
- }
94
-
95
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
96
- publicPath: config.output.publicPath,
97
- stats: {
98
- colors: true,
99
- chunks: false
100
- }
101
- })
102
-
103
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
104
- // force page reload when html-webpack-plugin template changes
105
- compiler.plugin('compilation', function (compilation) {
106
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
107
- hotMiddleware.publish({ action: 'reload' })
108
- cb()
109
- })
110
- })
111
-
112
- // proxy api requests
113
- Object.keys(proxyTable).forEach(function (context) {
114
- var options = proxyTable[context]
115
- if (typeof options === 'string') {
116
- options = { target: options }
117
- }
118
- app.use(proxyMiddleware(context, options))
119
- })
120
-
121
- // handle fallback for HTML5 history API
122
- app.use(require('connect-history-api-fallback')())
123
-
124
- // serve webpack bundle output
125
- app.use(devMiddleware)
126
-
127
- // enable hot-reload and state-preserving
128
- // compilation error display
129
- app.use(hotMiddleware)
130
-
131
- // serve pure static assets
132
- app.use('/static', express.static('./static'))
133
-
134
- // app.all('/rs/*', function (req, res) {
135
- // proxy.web(req, res, {
136
- // target: 'http://127.0.0.1:8081/reports'
137
- // })
138
- // })
139
-
140
- // app.all('/rs/*', function (req, res) {
141
- // proxy.web(req, res, {
142
- // target: 'http://127.0.0.1:8081/ldap'
143
- // })
144
- // })
145
- // app.all('/excel/*', function (req, res) {
146
- // proxy.web(req, res, {
147
- // target: 'http://127.0.0.1:8081/charge'
148
- // })
149
- // })
150
-
151
- // app.all('/rs/*', function (req, res) {
152
- // proxy.web(req, res, {
153
- // target: 'http://127.0.0.1:82/charge'
154
- // })
155
- // })
156
-
157
- // app.all('/*', function (req, res) {
158
- // proxy.web(req, res, {
159
- // target: 'http://127.0.0.1:82'
160
- // })
161
- // })
162
- // app.all('/rs/user', function (req, res) {
163
- // proxy.web(req, res, {
164
- // target: 'http://127.0.0.1:82'
165
- // })
166
- // })
167
-
168
- module.exports = app.listen(8085, function (err) {
169
- if (err) {
170
- console.log(err)
171
- return
172
- }
173
- console.log('Listening at http://localhost:8085')
174
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ var httpProxy = require('http-proxy')
6
+
7
+ var app = express()
8
+ var compiler = webpack(config)
9
+ var proxy = httpProxy.createProxyServer()
10
+
11
+ // Define HTTP proxies to your custom API backend
12
+ // https://github.com/chimurai/http-proxy-middleware
13
+ var str = 'http://139.9.204.64:8400/#', str2= 'http://139.9.204.64:8400/#'
14
+ var str3= 'http://139.9.204.64:8400/#'
15
+ var proxyTable = {
16
+ '/rs/entity': {
17
+ target: str
18
+ // secure:true,
19
+ // changeOrigin:true
20
+ // target: 'http://127.0.0.1:8080'
21
+ },
22
+ '/webapps':{
23
+ target: str3,
24
+ secure:true,
25
+ changeOrigin:true
26
+ // target: 'http://127.0.0.1:8080'
27
+ },
28
+ '/rs/logic/getLogin': {
29
+ target: str3,
30
+ secure:true,
31
+ changeOrigin:true
32
+ },
33
+ '/rs/logic/getInitData': {
34
+ target: str3,
35
+ secure:true,
36
+ changeOrigin:true,
37
+ },
38
+ '/rs/logic/getSaleInitData': {
39
+ target: str3,
40
+ secure:true,
41
+ changeOrigin:true
42
+ },
43
+ // '/rs/logic':{
44
+ // target: str3,
45
+ // secure:true,
46
+ // changeOrigin:true
47
+ // // target: 'http://127.0.0.1:8080'
48
+ // },
49
+ '/rs/vue': {
50
+ target: str3,
51
+ secure:true,
52
+ changeOrigin:true
53
+ },
54
+ '/rs/user': {
55
+ target: str3,
56
+ secure:true,
57
+ changeOrigin:true
58
+ },
59
+ '/rs/db': {
60
+ target: str3,
61
+ secure:true,
62
+ changeOrigin:true
63
+ },
64
+ '/rs/search': {
65
+ target: str3,
66
+ secure:true,
67
+ changeOrigin:true
68
+ // target: 'http://127.0.0.1:8080'
69
+ },
70
+ '/rs/data': {
71
+ target: str3,
72
+ secure:true,
73
+ changeOrigin:true
74
+ },
75
+ '/rs/sql': {
76
+ target: str
77
+ // secure: true,
78
+ // changeOrigin:true
79
+ // target: 'http://127.0.0.1:8080'
80
+ },
81
+ '/rs/logic': {
82
+ target: str
83
+ // secure: true,
84
+ // changeOrigin:true
85
+ // target: 'http://127.0.0.1:8080'
86
+ },
87
+ '/rs': {
88
+ // target: 'http://192.168.50.199:8300'
89
+ target: str3,
90
+ secure:true,
91
+ changeOrigin:true
92
+ }
93
+ }
94
+
95
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
96
+ publicPath: config.output.publicPath,
97
+ stats: {
98
+ colors: true,
99
+ chunks: false
100
+ }
101
+ })
102
+
103
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
104
+ // force page reload when html-webpack-plugin template changes
105
+ compiler.plugin('compilation', function (compilation) {
106
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
107
+ hotMiddleware.publish({ action: 'reload' })
108
+ cb()
109
+ })
110
+ })
111
+
112
+ // proxy api requests
113
+ Object.keys(proxyTable).forEach(function (context) {
114
+ var options = proxyTable[context]
115
+ if (typeof options === 'string') {
116
+ options = { target: options }
117
+ }
118
+ app.use(proxyMiddleware(context, options))
119
+ })
120
+
121
+ // handle fallback for HTML5 history API
122
+ app.use(require('connect-history-api-fallback')())
123
+
124
+ // serve webpack bundle output
125
+ app.use(devMiddleware)
126
+
127
+ // enable hot-reload and state-preserving
128
+ // compilation error display
129
+ app.use(hotMiddleware)
130
+
131
+ // serve pure static assets
132
+ app.use('/static', express.static('./static'))
133
+
134
+ // app.all('/rs/*', function (req, res) {
135
+ // proxy.web(req, res, {
136
+ // target: 'http://127.0.0.1:8081/reports'
137
+ // })
138
+ // })
139
+
140
+ // app.all('/rs/*', function (req, res) {
141
+ // proxy.web(req, res, {
142
+ // target: 'http://127.0.0.1:8081/ldap'
143
+ // })
144
+ // })
145
+ // app.all('/excel/*', function (req, res) {
146
+ // proxy.web(req, res, {
147
+ // target: 'http://127.0.0.1:8081/charge'
148
+ // })
149
+ // })
150
+
151
+ // app.all('/rs/*', function (req, res) {
152
+ // proxy.web(req, res, {
153
+ // target: 'http://127.0.0.1:82/charge'
154
+ // })
155
+ // })
156
+
157
+ // app.all('/*', function (req, res) {
158
+ // proxy.web(req, res, {
159
+ // target: 'http://127.0.0.1:82'
160
+ // })
161
+ // })
162
+ // app.all('/rs/user', function (req, res) {
163
+ // proxy.web(req, res, {
164
+ // target: 'http://127.0.0.1:82'
165
+ // })
166
+ // })
167
+
168
+ module.exports = app.listen(8085, function (err) {
169
+ if (err) {
170
+ console.log(err)
171
+ return
172
+ }
173
+ console.log('Listening at http://localhost:8085')
174
+ })
package/package.json CHANGED
@@ -1,100 +1,100 @@
1
- {
2
- "name": "address-client",
3
- "version": "3.2.91",
4
- "description": "地址管理前台组件",
5
- "author": "wanbochao",
6
- "license": "ISC",
7
- "main": "src/index.js",
8
- "keywords": [
9
- "sale"
10
- ],
11
- "scripts": {
12
- "unit": "karma start test/unit/karma.conf.js",
13
- "example": "node build/example-server.js",
14
- "dev": "node build/dev-server.js",
15
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
- "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
- "e2e": "node test/e2e/runner.js",
18
- "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
19
- "release": "bash build/release.sh"
20
- },
21
- "repository": {
22
- "type": "git",
23
- "url": "https://gitee.com/aote/address_management.git"
24
- },
25
- "dependencies": {
26
- "less-loader": "^2.2.3",
27
- "vue": "^1.0.17"
28
- },
29
- "devDependencies": {
30
- "babel-core": "^6.0.0",
31
- "babel-loader": "^6.0.0",
32
- "babel-plugin-transform-runtime": "^6.0.0",
33
- "babel-preset-es2015": "^6.0.0",
34
- "babel-preset-stage-2": "^6.0.0",
35
- "chai": "^3.5.0",
36
- "co": "^4.6.0",
37
- "connect-history-api-fallback": "^1.1.0",
38
- "cross-env": "^1.0.7",
39
- "cross-spawn": "^2.1.5",
40
- "css-loader": "^0.23.0",
41
- "echarts": "^4.1.0",
42
- "eslint": "^2.0.0",
43
- "eslint-config-standard": "^5.1.0",
44
- "eslint-friendly-formatter": "^1.2.2",
45
- "eslint-loader": "^1.3.0",
46
- "eslint-plugin-html": "^1.3.0",
47
- "eslint-plugin-promise": "^1.0.8",
48
- "eslint-plugin-standard": "^1.3.2",
49
- "eslint-plugin-vue": "^0.1.1",
50
- "eventsource-polyfill": "^0.9.6",
51
- "express": "^4.13.3",
52
- "extract-text-webpack-plugin": "^1.0.1",
53
- "file-loader": "^0.8.4",
54
- "function-bind": "^1.0.2",
55
- "html-webpack-plugin": "^2.8.1",
56
- "http-proxy-middleware": "^0.11.0",
57
- "inject-loader": "^2.0.1",
58
- "isparta-loader": "^2.0.0",
59
- "jasmine-core": "^2.4.1",
60
- "jquery": "^3.3.1",
61
- "json-loader": "^0.5.4",
62
- "karma": "^1.4.1",
63
- "karma-chrome-launcher": "^2.2.0",
64
- "karma-coverage": "^1.1.1",
65
- "karma-mocha": "^1.3.0",
66
- "karma-sinon-chai": "^1.3.1",
67
- "karma-sourcemap-loader": "^0.3.7",
68
- "karma-spec-reporter": "0.0.31",
69
- "karma-webpack": "^2.0.2",
70
- "less": "^2.7.3",
71
- "mkdirp": "^0.5.1",
72
- "mocha": "^3.2.0",
73
- "ncp": "^2.0.0",
74
- "rimraf": "^2.5.0",
75
- "sale-client": "3.2.11-17",
76
- "selenium-server": "2.52.0",
77
- "sinon": "^2.1.0",
78
- "sinon-chai": "^2.8.0",
79
- "style": "0.0.3",
80
- "style-loader": "^0.20.3",
81
- "ldap-clients": "3.0.48",
82
- "system-clients": "3.2.68",
83
- "url-loader": "^0.5.7",
84
- "vue-client": "1.24.98",
85
- "vue-hot-reload-api": "^1.2.0",
86
- "vue-html-loader": "^1.0.0",
87
- "vue-loader": "^8.2.1",
88
- "vue-resource": "^1.5.0",
89
- "vue-router": "^0.7.13",
90
- "vue-strap": "^1.0.9",
91
- "vue-style-loader": "^1.0.0",
92
- "vue-validator": "2.1.7",
93
- "webpack": "^1.12.2",
94
- "webpack-dev-middleware": "^1.4.0",
95
- "webpack-hot-middleware": "^2.6.0",
96
- "webpack-merge": "^0.8.3",
97
- "jsencrypt": "3.0.0-rc.1",
98
- "axios": "0.15.3"
99
- }
100
- }
1
+ {
2
+ "name": "address-client",
3
+ "version": "3.2.93",
4
+ "description": "地址管理前台组件",
5
+ "author": "wanbochao",
6
+ "license": "ISC",
7
+ "main": "src/index.js",
8
+ "keywords": [
9
+ "sale"
10
+ ],
11
+ "scripts": {
12
+ "unit": "karma start test/unit/karma.conf.js",
13
+ "example": "node build/example-server.js",
14
+ "dev": "node build/dev-server.js",
15
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
+ "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
+ "e2e": "node test/e2e/runner.js",
18
+ "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
19
+ "release": "bash build/release.sh"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://gitee.com/aote/address_management.git"
24
+ },
25
+ "dependencies": {
26
+ "less-loader": "^2.2.3",
27
+ "vue": "^1.0.17"
28
+ },
29
+ "devDependencies": {
30
+ "babel-core": "^6.0.0",
31
+ "babel-loader": "^6.0.0",
32
+ "babel-plugin-transform-runtime": "^6.0.0",
33
+ "babel-preset-es2015": "^6.0.0",
34
+ "babel-preset-stage-2": "^6.0.0",
35
+ "chai": "^3.5.0",
36
+ "co": "^4.6.0",
37
+ "connect-history-api-fallback": "^1.1.0",
38
+ "cross-env": "^1.0.7",
39
+ "cross-spawn": "^2.1.5",
40
+ "css-loader": "^0.23.0",
41
+ "echarts": "^4.1.0",
42
+ "eslint": "^2.0.0",
43
+ "eslint-config-standard": "^5.1.0",
44
+ "eslint-friendly-formatter": "^1.2.2",
45
+ "eslint-loader": "^1.3.0",
46
+ "eslint-plugin-html": "^1.3.0",
47
+ "eslint-plugin-promise": "^1.0.8",
48
+ "eslint-plugin-standard": "^1.3.2",
49
+ "eslint-plugin-vue": "^0.1.1",
50
+ "eventsource-polyfill": "^0.9.6",
51
+ "express": "^4.13.3",
52
+ "extract-text-webpack-plugin": "^1.0.1",
53
+ "file-loader": "^0.8.4",
54
+ "function-bind": "^1.0.2",
55
+ "html-webpack-plugin": "^2.8.1",
56
+ "http-proxy-middleware": "^0.11.0",
57
+ "inject-loader": "^2.0.1",
58
+ "isparta-loader": "^2.0.0",
59
+ "jasmine-core": "^2.4.1",
60
+ "jquery": "^3.3.1",
61
+ "json-loader": "^0.5.4",
62
+ "karma": "^1.4.1",
63
+ "karma-chrome-launcher": "^2.2.0",
64
+ "karma-coverage": "^1.1.1",
65
+ "karma-mocha": "^1.3.0",
66
+ "karma-sinon-chai": "^1.3.1",
67
+ "karma-sourcemap-loader": "^0.3.7",
68
+ "karma-spec-reporter": "0.0.31",
69
+ "karma-webpack": "^2.0.2",
70
+ "less": "^2.7.3",
71
+ "mkdirp": "^0.5.1",
72
+ "mocha": "^3.2.0",
73
+ "ncp": "^2.0.0",
74
+ "rimraf": "^2.5.0",
75
+ "sale-client": "3.2.11-17",
76
+ "selenium-server": "2.52.0",
77
+ "sinon": "^2.1.0",
78
+ "sinon-chai": "^2.8.0",
79
+ "style": "0.0.3",
80
+ "style-loader": "^0.20.3",
81
+ "ldap-clients": "3.0.48",
82
+ "system-clients": "3.2.68",
83
+ "url-loader": "^0.5.7",
84
+ "vue-client": "1.24.98",
85
+ "vue-hot-reload-api": "^1.2.0",
86
+ "vue-html-loader": "^1.0.0",
87
+ "vue-loader": "^8.2.1",
88
+ "vue-resource": "^1.5.0",
89
+ "vue-router": "^0.7.13",
90
+ "vue-strap": "^1.0.9",
91
+ "vue-style-loader": "^1.0.0",
92
+ "vue-validator": "2.1.7",
93
+ "webpack": "^1.12.2",
94
+ "webpack-dev-middleware": "^1.4.0",
95
+ "webpack-hot-middleware": "^2.6.0",
96
+ "webpack-merge": "^0.8.3",
97
+ "jsencrypt": "3.0.0-rc.1",
98
+ "axios": "0.15.3"
99
+ }
100
+ }