1.0.3 • Published 11 months ago
nv-pg-jrow-creat-front-bwapi v1.0.3
nv-pg-jrow-creat-front-bwapi
- cli-tool
- USELESS , for test pgplugin-front-api for nvlang
install
- npm install nv-pg-jrow-creat-front-bwapi -g
usage
this will creat a index.js on current directory
Usage: nv_pg_jrow_creat_front_bwapi [options]
Options:
-n, --name window globalname
-r, --route route
-h, --help usage
example
#nv_pg_jrow_creat_front_bwapi -r splash -n my_bwapi
/* ----INSTALL ----
npm install nv-pg-jrow-front
cp node_modules/nv-pg-jrow-front/DIST/nvpgjrow-mini.js <your-cdn-directory>
rm -r node_modules/nv-pg-jrow-front #your no need it after copy
----INSTALL ----*/
/*----INCLUDE ----
// <script src="http://<your-domain>/nvpgjrow/dist.js">
// <script src="http://<your-domain>/splash/browser/bwapi.js">
----INCLUDE ----*/
window.my_bwapi_init = async (UTOKEN)=>{
const TBLNM = "splash";
const FIXED_URL = window.location.origin+"/splash/browser";
const JCFG_URL = window.location.origin+"/splash/browser/tbl_jcfg";
const JCFG = await nvpgjrow._fetch.get_rtrn_jbody(JCFG_URL,{utoken:UTOKEN});
////
let my_bwapi = nvpgjrow.creat(JCFG,FIXED_URL,UTOKEN,TBLNM);
return(my_bwapi)
}
LICENSE
- ISC
1.0.3
11 months ago