111 Commits

Author SHA1 Message Date
lichengyin
0245186611 feature: support trim for validate data 2016-01-21 19:34:25 +08:00
lichengyin
61a6f7a21a Fix: fix test error on Node.js 0.12 2016-01-20 12:07:43 +08:00
lichengyin
7e178563aa add think_adapter file, separate from think.js 2016-01-11 11:49:59 +08:00
lichengyin
dc214e473c add test cases 2016-01-09 13:09:47 +08:00
lichengyin
44034d18d9 add test cases 2016-01-09 11:32:44 +08:00
lichengyin
6e9e3bd504 refactoring think.validate 2016-01-06 17:22:41 +08:00
lichengyin
a008be8f8f optimise think.validate 2016-01-05 18:23:55 +08:00
lichengyin
de5151c34a change think.cli type to string 2016-01-05 16:26:31 +08:00
lichengyin
100a4dfc85 upgrade Babel to 6 2016-01-02 15:11:43 +08:00
lichengyin
31c209701f fix test error on windows 2015-12-29 16:24:00 +08:00
lichengyin
616723e102 optimise think.lookClass support sub controller 2015-12-29 14:52:23 +08:00
lichengyin
945ffb01c7 remove think.mode_mini 2015-12-29 10:59:26 +08:00
lichengyin
8f341c6de7 optimise think.route method 2015-12-28 18:44:10 +08:00
lichengyin
75555a7b72 replace thinkCache.MIDDLEWARE with thinkData.middleware 2015-12-25 18:23:48 +08:00
lichengyin
9be83eab65 move thinkCache.ALIAS to thinkData.alias, thinkCache.ALIAS_EXPORT to thinkData.export 2015-12-25 14:48:22 +08:00
lichengyin
d6c554ef74 optimize think.config 2015-12-24 20:40:47 +08:00
lichengyin
1a89b994f0 optimise think.hook, move hook data to thinkData.hook 2015-12-24 19:32:31 +08:00
lichengyin
edba52f7eb remove subdomain & check csrf middleware for default hook config 2015-12-23 18:19:10 +08:00
lichengyin
a8f6de4af0 add think.hook.exec & think.middleware.exec method 2015-12-23 09:09:00 +08:00
lichengyin
9f9b0532c8 http object not inherit EventEmitter 2015-12-22 16:25:12 +08:00
lichengyin
da4754508c fix windows test error 2015-12-17 15:50:11 +08:00
lichengyin
5f81d073fc fix windows test error 2015-12-17 15:48:13 +08:00
lichengyin
aba4bd4ef9 fix windows test error 2015-12-17 15:44:42 +08:00
lichengyin
a3142be6dc fix parseConfig error when has adapter config 2015-12-04 15:33:39 +08:00
lichengyin
ac7c8e76c1 fix required* error when validate, fix #210 2015-11-26 14:12:24 +08:00
lichengyin
fa923e6343 fix think.npm test error 2015-11-14 22:14:48 +08:00
lichengyin
14c14187d7 optimize get socket instance 2015-11-11 10:59:25 +08:00
lichengyin
aa84bfd48c rename middleware route to parse_route 2015-11-07 22:16:33 +08:00
lichengyin
28b7d59276 refactory adapter 2015-11-07 20:39:16 +08:00
lichengyin
ade5397a14 fix test case error 2015-11-06 09:25:35 +08:00
lichengyin
46bbf75204 add think.parallelLimit test case 2015-11-05 09:33:35 +08:00
lichengyin
2e48cd5f59 optimize cache config 2015-11-04 10:42:00 +08:00
lichengyin
a280aac849 add think.mergeConfig test case 2015-11-04 09:32:08 +08:00
lichengyin
89a8096fd0 fix hook test error 2015-11-02 13:25:28 +08:00
lichengyin
88ca914266 remove deny_ip middleware, use vender think-ip-filter middleware instead 2015-11-01 13:25:52 +08:00
lichengyin
db7c33db69 fix can not change cache type in think.cache method. fix #186 2015-11-01 08:06:28 +08:00
lichengyin
ce84658390 rename hook names 2015-10-28 17:02:35 +08:00
lichengyin
5a7bda18d0 add think.statusAction test case 2015-10-27 08:27:53 +08:00
lichengyin
c7d6399598 add session method to http 2015-10-20 18:23:32 +08:00
lichengyin
4c9e6afa79 remove auto get service instance when load service 2015-10-16 14:08:43 +08:00
lichengyin
a252cc436c inherit think.base when create simple adapter 2015-10-16 12:12:57 +08:00
lichengyin
b61268a18b use middleware to refactoring get http post payload, fix eslint errors 2015-10-16 09:48:31 +08:00
lichengyin
46792c718f move getModule, getController, getAction method to route middleware 2015-09-24 11:15:01 +08:00
lichengyin
53e72262cb add think.http.base class, clean think.base class. all class will be inherit from think.base 2015-09-22 12:05:10 +08:00
lichengyin
5e795111df fix get another model instance error in model class 2015-09-09 09:34:09 +08:00
lichengyin
14998bff45 set _module property when get model instance 2015-09-08 20:29:43 +08:00
welefen
e63edbd2b2 fix test error when app mode is normal 2015-08-25 19:13:54 +08:00
welefen
e4db397176 optimize parse http pathname 2015-08-13 15:16:30 +08:00
welefen
3e13db07d9 remove app_error hook, use think.statusAction instead 2015-08-07 15:34:59 +08:00
welefen
55e1316384 support object type for validator 2015-08-06 15:16:44 +08:00