@@ -1,3 +1,8 @@
+/**
+ * @Author HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
global.Config = {
//Server Setting | 服务器基本信息设置
@@ -1,15 +1,15 @@
-/*
-* NodeJS-MVC 1.0
+ * NodeJS-MVC 1.0
-* --------------------
-* HonorLee
-* http://honorlee.me
-* dev@honorlee.me
*/
/*
-* Worker Process
+ * Worker Process
- DO NOT CHANGE ANYTHING IN THIS FILE!
+ * DO NOT CHANGE ANYTHING IN THIS FILE!
+'use strict'
global.ROOTPATH = __dirname;
global.serverUID = (Math.ceil(Math.random()*61439+4096)).toString(16).toUpperCase();
'use strict';
global.Core = {};
global.CACHE = {};
var Handler = {
// getViewPath:function(path){
// var request = URL.parse(VIEWSPATH+path,true);
module.exports = {
__construct:function(){
global.H = function(healperName){
@@ -1,18 +0,0 @@
-'use strict'
-let HookList = {};
-
-module.exports = {
- Event:{
- Router:1
- },
- registerHook:function(hookName,callback){
- triggerHook:function(hookName,callback){
- if(!HookList.hasOwnProperty(hookName) || HookList[hookName].length==0){
- callback();
- return;
- }
-}
'use strict'
//TODO Rewrite
var mime = require('mime-types');
@@ -1,4 +1,9 @@
-/** Logger **/
+
const colors = require('colors');
var Logger = {
CACHE.router = {};
var Session = {
set:function(key,value,sessionid){
@@ -52,8 +57,4 @@ module.exports = Session;
var FileManager = {
-var Session = {
}
var Static = {
'use stict'
var View = function(src,params){
if(!src) return null;
module.exports={
query:function(query,callback){