apply-clients 3.3.71-1 → 3.3.72

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,127 +1,130 @@
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
- var app = express()
7
- var compiler = webpack(config)
8
- // var proxy = httpProxy.createProxyServer()
9
- // var ldap = 'http://121.36.79.201:8400'
10
- // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://192.168.20.27:8555'
12
- var applyinstall = 'http://192.168.20.27:8555'
13
- var proxyTable = {
14
- '/wx': {
15
- target: ldap
16
- },
17
- '/rs/sql/filemanage_getUserfies/n': {
18
- target: ldap
19
- },
20
- '/rs/sql/filemanage_getUserfies': {
21
- target: ldap
22
- },
23
- '/rs/logic/saveInsInfo': {
24
- target: ldap
25
- },
26
- '/rs/logic/exportfile': {
27
- target: ldap
28
- },
29
- '/rs/logic/getBatchOperaPro': {
30
- target: ldap
31
- },
32
- '/rs/logic/updateApplyOrder': {
33
- target: ldap
34
- },
35
- '/rs/logic/getSaleInitData': {
36
- target: ldap
37
- },
38
- '/rs/workflow': {
39
- target: applyinstall
40
- },
41
- '/rs/vue': {
42
- target: ldap
43
- },
44
- // 查找资源服务数据
45
- '/rs/search': {
46
- target: ldap
47
- },
48
- // 用户登录服务地址
49
- '/rs/user': {
50
- target: ldap
51
- },
52
- '/rs/logic/getInitData': {
53
- target: ldap
54
- },
55
- '/rs/logic/getLogin': {
56
- target: ldap
57
- },
58
- '/rs/file': { // 文件上传
59
- target: applyinstall
60
- },
61
- '/project': { // 文件回显
62
- target: applyinstall
63
- },
64
- '/rs': {
65
- target: applyinstall
66
- },
67
- '/ws': {
68
- target: applyinstall,
69
- ws: true // 代理webSocket
70
- }
71
- }
72
-
73
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
74
- publicPath: config.output.publicPath,
75
- stats: {
76
- colors: true,
77
- chunks: false
78
- }
79
- })
80
-
81
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
82
- // force page reload when html-webpack-plugin template changes
83
- compiler.plugin('compilation', function (compilation) {
84
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
85
- hotMiddleware.publish({action: 'reload'})
86
- cb()
87
- })
88
- })
89
-
90
- // proxy api requests
91
- Object.keys(proxyTable).forEach(function (context) {
92
- var options = proxyTable[context]
93
- if (typeof options === 'string') {
94
- options = {target: options}
95
- }
96
- app.use(proxyMiddleware(context, options))
97
- })
98
-
99
- // handle fallback for HTML5 history API
100
- app.use(require('connect-history-api-fallback')())
101
- // app.use(function (req, res, next) {
102
- // res.header('Access-Control-Allow-Origin', '*')
103
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
104
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
105
- // res.header('X-Powered-By', '3,2,1')
106
- // res.header('Access-Control-Allow-Credentials', 'true')
107
- // res.header('Content-Type', 'application/json;charset=utf-8')
108
- // next()
109
- // })
110
-
111
- // serve webpack bundle output
112
- app.use(devMiddleware)
113
-
114
- // enable hot-reload and state-preserving
115
- // compilation error display
116
- app.use(hotMiddleware)
117
-
118
- // serve pure static assets
119
- app.use('/static', express.static('./static'))
120
-
121
- module.exports = app.listen(8300, function (err) {
122
- if (err) {
123
- console.log(err)
124
- return
125
- }
126
- console.log('Listening at http://localhost:8300')
127
- })
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
+ var app = express()
7
+ var compiler = webpack(config)
8
+ // var proxy = httpProxy.createProxyServer()
9
+ // var ldap = 'http://121.36.79.201:8400'
10
+ // var applyinstall = 'http://121.36.79.201:8400'
11
+ var ldap = 'http://192.168.50.4:8400'
12
+ var applyinstall = 'http://192.168.50.4:8400'
13
+ var proxyTable = {
14
+ '/wx': {
15
+ target: ldap
16
+ },
17
+ '/rs/sql/filemanage_getUserfies/n': {
18
+ target: ldap
19
+ },
20
+ '/rs/sql/filemanage_getUserfies': {
21
+ target: ldap
22
+ },
23
+ '/rs/logic/saveInsInfo': {
24
+ target: ldap
25
+ },
26
+ '/rs/logic/exportfile': {
27
+ target: ldap
28
+ },
29
+ '/rs/logic/getBatchOperaPro': {
30
+ target: ldap
31
+ },
32
+ '/rs/logic/updateApplyOrder': {
33
+ target: ldap
34
+ },
35
+ '/rs/logic/getSaleInitData': {
36
+ target: ldap
37
+ },
38
+ '/rs/workflow': {
39
+ target: applyinstall
40
+ },
41
+ '/rs/vue': {
42
+ target: ldap
43
+ },
44
+ // 查找资源服务数据
45
+ '/rs/search': {
46
+ target: ldap
47
+ },
48
+ // 用户登录服务地址
49
+ '/rs/user': {
50
+ target: ldap
51
+ },
52
+ '/rs/logic/getInitData': {
53
+ target: ldap
54
+ },
55
+ '/rs/logic/getLogin': {
56
+ target: ldap
57
+ },
58
+ '/rs/file': { // 文件上传
59
+ target: applyinstall
60
+ },
61
+ '/files': {
62
+ target: applyinstall
63
+ },
64
+ '/project': { // 文件回显
65
+ target: applyinstall
66
+ },
67
+ '/rs': {
68
+ target: applyinstall
69
+ },
70
+ '/ws': {
71
+ target: applyinstall,
72
+ ws: true // 代理webSocket
73
+ }
74
+ }
75
+
76
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
77
+ publicPath: config.output.publicPath,
78
+ stats: {
79
+ colors: true,
80
+ chunks: false
81
+ }
82
+ })
83
+
84
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
85
+ // force page reload when html-webpack-plugin template changes
86
+ compiler.plugin('compilation', function (compilation) {
87
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
88
+ hotMiddleware.publish({action: 'reload'})
89
+ cb()
90
+ })
91
+ })
92
+
93
+ // proxy api requests
94
+ Object.keys(proxyTable).forEach(function (context) {
95
+ var options = proxyTable[context]
96
+ if (typeof options === 'string') {
97
+ options = {target: options}
98
+ }
99
+ app.use(proxyMiddleware(context, options))
100
+ })
101
+
102
+ // handle fallback for HTML5 history API
103
+ app.use(require('connect-history-api-fallback')())
104
+ // app.use(function (req, res, next) {
105
+ // res.header('Access-Control-Allow-Origin', '*')
106
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
107
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
108
+ // res.header('X-Powered-By', '3,2,1')
109
+ // res.header('Access-Control-Allow-Credentials', 'true')
110
+ // res.header('Content-Type', 'application/json;charset=utf-8')
111
+ // next()
112
+ // })
113
+
114
+ // serve webpack bundle output
115
+ app.use(devMiddleware)
116
+
117
+ // enable hot-reload and state-preserving
118
+ // compilation error display
119
+ app.use(hotMiddleware)
120
+
121
+ // serve pure static assets
122
+ app.use('/static', express.static('./static'))
123
+
124
+ module.exports = app.listen(8300, function (err) {
125
+ if (err) {
126
+ console.log(err)
127
+ return
128
+ }
129
+ console.log('Listening at http://localhost:8300')
130
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.71-1",
3
+ "version": "3.3.72",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -3,7 +3,7 @@
3
3
  <app-base class="bg">
4
4
  <div class='flex'>
5
5
  <article>
6
- <route :comp="{name: 'login-app'}"></route>
6
+ <route :comp="{name: 'login'}"></route>
7
7
  </article>
8
8
  </div>
9
9
  </app-base>