swgg-wechat-all
this zero-dependency package will provide a swagger-client for wechat-all's web-apis, with a working web-demo
live web demo
git-branch : | master | beta | alpha |
---|---|---|---|
test-server-github : | |||
test-server-heroku : | |||
test-report : | |||
coverage : | |||
build-artifacts : |
table of contents
- cdn download
- documentation
- quickstart standalone app
- quickstart example.js
- extra screenshots
- package.json
- changelog of last 50 commits
- internal build script
- misc
cdn download
documentation
cli help
api doc
todo
- add hmac-authentication
- improve notify_url
- none
changelog for v2018.1.19
- npm publish 2018.1.19
- fix failed semanticRequired validation-error in ui
- rename package-name swgg-wechat -> swgg-wechat-all
- remove unused datatable link
- none
this package requires
- darwin or linux os
quickstart standalone app
to run this example, follow the instruction in the script below
# example.sh # this shell script will download and run a web-demo of swgg-wechat-all as a standalone app # 1. download standalone app curl -O https://kaizhu256.github.io/node-swgg-wechat-all/build..beta..travis-ci.org/app/assets.app.js# 2. run standalone app PORT=8081 node ./assets.app.js# 3. open a browser to http://127.0.0.1:8081 and play with the web-demo # 4. edit file assets.app.js to suit your needs
output from browser
output from shell
quickstart example.js
to run this example, follow the instruction in the script below
/*example.js this script will run a web-demo of swgg-wechat-all instruction 1. save this script as example.js 2. run the shell command: $ npm install swgg-wechat-all && PORT=8081 node example.js 3. open a browser to http://127.0.0.1:8081 and play with the web-demo 4. edit this script to suit your needs*/ /* istanbul instrument in package swgg_wechat_all *//*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 100, node: true, nomen: true, regexp: true, stupid: true*/ { 'use strict'; var local; // run shared js-env code - init-before { // init local local = {}; // init modeJs localmodeJs = { try return typeof navigatoruserAgent === 'string' && typeof document === 'object' && typeof XMLHttpRequestprototypeopen === 'function' && 'browser'; catch errorCaughtBrowser return moduleexports && typeof processversionsnode === 'string' && typeof createServer === 'function' && 'node'; }; // init global localglobal = localmodeJs === 'browser' ? window : global; // init utility2_rollup local = localglobalutility2_rollup || localmodeJs === 'browser' ? localglobalutility2_swgg_wechat_all : ; // init exports localgloballocal = local; // init assets localassetsDict'/assets.index.template.html' = localassetsDict'/assets.swgg.html'; }; };
output from browser
output from shell
extra screenshots
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.buildCi.browser.%252Ftmp%252Fbuild%252Fapidoc.html.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.buildCi.browser.%252Ftmp%252Fbuild%252Fcoverage.lib.html.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.buildCi.browser.%252Ftmp%252Fbuild%252Ftest-report.html.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.deployGithub.browser.%252Fnode-swgg-wechat-all%252Fbuild%252Fapp%252Fassets.swgg.html.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.deployGithub.browser.%252Fnode-swgg-wechat-all%252Fbuild%252Fapp.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.deployGithubTest.browser.%252Fnode-swgg-wechat-all%252Fbuild%252Fapp.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.deployHeroku.browser.%252Fassets.swgg.html.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.deployHeroku.browser.%252F.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.deployHerokuTest.browser.%252F.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.npmTest.browser.%252F.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.testExampleJs.browser.%252F.png
-
https://kaizhu256.github.io/node-swgg-wechat-all/build/screenshot.testExampleSh.browser.%252F.png
package.json
changelog of last 50 commits
internal build script
- build_ci.sh
# build_ci.sh # this shell script will run the build for this package # run shBuildCi eval $(utility2 source)shBuildCi
misc
- this package was created with utility2