{"id":19210000,"url":"https://github.com/zencodex/cordova-plugin-zenweex","last_synced_at":"2026-04-29T14:36:10.895Z","repository":{"id":57209227,"uuid":"196813426","full_name":"zencodex/cordova-plugin-zenweex","owner":"zencodex","description":"A cordova plugin to inject weex","archived":false,"fork":false,"pushed_at":"2019-07-14T08:48:45.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-04T22:17:09.040Z","etag":null,"topics":["cordova","weex"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zencodex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-14T08:42:12.000Z","updated_at":"2024-02-20T03:28:07.000Z","dependencies_parsed_at":"2022-08-26T17:40:43.836Z","dependency_job_id":null,"html_url":"https://github.com/zencodex/cordova-plugin-zenweex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcordova-plugin-zenweex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcordova-plugin-zenweex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcordova-plugin-zenweex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zencodex%2Fcordova-plugin-zenweex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zencodex","download_url":"https://codeload.github.com/zencodex/cordova-plugin-zenweex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240282326,"owners_count":19776656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova","weex"],"created_at":"2024-11-09T13:33:54.382Z","updated_at":"2026-04-29T14:36:05.858Z","avatar_url":"https://github.com/zencodex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Contact me\n\n禅师微信号: zencodex，可以聊(撩)\n\n\u003e remove all native code, just install cordova plugin js-module. if you want native code, please checkout branch has-native. I think use native code in main project is more convenient.\n\n## Install plugin\n\n### For Cordova Project\n\n    cordova plugin add cordova-plugin-zenweex\n\n### For Ionic Capacitor Project\n\n    npm install cordova-plugin-zenweex\n    npx cap sync\n\n## How to use\n\n```js\n// navigator is a object which used by capacitor\n// so don't use navigator as variable\n// var navigator = weex.requireModule('navigator');   // TOO BAD\nvar router = weex.requireModule('navigator');         // It's OK\n\n// .push wrapped in ZenWeex.js\n// parameters =\u003e \n//   url: weex 加载的地址，如果app安装包里的资源，可以使用 file:///\n//   orientation: landscape or portrait, default is portrait\n//   animated: true or false, default is true\n//   args: json object arguments passed to weex page, called by weex.config.args \n\nrouter.push({\n    url: 'http://editor.weex.io/compiled/7bac45e9ed54b54bf9b42411183fe124/bundle.weex.js', \n    orientation:\"landscape\", \n    args:{p1: 1 , p2: 2}\n});\n```\n\n## live debug (live reload) for capacitor project\n\n`vim capacitor.config.json`，change server url to yours,\nthe server maybe run by `npm run serve` \n\n```json\n{\n  \"appId\": \"com.zcomposer.appcapt\",\n  \"appName\": \"AppCapt\",\n  \"bundledWebRuntime\": false,\n  \"server\": {\n    \"url\": \"http://192.168.31.100:8080/\"\n  },\n  \"webDir\": \"www\",\n  \"ios\": {\n    \"cordovaSwiftVersion\": \"4.2\"\n  }\n}\n```\n\n\n## Knowledges\n\n- [cordova plugin developement tutorial](https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/)\n- [plugin.xml reference specification](https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html)\n- [weex guide](https://weex.apache.org/guide/introduction.html)\n- [Ionic Capacitor](https://capacitor.ionicframework.com/docs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzencodex%2Fcordova-plugin-zenweex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzencodex%2Fcordova-plugin-zenweex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzencodex%2Fcordova-plugin-zenweex/lists"}