Skip to content

Commit

Permalink
feat 删除view配置和home模块
Browse files Browse the repository at this point in the history
  • Loading branch information
tumobi committed Oct 1, 2017
1 parent 3e0b8bb commit 446b4ce
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 189 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"think-model-mysql": "^1.0.0",
"think-session": "^1.0.0",
"think-session-file": "^1.0.5",
"think-view": "^1.0.0",
"think-view-nunjucks": "^1.0.1",
"thinkjs": "^3.0.0"
},
"devDependencies": {
Expand Down
17 changes: 0 additions & 17 deletions src/common/config/adapter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const fileCache = require('think-cache-file');
const nunjucks = require('think-view-nunjucks');
const fileSession = require('think-session-file');
const mysql = require('think-model-mysql');
const {Console, File, DateFile} = require('think-logger3');
Expand Down Expand Up @@ -66,22 +65,6 @@ exports.session = {
}
};

/**
* view adapter config
* @type {Object}
*/
exports.view = {
type: 'nunjucks',
common: {
viewPath: path.join(think.ROOT_PATH, 'view'),
sep: '_',
extname: '.html'
},
nunjucks: {
handle: nunjucks
}
};

/**
* logger adapter config
* @type {Object}
Expand Down
2 changes: 0 additions & 2 deletions src/common/config/extend.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const view = require('think-view');
const model = require('think-model');
const cache = require('think-cache');
const session = require('think-session');

module.exports = [
view, // make application support view
model(think.app),
cache,
session
Expand Down
4 changes: 0 additions & 4 deletions src/home/config/config.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/home/controller/base.js

This file was deleted.

7 changes: 0 additions & 7 deletions src/home/controller/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/home/logic/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/home/model/index.js

This file was deleted.

48 changes: 0 additions & 48 deletions view/admin/index_index.html

This file was deleted.

48 changes: 0 additions & 48 deletions view/api/index_index.html

This file was deleted.

48 changes: 0 additions & 48 deletions view/index_index.html

This file was deleted.

0 comments on commit 446b4ce

Please sign in to comment.