Extract config.js from common.js to make client setting file clean and also make upgrade easier

This commit is contained in:
Wu Cheng-Han 2016-10-10 16:25:51 +08:00
parent 917537ddbf
commit bf4c6d021c
9 changed files with 21 additions and 17 deletions

View file

@ -83,10 +83,10 @@ There are some configs you need to change in the files below
```
./config.json --- for server settings
./public/js/common.js --- for client settings
./public/js/config.js --- for client settings
```
Client settings `common.js`
Client settings `config.js`
---
| variables | example values | description |
@ -148,7 +148,7 @@ Third-party integration api key settings
| ------- | --------- | ----------- |
| facebook, twitter, github, gitlab, dropbox, google | `config.json` | for signin |
| imgur | `config.json` | for image upload |
| google drive, dropbox | `public/js/common.js` | for export and import |
| google drive, dropbox | `public/js/config.js` | for export and import |
Third-party integration oauth callback urls
---