17SALSA UCHome App
- View UCApp on GitHub - https://github.com/zixia/ucapp
- View 17salsa on Android Market
- View 17salsa on Apple Store
See: https://appadvice.com/app/17salsa/1019231034
- JSCS: preset to google
- JSHint
- vim:
- pathogen
- syntastic vim-js-indent vim-sensible html5.vim
- color-theme distinguished
Reference: https://github.com/showdownjs/code-style
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards-compatible manner, and
- PATCH version when you make backwards-compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
Reference: http://semver.org/
- npm install -g ionic cordova gulp ios-deploy ios-sim
- cd app
- npm install
- bower install
- ionic resources
- ionic browser add crosswalk
- ionic config build
- ionic platform add ios android
- ionic hooks add
- ionic add ionic-service-push
- ionic build ios android
- ionic serve --lab
- Inspector: Guide to Remote Debugging on iOS & Android
- Console Log:
ionic run android --livereload --consolelogs --serverlogs
curl -u token https://17salsa.com/api/v2/feed
### API related HTTP header
* ERROR CODE
* X-UCAPP-CLIENT-VERSION
* X-UCAPP-SERVER-VERSION
* X-UCAPP-MESSAGE
common params:
* before/:date
* after/:date
* limit/:limit
/api/v2/auth
POST
/login
{username: $username, password: $password}
/logout
/api/v2/user
GET
/me - current user
/:id - {name, nick, sex, avatar, location, ...}
/:id/detail - {... ...}
/api/v2/event
GET
/ - lastest event id list
/:id - {...}
/:id/detail - {... ...}
/api/v2/message
GET
/ {uid, date}
/:uid - { {date,msg}, {}, ... }
POST
/:uid - {msg}
/api/v2/feed
/ - [ {...} ]
/api/v2/reply
/api/v2/like
/api/v2/contact
/api/v2/batch
POST
[
{
"method": "POST",
"path": "/1.1/classes/Post",
"body": {
xx: 'xx',
xx: 'xx'
}
},
{
"method": "POST",
"path": "/1.1/classes/Post",
"body": {
"content": "",
"user": ""
}
}
]