This repository was archived by the owner on Dec 30, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +11
-5
lines changed
Expand file tree Collapse file tree 6 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ function convertUsers(UidArray, mode) {
8585 return then ( function ( cont ) {
8686 var result = [ ] ;
8787 UidArray = toArray ( UidArray ) ;
88+ removeItem ( UidArray , null ) ;
8889 if ( mode === 'Uid' ) {
8990 each ( UidArray , function ( x ) {
9091 result . push ( convertUserID ( x ) ) ;
Original file line number Diff line number Diff line change @@ -8,10 +8,13 @@ var fs = require('fs'),
88 http = require ( 'http' ) ,
99 domain = require ( 'domain' ) ,
1010 serverDm = domain . create ( ) ,
11- processPath = path . dirname ( process . argv [ 1 ] ) ;
11+ processPath = path . dirname ( process . argv [ 1 ] ) ,
12+ conf = require ( './config/config' ) ; // 注册rrestjs配置文件
1213
1314global . jsGen = { } ; // 注册全局变量jsGen
14- module . exports . conf = require ( './config/config' ) ; // 注册rrestjs配置文件
15+
16+ if ( process . env . NODE_ENV ) conf . staticFolder = '/static/' + process . env . NODE_ENV ;
17+ module . exports . conf = conf ;
1518
1619serverDm . on ( 'error' , function ( error ) {
1720 delete error . domain ;
Original file line number Diff line number Diff line change 11{
22 "name" : " jsGen" ,
3- "version" : " 0.8.0 " ,
3+ "version" : " 0.8.1 " ,
44 "main" : " index.html" ,
55 "dependencies" : {
66 "angular" : " >=1.2.0" ,
Original file line number Diff line number Diff line change 55 "url" : " http://weibo.com/zensh"
66 },
77 "name" : " jsgen" ,
8- "version" : " 0.8.0 " ,
8+ "version" : " 0.8.1 " ,
99 "cdnHost" : " http://cdn.angularjs.cn" ,
1010 "description" : " " ,
1111 "keywords" : [
Original file line number Diff line number Diff line change 99 < meta name ="description " content ="{{global.metadesc}} ">
1010 < meta name ="keywords " content ="{{global.keywords}} ">
1111 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
12- < link rel ="shortcut icon " href ="/static/favicon.ico?v0.8.0 "/>
12+ < link rel ="shortcut icon " href ="/static/favicon.ico?v0.8.1 "/>
1313 <!-- build:css ../cdn/css/app.css -->
1414 < link rel ="stylesheet " href ="/static/css/app.css ">
1515 <!-- endbuild -->
2727 < li > < a href ="/tag/AngularJS "> AngularJS</ a > </ li >
2828 < li > < a href ="/tag/Node.js "> Node.js</ a > </ li >
2929 < li > < a href ="/tag/jsGen "> jsGen</ a > </ li >
30+ < li > < a href ="http://docs.angularjs.cn " target ="_blank "> ngDocs</ a > </ li >
3031 </ ul >
3132 < ul class ="right user " ng-if ="!global.isLogin ">
3233 < li > < a href ="/register "> < i class ="fa fa-user-md "> </ i > 注册</ a > </ li >
Original file line number Diff line number Diff line change 2727 < li > < a href ="/tag/AngularJS "> AngularJS</ a > </ li >
2828 < li > < a href ="/tag/Node.js "> Node.js</ a > </ li >
2929 < li > < a href ="/tag/jsGen "> jsGen</ a > </ li >
30+ < li > < a href ="http://docs.angularjs.cn " target ="_blank "> ngDocs</ a > </ li >
3031 </ ul >
3132 < ul class ="right user " ng-if ="!global.isLogin ">
3233 < li > < a href ="/register "> < i class ="fa fa-user-md "> </ i > 注册</ a > </ li >
You can’t perform that action at this time.
0 commit comments