forked from cnodejs/nodeclub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
1,391 additions
and
947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
config.js | ||
node_modules | ||
.naeindex | ||
public/user_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public/user_data/* | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
n.n.n / 2012-03-04 | ||
================== | ||
|
||
* ensure IncomingForm.UPLOAD_DIR | ||
* ensure upload image dir exists | ||
* fixed csrf bug in mark message read | ||
* remove customHost | ||
* add .naeignore files | ||
* * merge cnodeclub to nodeclub; * add more settings for custom site; * fixed upload.js not worked bug; | ||
* Merge pull request #4 from dead-horse/master | ||
* Merge pull request #11 from thebrecht/master | ||
* 话题回复数纳入二级回复,样式调整 | ||
* 支持table,邮件提醒 | ||
* 加入亂數產生新密碼 | ||
* fix style | ||
* bugs fixed | ||
* Merge pull request #3 from LeToNode/master | ||
* Merge pull request #6 from ericzhang-cn/master | ||
* markdown语法粗体应为两个星号,原描述有误 | ||
* Merge pull request #2 from roymax/master | ||
* change to async | ||
* change to async | ||
* Update README.md | ||
* 修复`abc+label@gmail.com`格式的注册邮箱不能成功激活的问题 | ||
* commit | ||
* project init | ||
* first commit | ||
|
||
n.n.n / 2012-03-04 | ||
================== | ||
|
||
* ensure IncomingForm.UPLOAD_DIR | ||
* ensure upload image dir exists | ||
* fixed csrf bug in mark message read | ||
* remove customHost | ||
* add .naeignore files | ||
* * merge cnodeclub to nodeclub; * add more settings for custom site; * fixed upload.js not worked bug; | ||
* Merge pull request #4 from dead-horse/master | ||
* Merge pull request #11 from thebrecht/master | ||
* 话题回复数纳入二级回复,样式调整 | ||
* 支持table,邮件提醒 | ||
* 加入亂數產生新密碼 | ||
* fix style | ||
* bugs fixed | ||
* Merge pull request #3 from LeToNode/master | ||
* Merge pull request #6 from ericzhang-cn/master | ||
* markdown语法粗体应为两个星号,原描述有误 | ||
* Merge pull request #2 from roymax/master | ||
* change to async | ||
* change to async | ||
* Update README.md | ||
* 修复`abc+label@gmail.com`格式的注册邮箱不能成功激活的问题 | ||
* commit | ||
* project init | ||
* first commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,67 @@ | ||
##Node Club | ||
|
||
###### 介绍 | ||
Node Club 是用 **Node.js** 和 **MongoDb** 开发的新型社区软件,界面优雅,功能丰富,小巧迅速,已在Node.js 中文技术社区 [CNode](http://cnodejs.org) 得到应用,但你完全可以用它搭建自己的社区。 | ||
|
||
###### 安装部署 | ||
// install node npm mongodb | ||
// run mongod | ||
cd nodeclub | ||
npm install ./ | ||
cp config.default.js config.js | ||
// modify the config file as yours | ||
node app.js | ||
# nodeclub | ||
|
||
基于nodejs的社区系统 | ||
|
||
## 介绍 | ||
|
||
Node Club 是用 **Node.js** 和 **MongoDb** 开发的新型社区软件,界面优雅,功能丰富,小巧迅速, | ||
已在Node.js 中文技术社区 [CNode](http://cnodejs.org) 得到应用,但你完全可以用它搭建自己的社区。 | ||
|
||
## 安装部署 | ||
|
||
``` | ||
// install node npm mongodb | ||
// run mongod | ||
cd nodeclub | ||
npm install ./ | ||
cp config.default.js config.js | ||
// modify the config file as yours | ||
node app.js | ||
``` | ||
|
||
###### 其它 | ||
## 其它 | ||
|
||
小量修改了两个依赖模块:node-markdown,express | ||
|
||
1.node-markdown/lib/markdown.js allowedTags 添加 `embed` 标签以支持 flash 视频,allowedAttributes 添加: | ||
|
||
embed:'src|quality|width|height|align|allowScriptAccess|allowFullScreen|mode|type' | ||
2.express/node_modules/connect/lib/middleware/csrf.js 添加: | ||
* node-markdown/lib/markdown.js | ||
|
||
allowedTags 添加: | ||
|
||
``` | ||
embed //支持 flash 视频 | ||
table|thead|tbody|tr|td|th|caption //支持表格 | ||
``` | ||
|
||
if (req.xhr === true) return next(); | ||
if (req.body.user_action && req.body.user_action == 'upload_image') return next(); | ||
|
||
allowedAttributes 添加: | ||
|
||
``` | ||
embed:'src|quality|width|height|align|allowScriptAccess|allowFullScreen|mode|type' | ||
table: 'class' | ||
``` | ||
|
||
* express/node_modules/connect/lib/middleware/csrf.js 添加: | ||
|
||
``` | ||
if (req.body && req.body.user_action === 'upload_image') return next(); | ||
``` | ||
|
||
## 关于pull request | ||
|
||
从现在开始,所有提交都要严格遵循[代码规范](https://github.com/windyrobin/iFrame/blob/master/style.md)。 | ||
|
||
## Authors | ||
Below is the output from git-summary. | ||
|
||
``` | ||
project: nodeclub | ||
commits: 29 | ||
files : 240 | ||
authors: | ||
13 fengmk2 44.8% | ||
9 muyuan 31.0% | ||
3 dead-horse 10.3% | ||
1 LeToNode 3.4% | ||
1 roymax 3.4% | ||
1 thebrecht 3.4% | ||
1 张洋 3.4% | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.