Browse Source

Add some license

HonorLee 6 years ago
parent
commit
2af729e931

+ 5 - 0
config.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 global.Config = {
 
 //Server Setting | 服务器基本信息设置

+ 8 - 8
server.js

@@ -1,15 +1,15 @@
-/*
-* NodeJS-MVC 1.0
-* --------------------
-* HonorLee
-* http://honorlee.me
-* dev@honorlee.me
+/**
+ * NodeJS-MVC 1.0
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
  */
 
 /*
-* Worker Process
-  DO NOT CHANGE ANYTHING IN THIS FILE!
+ * Worker Process
+ * DO NOT CHANGE ANYTHING IN THIS FILE!
  */
+'use strict'
 global.ROOTPATH = __dirname;
 global.serverUID = (Math.ceil(Math.random()*61439+4096)).toString(16).toUpperCase();
 

+ 5 - 0
system/core.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 'use strict';
 global.Core  = {};
 global.CACHE = {};

+ 5 - 0
system/lib/core/handler.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 var Handler = {
     // getViewPath:function(path){
     //     var request = URL.parse(VIEWSPATH+path,true);

+ 5 - 0
system/lib/core/helper.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 module.exports = {
     __construct:function(){
         global.H = function(healperName){

+ 0 - 18
system/lib/core/hook.js

@@ -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;
-        }
-        
-    }
-}

+ 5 - 0
system/lib/core/image.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 'use strict'
 //TODO Rewrite
 var mime = require('mime-types');

+ 6 - 1
system/lib/core/logger.js

@@ -1,4 +1,9 @@
-/** Logger **/
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
+
 const colors = require('colors');
 
 var Logger = {

+ 5 - 0
system/lib/core/router.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 'use strict'
 CACHE.router = {};
 

+ 5 - 4
system/lib/core/session.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 'use strict';
 var Session = {
     set:function(key,value,sessionid){
@@ -52,8 +57,4 @@ module.exports = Session;
 
 var FileManager = {
 
-}
-
-var Session = {
-    
 }

+ 5 - 0
system/lib/core/static.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 'use strict'
 //TODO Rewrite
 var Static = {

+ 5 - 0
system/lib/core/system.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 'use stict'
 module.exports = {
 

+ 5 - 0
system/lib/core/view.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 var View = function(src,params){
     if(!src) return null;
 

+ 5 - 0
system/lib/helper/mysqldb.js

@@ -1,3 +1,8 @@
+/**
+ * @Author  HonorLee (deve@honorlee.me)
+ * @Version 1.0 (2018-05-04)
+ * @License MIT
+ */
 'use strict'
 module.exports={
     query:function(query,callback){