Showing
13 changed files
with
9 additions
and
25 deletions
@@ -125,12 +125,6 @@ body { | @@ -125,12 +125,6 @@ body { | ||
125 | transition: width .1s ease-in-out; | 125 | transition: width .1s ease-in-out; |
126 | } | 126 | } |
127 | 127 | ||
128 | -.ivu-table { | ||
129 | - table { | ||
130 | - } | ||
131 | -} | ||
132 | - | ||
133 | - | ||
134 | .layout-logo-left { | 128 | .layout-logo-left { |
135 | width: 90%; | 129 | width: 90%; |
136 | height: 30px; | 130 | height: 30px; |
1 | const _ = require('lodash'); | 1 | const _ = require('lodash'); |
2 | -const Context = require('./context'); | 2 | +const Context = require('../framework/context'); |
3 | const rp = require('request-promise'); | 3 | const rp = require('request-promise'); |
4 | const request = require('request'); | 4 | const request = require('request'); |
5 | 5 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 'use strict'; | 6 | 'use strict'; |
7 | 7 | ||
8 | -const Context = require('../common/context'); | 8 | +const Context = require('../framework/context'); |
9 | const FileService = require('../service/file-service'); | 9 | const FileService = require('../service/file-service'); |
10 | const Api = require('../common/api'); | 10 | const Api = require('../common/api'); |
11 | const apiDomain = require('../common/api-domain'); | 11 | const apiDomain = require('../common/api-domain'); |
@@ -9,8 +9,7 @@ | @@ -9,8 +9,7 @@ | ||
9 | const Express = require('express'); | 9 | const Express = require('express'); |
10 | const UserController = require('./user-controller'); | 10 | const UserController = require('./user-controller'); |
11 | const FileController = require('./file-controller'); | 11 | const FileController = require('./file-controller'); |
12 | -const OutputController = require('./output-controller'); | ||
13 | -const middleware = require('../common/middleware'); | 12 | +const middleware = require('../framework/middleware'); |
14 | const multipart = require('connect-multiparty'); | 13 | const multipart = require('connect-multiparty'); |
15 | const multipartMiddleware = multipart(); | 14 | const multipartMiddleware = multipart(); |
16 | 15 | ||
@@ -20,7 +19,5 @@ router.post('/login', middleware(UserController, 'login')); | @@ -20,7 +19,5 @@ router.post('/login', middleware(UserController, 'login')); | ||
20 | router.post('/logout', middleware(UserController, 'logout')); | 19 | router.post('/logout', middleware(UserController, 'logout')); |
21 | router.post('/upload/image', multipartMiddleware, middleware(FileController, 'uploadImage')); | 20 | router.post('/upload/image', multipartMiddleware, middleware(FileController, 'uploadImage')); |
22 | 21 | ||
23 | -// router.get('/output/productList', middleware(OutputController, 'productList')); | ||
24 | - | ||
25 | 22 | ||
26 | module.exports = router; | 23 | module.exports = router; |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 'use strict'; | 6 | 'use strict'; |
7 | 7 | ||
8 | -const Context = require('../common/context'); | 8 | +const Context = require('../framework/context'); |
9 | const UserService = require('../service/user-service'); | 9 | const UserService = require('../service/user-service'); |
10 | const _ = require('lodash'); | 10 | const _ = require('lodash'); |
11 | 11 |
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | * @date: 2017/04/13 | 4 | * @date: 2017/04/13 |
5 | */ | 5 | */ |
6 | 6 | ||
7 | -const Context = require('./context'); | 7 | +const Context = require('../framework/context'); |
8 | 8 | ||
9 | module.exports = (Type, action) => { | 9 | module.exports = (Type, action) => { |
10 | return (req, res, next) => { | 10 | return (req, res, next) => { |
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | * @date: 2017/04/13 | 4 | * @date: 2017/04/13 |
5 | */ | 5 | */ |
6 | const _ = require('lodash'); | 6 | const _ = require('lodash'); |
7 | -const util = require('../common/util'); | 7 | +const util = require('../framework/util'); |
8 | 8 | ||
9 | module.exports = (req, res, next) => { | 9 | module.exports = (req, res, next) => { |
10 | let yoho = { | 10 | let yoho = { |
@@ -5,8 +5,7 @@ | @@ -5,8 +5,7 @@ | ||
5 | 'use strict'; | 5 | 'use strict'; |
6 | 6 | ||
7 | const _ = require('lodash'); | 7 | const _ = require('lodash'); |
8 | -const md5 = require('yoho-md5'); | ||
9 | -const Context = require('../common/context'); | 8 | +const Context = require('../framework/context'); |
10 | const rp = require('request-promise'); | 9 | const rp = require('request-promise'); |
11 | const Api = require('../common/api'); | 10 | const Api = require('../common/api'); |
12 | const apiDomain = global.yoho.apiDomain; | 11 | const apiDomain = global.yoho.apiDomain; |
-
Please register or login to post a comment