├── tt
├── app.ttss
├── pages
│ ├── page1
│ │ ├── page1.ttss
│ │ ├── page1.json
│ │ ├── page1.ttml
│ │ └── page1.js
│ ├── component-page
│ │ ├── component-page.json
│ │ ├── component-page.ttss
│ │ ├── component-page.ttml
│ │ └── component-page.js
│ ├── logs
│ │ ├── logs.json
│ │ ├── logs.ttss
│ │ └── logs.ttml
│ └── index
│ │ ├── index.json
│ │ └── index.ttss
├── components
│ └── my-component
│ │ ├── my-component.ttml
│ │ ├── my-component.ttss
│ │ ├── my-component.json
│ │ └── my-component.js
├── app.json
├── util
│ └── util.js
├── app.js
└── project.config.json
├── taro
├── src
│ ├── app.less
│ ├── pages
│ │ └── index
│ │ │ ├── index.less
│ │ │ ├── subpage.jsx
│ │ │ └── index.jsx
│ ├── uma
│ │ ├── index.alipay.js
│ │ └── index.weapp.js
│ └── index.html
├── .gitignore
├── config
│ ├── dev.js
│ └── prod.js
├── .eslintrc
├── .editorconfig
├── .npmignore
└── project.config.json
├── mpvue
├── static
│ ├── .gitkeep
│ ├── tabs
│ │ ├── home.png
│ │ ├── orders.png
│ │ ├── home-active.png
│ │ └── orders-active.png
│ └── images
│ │ └── user.png
├── dist
│ └── wx
│ │ ├── common
│ │ └── vendor.wxss
│ │ ├── components
│ │ ├── slots.wxml
│ │ └── card.vue.wxml
│ │ ├── pages
│ │ ├── logs
│ │ │ ├── main.json
│ │ │ ├── main.wxml
│ │ │ ├── main.wxss
│ │ │ └── index.vue.wxml
│ │ └── index
│ │ │ ├── main.wxml
│ │ │ ├── index.vue.wxml
│ │ │ └── main.wxss
│ │ ├── static
│ │ ├── tabs
│ │ │ ├── home.png
│ │ │ ├── orders.png
│ │ │ ├── home-active.png
│ │ │ └── orders-active.png
│ │ └── images
│ │ │ └── user.png
│ │ ├── sitemap.json
│ │ ├── sitemap67.json
│ │ ├── sitemap94.json
│ │ ├── app.wxss
│ │ └── app.json
├── src
│ ├── pages
│ │ ├── logs
│ │ │ ├── main.json
│ │ │ └── main.js
│ │ └── index
│ │ │ └── main.js
│ ├── components
│ │ └── card.vue
│ ├── main.js
│ ├── utils
│ │ └── index.js
│ ├── app.json
│ └── App.vue
├── config
│ ├── prod.env.js
│ └── dev.env.js
├── .postcssrc.js
├── .editorconfig
├── project.swan.json
├── package.swan.json
├── index.html
├── build
│ ├── dev-client.js
│ ├── vue-loader.conf.js
│ └── build.js
├── .babelrc
├── README.md
└── project.config.json
├── wepy2
├── static
│ └── .gitignore
├── weapp
│ ├── pages
│ │ ├── index.wxss
│ │ ├── index.json
│ │ └── index.wxml
│ ├── static
│ │ └── .gitignore
│ ├── components
│ │ ├── panel.js
│ │ ├── group.wxss
│ │ ├── groupitem.wxss
│ │ ├── panel.json
│ │ ├── counter.json
│ │ ├── groupitem.json
│ │ ├── wepy-list.json
│ │ ├── wepy-list.wxss
│ │ ├── group.json
│ │ ├── panel.wxml
│ │ ├── groupitem.wxml
│ │ ├── counter.wxss
│ │ ├── counter.wxml
│ │ ├── group.wxml
│ │ ├── wepy-list.wxml
│ │ ├── panel.wxss
│ │ ├── groupitem.js
│ │ └── group.js
│ ├── $vendor
│ │ └── miniprogram-slide-view
│ │ │ └── miniprogram_dist
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ ├── sitemap.json
│ ├── app.wxss
│ ├── app.json
│ ├── common
│ │ └── eventHub.js
│ └── mixins
│ │ └── test.js
├── .prettierrc
├── .wepyignore
├── src
│ ├── common
│ │ └── eventHub.js
│ ├── mixins
│ │ └── test.js
│ └── components
│ │ ├── groupitem.wpy
│ │ ├── panel.wpy
│ │ ├── group.wpy
│ │ └── list.wpy
├── .editorconfig
├── project.config.json
├── wepy.config.js
└── package.json
├── alipay
├── pages
│ ├── page1
│ │ ├── page1.json
│ │ ├── page1.acss
│ │ ├── page1.axml
│ │ └── page1.js
│ └── page2
│ │ ├── page2.json
│ │ ├── page2.acss
│ │ ├── page2.axml
│ │ └── page2.js
├── snapshot.png
├── README.md
├── app.acss
├── .tea
│ ├── debug.json
│ ├── entryFiles-production
│ │ ├── config$.js
│ │ ├── importScripts$.js
│ │ ├── index$.web.js
│ │ └── index$.worker.js
│ ├── entryFiles-development
│ │ ├── config$.js
│ │ ├── importScripts$.js
│ │ ├── index$.web.js
│ │ └── index$.worker.js
│ └── layout.json
├── app.json
├── app.js
├── package-lock.json
└── package.json
├── wepy-one
├── .eslintignore
├── .prettierrc
├── src
│ ├── store
│ │ ├── types
│ │ │ ├── index.js
│ │ │ └── counter.js
│ │ ├── actions
│ │ │ ├── index.js
│ │ │ └── counter.js
│ │ ├── reducers
│ │ │ ├── index.js
│ │ │ └── counter.js
│ │ └── index.js
│ ├── mixins
│ │ └── test.js
│ ├── index.template.html
│ └── components
│ │ ├── groupitem.wpy
│ │ ├── panel.wpy
│ │ ├── group.wpy
│ │ └── list.wpy
├── .wepyignore
├── .gitignore
├── .editorconfig
├── .eslintrc.js
├── README.md
└── project.config.json
├── chameleon
├── .gitignore
├── src
│ ├── store
│ │ ├── getters.js
│ │ ├── actions.js
│ │ ├── mutations.js
│ │ ├── state.js
│ │ └── index.js
│ ├── assets
│ │ └── images
│ │ │ └── chameleon.png
│ ├── router.config.json
│ ├── app
│ │ └── app.cml
│ └── components
│ │ └── demo-com
│ │ └── demo-com.cml
├── mock
│ ├── template
│ │ └── index.php
│ └── api
│ │ └── index.js
├── package.json
└── chameleon.config.js
├── qq
├── pages
│ ├── component-page
│ │ ├── component-page.qml
│ │ ├── component-page.qss
│ │ ├── component-page.json
│ │ └── component-page.js
│ ├── page1
│ │ ├── page1.qss
│ │ ├── page1.json
│ │ ├── page1.qml
│ │ └── page1.js
│ ├── logs
│ │ ├── logs.json
│ │ ├── logs.qss
│ │ └── logs.qml
│ ├── index
│ │ ├── index.json
│ │ ├── index.qss
│ │ └── index.qml
│ └── rc-page
│ │ ├── rc-page.qss
│ │ ├── rc-page.json
│ │ └── rc-page.qml
├── package-lock.json
├── app.qss
├── package.json
├── app.json
├── utils
│ └── util.js
├── app.js
└── project.config.json
├── wx-plugin
├── plugin
│ ├── pages
│ │ ├── hello-page.json
│ │ ├── hello-page.wxss
│ │ ├── hello-page.wxml
│ │ └── hello-page.js
│ ├── components
│ │ ├── hello-component.json
│ │ ├── hello-component.wxss
│ │ ├── hello-component.wxml
│ │ └── hello-component.js
│ ├── umawrap.js
│ ├── plugin.json
│ └── index.js
├── doc
│ ├── example.jpeg
│ └── README.md
├── miniprogram
│ ├── pages
│ │ └── index
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── index.js
│ ├── app.js
│ ├── sitemap.json
│ └── app.json
├── README.md
└── project.config.json
├── kuaishou
├── pages
│ └── index
│ │ ├── index.css
│ │ ├── index.json
│ │ ├── index.ksml
│ │ └── index.js
├── app.css
├── app.json
└── app.js
├── megalo
├── .eslintignore
├── .env.development
├── .env.production
├── src
│ ├── native
│ │ └── tabbar
│ │ │ ├── home.png
│ │ │ ├── mine.png
│ │ │ ├── vue.png
│ │ │ ├── home_on.png
│ │ │ ├── mine_on.png
│ │ │ └── vue_on.png
│ ├── static
│ │ └── imgs
│ │ │ └── megalo_logo.png
│ ├── utils
│ │ └── uma.js
│ ├── components
│ │ └── HelloWorld.vue
│ ├── App.vue
│ └── main.js
├── .eslintrc.js
├── README.md
├── .gitignore
├── megalo.config.js
└── package.json
├── swan
├── pages
│ ├── page1
│ │ ├── page1.css
│ │ ├── page1.json
│ │ ├── page1.swan
│ │ └── page1.js
│ ├── logs
│ │ ├── logs.json
│ │ ├── logs.css
│ │ └── logs.swan
│ ├── rc-page
│ │ ├── rc-page.css
│ │ ├── rc-page.json
│ │ └── rc-page.swan
│ ├── component-page
│ │ ├── component-page.json
│ │ ├── component-page.css
│ │ ├── component-page.swan
│ │ └── component-page.js
│ └── index
│ │ ├── index.json
│ │ └── index.css
├── app.css
├── components
│ └── my-components
│ │ ├── my-component.css
│ │ ├── my-component.json
│ │ ├── my-component.swan
│ │ └── my-component.js
├── package-lock.json
├── .wx2swaninfo
├── sitemap.json
├── package.json
├── project.swan.json
├── .swan
│ └── editor.json
├── app.json
├── utils
│ └── util.js
└── project.config.json
├── wx
├── pages
│ ├── page1
│ │ ├── page1.wxss
│ │ ├── page1.json
│ │ ├── page1.wxml
│ │ └── page1.js
│ ├── component-page
│ │ ├── component-page.json
│ │ ├── component-page.wxss
│ │ ├── component-page.wxml
│ │ └── component-page.js
│ └── index
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ └── index.js
├── app.wxss
├── README.md
├── components
│ └── my-component
│ │ ├── my-component.wxss
│ │ ├── my-component.json
│ │ ├── my-component.wxml
│ │ └── my-component.js
├── sitemap.json
├── package.json
├── app.json
├── app.js
├── util
│ └── util.js
└── package-lock.json
├── uniapp
├── .gitignore
├── static
│ └── logo.png
├── main.js
├── package.json
├── pages.json
├── App.vue
└── package-lock.json
├── mpx
├── static
│ ├── ali
│ │ └── mini.project.json
│ └── wx
│ │ └── project.config.json
├── .gitignore
├── postcss.config.js
├── config
│ ├── mpxLoader.conf.js
│ ├── dll.conf.js
│ ├── index.js
│ └── user.conf.js
├── .editorconfig
├── src
│ ├── components
│ │ └── list.mpx
│ ├── pages
│ │ └── index.mpx
│ └── app.mpx
├── babel.config.json
├── build
│ ├── utils.js
│ ├── getWebpackConf.js
│ └── webpack.base.conf.js
├── .eslintrc.js
└── README.md
├── remaxjs
├── src
│ ├── app.css
│ ├── uma
│ │ ├── index.js
│ │ ├── index.alipay.js
│ │ └── index.wechat.js
│ ├── app.js
│ ├── app.config.js
│ └── pages
│ │ └── index
│ │ ├── index.module.css
│ │ └── index.js
├── .gitignore
├── remax.config.js
└── package.json
├── wx-game
├── game.json
├── audio
│ ├── bgm.mp3
│ ├── boom.mp3
│ └── bullet.mp3
├── images
│ ├── bg.jpg
│ ├── enemy.png
│ ├── hero.png
│ ├── Common.png
│ ├── bullet.png
│ ├── explosion1.png
│ ├── explosion2.png
│ ├── explosion3.png
│ ├── explosion4.png
│ ├── explosion5.png
│ ├── explosion6.png
│ ├── explosion7.png
│ ├── explosion8.png
│ ├── explosion9.png
│ ├── explosion10.png
│ ├── explosion11.png
│ ├── explosion12.png
│ ├── explosion13.png
│ ├── explosion14.png
│ ├── explosion15.png
│ ├── explosion16.png
│ ├── explosion17.png
│ ├── explosion18.png
│ └── explosion19.png
├── js
│ ├── utils
│ │ └── umtrack-wx-game
│ │ │ └── index.js
│ ├── libs
│ │ └── symbol.js
│ ├── player
│ │ └── bullet.js
│ ├── umstat.js
│ ├── runtime
│ │ ├── music.js
│ │ └── background.js
│ ├── base
│ │ ├── pool.js
│ │ └── sprite.js
│ ├── databus.js
│ └── npc
│ │ └── enemy.js
├── package-lock.json
├── package.json
└── game.js
├── rax
├── .vscode
│ └── extensions.json
├── .eslintignore
├── .prettierignore
├── .stylelintignore
├── .prettierrc.js
├── src
│ ├── components
│ │ └── Logo
│ │ │ ├── index.module.css
│ │ │ └── index.jsx
│ ├── app.js
│ ├── miniapp-native
│ │ └── app.js
│ ├── app.json
│ └── pages
│ │ └── Home
│ │ ├── sub.jsx
│ │ ├── index.module.css
│ │ └── index.jsx
├── .stylelintrc.js
├── abc.json
├── mini.project.json
├── build.json
├── .eslintrc.js
├── .gitignore
├── README.md
├── tsconfig.json
└── package.json
├── cocos2x
├── local
│ └── local.json
├── settings
│ ├── services.json
│ ├── builder.panel.json
│ ├── builder.json
│ └── project.json
├── template-banner.png
├── assets
│ ├── Texture
│ │ ├── HelloWorld.png
│ │ ├── singleColor.png
│ │ ├── singleColor.png.meta
│ │ └── HelloWorld.png.meta
│ ├── Scene
│ │ └── helloworld.fire.meta
│ ├── Script
│ │ ├── uma.js.meta
│ │ ├── HelloWorld.js.meta
│ │ └── HelloWorld.js
│ ├── migration
│ │ ├── use_v2.1-2.2.1_cc.Toggle_event.js.meta
│ │ └── use_v2.1-2.2.1_cc.Toggle_event.js
│ ├── Scene.meta
│ ├── Script.meta
│ ├── Texture.meta
│ └── migration.meta
├── template.json
├── project.json
├── jsconfig.json
├── README.md
├── tsconfig.json
└── .gitignore
├── .gitignore
└── .github
└── workflows
└── mirror.yml
/tt/app.ttss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/taro/src/app.less:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/mpvue/static/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/wepy2/static/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/alipay/pages/page1/page1.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/alipay/pages/page2/page2.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/taro/src/pages/index/index.less:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/wepy-one/.eslintignore:
--------------------------------------------------------------------------------
1 | dist/*
2 |
--------------------------------------------------------------------------------
/wepy2/weapp/pages/index.wxss:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/wepy2/weapp/static/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/taro/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 | node_modules
--------------------------------------------------------------------------------
/chameleon/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/qq/pages/component-page/component-page.qml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/qq/pages/component-page/component-page.qss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/wx-plugin/plugin/pages/hello-page.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/kuaishou/pages/index/index.css:
--------------------------------------------------------------------------------
1 | /**index.css**/
--------------------------------------------------------------------------------
/megalo/.eslintignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist-*
3 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/panel.js:
--------------------------------------------------------------------------------
1 | Component({})
--------------------------------------------------------------------------------
/qq/pages/page1/page1.qss:
--------------------------------------------------------------------------------
1 | /* pages/page1/page1.qss */
--------------------------------------------------------------------------------
/swan/pages/page1/page1.css:
--------------------------------------------------------------------------------
1 | /* pages/page1/page1.css */
--------------------------------------------------------------------------------
/tt/pages/page1/page1.ttss:
--------------------------------------------------------------------------------
1 | /* pages/page1/page1.ttss */
--------------------------------------------------------------------------------
/wx/pages/page1/page1.wxss:
--------------------------------------------------------------------------------
1 | /* pages/page1/page1.wxss */
--------------------------------------------------------------------------------
/chameleon/src/store/getters.js:
--------------------------------------------------------------------------------
1 | export default {
2 | }
3 |
--------------------------------------------------------------------------------
/megalo/.env.development:
--------------------------------------------------------------------------------
1 | VUE_APP_TEST=我是development模式的环境变量
--------------------------------------------------------------------------------
/megalo/.env.production:
--------------------------------------------------------------------------------
1 | VUE_APP_TEST=我是production模式的环境变量
--------------------------------------------------------------------------------
/qq/pages/logs/logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/wepy-one/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true
3 | }
4 |
--------------------------------------------------------------------------------
/wepy-one/src/store/types/index.js:
--------------------------------------------------------------------------------
1 | export * from './counter'
--------------------------------------------------------------------------------
/wepy2/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true
3 | }
4 |
--------------------------------------------------------------------------------
/chameleon/src/store/actions.js:
--------------------------------------------------------------------------------
1 |
2 | export default {
3 | }
4 |
--------------------------------------------------------------------------------
/qq/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/qq/pages/rc-page/rc-page.qss:
--------------------------------------------------------------------------------
1 | /* pages/rc-page/rc-page.qss */
--------------------------------------------------------------------------------
/swan/pages/logs/logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/swan/pages/rc-page/rc-page.css:
--------------------------------------------------------------------------------
1 | /* pages/rc-page/rc-page.css */
--------------------------------------------------------------------------------
/uniapp/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 | unpackage
4 |
--------------------------------------------------------------------------------
/wepy-one/src/store/actions/index.js:
--------------------------------------------------------------------------------
1 | export * from './counter'
--------------------------------------------------------------------------------
/chameleon/src/store/mutations.js:
--------------------------------------------------------------------------------
1 |
2 | export default {
3 | }
4 |
--------------------------------------------------------------------------------
/kuaishou/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/mpx/static/ali/mini.project.json:
--------------------------------------------------------------------------------
1 | {
2 | "component2": true
3 | }
--------------------------------------------------------------------------------
/qq/pages/rc-page/rc-page.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/remaxjs/src/app.css:
--------------------------------------------------------------------------------
1 | page {
2 | background-color: #282c34;
3 | }
--------------------------------------------------------------------------------
/swan/pages/rc-page/rc-page.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/mpvue/dist/wx/common/vendor.wxss:
--------------------------------------------------------------------------------
1 |
2 | .card {
3 | padding: 20rpx;
4 | }
--------------------------------------------------------------------------------
/remaxjs/src/uma/index.js:
--------------------------------------------------------------------------------
1 |
2 | export { default } from './index.wechat';
--------------------------------------------------------------------------------
/wx-game/game.json:
--------------------------------------------------------------------------------
1 | {
2 | "deviceOrientation": "portrait"
3 | }
4 |
--------------------------------------------------------------------------------
/wx-plugin/plugin/pages/hello-page.wxss:
--------------------------------------------------------------------------------
1 | /* plugin/pages/hello-page.wxss */
--------------------------------------------------------------------------------
/wx/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | button{
3 | margin: 20rpx;
4 | }
5 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/components/slots.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/qq/pages/component-page/component-page.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/swan/app.css:
--------------------------------------------------------------------------------
1 | /**app.css**/
2 | .container {
3 | margin: 20rpx;
4 | }
5 |
--------------------------------------------------------------------------------
/tt/pages/component-page/component-page.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/wepy2/weapp/components/group.wxss:
--------------------------------------------------------------------------------
1 |
2 | .group {}
3 |
4 |
--------------------------------------------------------------------------------
/wx/pages/component-page/component-page.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/mpvue/src/pages/logs/main.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "查看启动日志"
3 | }
4 |
--------------------------------------------------------------------------------
/remaxjs/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | yarn-error.log
4 | yarn.lock
5 |
--------------------------------------------------------------------------------
/swan/pages/component-page/component-page.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/wepy-one/.wepyignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | .DS_Store
4 | *.wpy___jb_tmp___
5 |
--------------------------------------------------------------------------------
/wepy2/.wepyignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | .DS_Store
4 | *.wpy___jb_tmp___
5 |
--------------------------------------------------------------------------------
/wx/README.md:
--------------------------------------------------------------------------------
1 | [友盟官网微信小程序集成文档](https://developer.umeng.com/docs/147615/detail/147619)
--------------------------------------------------------------------------------
/alipay/snapshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/alipay/snapshot.png
--------------------------------------------------------------------------------
/mpvue/config/prod.env.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | NODE_ENV: '"production"'
3 | }
4 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/pages/logs/main.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "查看启动日志"
3 | }
4 |
--------------------------------------------------------------------------------
/wepy-one/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | weapp
4 | .DS_Store
5 | .wepycache
6 |
--------------------------------------------------------------------------------
/alipay/README.md:
--------------------------------------------------------------------------------
1 | [友盟官网原生支付宝小程序集成帮助文档](https://developer.umeng.com/docs/147615/detail/147727)
--------------------------------------------------------------------------------
/chameleon/src/store/state.js:
--------------------------------------------------------------------------------
1 |
2 | const state = {
3 | }
4 |
5 | export default state
6 |
--------------------------------------------------------------------------------
/rax/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": ["iceworks-team.iceworks"]
3 | }
4 |
--------------------------------------------------------------------------------
/swan/components/my-components/my-component.css:
--------------------------------------------------------------------------------
1 | /* components/my-components/my-component.css */
--------------------------------------------------------------------------------
/swan/pages/component-page/component-page.css:
--------------------------------------------------------------------------------
1 | /* pages/component-page/component-page.css */
--------------------------------------------------------------------------------
/tt/components/my-component/my-component.ttml:
--------------------------------------------------------------------------------
1 |
2 |
3 | myComponent 测试页
4 |
--------------------------------------------------------------------------------
/tt/components/my-component/my-component.ttss:
--------------------------------------------------------------------------------
1 | /* components/my-component/my-component.ttss */
--------------------------------------------------------------------------------
/tt/pages/component-page/component-page.ttss:
--------------------------------------------------------------------------------
1 | /* pages/component-page/component-page.ttss */
--------------------------------------------------------------------------------
/wepy2/weapp/components/groupitem.wxss:
--------------------------------------------------------------------------------
1 |
2 | .groupitem {
3 | }
4 |
5 |
--------------------------------------------------------------------------------
/wx-game/audio/bgm.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/audio/bgm.mp3
--------------------------------------------------------------------------------
/wx-game/images/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/bg.jpg
--------------------------------------------------------------------------------
/wx/components/my-component/my-component.wxss:
--------------------------------------------------------------------------------
1 | /* components/my-component/my-component.wxss */
--------------------------------------------------------------------------------
/wx/pages/component-page/component-page.wxss:
--------------------------------------------------------------------------------
1 | /* pages/component-page/component-page.wxss */
--------------------------------------------------------------------------------
/alipay/app.acss:
--------------------------------------------------------------------------------
1 | page {
2 | flex: 1;
3 | display: flex;
4 | background: #f7f7f7;
5 | }
6 |
--------------------------------------------------------------------------------
/cocos2x/local/local.json:
--------------------------------------------------------------------------------
1 | {
2 | "last-edit": "2d2f792f-a40c-49bb-a189-ed176a246e49"
3 | }
4 |
--------------------------------------------------------------------------------
/uniapp/static/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/uniapp/static/logo.png
--------------------------------------------------------------------------------
/wepy2/weapp/components/panel.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wx-game/audio/boom.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/audio/boom.mp3
--------------------------------------------------------------------------------
/wx-game/audio/bullet.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/audio/bullet.mp3
--------------------------------------------------------------------------------
/wx-game/images/enemy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/enemy.png
--------------------------------------------------------------------------------
/wx-game/images/hero.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/hero.png
--------------------------------------------------------------------------------
/mpvue/static/tabs/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/static/tabs/home.png
--------------------------------------------------------------------------------
/tt/pages/logs/logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "查看启动日志",
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wepy2/weapp/components/counter.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wepy2/weapp/components/groupitem.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wepy2/weapp/components/wepy-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wx-game/images/Common.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/Common.png
--------------------------------------------------------------------------------
/wx-game/images/bullet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/bullet.png
--------------------------------------------------------------------------------
/wx-plugin/doc/example.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-plugin/doc/example.jpeg
--------------------------------------------------------------------------------
/cocos2x/settings/services.json:
--------------------------------------------------------------------------------
1 | {
2 | "game": {
3 | "name": "未知游戏",
4 | "appid": "UNKNOW"
5 | }
6 | }
--------------------------------------------------------------------------------
/cocos2x/template-banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/cocos2x/template-banner.png
--------------------------------------------------------------------------------
/mpvue/static/images/user.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/static/images/user.png
--------------------------------------------------------------------------------
/mpvue/static/tabs/orders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/static/tabs/orders.png
--------------------------------------------------------------------------------
/qq/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "qq",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1
5 | }
6 |
--------------------------------------------------------------------------------
/qq/pages/page1/page1.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "page1",
3 | "usingComponents": {
4 | }
5 | }
--------------------------------------------------------------------------------
/rax/.eslintignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | lib/
3 | dist/
4 | build/
5 | coverage/
6 | demo/
7 | es/
8 | .rax/
9 |
--------------------------------------------------------------------------------
/swan/components/my-components/my-component.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/tt/components/my-component/my-component.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wx-game/images/explosion1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion1.png
--------------------------------------------------------------------------------
/wx-game/images/explosion2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion2.png
--------------------------------------------------------------------------------
/wx-game/images/explosion3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion3.png
--------------------------------------------------------------------------------
/wx-game/images/explosion4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion4.png
--------------------------------------------------------------------------------
/wx-game/images/explosion5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion5.png
--------------------------------------------------------------------------------
/wx-game/images/explosion6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion6.png
--------------------------------------------------------------------------------
/wx-game/images/explosion7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion7.png
--------------------------------------------------------------------------------
/wx-game/images/explosion8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion8.png
--------------------------------------------------------------------------------
/wx-game/images/explosion9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion9.png
--------------------------------------------------------------------------------
/wx-plugin/plugin/components/hello-component.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wx/components/my-component/my-component.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/rax/.prettierignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | lib/
3 | dist/
4 | build/
5 | coverage/
6 | demo/
7 | es/
8 | .rax/
9 |
--------------------------------------------------------------------------------
/rax/.stylelintignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | lib/
3 | dist/
4 | build/
5 | coverage/
6 | demo/
7 | es/
8 | .rax/
9 |
--------------------------------------------------------------------------------
/swan/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "swan",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1
5 | }
6 |
--------------------------------------------------------------------------------
/wx-game/images/explosion10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion10.png
--------------------------------------------------------------------------------
/wx-game/images/explosion11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion11.png
--------------------------------------------------------------------------------
/wx-game/images/explosion12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion12.png
--------------------------------------------------------------------------------
/wx-game/images/explosion13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion13.png
--------------------------------------------------------------------------------
/wx-game/images/explosion14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion14.png
--------------------------------------------------------------------------------
/wx-game/images/explosion15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion15.png
--------------------------------------------------------------------------------
/wx-game/images/explosion16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion16.png
--------------------------------------------------------------------------------
/wx-game/images/explosion17.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion17.png
--------------------------------------------------------------------------------
/wx-game/images/explosion18.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion18.png
--------------------------------------------------------------------------------
/wx-game/images/explosion19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/wx-game/images/explosion19.png
--------------------------------------------------------------------------------
/megalo/src/native/tabbar/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/megalo/src/native/tabbar/home.png
--------------------------------------------------------------------------------
/megalo/src/native/tabbar/mine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/megalo/src/native/tabbar/mine.png
--------------------------------------------------------------------------------
/megalo/src/native/tabbar/vue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/megalo/src/native/tabbar/vue.png
--------------------------------------------------------------------------------
/mpvue/dist/wx/static/tabs/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/dist/wx/static/tabs/home.png
--------------------------------------------------------------------------------
/mpvue/static/tabs/home-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/static/tabs/home-active.png
--------------------------------------------------------------------------------
/megalo/src/native/tabbar/home_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/megalo/src/native/tabbar/home_on.png
--------------------------------------------------------------------------------
/megalo/src/native/tabbar/mine_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/megalo/src/native/tabbar/mine_on.png
--------------------------------------------------------------------------------
/megalo/src/native/tabbar/vue_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/megalo/src/native/tabbar/vue_on.png
--------------------------------------------------------------------------------
/mpvue/dist/wx/static/images/user.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/dist/wx/static/images/user.png
--------------------------------------------------------------------------------
/mpvue/dist/wx/static/tabs/orders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/dist/wx/static/tabs/orders.png
--------------------------------------------------------------------------------
/mpvue/static/tabs/orders-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/static/tabs/orders-active.png
--------------------------------------------------------------------------------
/mpx/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | npm-debug.log
4 | .idea/
5 | deploy/
6 | output/
7 | dist/
8 | .vscode/
9 |
--------------------------------------------------------------------------------
/cocos2x/assets/Texture/HelloWorld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/cocos2x/assets/Texture/HelloWorld.png
--------------------------------------------------------------------------------
/cocos2x/assets/Texture/singleColor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/cocos2x/assets/Texture/singleColor.png
--------------------------------------------------------------------------------
/megalo/src/static/imgs/megalo_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/megalo/src/static/imgs/megalo_logo.png
--------------------------------------------------------------------------------
/swan/.wx2swaninfo:
--------------------------------------------------------------------------------
1 | {
2 | "toolName": "wx2swan",
3 | "toolCliVersion": "1.2.20",
4 | "createTime": 1589531679670
5 | }
--------------------------------------------------------------------------------
/wx-plugin/plugin/pages/hello-page.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | This is a plugin page!
4 |
--------------------------------------------------------------------------------
/chameleon/src/assets/images/chameleon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/chameleon/src/assets/images/chameleon.png
--------------------------------------------------------------------------------
/mpvue/dist/wx/static/tabs/home-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/dist/wx/static/tabs/home-active.png
--------------------------------------------------------------------------------
/mpx/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: [
3 | require('autoprefixer')({ remove: false })
4 |
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/rax/.prettierrc.js:
--------------------------------------------------------------------------------
1 | const { getPrettierConfig } = require('@iceworks/spec');
2 |
3 | module.exports = getPrettierConfig('rax');
4 |
--------------------------------------------------------------------------------
/rax/src/components/Logo/index.module.css:
--------------------------------------------------------------------------------
1 | .logo {
2 | width: 200rpx;
3 | height: 180rpx;
4 | margin-bottom: 20rpx;
5 | }
6 |
--------------------------------------------------------------------------------
/remaxjs/src/app.js:
--------------------------------------------------------------------------------
1 | import '@/uma';
2 | import './app.css';
3 |
4 | const App = props => props.children;
5 | export default App;
6 |
--------------------------------------------------------------------------------
/wepy2/src/common/eventHub.js:
--------------------------------------------------------------------------------
1 | import wepy from '@wepy/core';
2 |
3 | let eventHub = new wepy();
4 |
5 | export default eventHub;
6 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/wepy-list.wxss:
--------------------------------------------------------------------------------
1 | .mylist:odd {
2 | color: red;
3 | }
4 | .mylist:even {
5 | color: green;
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/pages/index/main.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/pages/logs/main.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/static/tabs/orders-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umeng/mp-demos/HEAD/mpvue/dist/wx/static/tabs/orders-active.png
--------------------------------------------------------------------------------
/mpvue/src/pages/logs/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './index'
3 |
4 | const app = new Vue(App)
5 | app.$mount()
6 |
--------------------------------------------------------------------------------
/rax/.stylelintrc.js:
--------------------------------------------------------------------------------
1 | const { getStylelintConfig } = require('@iceworks/spec');
2 |
3 | module.exports = getStylelintConfig('rax');
4 |
--------------------------------------------------------------------------------
/rax/abc.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "rax",
3 | "builder": "@ali/builder-rax-v1",
4 | "info": {
5 | "raxVersion": "1.x"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/tt/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "my-component": "../../components/my-component/my-component"
4 | }
5 | }
--------------------------------------------------------------------------------
/tt/pages/page1/page1.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "my-component": "../../components/my-component/my-component"
4 | }
5 | }
--------------------------------------------------------------------------------
/wepy2/weapp/$vendor/miniprogram-slide-view/miniprogram_dist/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/wx/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "my-component": "../../components/my-component/my-component"
4 | }
5 | }
--------------------------------------------------------------------------------
/rax/mini.project.json:
--------------------------------------------------------------------------------
1 | {
2 | "miniprogramRoot": "build/miniapp",
3 | "scripts": {
4 | "beforeUpload": "npm run build"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/swan/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "my-component": "../../components/my-components/my-component"
4 | }
5 | }
--------------------------------------------------------------------------------
/alipay/pages/page1/page1.acss:
--------------------------------------------------------------------------------
1 | .page {
2 | width: 100%;
3 | padding: 10px 15px;
4 | }
5 |
6 | button {
7 | margin-bottom: 8px;
8 | }
9 |
--------------------------------------------------------------------------------
/alipay/pages/page2/page2.acss:
--------------------------------------------------------------------------------
1 | .page {
2 | width: 100%;
3 | padding: 10px 15px;
4 | }
5 |
6 | button {
7 | margin-bottom: 8px;
8 | }
9 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/group.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "groupitem": "./groupitem"
5 | }
6 | }
--------------------------------------------------------------------------------
/wx-plugin/miniprogram/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "hello-list": "plugin://hello-plugin/hello-component"
4 | }
5 | }
--------------------------------------------------------------------------------
/cocos2x/template.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TEMPLATES.helloworld.name",
3 | "desc": "TEMPLATES.helloworld.desc",
4 | "banner": "template-banner.png"
5 | }
--------------------------------------------------------------------------------
/mpx/config/mpxLoader.conf.js:
--------------------------------------------------------------------------------
1 | // mpx的loader配置在这里传入
2 | // 配置项文档:https://www.mpxjs.cn/api/compile.html#mpxwebpackplugin-loader
3 | module.exports = {}
4 |
--------------------------------------------------------------------------------
/rax/build.json:
--------------------------------------------------------------------------------
1 | {
2 | "targets": [
3 | "wechat-miniprogram"
4 | ],
5 | "plugins": [
6 | "@ali/build-plugin-rax-app-def"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/wx/pages/component-page/component-page.wxml:
--------------------------------------------------------------------------------
1 |
2 | pages/component-page/component-page.wxml
3 |
--------------------------------------------------------------------------------
/swan/pages/component-page/component-page.swan:
--------------------------------------------------------------------------------
1 |
2 | pages/component-page/component-page.wxml
3 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/panel.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Title
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/qq/pages/logs/logs.qss:
--------------------------------------------------------------------------------
1 | .log-list {
2 | display: flex;
3 | flex-direction: column;
4 | padding: 40rpx;
5 | }
6 | .log-item {
7 | margin: 10rpx;
8 | }
9 |
--------------------------------------------------------------------------------
/swan/pages/logs/logs.css:
--------------------------------------------------------------------------------
1 | .log-list {
2 | display: flex;
3 | flex-direction: column;
4 | padding: 40rpx;
5 | }
6 | .log-item {
7 | margin: 10rpx;
8 | }
9 |
--------------------------------------------------------------------------------
/taro/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {},
6 | mini: {},
7 | h5: {}
8 | }
9 |
--------------------------------------------------------------------------------
/alipay/.tea/debug.json:
--------------------------------------------------------------------------------
1 | {"configurations":{},"breakpoints":{"breakpointsEnabled":true,"breakpoints":{},"exceptionsBreakpoints":{}},"watchers":[],"storageVersion":"1.5.8"}
--------------------------------------------------------------------------------
/alipay/pages/page2/page2.axml:
--------------------------------------------------------------------------------
1 |
2 | New Pagem2
3 |
4 |
--------------------------------------------------------------------------------
/remaxjs/src/uma/index.alipay.js:
--------------------------------------------------------------------------------
1 | import uma from 'umtrack-alipay';
2 |
3 | uma.init({
4 | appKey: 'YOUR_APP_KEY',
5 | debug: true
6 | });
7 | export default uma;
--------------------------------------------------------------------------------
/taro/src/uma/index.alipay.js:
--------------------------------------------------------------------------------
1 | import uma from 'umtrack-alipay';
2 |
3 | uma.init({
4 | appKey: 'YOUR_APP_KEY',
5 | debug: true
6 | });
7 | export default uma;
--------------------------------------------------------------------------------
/wx-plugin/plugin/umawrap.js:
--------------------------------------------------------------------------------
1 | const uma = require('./uma');
2 | uma.init({
3 | appKey:'xxx',
4 | useOpenid:false,
5 | debug:true
6 | })
7 | module.exports = uma;
--------------------------------------------------------------------------------
/megalo/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true
5 | },
6 | 'extends': [
7 | '@megalo/standard'
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/mpvue/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | "postcss-mpvue-wxss": {}
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/rax/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const { getESLintConfig } = require('@iceworks/spec');
2 |
3 | // https://www.npmjs.com/package/@iceworks/spec
4 | module.exports = getESLintConfig('rax');
5 |
--------------------------------------------------------------------------------
/wepy-one/src/store/reducers/index.js:
--------------------------------------------------------------------------------
1 | import { combineReducers } from 'redux'
2 | import counter from './counter'
3 |
4 | export default combineReducers({
5 | counter
6 | })
--------------------------------------------------------------------------------
/wepy-one/src/store/types/counter.js:
--------------------------------------------------------------------------------
1 | export const INCREMENT = 'INCREMENT'
2 |
3 | export const DECREMENT = 'DECREMENT'
4 |
5 | export const ASYNC_INCREMENT = 'ASYNC_INCREMENT'
--------------------------------------------------------------------------------
/wx/pages/page1/page1.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "page1",
3 | "usingComponents": {
4 | "my-component": "../../components/my-component/my-component"
5 | }
6 | }
--------------------------------------------------------------------------------
/alipay/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/page1/page1",
4 | "pages/page2/page2"
5 | ],
6 | "window": {
7 | "defaultTitle": "My App"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/swan/pages/page1/page1.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "page1",
3 | "usingComponents": {
4 | "my-component": "../../components/my-components/my-component"
5 | }
6 | }
--------------------------------------------------------------------------------
/wx-plugin/plugin/components/hello-component.wxss:
--------------------------------------------------------------------------------
1 | /* plugin/components/hello-component.wxss */
2 | .container {
3 | margin: 1em;
4 | }
5 | .item {
6 | display: block;
7 | }
--------------------------------------------------------------------------------
/wx/components/my-component/my-component.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | components/my-component/my-component.wxml
4 |
5 |
--------------------------------------------------------------------------------
/mpvue/config/dev.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var prodEnv = require('./prod.env')
3 |
4 | module.exports = merge(prodEnv, {
5 | NODE_ENV: '"development"'
6 | })
7 |
--------------------------------------------------------------------------------
/wx-plugin/miniprogram/app.js:
--------------------------------------------------------------------------------
1 | const plugin = requirePlugin('hello-plugin')
2 | plugin.init({onAppShow:wx.onAppShow,onAppHide:wx.onAppHide});
3 | App({
4 | onLaunch() {
5 | }
6 | })
7 |
--------------------------------------------------------------------------------
/cocos2x/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "engine": "cocos2d-html5",
3 | "packages": "packages",
4 | "version": "2.4.1",
5 | "id": "d11767dd-3ac1-4ee0-9f56-2b6848148d67",
6 | "isNew": false
7 | }
--------------------------------------------------------------------------------
/chameleon/mock/template/index.php:
--------------------------------------------------------------------------------
1 | "0",
4 | "errmsg"=> "",
5 | "pageData"=> array(
6 | "name"=>"chameleon",
7 | "age" => 10
8 | )
9 | );
--------------------------------------------------------------------------------
/wx/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-production/config$.js:
--------------------------------------------------------------------------------
1 |
2 | const g = typeof global !== 'undefined' ? global : self;
3 | g.appXAppJson = {
4 | "app": {
5 | "$homepage": "pages/page1/page1"
6 | }
7 | };
8 |
--------------------------------------------------------------------------------
/swan/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/tt/pages/component-page/component-page.ttml:
--------------------------------------------------------------------------------
1 |
2 | component 测试页
3 |
4 |
--------------------------------------------------------------------------------
/tt/pages/logs/logs.ttss:
--------------------------------------------------------------------------------
1 | /* pages/logs/logs.ttss */
2 | .log-list {
3 | display: flex;
4 | flex-direction: column;
5 | padding: 40rpx;
6 | }
7 | .log-item {
8 | margin: 10rpx;
9 | }
10 |
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-development/config$.js:
--------------------------------------------------------------------------------
1 |
2 | const g = typeof global !== 'undefined' ? global : self;
3 | g.appXAppJson = {
4 | "app": {
5 | "$homepage": "pages/page1/page1"
6 | }
7 | };
8 |
--------------------------------------------------------------------------------
/rax/src/app.js:
--------------------------------------------------------------------------------
1 | import { runApp } from 'rax-app';
2 |
3 | runApp({
4 | app: {
5 | onLaunch() {
6 | },
7 | onShow() {
8 | },
9 | onHide() {
10 | },
11 | },
12 | });
13 |
--------------------------------------------------------------------------------
/wepy2/weapp/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/cocos2x/assets/Scene/helloworld.fire.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.2.8",
3 | "uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49",
4 | "asyncLoadAssets": false,
5 | "autoReleaseAssets": false,
6 | "subMetas": {}
7 | }
--------------------------------------------------------------------------------
/mpvue/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/mpvue/dist/wx/sitemap67.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/mpvue/dist/wx/sitemap94.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/mpx/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/wepy2/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/components/card.vue.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{text}}
5 |
6 |
7 |
--------------------------------------------------------------------------------
/taro/src/uma/index.weapp.js:
--------------------------------------------------------------------------------
1 | import uma from 'umtrack-wx';
2 |
3 | uma.init({
4 | appKey: 'YOUR_APP_KEY',
5 | useOpenid: false,
6 | autoGetOpenid: false,
7 | debug: true
8 | });
9 | export default uma;
--------------------------------------------------------------------------------
/wepy-one/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/wx-plugin/miniprogram/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-development/importScripts$.js:
--------------------------------------------------------------------------------
1 | if(!self.Map || !self.Set || !self.Symbol) {
2 | importScripts('https://gw.alipayobjects.com/as/g/appx_release/deps/1.0.3/es6-set-map-symbol.js');
3 | }
4 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/pages/logs/main.wxss:
--------------------------------------------------------------------------------
1 | @import "../../common/vendor.wxss";
2 |
3 | .log-list {
4 | display: flex;
5 | flex-direction: column;
6 | padding: 40rpx;
7 | }
8 | .log-item {
9 | margin: 10rpx;
10 | }
--------------------------------------------------------------------------------
/remaxjs/src/uma/index.wechat.js:
--------------------------------------------------------------------------------
1 | import uma from 'umtrack-wx';
2 |
3 | uma.init({
4 | appKey: 'YOUR_APP_KEY',
5 | useOpenid: false,
6 | autoGetOpenid: false,
7 | debug: true
8 | });
9 | export default uma;
--------------------------------------------------------------------------------
/wx-plugin/plugin/components/hello-component.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ item }}
4 |
--------------------------------------------------------------------------------
/wx-plugin/plugin/plugin.json:
--------------------------------------------------------------------------------
1 | {
2 | "publicComponents": {
3 | "hello-component": "components/hello-component"
4 | },
5 | "pages": {
6 | "hello-page": "pages/hello-page"
7 | },
8 | "main": "index.js"
9 | }
--------------------------------------------------------------------------------
/mpvue/project.swan.json:
--------------------------------------------------------------------------------
1 | {
2 | "appid": "testappid",
3 | "setting": {
4 | "urlCheck": false
5 | },
6 | "condition": {
7 | "swan": {
8 | "current": -1,
9 | "list": []
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/swan/components/my-components/my-component.swan:
--------------------------------------------------------------------------------
1 |
2 |
3 | my-component 自定义组件
4 |
5 |
6 |
--------------------------------------------------------------------------------
/wepy2/weapp/app.wxss:
--------------------------------------------------------------------------------
1 | .container {
2 | height: 100%;
3 | display: flex;
4 | flex-direction: column;
5 | align-items: center;
6 | justify-content: space-between;
7 | box-sizing: border-box;
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/groupitem.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | --
4 |
5 |
6 |
--------------------------------------------------------------------------------
/mpvue/package.swan.json:
--------------------------------------------------------------------------------
1 | {
2 | "appid": "touristappid",
3 | "setting": {
4 | "urlCheck": false
5 | },
6 | "condition": {
7 | "swan": {
8 | "current": -1,
9 | "list": []
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/cocos2x/settings/builder.panel.json:
--------------------------------------------------------------------------------
1 | {
2 | "excludeScenes": [],
3 | "packageName": "org.cocos2d.helloworld",
4 | "platform": "web-mobile",
5 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
6 | "title": "HelloWorld"
7 | }
--------------------------------------------------------------------------------
/qq/app.qss:
--------------------------------------------------------------------------------
1 | .container {
2 | height: 100%;
3 | display: flex;
4 | flex-direction: column;
5 | align-items: center;
6 | justify-content: space-between;
7 | padding: 200rpx 0;
8 | box-sizing: border-box;
9 | }
10 |
--------------------------------------------------------------------------------
/megalo/README.md:
--------------------------------------------------------------------------------
1 | # demo
2 |
3 | ## 运行
4 |
5 | 微信小程序:
6 |
7 | ```bash
8 | npm run dev:wechat
9 | ```
10 |
11 | 支付宝小程序:
12 |
13 | ```bash
14 | npm run dev:alipay
15 | ```
16 |
17 | 百度智能小程序:
18 |
19 | ```bash
20 | npm run dev:swan
21 | ```
22 |
--------------------------------------------------------------------------------
/wx-plugin/miniprogram/pages/index/index.wxml:
--------------------------------------------------------------------------------
1 |
2 | Go to Plugin page
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/wx/pages/page1/page1.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/cocos2x/assets/Script/uma.js.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.8",
3 | "uuid": "6ca4567e-a7a7-4cd8-8d85-eb5d94299d74",
4 | "isPlugin": false,
5 | "loadPluginInWeb": true,
6 | "loadPluginInNative": true,
7 | "loadPluginInEditor": false,
8 | "subMetas": {}
9 | }
--------------------------------------------------------------------------------
/kuaishou/app.css:
--------------------------------------------------------------------------------
1 | /**app.css**/
2 | .container {
3 | height: 100%;
4 | display: flex;
5 | flex-direction: column;
6 | align-items: center;
7 | justify-content: space-between;
8 | padding: 200rpx 0;
9 | box-sizing: border-box;
10 | }
11 |
--------------------------------------------------------------------------------
/rax/src/miniapp-native/app.js:
--------------------------------------------------------------------------------
1 | import uma from './uma';
2 | // uma包引入必须在此引入,init 可以延迟到 后面通过wx.uma去调用
3 | uma.init({
4 | appKey: 'xxx',
5 | debug: true,
6 | useOpenid: false,
7 | });
8 | const nativeAppConfig = {};
9 | module.exports = nativeAppConfig;
--------------------------------------------------------------------------------
/mpvue/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | mpvue
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/uniapp/main.js:
--------------------------------------------------------------------------------
1 | import uma from './uma';
2 | import Vue from 'vue'
3 | import App from './App'
4 |
5 | Vue.config.productionTip = false
6 | Vue.use(uma);
7 |
8 | App.mpType = 'app'
9 |
10 | const app = new Vue({
11 | ...App
12 | })
13 | app.$mount()
14 |
--------------------------------------------------------------------------------
/wepy2/weapp/$vendor/miniprogram-slide-view/miniprogram_dist/index.wxss:
--------------------------------------------------------------------------------
1 | /* slide-view/slide-view.wxss */
2 | .movable-view{
3 | display: flex;
4 | direction: row;
5 | overflow: hidden;
6 | }
7 |
8 | .container {
9 | overflow: hidden;
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/cocos2x/assets/Script/HelloWorld.js.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.8",
3 | "uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a",
4 | "isPlugin": false,
5 | "loadPluginInWeb": true,
6 | "loadPluginInNative": true,
7 | "loadPluginInEditor": false,
8 | "subMetas": {}
9 | }
--------------------------------------------------------------------------------
/taro/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["taro"],
3 | "rules": {
4 | "no-unused-vars": ["error", { "varsIgnorePattern": "Taro" }],
5 | "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".tsx"] }]
6 | },
7 | "parser": "babel-eslint"
8 | }
9 |
--------------------------------------------------------------------------------
/wx-plugin/miniprogram/pages/index/index.wxss:
--------------------------------------------------------------------------------
1 | /* pages/index/index.wxss */
2 | #nav {
3 | text-align: center;
4 | background: #eeeeee;
5 | margin: 1em;
6 | padding: 1em;
7 | border-radius: 5px;
8 | }
9 |
10 | #add {
11 | margin: 1em;
12 | }
--------------------------------------------------------------------------------
/taro/.editorconfig:
--------------------------------------------------------------------------------
1 | # http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_style = space
6 | indent_size = 2
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/counter.wxss:
--------------------------------------------------------------------------------
1 | .counter {
2 | text-align: left;
3 | font-size: 12px;
4 | }
5 | .count {
6 | font-size: 18px;
7 | font-weight: bold;
8 | }
9 | .count.red {
10 | color: red;
11 | }
12 | .count.green {
13 | color: green;
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/wx-plugin/miniprogram/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index"
4 | ],
5 | "plugins": {
6 | "hello-plugin": {
7 | "version": "dev",
8 | "provider": "wxaccea9d583013448"
9 | }
10 | },
11 | "sitemapLocation": "sitemap.json"
12 | }
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-production/importScripts$.js:
--------------------------------------------------------------------------------
1 | if(!self.Map || !self.Set || !self.Symbol) {
2 | importScripts('https://gw.alipayobjects.com/as/g/appx_release/deps/1.0.3/es6-set-map-symbol.js');
3 | }
4 | importScripts(`https://appx/af-appx.worker.min.js`);
5 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/app.wxss:
--------------------------------------------------------------------------------
1 | @import "./common/vendor.wxss";
2 |
3 | .container {
4 | height: 100%;
5 | display: flex;
6 | flex-direction: column;
7 | align-items: center;
8 | justify-content: space-between;
9 | padding: 200rpx 0;
10 | box-sizing: border-box;
11 | }
--------------------------------------------------------------------------------
/qq/pages/rc-page/rc-page.qml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/swan/pages/rc-page/rc-page.swan:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/wx-plugin/plugin/pages/hello-page.js:
--------------------------------------------------------------------------------
1 | // plugin/pages/hello-page.js
2 | import uma from '../umawrap';
3 | Page({
4 | data: {},
5 | onLoad() {
6 | console.log('This is a plugin page!')
7 | },
8 | onShow(){
9 | //wx.uma.trackEvent('xxx')
10 | }
11 | })
12 |
--------------------------------------------------------------------------------
/kuaishou/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index"
4 | ],
5 | "window": {
6 | "backgroundTextStyle": "light",
7 | "navigationBarBackgroundColor": "#fff",
8 | "navigationBarTitleText": "快手小程序",
9 | "navigationBarTextStyle": "black"
10 | }
11 | }
--------------------------------------------------------------------------------
/cocos2x/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.0.8",
3 | "uuid": "54462d96-f34e-4d34-90f6-eb782114a184",
4 | "isPlugin": false,
5 | "loadPluginInWeb": true,
6 | "loadPluginInNative": true,
7 | "loadPluginInEditor": false,
8 | "subMetas": {}
9 | }
--------------------------------------------------------------------------------
/rax/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | *~
4 | *.swp
5 | *.log
6 |
7 | .DS_Store
8 | .idea/
9 | .temp/
10 |
11 | build/
12 | dist/
13 | lib/
14 | coverage/
15 | node_modules/
16 | .rax/
17 |
18 | template.yml
--------------------------------------------------------------------------------
/rax/src/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "routes": [
3 | {
4 | "path": "/",
5 | "source": "pages/Home/index"
6 | },
7 | {
8 | "path": "/sub",
9 | "source": "pages/Home/sub"
10 | }
11 | ],
12 | "window": {
13 | "title": "Rax App"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/tt/pages/page1/page1.ttml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/chameleon/src/router.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "mode": "history",
3 | "domain": "https://www.chameleon.com",
4 | "routes":[
5 | {
6 | "url": "/cml/h5/index",
7 | "path": "/pages/index/index",
8 | "name": "首页",
9 | "mock": "index.php"
10 | }
11 | ]
12 | }
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-production/index$.web.js:
--------------------------------------------------------------------------------
1 | require('@alipay/appx-compiler/lib/sjsEnvInit');
2 | require('./config$');
3 |
4 | require('../../pages/page1/page1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
5 | require('../../pages/page2/page2?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
6 |
--------------------------------------------------------------------------------
/alipay/app.js:
--------------------------------------------------------------------------------
1 | import './uma.min.js';
2 |
3 | App({
4 | umengConfig: {
5 | appKey: 'YOUR_APP_KEY',
6 | debug: true,
7 | uploadUserInfo:true
8 | },
9 | onLaunch(options) {
10 | },
11 | onShow(e) {
12 | },
13 | onHide() {
14 | },
15 | onError(msg) {
16 | }
17 | });
--------------------------------------------------------------------------------
/wx-plugin/doc/README.md:
--------------------------------------------------------------------------------
1 | # 插件文档标题
2 |
3 | ## 二级标题
4 |
5 | ### 三级标题
6 |
7 | 这个文件用于书写插件文档,引用图片时必须以**相对路径**引用 ***doc*** 目录下的本地图片,不能使用网络图片或非 ***doc*** 目录下的图片。以下是相对路径的引用示例:
8 |
9 | 
10 |
11 | 使用编辑器下方的上传按钮可以上传插件文档,上传的内容包括 doc 目录下的 README.md 和图片。
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-development/index$.web.js:
--------------------------------------------------------------------------------
1 | require('@alipay/appx-compiler/lib/sjsEnvInit');
2 | require('./config$');
3 |
4 | require('../../pages/page1/page1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
5 | require('../../pages/page2/page2?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
6 |
--------------------------------------------------------------------------------
/remaxjs/remax.config.js:
--------------------------------------------------------------------------------
1 |
2 | import { terser } from "rollup-plugin-terser";
3 |
4 | module.exports = {
5 | one: true,
6 | output: 'dist/' + process.env.REMAX_PLATFORM,
7 | rollupOptions: (options) => {
8 | //options.plugins.push();
9 | return options;
10 | }
11 | };
--------------------------------------------------------------------------------
/mpvue/src/components/card.vue:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
14 |
15 |
20 |
--------------------------------------------------------------------------------
/wx-game/js/utils/umtrack-wx-game/index.js:
--------------------------------------------------------------------------------
1 | import uma from './uma.min.js'
2 |
3 | uma.init({
4 | appKey: 'YOUR APP KEY',
5 | useOpenid: false, //default true
6 | autoGetOpenid: false,
7 | debug: true,
8 | uploadUserInfo:true
9 | });
10 | //uma.setUserInfo({city:88})
11 | export default uma;
--------------------------------------------------------------------------------
/wx-plugin/plugin/index.js:
--------------------------------------------------------------------------------
1 | const uma = require('./umawrap');
2 | uma.trackEvent('plugin_load'); // 此处用来统计插件载入次数,插件被多次引用,只会触发一次
3 | module.exports = {
4 | sayHello() {
5 | console.log('Hello plugin!')
6 | },
7 | init(ctx) {
8 | uma.wxpluginwraper(ctx)
9 | },
10 | answer: 42
11 | }
12 |
--------------------------------------------------------------------------------
/mpvue/build/dev-client.js:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | require('eventsource-polyfill')
3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4 |
5 | hotClient.subscribe(function (event) {
6 | if (event.action === 'reload') {
7 | window.location.reload()
8 | }
9 | })
10 |
--------------------------------------------------------------------------------
/mpvue/src/pages/index/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './index'
3 |
4 | // add this to handle exception
5 | Vue.config.errorHandler = function (err) {
6 | if (console && console.error) {
7 | console.error(err)
8 | }
9 | }
10 |
11 | const app = new Vue(App)
12 | app.$mount()
13 |
--------------------------------------------------------------------------------
/rax/src/pages/Home/sub.jsx:
--------------------------------------------------------------------------------
1 | import { createElement } from 'rax';
2 | import View from 'rax-view';
3 | import Text from 'rax-text';
4 |
5 | function Sub() {
6 | return (
7 |
8 |
9 | Sub
10 |
11 |
12 | );
13 | }
14 |
15 | export default Sub;
16 |
--------------------------------------------------------------------------------
/rax/src/pages/Home/index.module.css:
--------------------------------------------------------------------------------
1 | .homeContainer {
2 | align-items: center;
3 | margin-top: 200rpx;
4 | }
5 |
6 | .homeTitle {
7 | font-size: 45rpx;
8 | font-weight: bold;
9 | margin: 20rpx 0;
10 | }
11 |
12 | .homeInfo {
13 | font-size: 36rpx;
14 | margin: 8rpx 0;
15 | color: #555;
16 | }
17 |
--------------------------------------------------------------------------------
/wepy-one/src/store/index.js:
--------------------------------------------------------------------------------
1 | import { createStore, applyMiddleware } from 'redux'
2 | import promiseMiddleware from 'redux-promise'
3 | import rootReducer from './reducers'
4 |
5 | export default function configStore () {
6 | const store = createStore(rootReducer, applyMiddleware(promiseMiddleware))
7 | return store
8 | }
--------------------------------------------------------------------------------
/cocos2x/assets/Scene.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.1.2",
3 | "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
4 | "isBundle": false,
5 | "bundleName": "",
6 | "priority": 1,
7 | "compressionType": {},
8 | "optimizeHotUpdate": {},
9 | "inlineSpriteFrames": {},
10 | "isRemoteBundle": {},
11 | "subMetas": {}
12 | }
--------------------------------------------------------------------------------
/cocos2x/assets/Script.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.1.2",
3 | "uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934",
4 | "isBundle": false,
5 | "bundleName": "",
6 | "priority": 1,
7 | "compressionType": {},
8 | "optimizeHotUpdate": {},
9 | "inlineSpriteFrames": {},
10 | "isRemoteBundle": {},
11 | "subMetas": {}
12 | }
--------------------------------------------------------------------------------
/cocos2x/assets/Texture.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.1.2",
3 | "uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54",
4 | "isBundle": false,
5 | "bundleName": "",
6 | "priority": 1,
7 | "compressionType": {},
8 | "optimizeHotUpdate": {},
9 | "inlineSpriteFrames": {},
10 | "isRemoteBundle": {},
11 | "subMetas": {}
12 | }
--------------------------------------------------------------------------------
/megalo/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist*
3 | .DS_Store
4 | # local env files
5 | .env.local
6 | .env.*.local
7 |
8 | # Log files
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 |
13 | # Editor directories and files
14 | .idea
15 | .vscode
16 | *.suo
17 | *.ntvs*
18 | *.njsproj
19 | *.sln
20 | *.sw*
21 |
--------------------------------------------------------------------------------
/chameleon/src/store/index.js:
--------------------------------------------------------------------------------
1 | import actions from './actions'
2 | import getters from './getters'
3 | import state from './state'
4 | import mutations from './mutations'
5 | import createStore from "chameleon-store";
6 |
7 | export default createStore({
8 | actions,
9 | getters,
10 | state,
11 | mutations
12 | })
13 |
--------------------------------------------------------------------------------
/cocos2x/assets/migration.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "1.1.2",
3 | "uuid": "f110872c-ed53-455d-9d9d-37932c496fc6",
4 | "isBundle": false,
5 | "bundleName": "",
6 | "priority": 1,
7 | "compressionType": {},
8 | "optimizeHotUpdate": {},
9 | "inlineSpriteFrames": {},
10 | "isRemoteBundle": {},
11 | "subMetas": {}
12 | }
--------------------------------------------------------------------------------
/rax/src/components/Logo/index.jsx:
--------------------------------------------------------------------------------
1 | import { createElement } from 'rax';
2 | import Image from 'rax-image';
3 |
4 | import styles from './index.module.css';
5 |
6 | export default (props) => {
7 | const { uri } = props;
8 | const source = { uri };
9 | return ;
10 | };
11 |
--------------------------------------------------------------------------------
/wepy-one/src/store/actions/counter.js:
--------------------------------------------------------------------------------
1 | import { ASYNC_INCREMENT } from '../types/counter'
2 | import { createAction } from 'redux-actions'
3 |
4 | export const asyncInc = createAction(ASYNC_INCREMENT, () => {
5 | return new Promise(resolve => {
6 | setTimeout(() => {
7 | resolve(1)
8 | }, 1000)
9 | })
10 | })
--------------------------------------------------------------------------------
/wx/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "weixin",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "umtrack-wx": "^2.2.1-0"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/qq/pages/logs/logs.qml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/swan/components/my-components/my-component.js:
--------------------------------------------------------------------------------
1 | // components/my-components/my-component.js
2 | Component({
3 | /**
4 | * Component properties
5 | */
6 | properties: {},
7 |
8 | /**
9 | * Component initial data
10 | */
11 | data: {},
12 |
13 | /**
14 | * Component methods
15 | */
16 | methods: {}
17 | });
--------------------------------------------------------------------------------
/wepy2/weapp/components/counter.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/chameleon/mock/api/index.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = [
3 | {
4 | method: ['get', 'post'],
5 | path: '/api/getMessage',
6 | controller: function (req, res, next) {
7 | res.json({
8 | total: 0,
9 | message: [{
10 | name: 'Hello chameleon!'
11 | }]
12 | });
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/qq/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "qq",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "directories": {
7 | "lib": "lib"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "author": "",
13 | "license": "ISC",
14 | "dependencies": {}
15 | }
16 |
--------------------------------------------------------------------------------
/qq/pages/page1/page1.qml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/swan/pages/logs/logs.swan:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tt/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages":[
3 | "pages/index/index",
4 | "pages/logs/logs",
5 | "pages/page1/page1"
6 | ],
7 | "window":{
8 | "backgroundTextStyle":"light",
9 | "navigationBarBackgroundColor": "#fff",
10 | "navigationBarTitleText": "Mini Program",
11 | "navigationBarTextStyle":"black"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/cocos2x/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es6",
4 | "module": "commonjs",
5 | "experimentalDecorators": true
6 | },
7 | "exclude": [
8 | "node_modules",
9 | ".vscode",
10 | "library",
11 | "local",
12 | "settings",
13 | "temp"
14 | ]
15 | }
--------------------------------------------------------------------------------
/swan/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "swan",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "directories": {
7 | "lib": "lib"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "author": "",
13 | "license": "ISC",
14 | "dependencies": {}
15 | }
16 |
--------------------------------------------------------------------------------
/wepy2/weapp/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index"
4 | ],
5 | "window": {
6 | "backgroundTextStyle": "light",
7 | "navigationBarBackgroundColor": "#fff",
8 | "navigationBarTitleText": "WeChat",
9 | "navigationBarTextStyle": "black"
10 | },
11 | "usingComponents": {},
12 | "sitemapLocation": "sitemap.json"
13 | }
--------------------------------------------------------------------------------
/wx/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index",
4 | "pages/page1/page1"
5 | ],
6 | "window": {
7 | "backgroundTextStyle": "light",
8 | "navigationBarBackgroundColor": "#fff",
9 | "navigationBarTitleText": "WeChat",
10 | "navigationBarTextStyle": "black"
11 | },
12 | "sitemapLocation": "sitemap.json"
13 | }
--------------------------------------------------------------------------------
/alipay/pages/page1/page1.axml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
--------------------------------------------------------------------------------
/cocos2x/README.md:
--------------------------------------------------------------------------------
1 | # cocos 小游戏使用说明
2 |
3 | ## 作为普通脚本集成
4 |
5 | 下载sdk后,把uma.js放到cocos工程中,在启动场景的脚本中加入如下代码
6 |
7 | ```javascript
8 | var uma = require('./uma.js');
9 | uma.init({
10 | appKey:'xxx',
11 | useOpenid:false,
12 | debug:true
13 | });
14 | ```
15 |
16 | ## sdk在其他地方引用
17 |
18 | - 通过qg.uma来引用
19 | - 通过require uma 模块来引用
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .idea/*
3 | .idea/jsLibraryMappings.xml
4 | .idea/libraries/dplus_js_sdk_node_modules.xml
5 | .grunt/*
6 | node_modules_bak/
7 | node_modules.zip
8 | node_modules_bak.zip
9 | phantomjs-1.9.20.tgz
10 | phantomjs-2.1.1-macosx.zip
11 | test.html
12 | npm-debug.log
13 | .DS_Store
14 | webpack_dist
15 | oortserver.pid
16 | yarn.lock
17 |
--------------------------------------------------------------------------------
/wx/pages/index/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/qq/pages/index/index.qss:
--------------------------------------------------------------------------------
1 | .userinfo {
2 | display: flex;
3 | flex-direction: column;
4 | align-items: center;
5 | }
6 |
7 | .userinfo-avatar {
8 | width: 128rpx;
9 | height: 128rpx;
10 | margin: 20rpx;
11 | border-radius: 50%;
12 | }
13 |
14 | .userinfo-nickname {
15 | color: #aaa;
16 | }
17 |
18 | .usermotto {
19 | margin-top: 200px;
20 | }
21 |
--------------------------------------------------------------------------------
/cocos2x/settings/builder.json:
--------------------------------------------------------------------------------
1 | {
2 | "excludeScenes": [],
3 | "orientation": {
4 | "landscapeLeft": true,
5 | "landscapeRight": true,
6 | "portrait": false,
7 | "upsideDown": false
8 | },
9 | "packageName": "org.cocos2d.helloworld",
10 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
11 | "title": "hello_world",
12 | "webOrientation": "auto"
13 | }
--------------------------------------------------------------------------------
/mpvue/src/main.js:
--------------------------------------------------------------------------------
1 | import uma from 'umtrack-wx'
2 | import Vue from 'vue'
3 | import App from './App'
4 |
5 | uma.init({
6 | appKey: 'YOUR_APP_KEY',
7 | useOpenid: false,
8 | autoGetOpenid: false,
9 | debug: true
10 | })
11 |
12 | Vue.prototype.uma = uma;
13 |
14 | Vue.config.productionTip = false
15 | App.mpType = 'app'
16 |
17 | const app = new Vue(App)
18 | app.$mount()
19 |
--------------------------------------------------------------------------------
/mpx/config/dll.conf.js:
--------------------------------------------------------------------------------
1 | const { resolve, resolveSrc } = require('../build/utils')
2 | module.exports = {
3 | path: resolve('dll'),
4 | context: resolveSrc(),
5 | groups: {
6 | cacheGroups: [
7 | {
8 | entries: [resolveSrc('lib/dll')],
9 | name: 'dll',
10 | }
11 | ],
12 | webpackCfg: {
13 | mode: 'none'
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/swan/pages/index/index.css:
--------------------------------------------------------------------------------
1 | /**index.css**/
2 | .userinfo {
3 | display: flex;
4 | flex-direction: column;
5 | align-items: center;
6 | }
7 |
8 | .userinfo-avatar {
9 | width: 128rpx;
10 | height: 128rpx;
11 | margin: 20rpx;
12 | border-radius: 50%;
13 | }
14 |
15 | .userinfo-nickname {
16 | color: #aaa;
17 | }
18 |
19 | .usermotto {
20 | margin-top: 200px;
21 | }
--------------------------------------------------------------------------------
/wx/pages/index/index.wxss:
--------------------------------------------------------------------------------
1 | /**index.wxss**/
2 | .userinfo {
3 | display: flex;
4 | flex-direction: column;
5 | align-items: center;
6 | }
7 |
8 | .userinfo-avatar {
9 | width: 128rpx;
10 | height: 128rpx;
11 | margin: 20rpx;
12 | border-radius: 50%;
13 | }
14 |
15 | .userinfo-nickname {
16 | color: #aaa;
17 | }
18 |
19 | .usermotto {
20 | margin-top: 200px;
21 | }
--------------------------------------------------------------------------------
/alipay/pages/page2/page2.js:
--------------------------------------------------------------------------------
1 | Page({
2 | data: {},
3 | onLoad(query) {
4 | // 页面加载
5 | },
6 | onReady() {
7 | // 页面加载完成
8 | },
9 | onShow() {
10 | // 页面显示
11 | },
12 | onHide() {
13 | // 页面隐藏
14 | },
15 | onUnload() {
16 | // 页面被关闭
17 | },
18 | gotoPage1(){
19 | my.navigateTo({
20 | url: '../page1/page1'
21 | })
22 | }
23 | });
24 |
--------------------------------------------------------------------------------
/swan/pages/page1/page1.swan:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/wx-game/js/libs/symbol.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 对于ES6中Symbol的极简兼容
3 | * 方便模拟私有变量
4 | */
5 |
6 | let Symbol = window.Symbol
7 | let idCounter = 0
8 |
9 | if (!Symbol) {
10 | Symbol = function Symbol(key) {
11 | return `__${key}_${Math.floor(Math.random() * 1e9)}_${++idCounter}__`
12 | }
13 |
14 | Symbol.iterator = Symbol('Symbol.iterator')
15 | }
16 |
17 | window.Symbol = Symbol
18 |
--------------------------------------------------------------------------------
/tt/pages/index/index.ttss:
--------------------------------------------------------------------------------
1 | /* pages/index/index.ttss */
2 | .userinfo {
3 | display: flex;
4 | flex-direction: column;
5 | align-items: center;
6 | }
7 |
8 | .userinfo-avatar {
9 | width: 128rpx;
10 | height: 128rpx;
11 | margin: 20rpx;
12 | border-radius: 50%;
13 | }
14 |
15 | .userinfo-nickname {
16 | color: #aaa;
17 | }
18 |
19 | .usermotto {
20 | margin-top: 200px;
21 | }
--------------------------------------------------------------------------------
/mpvue/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", {
4 | "modules": false,
5 | "targets": {
6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7 | }
8 | }],
9 | "stage-2"
10 | ],
11 | "plugins": ["transform-runtime"],
12 | "env": {
13 | "test": {
14 | "presets": ["env", "stage-2"],
15 | "plugins": ["istanbul"]
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/alipay/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "alipay",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "umtrack-alipay": {
8 | "version": "2.4.11",
9 | "resolved": "https://registry.npm.taobao.org/umtrack-alipay/download/umtrack-alipay-2.4.11.tgz",
10 | "integrity": "sha1-OH3+r51RPMO/GElivioP1b6y1Qo="
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/qq/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages":[
3 | "pages/index/index",
4 | "pages/logs/logs",
5 | "pages/page1/page1",
6 | "pages/component-page/component-page",
7 | "pages/rc-page/rc-page"
8 | ],
9 | "window":{
10 | "backgroundTextStyle":"light",
11 | "navigationBarBackgroundColor": "#fff",
12 | "navigationBarTitleText": "QQ小程序",
13 | "navigationBarTextStyle":"black"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/swan/project.swan.json:
--------------------------------------------------------------------------------
1 | {
2 | "appid": "20111528",
3 | "host": "baiduboxapp",
4 | "preview": {
5 | "packageId": 742412
6 | },
7 | "projectname": "swan",
8 | "setting": {
9 | "urlCheck": false
10 | },
11 | "swan": {
12 | "baiduboxapp": {
13 | "swanJsVersion": "3.170.14",
14 | "extensionJsVersion": "1.12.4"
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/tt/pages/logs/logs.ttml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Logs日志页面
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/alipay/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "alipay",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "directories": {
7 | "lib": "lib"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "author": "",
13 | "license": "ISC",
14 | "dependencies": {
15 | "umtrack-alipay": "^2.4.11"
16 | },
17 | "devDependencies": {}
18 | }
19 |
--------------------------------------------------------------------------------
/mpx/static/wx/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileType": "miniprogram",
3 | "setting": {
4 | "newFeature": true,
5 | "urlCheck": true,
6 | "es6": false,
7 | "postcss": true,
8 | "minified": false,
9 | "checkSiteMap": false,
10 | "autoAudits": false
11 | },
12 | "appid": "wxaccea9d583013448",
13 | "projectname": "mpx",
14 | "description": "A mpx project",
15 | "condition": {}
16 | }
17 |
--------------------------------------------------------------------------------
/wepy2/src/mixins/test.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | export default {
4 | data: {
5 | mixin: 'MixinText'
6 | },
7 | methods: {
8 | mixintap () {
9 | this.mixin = 'MixinText' + (Math.random() + '').substring(3, 7);
10 | console.log('mixin method tap');
11 | },
12 | tap () {
13 | console.log('tap in mixin');
14 | }
15 | },
16 | created () {
17 | console.log('created in mixin');
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/uniapp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "uniapp",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "main.js",
6 | "directories": {
7 | "lib": "lib"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "author": "gongzhen",
13 | "license": "ISC",
14 | "dependencies": {
15 | "umtrack-alipay": "^2.3.2",
16 | "umtrack-wx": "^2.3.2"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/group.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/wepy2/weapp/pages/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "WePY 2.0 Feature Demo",
3 | "component": true,
4 | "usingComponents": {
5 | "list": "./../components/wepy-list",
6 | "group": "./../components/group",
7 | "panel": "./../components/panel",
8 | "counter": "./../components/counter",
9 | "slide-view": "./../$vendor/miniprogram-slide-view/miniprogram_dist/index"
10 | }
11 | }
--------------------------------------------------------------------------------
/taro/config/prod.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"production"'
4 | },
5 | defineConstants: {},
6 | mini: {},
7 | h5: {
8 | /**
9 | * 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
10 | * 参考代码如下:
11 | * webpackChain (chain) {
12 | * chain.plugin('analyzer')
13 | * .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
14 | * }
15 | */
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/uniapp/pages.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
3 | {
4 | "path": "pages/index/index",
5 | "style": {
6 | "navigationBarTitleText": "uni-app"
7 | }
8 | }
9 | ],
10 | "globalStyle": {
11 | "navigationBarTextStyle": "black",
12 | "navigationBarTitleText": "uni-app",
13 | "navigationBarBackgroundColor": "#F8F8F8",
14 | "backgroundColor": "#F8F8F8"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/wx-plugin/plugin/components/hello-component.js:
--------------------------------------------------------------------------------
1 | // plugin/components/hello-component.js
2 | import uma from '../umawrap';
3 | Component({
4 | properties: {
5 | items: {
6 | type: Array,
7 | value: [],
8 | observer(newVal, oldVal, changedPath) {
9 | this.setData({items: newVal})
10 | }
11 | }
12 | },
13 |
14 | data: {
15 | items: []
16 | },
17 |
18 | methods: {
19 |
20 | }
21 | })
22 |
--------------------------------------------------------------------------------
/wx-game/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wx-game",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "umtrack-wx": {
8 | "version": "2.2.1-1",
9 | "resolved": "https://registry.npmjs.org/umtrack-wx/-/umtrack-wx-2.2.1-1.tgz",
10 | "integrity": "sha512-PVvaIinMRaJBX7N2S8drCAdy7Swhio7JO8x1GsjbjVyPHI2d0tgY5NT6GjjY+MTkwjIwLqATztOh2AFEB8NCIA=="
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/wepy2/weapp/common/eventHub.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports["default"] = void 0;
7 |
8 | var _core = _interopRequireDefault(require('./../vendor.js')(1));
9 |
10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11 |
12 | var eventHub = new _core["default"]();
13 | var _default = eventHub;
14 | exports["default"] = _default;
--------------------------------------------------------------------------------
/remaxjs/src/app.config.js:
--------------------------------------------------------------------------------
1 | const pages = ['pages/index/index'];
2 | const title = 'Remax Universe Template';
3 | const backgroundColor = '#282c34';
4 |
5 | exports.wechat = {
6 | pages,
7 | window: {
8 | navigationBarTitleText: title,
9 | navigationBarBackgroundColor: backgroundColor
10 | }
11 | };
12 |
13 | exports.alipay = {
14 | pages,
15 | window: {
16 | defaultTitle: title,
17 | titleBarColor: backgroundColor
18 | }
19 | };
20 |
--------------------------------------------------------------------------------
/wx-plugin/README.md:
--------------------------------------------------------------------------------
1 | # 在微信小程序插件中使用友盟统计sdk
2 | ## 注意事项
3 | 1. 因为微信`小程序插件`中无法静默获取`openid`,所以在微信小程序插件中不支持自动获取`openid`,统计使用uuid,需要设置`useOpenid`为`false`
4 | 2. 微信小程序插件内暂不支持用户信息自动采集上报
5 | 3. 如需自动采集页面信息,需要在使用的页面和组件顶部单独引用sdk,参考demo,自定义事件不受此限制。
6 | 4. 需要在小程序中引用插件时传入小程序的wx对象,可以只引入{onAppShow:wx.onAppShow,onAppHide:wx.onAppHide},并在插件中调用uma.wxpluginwraper({{onAppShow:wx.onAppShow,onAppHide:wx.onAppHide}});
7 | 5. sdk版本需要大于2.6.3,当前2.6.3版本处于beta状态,请执行 `npm view umtrack-wx@beta`查看最新的beta包
--------------------------------------------------------------------------------
/wx-plugin/miniprogram/pages/index/index.js:
--------------------------------------------------------------------------------
1 | const plugin = requirePlugin('hello-plugin')
2 | Page({
3 | data: {
4 | items: [],
5 | currentItem: 0
6 | },
7 | onLoad() {
8 | //plugin.sayHello()
9 | //const world = plugin.answer
10 | },
11 | addItem() {
12 | this.data.items.push(this.data.currentItem++)
13 | this.setData({
14 | items: this.data.items,
15 | currentItem: this.data.currentItem
16 | })
17 | }
18 | })
19 |
--------------------------------------------------------------------------------
/wx/app.js:
--------------------------------------------------------------------------------
1 | // app.js
2 | var uma = require('./uma');
3 |
4 | App({
5 | umengConfig: {
6 | appKey: 'YOUR_APP_KEY',
7 | useOpenid: false,
8 | autoGetOpenid: false,
9 | debug: true,
10 | uploadUserInfo:true
11 | },
12 |
13 | onLaunch(options) {
14 | },
15 |
16 | onShow(options) {
17 | },
18 |
19 | onHide() {
20 | },
21 |
22 | onError(/* msg */) {
23 | },
24 |
25 | globalData: {
26 | uma:uma
27 | }
28 | });
29 |
--------------------------------------------------------------------------------
/cocos2x/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "lib": [ "es2015", "es2017", "dom" ],
5 | "target": "es5",
6 | "experimentalDecorators": true,
7 | "skipLibCheck": true,
8 | "outDir": "temp/vscode-dist",
9 | "forceConsistentCasingInFileNames": true
10 | },
11 | "exclude": [
12 | "node_modules",
13 | "library",
14 | "local",
15 | "temp",
16 | "build",
17 | "settings"
18 | ]
19 | }
--------------------------------------------------------------------------------
/swan/.swan/editor.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor": {
3 | "curPath": "/Users/lcl22hope/Documents/workspace/ali_web/miniDemo/swan/app.js",
4 | "expands": [],
5 | "markdownUploadTimeMap": {},
6 | "paths": [
7 | "/Users/lcl22hope/Documents/workspace/ali_web/miniDemo/swan/app.js"
8 | ],
9 | "recentlyFiles": [
10 | "/Users/lcl22hope/Documents/workspace/ali_web/miniDemo/swan/app.js"
11 | ]
12 | }
13 | }
--------------------------------------------------------------------------------
/wepy-one/src/mixins/test.js:
--------------------------------------------------------------------------------
1 | import wepy from 'wepy'
2 |
3 | export default class testMixin extends wepy.mixin {
4 | data = {
5 | mixin: 'This is mixin data.'
6 | }
7 | methods = {
8 | tap () {
9 | this.mixin = 'mixin data was changed'
10 | console.log('mixin method tap')
11 | }
12 | }
13 |
14 | onShow() {
15 | console.log('mixin onShow')
16 | }
17 |
18 | onLoad() {
19 | console.log('mixin onLoad')
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/swan/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index",
4 | "pages/logs/logs",
5 | "pages/page1/page1",
6 | "pages/component-page/component-page",
7 | "pages/rc-page/rc-page"
8 | ],
9 | "window": {
10 | "backgroundTextStyle": "light",
11 | "navigationBarBackgroundColor": "#fff",
12 | "navigationBarTitleText": "WeChat",
13 | "navigationBarTextStyle": "black"
14 | },
15 | "style": "v2",
16 | "sitemapLocation": "sitemap.json"
17 | }
--------------------------------------------------------------------------------
/mpx/config/index.js:
--------------------------------------------------------------------------------
1 | const mpxLoaderConf = require('./mpxLoader.conf')
2 | const mpxPluginConf = require('./mpxPlugin.conf')
3 | const dllConf = require('./dll.conf')
4 | const userConf = require('./user.conf')
5 |
6 | const supportedModes = ['wx', 'ali', 'swan', 'qq', 'tt']
7 |
8 | if (userConf.transWeb) {
9 | supportedModes.push('web')
10 | }
11 |
12 | module.exports = {
13 | userConf,
14 | dllConf,
15 | mpxLoaderConf,
16 | mpxPluginConf,
17 | supportedModes
18 | }
19 |
--------------------------------------------------------------------------------
/kuaishou/pages/index/index.ksml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{motto}}
5 | {{id}}
6 |
7 |
8 | show{{showtime}}
9 | hide{{hidetime}}
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/megalo/src/utils/uma.js:
--------------------------------------------------------------------------------
1 | import uma from 'umtrack-wx'
2 |
3 | uma.init({
4 | appKey: 'xxxx', // 由友盟分配的APP_KEY
5 | useOpenid: false, // 是否使用openid进行统计,此项为false时将使用友盟+随机ID进行用户统计。使用openid来统计微信小程序的用户,会使统计的指标更为准确,对系统准确性要求高的应用推荐使用OpenID。
6 | autoGetOpenid: false, // 是否需要通过友盟后台获取openid,如若需要,请到友盟后台设置appId及secret
7 | debug: true, // 是否打开调试模式
8 | uploadUserInfo: false // 自动上传用户信息,设为false取消上传,默认为false
9 | })
10 | uma.install = function (Vue) {
11 | Vue.prototype.$uma = uma
12 | }
13 | export default uma
14 |
--------------------------------------------------------------------------------
/taro/.npmignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 | dist/
14 |
15 | # misc
16 | .DS_Store
17 | .env.local
18 | .env.development.local
19 | .env.test.local
20 | .env.production.local
21 |
22 | # temp
23 | .temp/
24 | .rn_temp/
25 | deploy_versions/
26 |
27 | npm-debug.log*
28 | yarn-debug.log*
29 | yarn-error.log*
30 |
--------------------------------------------------------------------------------
/uniapp/App.vue:
--------------------------------------------------------------------------------
1 |
20 |
21 |
24 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/wepy-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | : {{item.title}}
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/mpx/src/components/list.mpx:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{item}}
4 |
5 |
6 |
7 |
16 |
17 |
21 |
22 |
27 |
--------------------------------------------------------------------------------
/tt/util/util.js:
--------------------------------------------------------------------------------
1 | const formatTime = date => {
2 | const year = date.getFullYear()
3 | const month = date.getMonth() + 1
4 | const day = date.getDate()
5 | const hour = date.getHours()
6 | const minute = date.getMinutes()
7 | const second = date.getSeconds()
8 |
9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
10 | }
11 |
12 | const formatNumber = n => {
13 | n = n.toString()
14 | return n[1] ? n : '0' + n
15 | }
16 |
17 | module.exports = {
18 | formatTime: formatTime
19 | }
--------------------------------------------------------------------------------
/wx/util/util.js:
--------------------------------------------------------------------------------
1 | const formatTime = date => {
2 | const year = date.getFullYear()
3 | const month = date.getMonth() + 1
4 | const day = date.getDate()
5 | const hour = date.getHours()
6 | const minute = date.getMinutes()
7 | const second = date.getSeconds()
8 |
9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
10 | }
11 |
12 | const formatNumber = n => {
13 | n = n.toString()
14 | return n[1] ? n : '0' + n
15 | }
16 |
17 | module.exports = {
18 | formatTime: formatTime
19 | }
20 |
--------------------------------------------------------------------------------
/qq/utils/util.js:
--------------------------------------------------------------------------------
1 | const formatTime = date => {
2 | const year = date.getFullYear()
3 | const month = date.getMonth() + 1
4 | const day = date.getDate()
5 | const hour = date.getHours()
6 | const minute = date.getMinutes()
7 | const second = date.getSeconds()
8 |
9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
10 | }
11 |
12 | const formatNumber = n => {
13 | n = n.toString()
14 | return n[1] ? n : '0' + n
15 | }
16 |
17 | module.exports = {
18 | formatTime: formatTime
19 | }
20 |
--------------------------------------------------------------------------------
/swan/utils/util.js:
--------------------------------------------------------------------------------
1 | const formatTime = date => {
2 | const year = date.getFullYear();
3 | const month = date.getMonth() + 1;
4 | const day = date.getDate();
5 | const hour = date.getHours();
6 | const minute = date.getMinutes();
7 | const second = date.getSeconds();
8 |
9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':');
10 | };
11 |
12 | const formatNumber = n => {
13 | n = n.toString();
14 | return n[1] ? n : '0' + n;
15 | };
16 |
17 | module.exports = {
18 | formatTime: formatTime
19 | };
--------------------------------------------------------------------------------
/remaxjs/src/pages/index/index.module.css:
--------------------------------------------------------------------------------
1 | .app {
2 | text-align: center;
3 | padding: 0 24px;
4 | }
5 |
6 | .logo {
7 | animation: logo-spin infinite 20s linear;
8 | height: 240px;
9 | width: 240px;
10 | pointer-events: none;
11 | }
12 |
13 | .text {
14 | margin-top: 64px;
15 | }
16 |
17 | .header {
18 | padding-top: 30%;
19 | background-color: #282c34;
20 | font-size: 40px;
21 | color: white;
22 | }
23 |
24 | @keyframes logo-spin {
25 | from {
26 | transform: rotate(0deg);
27 | }
28 | to {
29 | transform: rotate(360deg);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/megalo/src/components/HelloWorld.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ msg }}
4 |
5 |
6 |
7 |
21 |
22 |
23 |
29 |
--------------------------------------------------------------------------------
/mpx/babel.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | [
4 | "@babel/env",
5 | {
6 | "modules": false,
7 | "shippedProposals": true
8 | }
9 | ]
10 | ],
11 | "plugins": [
12 | [
13 | "@babel/transform-runtime",
14 | {
15 | "corejs": 3,
16 | "version": "^7.10.4"
17 | }
18 | ]
19 | ],
20 | "env": {
21 | "test": {
22 | "presets": [
23 | [
24 | "@babel/env",
25 | {
26 | "shippedProposals": true
27 | }
28 | ]
29 | ]
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/mpvue/build/vue-loader.conf.js:
--------------------------------------------------------------------------------
1 | var utils = require('./utils')
2 | var config = require('../config')
3 | // var isProduction = process.env.NODE_ENV === 'production'
4 | // for mp
5 | var isProduction = true
6 |
7 | module.exports = {
8 | loaders: utils.cssLoaders({
9 | sourceMap: isProduction
10 | ? config.build.productionSourceMap
11 | : config.dev.cssSourceMap,
12 | extract: isProduction
13 | }),
14 | transformToRequire: {
15 | video: 'src',
16 | source: 'src',
17 | img: 'src',
18 | image: 'xlink:href'
19 | },
20 | fileExt: config.build.fileExt
21 | }
22 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/panel.wxss:
--------------------------------------------------------------------------------
1 | panel {
2 | width: 100%;
3 | }
4 | .panel {
5 | width: 100%;
6 | margin-top: 20rpx;
7 | text-align: left;
8 | font-size: 12px;
9 | padding-top: 20rpx;
10 | padding-left: 50rpx;
11 | padding-bottom: 20rpx;
12 | border: 1px solid #ccc;
13 | }
14 | .panel .title {
15 | padding-bottom: 20rpx;
16 | font-size: 14px;
17 | font-weight: bold;
18 | }
19 | .panel .info {
20 | padding: 15rpx;
21 | }
22 | .panel .testcounter {
23 | margin-top: 15rpx;
24 | position: absolute;
25 | }
26 | .panel .counterview {
27 | margin-left: 120rpx;
28 | }
29 |
30 |
--------------------------------------------------------------------------------
/tt/components/my-component/my-component.js:
--------------------------------------------------------------------------------
1 | // components/my-component/my-component.js
2 | Component({
3 | // 组件的属性列表
4 | properties: {
5 |
6 | },
7 |
8 | data: {
9 |
10 | },
11 |
12 | methods: {
13 | onShow: function (options) {
14 | console.log('myComponent-onShow: ', options);
15 | },
16 | onHide: function (options) {
17 | console.log('myComponent-onHide: ', options);
18 | },
19 | onUnload: function (options) {
20 | console.log('myComponent-onUnload: ', options);
21 | }
22 | },
23 |
24 |
25 | })
--------------------------------------------------------------------------------
/mpx/src/pages/index.mpx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
22 |
23 |
30 |
--------------------------------------------------------------------------------
/tt/app.js:
--------------------------------------------------------------------------------
1 | var uma = require('./lib/uma.min');
2 |
3 |
4 | App({
5 | umengConfig: {
6 | appKey: 'testAppkey',
7 |
8 | autoGetOpenid: true,
9 | debug: true,
10 | uploadUserInfo: true
11 | },
12 |
13 | onLaunch: function (options) {
14 |
15 | },
16 |
17 | onShow: function(options) {
18 |
19 | },
20 |
21 | onHide: function(options) {
22 |
23 | },
24 |
25 | onError: function(msg) {
26 | console.log('onError');
27 | tt.showToast({
28 | title: 'onError',
29 | });
30 | },
31 | globalData: {
32 | userInfo: null,
33 | uma: uma,
34 | },
35 |
36 |
37 | })
38 |
--------------------------------------------------------------------------------
/wepy-one/src/store/reducers/counter.js:
--------------------------------------------------------------------------------
1 | import { handleActions } from 'redux-actions'
2 | import { INCREMENT, DECREMENT, ASYNC_INCREMENT } from '../types/counter'
3 |
4 | export default handleActions({
5 | [INCREMENT] (state) {
6 | return {
7 | ...state,
8 | num: state.num + 1
9 | }
10 | },
11 | [DECREMENT] (state) {
12 | return {
13 | ...state,
14 | num: state.num - 1
15 | }
16 | },
17 | [ASYNC_INCREMENT] (state, action) {
18 | return {
19 | ...state,
20 | asyncNum: state.asyncNum + action.payload
21 | }
22 | }
23 | }, {
24 | num: 0,
25 | asyncNum: 0
26 | })
--------------------------------------------------------------------------------
/wepy2/weapp/mixins/test.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports["default"] = void 0;
7 | var _default = {
8 | data: {
9 | mixin: 'MixinText'
10 | },
11 | methods: {
12 | mixintap: function mixintap() {
13 | this.mixin = 'MixinText' + (Math.random() + '').substring(3, 7);
14 | console.log('mixin method tap');
15 | },
16 | tap: function tap() {
17 | console.log('tap in mixin');
18 | }
19 | },
20 | created: function created() {
21 | console.log('created in mixin');
22 | }
23 | };
24 | exports["default"] = _default;
--------------------------------------------------------------------------------
/cocos2x/.gitignore:
--------------------------------------------------------------------------------
1 | #/
2 | # Fireball Projects
3 | #/
4 |
5 | /library/
6 | /temp/
7 | local/*
8 | !local/local.json
9 | /build/
10 |
11 | #/
12 | # npm files
13 | #/
14 |
15 | npm-debug.log
16 | node_modules/
17 |
18 | #/
19 | # Logs and databases
20 | #/
21 |
22 | *.log
23 | *.sql
24 | *.sqlite
25 |
26 | #/
27 | # files for debugger
28 | #/
29 |
30 | *.sln
31 | *.csproj
32 | *.pidb
33 | *.unityproj
34 | *.suo
35 |
36 | #/
37 | # OS generated files
38 | #/
39 |
40 | .DS_Store
41 | ehthumbs.db
42 | Thumbs.db
43 |
44 | #/
45 | # WebStorm files
46 | #/
47 |
48 | .idea/
49 |
50 | #//
51 | # VS Code files
52 | #//
53 |
54 | .vscode/
--------------------------------------------------------------------------------
/megalo/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
27 |
--------------------------------------------------------------------------------
/wepy2/weapp/pages/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | "use strict";
4 |
5 | var getTime = function getTime(time) {
6 | var date = getDate(time);
7 | var hour = date.getHours();
8 | var mins = date.getMinutes();
9 | var sec = date.getSeconds();
10 | var milli = date.getMilliseconds();
11 | return "".concat(hour, ":").concat(mins, ":").concat(sec, ".").concat(milli);
12 | };
13 |
14 | module.exports.getTime = getTime;
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/mpvue/src/utils/index.js:
--------------------------------------------------------------------------------
1 | function formatNumber (n) {
2 | const str = n.toString()
3 | return str[1] ? str : `0${str}`
4 | }
5 |
6 | export function formatTime (date) {
7 | const year = date.getFullYear()
8 | const month = date.getMonth() + 1
9 | const day = date.getDate()
10 |
11 | const hour = date.getHours()
12 | const minute = date.getMinutes()
13 | const second = date.getSeconds()
14 |
15 | const t1 = [year, month, day].map(formatNumber).join('/')
16 | const t2 = [hour, minute, second].map(formatNumber).join(':')
17 |
18 | return `${t1} ${t2}`
19 | }
20 |
21 | export default {
22 | formatNumber,
23 | formatTime
24 | }
25 |
--------------------------------------------------------------------------------
/wepy2/weapp/$vendor/miniprogram-slide-view/miniprogram_dist/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/chameleon/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "chameleon",
3 | "version": "1.0.0",
4 | "description": "A chameleon project",
5 | "author": "",
6 | "private": true,
7 | "scripts": {
8 | "wx:dev": "cml wx dev -n",
9 | "wx:build": "cml wx build",
10 | "alipay:dev": "cml alipay dev -n",
11 | "alipay:build": "cml alipay build"
12 | },
13 | "license": "MIT",
14 | "dependencies": {
15 | "chameleon-api": "1.0.0",
16 | "chameleon-runtime": "1.0.0",
17 | "chameleon-store": "1.0.0",
18 | "chameleon-ui-builtin": "1.0.0",
19 | "cml-ui": "1.0.0",
20 | "umtrack-alipay": "^2.2.0",
21 | "umtrack-wx": "^2.2.1-1"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/tt/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "setting": {
3 | "urlCheck": false,
4 | "es6": true,
5 | "postcss": true,
6 | "minified": true,
7 | "newFeature": true
8 | },
9 | "appid": "ttd710a1ad482af1e6",
10 | "projectname": "tt",
11 | "condition": {
12 | "miniprogram": {
13 | "current": -1,
14 | "list": [
15 | {
16 | "id": 0,
17 | "name": "queryTest",
18 | "pathName": "pages/index/index",
19 | "query": "_um_campaign=5ee36c43dbc2ec076dd4723a&_um_channel=5ee36c43dbc2ec076dd4723b",
20 | "scene": "011001",
21 | "referrerInfo": {
22 | "appId": "",
23 | "extraData": ""
24 | }
25 | }
26 | ]
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/cocos2x/assets/Script/HelloWorld.js:
--------------------------------------------------------------------------------
1 | var uma = require('./uma.js');
2 | uma.init({
3 | appKey:'xxx',
4 | useOpenid:false,
5 | debug:true
6 | });
7 |
8 | cc.Class({
9 | extends: cc.Component,
10 |
11 | properties: {
12 | label: {
13 | default: null,
14 | type: cc.Label
15 | },
16 | // defaults, set visually when attaching this script to the Canvas
17 | text: 'Hello, World!'
18 | },
19 |
20 | // use this for initialization
21 | onLoad: function () {
22 | this.label.string = this.text;
23 | },
24 |
25 | // called every frame
26 | update: function (dt) {
27 |
28 | },
29 | });
30 |
--------------------------------------------------------------------------------
/wx/components/my-component/my-component.js:
--------------------------------------------------------------------------------
1 | // components/my-component/my-component.js
2 | // var oldComponent = Component;
3 |
4 | Component({
5 | /**
6 | * 组件的属性列表
7 | */
8 | properties: {
9 |
10 | },
11 |
12 | /**
13 | * 组件的初始数据
14 | */
15 | data: {
16 |
17 | },
18 |
19 | /**
20 | * 组件的方法列表
21 | */
22 | methods: {
23 | onShow: function (options) {
24 | console.log('myComponent-onShow: ', options);
25 | },
26 | onHide: function (options) {
27 | console.log('myComponent-onHide: ', options);
28 | },
29 | onUnload: function (options) {
30 | console.log('myComponent-onUnload: ', options);
31 | }
32 | }
33 | })
34 |
--------------------------------------------------------------------------------
/mpvue/README.md:
--------------------------------------------------------------------------------
1 | # mpvue
2 |
3 | > A Mpvue project
4 |
5 | ## Build Setup
6 |
7 | ``` bash
8 | # 初始化项目
9 | vue init mpvue/mpvue-quickstart myproject
10 | cd myproject
11 |
12 | # 安装依赖
13 | yarn
14 |
15 | # 开发时构建
16 | npm dev
17 |
18 | # 打包构建
19 | npm build
20 |
21 | # 指定平台的开发时构建(微信、百度、头条、支付宝)
22 | npm dev:wx
23 | npm dev:swan
24 | npm dev:tt
25 | npm dev:my
26 |
27 | # 指定平台的打包构建
28 | npm build:wx
29 | npm build:swan
30 | npm build:tt
31 | npm build:my
32 |
33 | # 生成 bundle 分析报告
34 | npm run build --report
35 | ```
36 |
37 | For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
38 |
--------------------------------------------------------------------------------
/mpx/config/user.conf.js:
--------------------------------------------------------------------------------
1 | function formatOption (option) {
2 | if (option === 'true') return true
3 | if (option === 'false') return false
4 | return option
5 | }
6 |
7 | // 根据创建项目时的问题生成的
8 | // 改动需谨慎,有的选项存在互斥关系,比如跨平台开发,就不能开发插件
9 | // 若需修改以启用新的能力,建议试试新建项目按问题生成模板后把这部分内容拷贝过来
10 | module.exports = {
11 | srcMode: formatOption('wx'),
12 | cross: formatOption('true'),
13 | transWeb: formatOption('false'),
14 | cloudFunc: formatOption('false'),
15 | isPlugin: formatOption('false'),
16 | tsSupport: formatOption('false'),
17 | babel7Support: formatOption('true'),
18 | needEslint: formatOption('false'),
19 | needDll: formatOption('false'),
20 | needUnitTest: formatOption('false')
21 | }
22 |
--------------------------------------------------------------------------------
/mpx/build/utils.js:
--------------------------------------------------------------------------------
1 | const path = require('path')
2 |
3 | function resolveSrc (file, subDir = '') {
4 | return path.resolve(__dirname, '../src', subDir, file || '')
5 | }
6 |
7 | function resolveDist (platform, subDir = '') {
8 | return path.resolve(__dirname, '../dist', platform, subDir)
9 | }
10 |
11 | function resolve (file) {
12 | return path.resolve(__dirname, '..', file || '')
13 | }
14 |
15 | function normalizeArr (arrCfg) {
16 | if (Array.isArray(arrCfg) && arrCfg.length) {
17 | return arrCfg
18 | } else if (arrCfg) {
19 | return [arrCfg]
20 | }
21 | return []
22 | }
23 |
24 | module.exports = {
25 | resolve,
26 | resolveSrc,
27 | resolveDist,
28 | normalizeArr
29 | }
30 |
--------------------------------------------------------------------------------
/wepy-one/src/index.template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 转 WEB DEMO
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/uniapp/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "uniapp",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "umtrack-alipay": {
8 | "version": "2.3.2",
9 | "resolved": "https://registry.npmjs.org/umtrack-alipay/-/umtrack-alipay-2.3.2.tgz",
10 | "integrity": "sha512-e7YeY0l8o8TjluvppJBlcr+L5876FZOOhoCjMP9Y8UcMmE9O8p9bRw5nrVfQ7ARnnv80YT8uQqKTL3Lyw58MYg=="
11 | },
12 | "umtrack-wx": {
13 | "version": "2.3.2",
14 | "resolved": "https://registry.npmjs.org/umtrack-wx/-/umtrack-wx-2.3.2.tgz",
15 | "integrity": "sha512-9Is5Dyo/DLyjKt0+1gsxUDiIVdV/oTReMWFzZZcMRf1ffMipHYoAw0MNHNUojfdOvUoKHsKPbQOtEbdnBeNgkA=="
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wepy2/src/components/groupitem.wpy:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 | --{{gitem.childid}}.
8 | {{gitem.childname}}
9 |
10 |
11 |
29 |
--------------------------------------------------------------------------------
/wepy-one/src/components/groupitem.wpy:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 | --{{gitem.childid}}.
8 | {{gitem.childname}}
9 |
10 |
11 |
28 |
--------------------------------------------------------------------------------
/taro/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "miniprogramRoot": "dist/",
3 | "projectname": "taro-wx",
4 | "description": "",
5 | "appid": "wxaccea9d583013448",
6 | "setting": {
7 | "urlCheck": false,
8 | "es6": false,
9 | "postcss": false,
10 | "minified": false,
11 | "newFeature": true,
12 | "coverView": true,
13 | "autoAudits": false,
14 | "showShadowRootInWxmlPanel": true,
15 | "scopeDataCheck": false,
16 | "checkInvalidKey": true,
17 | "checkSiteMap": true,
18 | "uploadWithSourceMap": true,
19 | "babelSetting": {
20 | "ignore": [],
21 | "disablePlugins": [],
22 | "outputPath": ""
23 | }
24 | },
25 | "compileType": "miniprogram",
26 | "simulatorType": "wechat",
27 | "simulatorPluginLibVersion": {},
28 | "condition": {}
29 | }
--------------------------------------------------------------------------------
/qq/app.js:
--------------------------------------------------------------------------------
1 | //app.js
2 | var uma = require('./lib/uma.min');
3 | // import 'umtrack-qq';
4 |
5 | App({
6 | umengConfig: {
7 | appKey: '5ef04e116975e3e1362f37f7',
8 | useOpenid: true,
9 | autoGetOpenid: true,
10 | uploadUserInfo: true,
11 | debug: true
12 | },
13 | onLaunch(options) {
14 | console.log('app onLaunch', options);
15 |
16 | },
17 |
18 | onShow(options) {
19 | console.log('app show', options);
20 |
21 | },
22 |
23 | onHide() {
24 | console.log('app hide');
25 |
26 | },
27 |
28 | onError(/* msg */) {
29 | console.log('onError');
30 | qq.showToast({
31 | title: 'onError',
32 | content: ''
33 | });
34 | },
35 | globalData: {
36 | userInfo: null
37 | }
38 | })
39 |
--------------------------------------------------------------------------------
/qq/pages/index/index.qml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/cocos2x/settings/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "collision-matrix": [
3 | [
4 | true
5 | ]
6 | ],
7 | "excluded-modules": [
8 | "3D Physics/cannon.js",
9 | "3D Physics/Builtin",
10 | "3D Particle",
11 | "SafeArea"
12 | ],
13 | "group-list": [
14 | "default"
15 | ],
16 | "start-scene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
17 | "design-resolution-width": 960,
18 | "design-resolution-height": 640,
19 | "fit-width": false,
20 | "fit-height": true,
21 | "use-project-simulator-setting": false,
22 | "simulator-orientation": false,
23 | "use-customize-simulator": false,
24 | "simulator-resolution": {
25 | "width": 960,
26 | "height": 640
27 | },
28 | "migrate-history": [
29 | "cloud-function"
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/tt/pages/component-page/component-page.js:
--------------------------------------------------------------------------------
1 | // pages/component-page/component-page.js
2 | Page({
3 | data: {
4 |
5 | },
6 | onLoad: function (options) {
7 |
8 | },
9 | methods: {
10 | onShow: function(options) {
11 | console.log('componentPage-onShow: ', options, this);
12 | },
13 | onHide: function(options) {
14 | console.log('componentPage-onHide: ', options, this);
15 | },
16 | onUnload: function(options) {
17 | console.log('componentPage-onUnload: ', options, this);
18 | },
19 | },
20 | onShareAppMessage: function (res) {
21 | console.log('componentPage-onShareAppMessage: ', this);
22 |
23 | return {
24 | title: '自定义转发标题',
25 | path: 'pages/index/index?um_test=1111111111'
26 | }
27 | },
28 | })
--------------------------------------------------------------------------------
/rax/README.md:
--------------------------------------------------------------------------------
1 | # rax 框架支持
2 |
3 | [原理参考](https://rax.alibaba-inc.com/docs/guide/mix-native-code#5.%20%E5%9C%A8%20Rax%20%E4%B8%AD%E5%AE%9A%E5%88%B6%20app.js%20%E9%80%BB%E8%BE%91)
4 |
5 | 以微信小程序为例,在rax运行时方案中,由于执行时机存在差异,用户在 runApp 中编写的 onLaunch 等生命周期有可能会在首页的 onLoad 中才会执行。因此,如果用户对于原生的 App 的生命周期有定制需要(比如劫持生命周期等),可以采取如下方式:
6 |
7 | 在 src/miniapp-native 中新建 app.js,在其中可以随意编写业务逻辑,但要求该文件必须使用 module.exports 导出一个 App 的配置对象,代码示例如下:
8 |
9 | ```js
10 | // ./uma.js是 umtrack-wx/lib/index.js sdk包复制过来的
11 | import uma from './uma.js';
12 | // uma包引入必须在此引入,uma.init 可以延迟到 后面通过wx.uma.init去调用
13 | uma.init({
14 | appKey: 'xxx',
15 | debug: true,
16 | useOpenid: false,
17 | });
18 | const nativeAppConfig = {};
19 | module.exports = nativeAppConfig;
20 |
21 | ```
22 | 后面就可以用wx.uma.trackEvent('XXXX')
--------------------------------------------------------------------------------
/wepy2/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "a wepy demo with umeng stat",
3 | "setting": {
4 | "urlCheck": false,
5 | "es6": false,
6 | "postcss": false,
7 | "minified": false,
8 | "newFeature": true,
9 | "coverView": true,
10 | "autoAudits": false,
11 | "showShadowRootInWxmlPanel": true,
12 | "scopeDataCheck": false,
13 | "checkInvalidKey": true,
14 | "checkSiteMap": true,
15 | "uploadWithSourceMap": true,
16 | "babelSetting": {
17 | "ignore": [],
18 | "disablePlugins": [],
19 | "outputPath": ""
20 | }
21 | },
22 | "compileType": "miniprogram",
23 | "appid": "wxaccea9d583013448",
24 | "projectname": "wepy2",
25 | "miniprogramRoot": "weapp/",
26 | "simulatorType": "wechat",
27 | "simulatorPluginLibVersion": {},
28 | "condition": {}
29 | }
--------------------------------------------------------------------------------
/wx-game/js/player/bullet.js:
--------------------------------------------------------------------------------
1 | import Sprite from '../base/sprite'
2 | import DataBus from '../databus'
3 |
4 | const BULLET_IMG_SRC = 'images/bullet.png'
5 | const BULLET_WIDTH = 16
6 | const BULLET_HEIGHT = 30
7 |
8 | const __ = {
9 | speed: Symbol('speed')
10 | }
11 |
12 | let databus = new DataBus()
13 |
14 | export default class Bullet extends Sprite {
15 | constructor() {
16 | super(BULLET_IMG_SRC, BULLET_WIDTH, BULLET_HEIGHT)
17 | }
18 |
19 | init(x, y, speed) {
20 | this.x = x
21 | this.y = y
22 |
23 | this[__.speed] = speed
24 |
25 | this.visible = true
26 | }
27 |
28 | // 每一帧更新子弹位置
29 | update() {
30 | this.y -= this[__.speed]
31 |
32 | // 超出屏幕外回收自身
33 | if ( this.y < -this.height )
34 | databus.removeBullets(this)
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/remaxjs/src/pages/index/index.js:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import { View, Text, Image } from 'remax/one';
3 | import styles from './index.module.css';
4 | import { useReady } from 'remax';
5 | import uma from '@/uma';
6 |
7 | export default () => {
8 | useReady(()=>{
9 | uma.trackEvent('buy',{car:'bmw'});
10 | });
11 | return (
12 |
13 |
14 |
19 |
20 | 编辑 src/pages/index/index.js开始
21 |
22 |
23 |
24 | );
25 | };
26 |
--------------------------------------------------------------------------------
/wx-game/js/umstat.js:
--------------------------------------------------------------------------------
1 | import uma from './utils/umtrack-wx-game/index'
2 |
3 | wx.showShareMenu({
4 | withShareTicket: true
5 | });
6 | /**
7 | * 方法一onShareAppMessage
8 | */
9 | uma.onShareAppMessage( ()=> {
10 | // 你要分享的元数据
11 | // 请先到微信管理后台配置转发图片:https://developers.weixin.qq.com/minigame/dev/guide/open-ability/share/share.html
12 | var share = {
13 | title: '右上角分享',
14 | imageUrl: '', // 图片 URL
15 | //query:'key1=val1&key2=val2'
16 | };
17 | // 此处务必将trackShare的调用结果return
18 | return share;
19 | });
20 |
21 | /**
22 | * onShareAppMessage 方法二
23 | */
24 | // wx.onShareAppMessage(function(){
25 | // var share = {
26 | // title: '右上角分享',
27 | // imageUrl: '', // 图片 URL
28 | // query:'key1=val1&key2=val2'
29 | // };
30 | // let data = wx.uma.trackShare(share);
31 | // return data;
32 | // })
33 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/pages/index/index.vue.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/wx-game/js/runtime/music.js:
--------------------------------------------------------------------------------
1 | let instance
2 |
3 | /**
4 | * 统一的音效管理器
5 | */
6 | export default class Music {
7 | constructor() {
8 | if ( instance )
9 | return instance
10 |
11 | instance = this
12 |
13 | this.bgmAudio = new Audio()
14 | this.bgmAudio.loop = true
15 | this.bgmAudio.src = 'audio/bgm.mp3'
16 |
17 | this.shootAudio = new Audio()
18 | this.shootAudio.src = 'audio/bullet.mp3'
19 |
20 | this.boomAudio = new Audio()
21 | this.boomAudio.src = 'audio/boom.mp3'
22 |
23 | this.playBgm()
24 | }
25 |
26 | playBgm() {
27 | this.bgmAudio.play()
28 | }
29 |
30 | playShoot() {
31 | this.shootAudio.currentTime = 0
32 | this.shootAudio.play()
33 | }
34 |
35 | playExplosion() {
36 | this.boomAudio.currentTime = 0
37 | this.boomAudio.play()
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/wepy2/src/components/panel.wpy:
--------------------------------------------------------------------------------
1 |
32 |
33 |
34 |
35 | Title
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/wepy-one/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | globals: { wx: true },
4 | parser: 'babel-eslint',
5 | parserOptions: {
6 | sourceType: 'module'
7 | },
8 | env: {
9 | browser: true
10 | },
11 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
12 | extends: 'standard',
13 | // required to lint *.wpy files
14 | plugins: [
15 | 'html'
16 | ],
17 | settings: {
18 | 'html/html-extensions': ['.html', '.wpy']
19 | },
20 | // add your custom rules here
21 | 'rules': {
22 | // allow paren-less arrow functions
23 | 'arrow-parens': 0,
24 | // allow async-await
25 | 'generator-star-spacing': 0,
26 | // allow debugger during development
27 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
28 | 'space-before-function-paren': 0
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/wepy2/wepy.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 | var prod = process.env.NODE_ENV === 'production';
3 |
4 | module.exports = {
5 | wpyExt: '.wpy',
6 | cliLogs: !prod,
7 | static: ['static'],
8 | build: {
9 | },
10 | resolve: {
11 | alias: {
12 | counter: path.join(__dirname, 'src/components/counter'),
13 | '@': path.join(__dirname, 'src')
14 | },
15 | aliasFields: ['wepy', 'weapp'],
16 | modules: ['node_modules']
17 | },
18 | compilers: {
19 | less: {
20 | compress: prod
21 | },
22 | babel: {
23 | sourceMap: true,
24 | presets: [
25 | '@babel/preset-env'
26 | ],
27 | plugins: [
28 | '@wepy/babel-plugin-import-regenerator'
29 | ]
30 | }
31 | },
32 | plugins: [],
33 | appConfig: {
34 | noPromiseAPI: ['createSelectorQuery']
35 | }
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/cocos2x/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js:
--------------------------------------------------------------------------------
1 | /*
2 | * This script is automatically generated by Cocos Creator and is only used for projects compatible with the v2.1.0 ~ 2.2.1 version.
3 | * You do not need to manually add this script in any other project.
4 | * If you don't use cc.Toggle in your project, you can delete this script directly.
5 | * If your project is hosted in VCS such as git, submit this script together.
6 | *
7 | * 此脚本由 Cocos Creator 自动生成,仅用于兼容 v2.1.0 ~ 2.2.1 版本的工程,
8 | * 你无需在任何其它项目中手动添加此脚本。
9 | * 如果你的项目中没用到 Toggle,可直接删除该脚本。
10 | * 如果你的项目有托管于 git 等版本库,请将此脚本一并上传。
11 | */
12 |
13 | if (cc.Toggle) {
14 | // Whether to trigger 'toggle' and 'checkEvents' events when modifying 'toggle.isChecked' in the code
15 | // 在代码中修改 'toggle.isChecked' 时是否触发 'toggle' 与 'checkEvents' 事件
16 | cc.Toggle._triggerEventInScript_isChecked = true;
17 | }
18 |
--------------------------------------------------------------------------------
/alipay/.tea/layout.json:
--------------------------------------------------------------------------------
1 | {"main":"{\"left\":{\"size\":268,\"currentIndex\":6,\"tabbars\":[{\"containerId\":\"search\",\"hidden\":false},{\"containerId\":\"explorer\",\"hidden\":false},{\"containerId\":\"scm_container\",\"hidden\":false},{\"containerId\":\"extensions\",\"hidden\":false},{\"containerId\":\"3\",\"hidden\":false},{\"containerId\":\"2\",\"hidden\":false},{\"containerId\":\"1\",\"hidden\":false}]},\"right\":{\"size\":340,\"currentIndex\":-1,\"tabbars\":[]},\"bottom\":{\"size\":305,\"currentIndex\":0,\"tabbars\":[{\"containerId\":\"devtools\",\"hidden\":false}],\"collapsed\":false}}","view/scm_container":"{\"sections\":[{\"viewId\":\"scm_provider\",\"collapsed\":false,\"hidden\":true},{\"viewId\":\"scm\",\"collapsed\":false,\"hidden\":false}]}","layout":{"left":{"currentId":"explorer","size":310},"right":{"currentId":""},"bottom":{"currentId":"devtools","size":280}},"storageVersion":"1.5.10"}
--------------------------------------------------------------------------------
/wepy-one/README.md:
--------------------------------------------------------------------------------
1 | # wepy1.x
2 |
3 | # 1.注册友盟+账号
4 | [参考官网原生小程序文档](https://developer.umeng.com/docs/147615/detail/147619)
5 |
6 | # 2.友盟官网申请小程序appkey
7 | [参考官网原生小程序文档](https://developer.umeng.com/docs/147615/detail/147619)
8 | # 3.配置域名白名单等
9 | [官网微信小程序文档](https://developer.umeng.com/docs/147615/detail/147619)
10 | # 4.安装sdk
11 | ```bash
12 | cd path-to-uniappproject
13 | npm install umtrack-wx --save
14 | ```
15 | # 5.集成关键代码
16 | ***/src/app.wpy***
17 | ```js
18 | import uma from 'umtrack-wx';
19 | uma.init({
20 | appKey: 'xxxx',
21 | useOpenid: false,
22 | autoGetOpenid: false,
23 | debug: true
24 | });
25 | ```
26 | # 6.自定义事件
27 | ***/pages/index.wpy***
28 | ```js
29 | onLoad(){
30 | my.uma.trackEvent('eventID',{pa:'fff'});
31 | },
32 | ```
33 | # 7. sdk集成位置尽量靠前
34 | # 8. 关于wepy1.x注意在模拟器要关闭es6->es5,参考[https://wepyjs.gitee.io/wepy-docs/1.x/#/](https://wepyjs.gitee.io/wepy-docs/1.x/#/)
--------------------------------------------------------------------------------
/swan/pages/component-page/component-page.js:
--------------------------------------------------------------------------------
1 | // pages/component-page/component-page.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {},
7 |
8 | /**
9 | * 组件的初始数据
10 | */
11 | data: {},
12 |
13 | /**
14 | * 组件的方法列表
15 | */
16 | methods: {
17 | onShow: function (options) {
18 | console.log('componentPage-onShow: ', options, this);
19 | },
20 | // onHide: function(options) {
21 | // console.log('componentPage-onHide: ', options, this);
22 | // },
23 | onUnload: function (options) {
24 | console.log('componentPage-onUnload: ', options, this);
25 | },
26 | onShareAppMessage: function (res) {
27 | console.log('componentPage-onShareAppMessage: ', this);
28 |
29 | return {
30 | title: '自定义转发标题',
31 | path: 'pages/index/index?um_test=1111111111'
32 | };
33 | }
34 | }
35 | });
--------------------------------------------------------------------------------
/wepy2/weapp/components/groupitem.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | var _core = _interopRequireDefault(require('./../vendor.js')(1));
4 |
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6 |
7 | _core["default"].component({
8 | props: {
9 | gitem: {}
10 | },
11 | data: {},
12 | methods: {
13 | tap: function tap() {
14 | this.gitem.childname = "Child Random(".concat(Math.random(), ")");
15 | var index = this.$parent.$children.indexOf(this);
16 | console.log("Item ".concat(index, ", ID is ").concat(this.gitem.childid));
17 | }
18 | }
19 | }, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
20 | var $event = arguments[arguments.length - 1];
21 | var _vm=this;
22 | return (function () {
23 | _vm.tap($event);
24 | })();
25 |
26 | }}}, models: {}, refs: undefined });
--------------------------------------------------------------------------------
/rax/src/pages/Home/index.jsx:
--------------------------------------------------------------------------------
1 | import { createElement } from 'rax';
2 | import { history } from 'rax-app';
3 | import View from 'rax-view';
4 | import Text from 'rax-text';
5 |
6 | import styles from './index.module.css';
7 |
8 | import Logo from '@/components/Logo';
9 |
10 | export default function Home() {
11 | return (
12 |
13 |
14 | Welcome to Your Rax App
15 | More information about Rax
16 | Visit https://rax.js.org
17 |
20 | {
21 | history.push('/sub')
22 | }}>跳转sub页面
23 |
24 | );
25 | }
26 |
--------------------------------------------------------------------------------
/wx/pages/component-page/component-page.js:
--------------------------------------------------------------------------------
1 | // pages/component-page/component-page.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 |
8 | },
9 |
10 | /**
11 | * 组件的初始数据
12 | */
13 | data: {
14 |
15 | },
16 |
17 | /**
18 | * 组件的方法列表
19 | */
20 | methods: {
21 | onShow: function(options) {
22 | console.log('componentPage-onShow: ', options, this);
23 | },
24 | onHide: function(options) {
25 | console.log('componentPage-onHide: ', options, this);
26 | },
27 | onUnload: function(options) {
28 | console.log('componentPage-onUnload: ', options, this);
29 | },
30 | onShareAppMessage: function (res) {
31 | console.log('componentPage-onShareAppMessage: ', this);
32 |
33 | return {
34 | title: '自定义转发标题',
35 | path: 'pages/index/index?um_test=1111111111'
36 | }
37 | },
38 | }
39 | })
40 |
--------------------------------------------------------------------------------
/qq/pages/component-page/component-page.js:
--------------------------------------------------------------------------------
1 | // pages/component-page/component-page.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 |
8 | },
9 |
10 | /**
11 | * 组件的初始数据
12 | */
13 | data: {
14 |
15 | },
16 |
17 | /**
18 | * 组件的方法列表
19 | */
20 | methods: {
21 | onShow: function(options) {
22 | console.log('componentPage-onShow: ', options, this);
23 | },
24 | // onHide: function(options) {
25 | // console.log('componentPage-onHide: ', options, this);
26 | // },
27 | onUnload: function(options) {
28 | console.log('componentPage-onUnload: ', options, this);
29 | },
30 | onShareAppMessage: function (res) {
31 | console.log('componentPage-onShareAppMessage: ', this);
32 |
33 | return {
34 | title: '自定义转发标题',
35 | path: 'pages/index/index?um_test=1111111111'
36 | }
37 | },
38 | }
39 | })
40 |
--------------------------------------------------------------------------------
/mpx/src/app.mpx:
--------------------------------------------------------------------------------
1 |
17 |
18 |
21 |
22 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/wx-game/js/base/pool.js:
--------------------------------------------------------------------------------
1 | const __ = {
2 | poolDic: Symbol('poolDic')
3 | }
4 |
5 | /**
6 | * 简易的对象池实现
7 | * 用于对象的存贮和重复使用
8 | * 可以有效减少对象创建开销和避免频繁的垃圾回收
9 | * 提高游戏性能
10 | */
11 | export default class Pool {
12 | constructor() {
13 | this[__.poolDic] = {}
14 | }
15 |
16 | /**
17 | * 根据对象标识符
18 | * 获取对应的对象池
19 | */
20 | getPoolBySign(name) {
21 | return this[__.poolDic][name] || ( this[__.poolDic][name] = [] )
22 | }
23 |
24 | /**
25 | * 根据传入的对象标识符,查询对象池
26 | * 对象池为空创建新的类,否则从对象池中取
27 | */
28 | getItemByClass(name, className) {
29 | let pool = this.getPoolBySign(name)
30 |
31 | let result = ( pool.length
32 | ? pool.shift()
33 | : new className() )
34 |
35 | return result
36 | }
37 |
38 | /**
39 | * 将对象回收到对象池
40 | * 方便后续继续使用
41 | */
42 | recover(name, instance) {
43 | this.getPoolBySign(name).push(instance)
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/pages/logs/index.vue.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/chameleon/chameleon.config.js:
--------------------------------------------------------------------------------
1 |
2 | // 设置静态资源的线上路径
3 | const publicPath = '//www.static.chameleon.com/cml';
4 | // 设置api请求前缀
5 | const apiPrefix = 'https://api.chameleon.com';
6 |
7 | cml.config.merge({
8 | templateLang: "cml",
9 | templateType: "html",
10 | platforms: ["web","weex","wx","alipay","baidu","qq"],
11 | buildInfo: {
12 | wxAppId: '123456'
13 | },
14 | wx: {
15 | dev: {
16 | },
17 | build: {
18 | apiPrefix
19 | }
20 | },
21 | web: {
22 | dev: {
23 | analysis: false,
24 | console: false
25 | },
26 | build: {
27 | analysis: false,
28 | publicPath: `${publicPath}/web/`,
29 | apiPrefix
30 | }
31 | },
32 | weex: {
33 | dev: {
34 | },
35 | build: {
36 | publicPath: `${publicPath}/weex/`,
37 | apiPrefix
38 | },
39 | custom: {
40 | publicPath: `${publicPath}/wx/`,
41 | apiPrefix
42 | }
43 | }
44 | })
45 |
46 |
--------------------------------------------------------------------------------
/wepy-one/src/components/panel.wpy:
--------------------------------------------------------------------------------
1 |
29 |
30 |
31 |
32 | Title
33 |
34 |
35 |
36 |
37 |
38 |
44 |
--------------------------------------------------------------------------------
/.github/workflows/mirror.yml:
--------------------------------------------------------------------------------
1 | # This is a basic workflow to help you get started with Actions
2 |
3 | name: gitee mirror
4 |
5 | # Controls when the action will run.
6 | on: [ push, pull_request, workflow_dispatch ]
7 |
8 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel
9 | jobs:
10 | # This workflow contains a single job called "build"
11 | to_gitee:
12 | # The type of runner that the job will run on
13 | runs-on: ubuntu-latest
14 | continue-on-error: true
15 | # Steps represent a sequence of tasks that will be executed as part of the job
16 | steps:
17 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18 | - uses: actions/checkout@v1
19 | - uses: pixta-dev/repository-mirroring-action@v1
20 | with:
21 | target_repo_url: git@gitee.com:umengplus/mp-demos.git
22 | ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}
23 |
--------------------------------------------------------------------------------
/wepy-one/src/components/group.wpy:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | {{grouplist.id}}.
7 | {{grouplist.name}}
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
36 |
--------------------------------------------------------------------------------
/cocos2x/assets/Texture/singleColor.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "2.3.5",
3 | "uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
4 | "type": "sprite",
5 | "wrapMode": "clamp",
6 | "filterMode": "bilinear",
7 | "premultiplyAlpha": false,
8 | "genMipmaps": false,
9 | "packable": true,
10 | "width": 2,
11 | "height": 2,
12 | "platformSettings": {},
13 | "subMetas": {
14 | "singleColor": {
15 | "ver": "1.0.4",
16 | "uuid": "410fb916-8721-4663-bab8-34397391ace7",
17 | "rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
18 | "trimType": "auto",
19 | "trimThreshold": 1,
20 | "rotated": false,
21 | "offsetX": 0,
22 | "offsetY": 0,
23 | "trimX": 0,
24 | "trimY": 0,
25 | "width": 2,
26 | "height": 2,
27 | "rawWidth": 2,
28 | "rawHeight": 2,
29 | "borderTop": 0,
30 | "borderBottom": 0,
31 | "borderLeft": 0,
32 | "borderRight": 0,
33 | "subMetas": {}
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/rax/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "buildOnSave": false,
4 | "compilerOptions": {
5 | "baseUrl": ".",
6 | "outDir": "build",
7 | "module": "esnext",
8 | "target": "es6",
9 | "jsx": "preserve",
10 | "jsxFactory": "createElement",
11 | "moduleResolution": "node",
12 | "allowSyntheticDefaultImports": true,
13 | "lib": ["es6", "dom"],
14 | "sourceMap": true,
15 | "allowJs": true,
16 | "rootDir": "./",
17 | "forceConsistentCasingInFileNames": true,
18 | "noImplicitReturns": true,
19 | "noImplicitThis": true,
20 | "noImplicitAny": false,
21 | "importHelpers": true,
22 | "strictNullChecks": true,
23 | "suppressImplicitAnyIndexErrors": true,
24 | "noUnusedLocals": true,
25 | "skipLibCheck": true,
26 | "paths": {
27 | "@/*": ["./src/*"],
28 | "rax-app": [".rax/index.ts"]
29 | }
30 | },
31 | "include": ["src", ".rax"],
32 | "exclude": ["node_modules", "build", "public"]
33 | }
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-production/index$.worker.js:
--------------------------------------------------------------------------------
1 | if(!self.__appxInited) {
2 | self.__appxInited = 1;
3 |
4 |
5 | require('./config$');
6 | require('./importScripts$');
7 |
8 | var AFAppX = self.AFAppX;
9 | self.getCurrentPages = AFAppX.getCurrentPages;
10 | self.getApp = AFAppX.getApp;
11 | self.Page = AFAppX.Page;
12 | self.App = AFAppX.App;
13 | self.my = AFAppX.bridge || AFAppX.abridge;
14 | self.abridge = self.my;
15 | self.Component = AFAppX.WorkerComponent || function(){};
16 | self.$global = AFAppX.$global;
17 | self.requirePlugin = AFAppX.requirePlugin;
18 |
19 |
20 | if(AFAppX.registerApp) {
21 | AFAppX.registerApp({
22 | appJSON: appXAppJson,
23 | });
24 | }
25 |
26 |
27 |
28 | function success() {
29 | require('../../app');
30 | require('../../pages/page1/page1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
31 | require('../../pages/page2/page2?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
32 | }
33 | self.bootstrapApp ? self.bootstrapApp({ success }) : success();
34 | }
--------------------------------------------------------------------------------
/wx-game/js/databus.js:
--------------------------------------------------------------------------------
1 | import Pool from './base/pool'
2 |
3 | let instance
4 |
5 | /**
6 | * 全局状态管理器
7 | */
8 | export default class DataBus {
9 | constructor() {
10 | if ( instance )
11 | return instance
12 |
13 | instance = this
14 |
15 | this.pool = new Pool()
16 |
17 | this.reset()
18 | }
19 |
20 | reset() {
21 | this.frame = 0
22 | this.score = 0
23 | this.bullets = []
24 | this.enemys = []
25 | this.animations = []
26 | this.gameOver = false
27 | }
28 |
29 | /**
30 | * 回收敌人,进入对象池
31 | * 此后不进入帧循环
32 | */
33 | removeEnemey(enemy) {
34 | let temp = this.enemys.shift()
35 |
36 | temp.visible = false
37 |
38 | this.pool.recover('enemy', enemy)
39 | }
40 |
41 | /**
42 | * 回收子弹,进入对象池
43 | * 此后不进入帧循环
44 | */
45 | removeBullets(bullet) {
46 | let temp = this.bullets.shift()
47 |
48 | temp.visible = false
49 |
50 | this.pool.recover('bullet', bullet)
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/cocos2x/assets/Texture/HelloWorld.png.meta:
--------------------------------------------------------------------------------
1 | {
2 | "ver": "2.3.5",
3 | "uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
4 | "type": "sprite",
5 | "wrapMode": "clamp",
6 | "filterMode": "bilinear",
7 | "premultiplyAlpha": false,
8 | "genMipmaps": false,
9 | "packable": true,
10 | "width": 195,
11 | "height": 270,
12 | "platformSettings": {},
13 | "subMetas": {
14 | "HelloWorld": {
15 | "ver": "1.0.4",
16 | "uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc",
17 | "rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
18 | "trimType": "auto",
19 | "trimThreshold": 1,
20 | "rotated": false,
21 | "offsetX": 0,
22 | "offsetY": 0,
23 | "trimX": 0,
24 | "trimY": 0,
25 | "width": 195,
26 | "height": 270,
27 | "rawWidth": 195,
28 | "rawHeight": 270,
29 | "borderTop": 0,
30 | "borderBottom": 0,
31 | "borderLeft": 0,
32 | "borderRight": 0,
33 | "subMetas": {}
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/kuaishou/app.js:
--------------------------------------------------------------------------------
1 |
2 | import uma from './uma.min.js'
3 | // uma.preinit({
4 | // ENDPOINT: "https://preulogs.umeng.com"
5 | // });
6 | uma.init({
7 | debug:true,
8 | appKey: 'YOUR_APP_KEY',
9 | useOpenid:false,
10 | autoGetOpenid:false,
11 | uploadUserInfo:false
12 | })
13 | App({
14 | onLaunch: function () {
15 | // ks.onAppHide(function(){
16 | // console.log('onAppHide.....')
17 | // })
18 | ks.getSystemInfo({
19 | success:function(res){
20 | console.log(res);
21 | }
22 | })
23 | },
24 | onShow(){
25 | ks.showToast({
26 | title: 'onShow',
27 | icon: 'success',
28 | duration: 2000
29 | })
30 | this.globalData.showtime = this.globalData.showtime + '|' + new Date();
31 | console.log('onShow....');
32 | },
33 | onHide:function(){
34 | this.globalData.hidetime = this.globalData.hidetime +'|' + new Date() ;
35 | console.log('onHide....');
36 | },
37 | globalData:{
38 | showtime:'',
39 | hidetime:''
40 | }
41 | })
--------------------------------------------------------------------------------
/rax/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "RAXTEST",
3 | "author": "rax",
4 | "description": "Rax 无线跨端应用工程,使用 JavaScript。",
5 | "version": "0.1.0",
6 | "scripts": {
7 | "start": "rax-app start",
8 | "build": "rax-app build",
9 | "eslint": "eslint --ext .js,.jsx ./",
10 | "stylelint": "stylelint \"**/*.{css,scss,less}\"",
11 | "prettier": "prettier **/* --write",
12 | "lint": "npm run eslint && npm run stylelint"
13 | },
14 | "dependencies": {
15 | "rax": "^1.1.0",
16 | "rax-document": "^0.1.0",
17 | "rax-image": "^2.0.0",
18 | "rax-link": "^1.0.1",
19 | "rax-text": "^2.0.0",
20 | "rax-view": "^2.0.0",
21 | "umtrack-wx": "^2.6.2"
22 | },
23 | "devDependencies": {
24 | "@iceworks/spec": "^1.0.0",
25 | "rax-app": "^3.0.0",
26 | "eslint": "^6.8.0",
27 | "prettier": "^2.1.2",
28 | "stylelint": "^13.7.2",
29 | "@ali/build-plugin-rax-app-def": "^3.0.0"
30 | },
31 | "private": true,
32 | "originTemplate": "@rax-materials/scaffolds-app-js"
33 | }
34 |
--------------------------------------------------------------------------------
/mpx/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const { userConf } = require('./config/index')
2 |
3 | const eslintConf = {
4 | root: true,
5 | parser: 'babel-eslint',
6 | parserOptions: {
7 | sourceType: 'module'
8 | },
9 | extends: 'standard',
10 | settings: {
11 | 'html/html-extensions': ['.html', '.mpx'], // consider .html and .mpx files as HTML
12 | },
13 | plugins: [
14 | 'html'
15 | ],
16 | globals: {
17 | wx: true,
18 | getApp: true,
19 | App: true,
20 | __mpx_mode__: true
21 | },
22 | rules: {
23 | camelcase: ['error', { 'allow': ['__mpx_mode__'] }]
24 | }
25 | }
26 | if (userConf.tsSupport) {
27 | eslintConf.overrides = [
28 | {
29 | files: ['**/*.ts'],
30 | parser: '@typescript-eslint/parser',
31 | extends: [
32 | 'standard',
33 | 'plugin:@typescript-eslint/eslint-recommended',
34 | 'plugin:@typescript-eslint/recommended',
35 | ],
36 | plugins: ['@typescript-eslint'],
37 | },
38 | ]
39 | }
40 |
41 | module.exports = eslintConf
42 |
--------------------------------------------------------------------------------
/wx/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "weixin",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@alicloud/mpserverless-analyse-wxsdk": {
8 | "version": "1.0.0",
9 | "resolved": "https://registry.npmjs.org/@alicloud/mpserverless-analyse-wxsdk/-/mpserverless-analyse-wxsdk-1.0.0.tgz",
10 | "integrity": "sha512-5LOx8BcJa/pOvndClfjLbXeWr2ISG0JpwFZRoSKiCOiJVCotnihN8sn5Rx70wyEgb5Pooc+fOPW3lHER85oYDg=="
11 | },
12 | "@alicloud/mpserverless-sdk": {
13 | "version": "2.2.0-alpha.0",
14 | "resolved": "http://r.cnpmjs.org/@alicloud/mpserverless-sdk/download/@alicloud/mpserverless-sdk-2.2.0-alpha.0.tgz",
15 | "integrity": "sha1-33I9Pf75SZyqK/tZa86LkAs4Kwg="
16 | },
17 | "umtrack-wx": {
18 | "version": "2.2.1-1",
19 | "resolved": "https://registry.npmjs.org/umtrack-wx/-/umtrack-wx-2.2.1-1.tgz",
20 | "integrity": "sha512-PVvaIinMRaJBX7N2S8drCAdy7Swhio7JO8x1GsjbjVyPHI2d0tgY5NT6GjjY+MTkwjIwLqATztOh2AFEB8NCIA=="
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/mpvue/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件。",
3 | "setting": {
4 | "urlCheck": false,
5 | "es6": false,
6 | "postcss": true,
7 | "minified": true,
8 | "newFeature": true,
9 | "coverView": true,
10 | "autoAudits": false,
11 | "showShadowRootInWxmlPanel": true,
12 | "scopeDataCheck": false,
13 | "checkInvalidKey": true,
14 | "checkSiteMap": true,
15 | "uploadWithSourceMap": true,
16 | "babelSetting": {
17 | "ignore": [],
18 | "disablePlugins": [],
19 | "outputPath": ""
20 | }
21 | },
22 | "miniprogramRoot": "dist/wx/",
23 | "compileType": "miniprogram",
24 | "appid": "wxaccea9d583013448",
25 | "projectname": "mpvue",
26 | "simulatorType": "wechat",
27 | "simulatorPluginLibVersion": {},
28 | "condition": {
29 | "search": {
30 | "current": -1,
31 | "list": []
32 | },
33 | "conversation": {
34 | "current": -1,
35 | "list": []
36 | },
37 | "game": {
38 | "currentL": -1,
39 | "list": []
40 | },
41 | "miniprogram": {
42 | "current": -1,
43 | "list": []
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/alipay/.tea/entryFiles-development/index$.worker.js:
--------------------------------------------------------------------------------
1 | if(!self.__appxInited) {
2 | self.__appxInited = 1;
3 |
4 |
5 | require('./config$');
6 |
7 |
8 | var AFAppX = self.AFAppX.getAppContext
9 | ? self.AFAppX.getAppContext().AFAppX
10 | : self.AFAppX;
11 | self.getCurrentPages = AFAppX.getCurrentPages;
12 | self.getApp = AFAppX.getApp;
13 | self.Page = AFAppX.Page;
14 | self.App = AFAppX.App;
15 | self.my = AFAppX.bridge || AFAppX.abridge;
16 | self.abridge = self.my;
17 | self.Component = AFAppX.WorkerComponent || function(){};
18 | self.$global = AFAppX.$global;
19 | self.requirePlugin = AFAppX.requirePlugin;
20 |
21 |
22 | if(AFAppX.registerApp) {
23 | AFAppX.registerApp({
24 | appJSON: appXAppJson,
25 | });
26 | }
27 |
28 |
29 |
30 | function success() {
31 | require('../../app');
32 | require('../../pages/page1/page1?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
33 | require('../../pages/page2/page2?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
34 | }
35 | self.bootstrapApp ? self.bootstrapApp({ success }) : success();
36 | }
--------------------------------------------------------------------------------
/mpvue/dist/wx/pages/index/main.wxss:
--------------------------------------------------------------------------------
1 | @import "../../common/vendor.wxss";
2 |
3 | .userinfo.data-v-6b277275 {
4 | display: flex;
5 | flex-direction: column;
6 | align-items: center;
7 | }
8 | .userinfo-avatar.data-v-6b277275 {
9 | width: 128rpx;
10 | height: 128rpx;
11 | margin: 20rpx;
12 | border-radius: 50%;
13 | }
14 | .userinfo-nickname.data-v-6b277275 {
15 | color: #aaa;
16 | }
17 | .usermotto.data-v-6b277275 {
18 | margin-top: 300rpx;
19 | }
20 | .form-control.data-v-6b277275 {
21 | display: block;
22 | padding: 0 24rpx;
23 | margin-bottom: 10rpx;
24 | border: 2rpx solid #ccc;
25 | }
26 | .all.data-v-6b277275 {
27 | width: 750rpx;
28 | height: 100rpx;
29 | background-color: blue;
30 | }
31 | .all.data-v-6b277275:after {
32 | display: block;
33 | content: '';
34 | clear: both;
35 | }
36 | .left.data-v-6b277275 {
37 | float: left;
38 | width: 300rpx;
39 | height: 100rpx;
40 | background-color: red;
41 | }
42 | .right.data-v-6b277275 {
43 | float: left;
44 | width: 450rpx;
45 | height: 100rpx;
46 | background-color: green;
47 | }
--------------------------------------------------------------------------------
/qq/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "projectid": "1110429485_qq",
3 | "setting": {
4 | "urlCheck": false,
5 | "es6": true,
6 | "postcss": false,
7 | "minified": true,
8 | "newFeature": true,
9 | "autoAudits": true,
10 | "nodeModules": true,
11 | "uploadWithSourceMap": true,
12 | "uglifyFileName": true,
13 | "remoteDebugLogEnable": false
14 | },
15 | "qqLibVersion": "1.16.0",
16 | "compileType": "miniprogram",
17 | "createTime": 1592794015777,
18 | "accessTime": 1592794015777,
19 | "packOptions": {
20 | "ignore": []
21 | },
22 | "debugOptions": {
23 | "hidedInDevtools": []
24 | },
25 | "qqappid": "1110429485",
26 | "projectname": "qq",
27 | "scripts": {
28 | "beforeCompile": "",
29 | "beforePreview": "",
30 | "beforeUpload": ""
31 | },
32 | "condition": {
33 | "search": {
34 | "current": -1,
35 | "list": []
36 | },
37 | "conversation": {
38 | "current": -1,
39 | "list": []
40 | },
41 | "game": {
42 | "currentL": -1,
43 | "list": []
44 | },
45 | "miniprogram": {
46 | "current": -1,
47 | "list": []
48 | }
49 | }
50 | }
--------------------------------------------------------------------------------
/remaxjs/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "remax-template",
3 | "private": true,
4 | "version": "1.0.0",
5 | "description": "Starter template for Remax apps",
6 | "main": "index.js",
7 | "keywords": [],
8 | "author": "云猫🐈",
9 | "license": "MIT",
10 | "scripts": {
11 | "dev:wx": "cross-env REMAX_PLATFORM=wechat remax build -w -t wechat",
12 | "dev:my": "cross-env REMAX_PLATFORM=alipay remax build -w -t alipay",
13 | "clean": "rimraf dist",
14 | "prebuild": "npm run clean",
15 | "build:wx": "cross-env REMAX_PLATFORM=wechat NODE_ENV=production remax build -t wechat",
16 | "build:my": "cross-env REMAX_PLATFORM=alipay NODE_ENV=production remax build -t alipay"
17 | },
18 | "dependencies": {
19 | "clsx": "^1.0.4",
20 | "react": "^16.8.6",
21 | "remax": "^1.19.2",
22 | "remax-cli": "^1.19.2",
23 | "rimraf": "^2.6.3",
24 | "rollup-plugin-terser": "^5.3.0",
25 | "umtrack-alipay": "^2.2.2",
26 | "umtrack-wx": "^2.2.2"
27 | },
28 | "devDependencies": {
29 | "chokidar": "^2.1.8",
30 | "cross-env": "^7.0.2"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/taro/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/wepy2/src/components/group.wpy:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
{{grouplist.id}}.
7 |
{{grouplist.name}}
8 |
13 |
14 |
15 |
35 |
36 | {
37 | usingComponents: {
38 | 'groupitem': './groupitem'
39 | }
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/wepy2/weapp/components/group.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | var _core = _interopRequireDefault(require('./../vendor.js')(1));
4 |
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6 |
7 | //import GroupItem from './groupitem'
8 | _core["default"].component({
9 | props: {
10 | grouplist: {},
11 | index: {}
12 | },
13 | methods: {
14 | tap: function tap() {
15 | this.grouplist.name = "Parent Random(".concat(Math.random(), ")");
16 | var groups = this.$parent.$children.filter(function (com) {
17 | return com.$is === 'components/group';
18 | });
19 | var index = groups.indexOf(this);
20 | console.log("Clicked Group ".concat(index, ", ID is ").concat(this.grouplist.id));
21 | }
22 | }
23 | }, {info: {"components":{"groupitem":{"path":"./groupitem"}},"on":{}}, handlers: {'10-0': {"tap": function proxy () {
24 | var $event = arguments[arguments.length - 1];
25 | var _vm=this;
26 | return (function () {
27 | _vm.tap($event);
28 | })();
29 |
30 | }}}, models: {}, refs: undefined });
--------------------------------------------------------------------------------
/wx/pages/page1/page1.js:
--------------------------------------------------------------------------------
1 | //logs.js
2 | const util = require('../../util/util.js')
3 | const app = getApp();
4 |
5 | Page({
6 | data: {
7 | logs: []
8 | },
9 |
10 | gotoIndexPage: function() {
11 | wx.navigateTo({
12 | url: "../index/index"
13 | });
14 | // console.log('gotoPage1');
15 | },
16 |
17 | gotoLog: function() {
18 | wx.navigateTo({
19 | url: "../logs/logs"
20 | });
21 | },
22 |
23 | onLoad: function () {
24 |
25 | },
26 |
27 | onShow: function() {
28 | // app.globalData.uma.trackPageStart('page1');
29 | },
30 |
31 | onHide: function() {
32 | // app.globalData.uma.trackPageEnd('page1');
33 | },
34 |
35 | onUnload: function() {
36 | // app.globalData.uma.trackPageEnd('page1');
37 | },
38 |
39 | trackEvent: function() {
40 | app.globalData.uma.trackEvent("page1_event_0");
41 | app.globalData.uma.trackEvent("page1_event_1");
42 | app.globalData.uma.trackEvent("page1_event_2");
43 | app.globalData.uma.trackEvent("page1_event_3");
44 | app.globalData.uma.trackEvent("page1_event_4");
45 | }
46 | })
47 |
--------------------------------------------------------------------------------
/wepy2/src/components/list.wpy:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 | This component is not used. because list is an aliasField in package.json
12 |
13 |
14 |
49 |
--------------------------------------------------------------------------------
/wx-game/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wx-game",
3 | "version": "1.0.0",
4 | "description": "## 源码目录介绍 ``` ./js ├── base // 定义游戏开发基础类 │ ├── animatoin.js // 帧动画的简易实现 │ ├── pool.js // 对象池的简易实现 │ └── sprite.js // 游戏基本元素精灵类 ├── libs │ ├── symbol.js // ES6 Symbol简易兼容 │ └── weapp-adapter.js // 小游戏适配器 ├── npc │ └── enemy.js // 敌机类 ├── player │ ├── bullet.js // 子弹类 │ └── index.js // 玩家类 ├── runtime │ ├── background.js // 背景类 │ ├── gameinfo.js // 用于展示分数和结算界面 │ └── music.js // 全局音效管理器 ├── databus.js // 管控游戏状态 └── main.js // 游戏入口主函数",
5 | "main": "game.js",
6 | "directories": {
7 | "lib": "lib"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "author": "gongzhen",
13 | "license": "ISC"
14 | }
15 |
--------------------------------------------------------------------------------
/wepy2/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wepy2",
3 | "version": "0.0.2",
4 | "description": "a wepy demo with umeng stat",
5 | "main": "weapp/app.js",
6 | "scripts": {
7 | "dev": "./node_modules/.bin/wepy build --watch",
8 | "build": "cross-env NODE_ENV=production ./node_modules/.bin/wepy build --no-cache",
9 | "clean": "rm -rf weapp",
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "wepy": {
13 | "module-a": false,
14 | "./src/components/list": "./src/components/wepy-list.wpy"
15 | },
16 | "author": "gongzhen",
17 | "license": "MIT",
18 | "dependencies": {
19 | "@wepy/core": "^2.0.0-alpha.9",
20 | "miniprogram-slide-view": "0.0.3",
21 | "umtrack-wx": "^2.2.1-1"
22 | },
23 | "devDependencies": {
24 | "@wepy/cli": "^2.0.0-alpha.20",
25 | "@babel/core": "^7.1.0",
26 | "@babel/preset-env": "^7.1.0",
27 | "@wepy/babel-plugin-import-regenerator": "0.0.2",
28 | "babel-eslint": "^7.2.1",
29 | "cross-env": "^5.1.3",
30 | "less": "^3.8.1",
31 | "@wepy/compiler-babel": "^2.0.1",
32 | "@wepy/compiler-less": "^2.0.1"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/wx-game/js/base/sprite.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 游戏基础的精灵类
3 | */
4 | export default class Sprite {
5 | constructor(imgSrc = '', width= 0, height = 0, x = 0, y = 0) {
6 | this.img = new Image()
7 | this.img.src = imgSrc
8 |
9 | this.width = width
10 | this.height = height
11 |
12 | this.x = x
13 | this.y = y
14 |
15 | this.visible = true
16 | }
17 |
18 | /**
19 | * 将精灵图绘制在canvas上
20 | */
21 | drawToCanvas(ctx) {
22 | if ( !this.visible )
23 | return
24 |
25 | ctx.drawImage(
26 | this.img,
27 | this.x,
28 | this.y,
29 | this.width,
30 | this.height
31 | )
32 | }
33 |
34 | /**
35 | * 简单的碰撞检测定义:
36 | * 另一个精灵的中心点处于本精灵所在的矩形内即可
37 | * @param{Sprite} sp: Sptite的实例
38 | */
39 | isCollideWith(sp) {
40 | let spX = sp.x + sp.width / 2
41 | let spY = sp.y + sp.height / 2
42 |
43 | if ( !this.visible || !sp.visible )
44 | return false
45 |
46 | return !!( spX >= this.x
47 | && spX <= this.x + this.width
48 | && spY >= this.y
49 | && spY <= this.y + this.height )
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/tt/pages/page1/page1.js:
--------------------------------------------------------------------------------
1 | // pages/page1/page1.js
2 | const util = require('../../util/util');
3 | const app = getApp();
4 |
5 | Page({
6 | data: {
7 | logs: []
8 | },
9 |
10 | gotoIndexPage: function() {
11 | tt.navigateTo({
12 | url: "../index/index"
13 | });
14 | // console.log('gotoPage1');
15 | },
16 |
17 | gotoLog: function() {
18 | tt.navigateTo({
19 | url: "../logs/logs"
20 | });
21 | },
22 |
23 | onLoad: function (options) {
24 |
25 | },
26 |
27 | onShow: function() {
28 | // tt.uma.trackPageStart('page1');
29 | // console.log(2222, getCurrentPages());
30 | },
31 |
32 | onHide: function() {
33 | // app.globalData.uma.trackPageEnd('page1');
34 | },
35 |
36 | onUnload: function() {
37 | // app.globalData.uma.trackPageEnd('page1');
38 | },
39 |
40 | trackEvent: function() {
41 | // console.log(app.globalData.uma);
42 | tt.uma.trackEvent("page1_event_0",{});
43 | tt.uma.trackEvent("page1_event_1",{});
44 | tt.uma.trackEvent("page1_event_2",{});
45 | tt.uma.trackEvent("page1_event_3",{});
46 | tt.uma.trackEvent("page1_event_4",{});
47 | }
48 | })
--------------------------------------------------------------------------------
/mpx/README.md:
--------------------------------------------------------------------------------
1 | # mpx
2 |
3 | > A mpx project
4 |
5 | ## Dev
6 |
7 | ```bash
8 | # install dep
9 | npm i
10 |
11 | # for dev
12 | npm run watch
13 |
14 | # for online
15 | npm run build
16 | ```
17 |
18 | npm script规范 [build|watch]:[dev|prod]:[cross|web|none]
19 |
20 | build默认prod,watch默认dev。另单独提供了build:dev和watch:prod,用于单次构建分析看未压缩代码分析问题和持续压缩代码便于大体积项目真机调试。
21 |
22 | 建议自行调整cross的目标。npm-run-all是为了兼容windows下无法同时执行两个npm script,若不需要转web平台,可考虑去掉。
23 |
24 | # 关键集成步骤
25 |
26 | ```js
27 | import uma from 'umtrack-wx'
28 | uma.init({
29 | appKey: '5dfa09d2c1d04b48c99109a6',
30 | useOpenid: false,
31 | autoGetOpenid: false,
32 | uploadUserInfo: false,
33 | debug: true
34 | });
35 | import mpx, { createApp } from '@mpxjs/core'
36 | import apiProxy from '@mpxjs/api-proxy'
37 | mpx.use(apiProxy, { usePromise: true })
38 | createApp({
39 | onLaunch () {}
40 | },{customCtor: App});// 特别注意此处,跟微信官方的kbone类似,都是框架代码编译后优先级高于业务代码,导致无法在最开始引入sdk,无法先于框架劫持生命周期方法。需要编写特殊的webpack插件,提高友盟sdk的执行优先级。虽然mpx提供了,允许其他框架修改劫持的参数 customCtor https://mpxjs.cn/api/global-api.html#createpage ,看文档需要每个Page,Component,App实例都要注入一次,但实际用来只需要App注入该参数就能正常运行,需要进一步测试,尤其是component,避免未知问题。
41 | ```
--------------------------------------------------------------------------------
/mpx/build/getWebpackConf.js:
--------------------------------------------------------------------------------
1 | const webpackBaseConf = require('./webpack.base.conf')
2 | const merge = require('webpack-merge')
3 | const getRules = require('./getRules')
4 | const getPlugins = require('./getPlugins')
5 | const { resolveSrc, resolveDist } = require('./utils')
6 |
7 | module.exports = function getWebpackConfs (options) {
8 | const { plugin, subDir, mode, production, watch } = options
9 | const entry = plugin ? {
10 | plugin: resolveSrc('plugin.json', subDir)
11 | } : {
12 | app: resolveSrc('app.mpx', subDir)
13 | }
14 | const output = {
15 | path: resolveDist(mode, subDir)
16 | }
17 | const name = plugin ? 'plugin-compiler' : `${mode}-compiler`
18 | const rules = getRules(options)
19 | const plugins = getPlugins(options)
20 | const extendConfs = {}
21 | if (production) {
22 | extendConfs.mode = 'production'
23 | }
24 | if (watch) {
25 | extendConfs.cache = true
26 | extendConfs.devtool = 'source-map' // 仅在watch模式下生产sourcemap
27 | }
28 |
29 | return merge(webpackBaseConf, {
30 | name,
31 | entry,
32 | output,
33 | module: {
34 | rules
35 | },
36 | plugins
37 | }, extendConfs)
38 | }
39 |
--------------------------------------------------------------------------------
/qq/pages/page1/page1.js:
--------------------------------------------------------------------------------
1 | //logs.js
2 | const app = getApp();
3 |
4 | Page({
5 | data: {
6 | logs: []
7 | },
8 |
9 | gotoIndexPage: function() {
10 | qq.navigateTo({
11 | url: "../index/index"
12 | });
13 | // console.log('gotoPage1');
14 | },
15 |
16 | gotoLog: function() {
17 | qq.navigateTo({
18 | url: "../logs/logs"
19 | });
20 | },
21 |
22 | gotoRc: function() {
23 | qq.navigateTo({
24 | url: '../rc-page/rc-page',
25 | });
26 | },
27 |
28 | onLoad: function () {
29 |
30 | },
31 |
32 | onShow: function() {
33 | // app.globalData.uma.trackPageStart('page1');
34 | },
35 |
36 | onHide: function() {
37 | // app.globalData.uma.trackPageEnd('page1');
38 | },
39 |
40 | onUnload: function() {
41 | // app.globalData.uma.trackPageEnd('page1');
42 | },
43 |
44 | trackEvent: function() {
45 | console.log(22222, app.globalData.uma);
46 | qq.uma.trackEvent("page1_event_0", {});
47 | qq.uma.trackEvent("page1_event_1", {});
48 | qq.uma.trackEvent("page1_event_2", {});
49 | qq.uma.trackEvent("page1_event_3", {});
50 | qq.uma.trackEvent("page1_event_4", {});
51 | }
52 | })
53 |
--------------------------------------------------------------------------------
/swan/pages/page1/page1.js:
--------------------------------------------------------------------------------
1 | //logs.js
2 | const app = getApp();
3 |
4 | Page({
5 | data: {
6 | logs: []
7 | },
8 |
9 | gotoIndexPage: function () {
10 | swan.navigateTo({
11 | url: "../index/index"
12 | });
13 | // console.log('gotoPage1');
14 | },
15 |
16 | gotoLog: function () {
17 | swan.navigateTo({
18 | url: "../logs/logs"
19 | });
20 | },
21 |
22 | gotoRc: function () {
23 | swan.navigateTo({
24 | url: '../rc-page/rc-page'
25 | });
26 | },
27 |
28 | onLoad: function () {},
29 |
30 | onShow: function () {
31 | // app.globalData.uma.trackPageStart('page1');
32 | },
33 |
34 | onHide: function () {
35 | // app.globalData.uma.trackPageEnd('page1');
36 | },
37 |
38 | onUnload: function () {
39 | // app.globalData.uma.trackPageEnd('page1');
40 | },
41 |
42 | trackEvent: function () {
43 | console.log(22222, app.globalData.uma);
44 | swan.uma.trackEvent("page1_event_0", {});
45 | swan.uma.trackEvent("page1_event_1", {});
46 | swan.uma.trackEvent("page1_event_2", {});
47 | swan.uma.trackEvent("page1_event_3", {});
48 | swan.uma.trackEvent("page1_event_4", {});
49 | }
50 | });
--------------------------------------------------------------------------------
/chameleon/src/app/app.cml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
30 |
31 |
34 |
35 |
--------------------------------------------------------------------------------
/wx-game/game.js:
--------------------------------------------------------------------------------
1 | import './js/libs/weapp-adapter'
2 | import './js/libs/symbol'
3 | import './js/umstat';
4 | import Main from './js/main'
5 |
6 | new Main()
7 | wx.onShow(()=>{
8 | wx.getSetting({
9 | success(res) {
10 | if (!res.authSetting['scope.userInfo']) {
11 | wx.authorize({
12 | scope: 'scope.userInfo',
13 | success () {
14 | // 用户已经同意小程序使用录音功能,后续调用 wx.startRecord 接口不会弹窗询问
15 |
16 | },
17 | fail:function(){
18 | wx.openSetting({
19 | withSubscriptions: true,
20 | })
21 | let button = wx.createOpenSettingButton({
22 | type: 'text',
23 | text: '打开设置页面',
24 | style: {
25 | left: 10,
26 | top: 76,
27 | width: 200,
28 | height: 40,
29 | lineHeight: 40,
30 | backgroundColor: '#ff0000',
31 | color: '#ffffff',
32 | textAlign: 'center',
33 | fontSize: 16,
34 | borderRadius: 4
35 | }
36 | })
37 | }
38 | })
39 | }
40 | }
41 | })
42 |
43 | })
44 |
--------------------------------------------------------------------------------
/taro/src/pages/index/subpage.jsx:
--------------------------------------------------------------------------------
1 | import Taro, { Component, uma } from '@tarojs/taro'
2 | import { View, Text } from '@tarojs/components'
3 | import './index.less'
4 |
5 | //import uma from '../../uma/uma';
6 |
7 | export default class Index extends Component {
8 |
9 | componentWillMount () { }
10 |
11 | componentDidMount () { }
12 |
13 | componentWillUnmount () { }
14 |
15 | componentDidShow () {
16 | uma.trackEvent('bu7y', {
17 | name: 'car3'
18 | });
19 | Taro.uma.trackEvent('ooooo', {
20 | name: 'car4'
21 | });
22 |
23 | }
24 |
25 | componentDidHide () { }
26 |
27 | config = {
28 | navigationBarTitleText: '首页'
29 | }
30 |
31 | onShareAppMessage (res) {
32 | console.log('Page onShareAppMessage: ', this);
33 |
34 | return {
35 | title: '自定义转发标题',
36 | path: 'pages/index/index?um_test=1111111111'
37 | }
38 | }
39 |
40 | trackEvent () {
41 | uma.trackEvent('buy', {
42 | name: 'car'
43 | });
44 | }
45 |
46 | render () {
47 | return (
48 |
49 |
50 |
51 | )
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/swan/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "Project configuration file",
3 | "packOptions": {
4 | "ignore": []
5 | },
6 | "setting": {
7 | "urlCheck": false,
8 | "es6": true,
9 | "postcss": true,
10 | "preloadBackgroundData": false,
11 | "minified": true,
12 | "newFeature": true,
13 | "coverView": true,
14 | "autoAudits": false,
15 | "showShadowRootInWxmlPanel": true,
16 | "scopeDataCheck": false,
17 | "checkInvalidKey": true,
18 | "checkSiteMap": true,
19 | "uploadWithSourceMap": true,
20 | "babelSetting": {
21 | "ignore": [],
22 | "disablePlugins": [],
23 | "outputPath": ""
24 | }
25 | },
26 | "compileType": "miniprogram",
27 | "libVersion": "2.11.0",
28 | "appid": "20111654",
29 | "projectname": "swan",
30 | "debugOptions": {
31 | "hidedInDevtools": []
32 | },
33 | "isGameTourist": false,
34 | "simulatorType": "wechat",
35 | "simulatorPluginLibVersion": {},
36 | "condition": {
37 | "search": {
38 | "current": -1,
39 | "list": []
40 | },
41 | "conversation": {
42 | "current": -1,
43 | "list": []
44 | },
45 | "game": {
46 | "currentL": -1,
47 | "list": []
48 | },
49 | "miniprogram": {
50 | "current": -1,
51 | "list": []
52 | }
53 | }
54 | }
--------------------------------------------------------------------------------
/mpvue/src/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/main",
4 | "pages/logs/main" ],
5 | "window": {
6 | "backgroundTextStyle": "light",
7 | "navigationBarBackgroundColor": "#fff",
8 | "navigationBarTitleText": "WeChat",
9 | "navigationBarTextStyle": "black"
10 | },
11 | "tabBar": {
12 | "color": "#999",
13 | "backgroundColor": "#fafafa",
14 | "selectedColor": "#333",
15 | "borderStyle": "white",
16 |
17 | "list": [{
18 | "text": "首页",
19 | "pagePath": "pages/index/main",
20 | "iconPath": "static/tabs/home.png",
21 | "selectedIconPath": "static/tabs/home-active.png"
22 | }, {
23 | "text": "订单",
24 | "pagePath": "pages/logs/main",
25 | "iconPath": "static/tabs/orders.png",
26 | "selectedIconPath": "static/tabs/orders-active.png"
27 | }],
28 |
29 | "items": [{
30 | "name": "首页",
31 | "pagePath": "pages/index/main",
32 | "icon": "static/tabs/home.png",
33 | "activeIcon": "static/tabs/home-active.png"
34 | }, {
35 | "name": "订单",
36 | "pagePath": "pages/logs/main",
37 | "icon": "static/tabs/orders.png",
38 | "activeIcon": "static/tabs/orders-active.png"
39 | }],
40 | "position": "bottom"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/wx-game/js/runtime/background.js:
--------------------------------------------------------------------------------
1 | import Sprite from '../base/sprite'
2 |
3 | const screenWidth = window.innerWidth
4 | const screenHeight = window.innerHeight
5 |
6 | const BG_IMG_SRC = 'images/bg.jpg'
7 | const BG_WIDTH = 512
8 | const BG_HEIGHT = 512
9 |
10 | /**
11 | * 游戏背景类
12 | * 提供update和render函数实现无限滚动的背景功能
13 | */
14 | export default class BackGround extends Sprite {
15 | constructor(ctx) {
16 | super(BG_IMG_SRC, BG_WIDTH, BG_HEIGHT)
17 |
18 | this.top = 0
19 |
20 | this.render(ctx)
21 | }
22 |
23 | update() {
24 | this.top += 2
25 |
26 | if ( this.top >= screenHeight )
27 | this.top = 0
28 | }
29 |
30 | /**
31 | * 背景图重绘函数
32 | * 绘制两张图片,两张图片大小和屏幕一致
33 | * 第一张漏出高度为top部分,其余的隐藏在屏幕上面
34 | * 第二张补全除了top高度之外的部分,其余的隐藏在屏幕下面
35 | */
36 | render(ctx) {
37 | ctx.drawImage(
38 | this.img,
39 | 0,
40 | 0,
41 | this.width,
42 | this.height,
43 | 0,
44 | -screenHeight + this.top,
45 | screenWidth,
46 | screenHeight
47 | )
48 |
49 | ctx.drawImage(
50 | this.img,
51 | 0,
52 | 0,
53 | this.width,
54 | this.height,
55 | 0,
56 | this.top,
57 | screenWidth,
58 | screenHeight
59 | )
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/kuaishou/pages/index/index.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | Page({
3 | data: {
4 | motto: "Hello World",
5 | avator:'',
6 | id:''
7 | },
8 | onLoad: function () {
9 | try {
10 | var value = ks.getStorageSync("um_uuid");
11 | if (value) {
12 | this.setData({id:value});
13 | // Do something with return value
14 | }
15 | } catch (e) {
16 | // Do something when catch error
17 | }
18 | },
19 | onShow(){
20 | this.setData({ hidetime: getApp().globalData.hidetime, showtime: getApp().globalData.showtime });
21 |
22 | },
23 | onShareAppMessage() {
24 | return {
25 | path: "pages/index/index?d=8",
26 | };
27 | },
28 | track() {
29 | //ks.uma.trackEvent("idxxxx", { test: 9 });
30 | },
31 | getinfo(res) {
32 | console.log(res)
33 | if(res.detail.userInfo){
34 | this.setData({ motto: res.detail.userInfo.nickName ,avator:res.detail.userInfo.avatarUrl});
35 | }else{
36 | ks.login({
37 | success:()=>{
38 | // 必须是在用户已经授权的情况下调用
39 | ks.getUserInfo({
40 | success: (res)=> {
41 | this.setData({ motto: res.userInfo.nickName ,avator:res.userInfo.avatarUrl});
42 | }
43 | })
44 | }
45 | })
46 | }
47 | },
48 | });
49 |
--------------------------------------------------------------------------------
/wx/pages/index/index.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | //获取应用实例
3 | // import cache from '../../src/core/cache.js';
4 | // import udevice from '../../src/common/udevice.js';
5 |
6 | Page({
7 | data: {
8 | motto: 'Hello World'
9 | },
10 |
11 | onLoad: function () {
12 | wx.getUserProfile({
13 | desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
14 | success: (res) => {
15 | wx.uma.setUserInfo(res.userInfo)
16 | }
17 | })
18 | },
19 |
20 | onShow: function() {
21 | },
22 |
23 | onHide() {
24 | },
25 |
26 | onUnload() {
27 | },
28 |
29 | onShareAppMessage: function () {
30 | return {
31 | title: '自定义转发标题',
32 | path: 'pages/index/index?test=1111111111'
33 | }
34 | },
35 |
36 | gotoPage1: function() {
37 | wx.navigateTo({
38 | url: "../page1/page1"
39 | });
40 | },
41 | bindGetUserInfo:function(){
42 |
43 | },
44 | getUserProfile(e) {
45 | // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认
46 | // 开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
47 | wx.getUserProfile({
48 | desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
49 | success: (res) => {
50 | wx.uma.setUserInfo(res.userInfo)
51 | }
52 | })
53 | },
54 | trackEvent: function(){
55 | wx.uma.trackEvent("111");
56 | }
57 | })
58 |
--------------------------------------------------------------------------------
/chameleon/src/components/demo-com/demo-com.cml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{title}}
4 |
5 |
6 |
7 |
8 |
55 |
74 |
81 |
--------------------------------------------------------------------------------
/megalo/megalo.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | // 构件生产模式时是否生成source map(仅在process.env.NODE_ENV === 'production' 时该选项生效)
3 | productionSourceMap: false,
4 |
5 | // 开启eslint格式化代码
6 | lintOnSave: true,
7 |
8 | configureWebpack: config => {
9 | // 你可以在这里粗放的修改webpack的配置并返回
10 | console.log('configureWebpack执行了')
11 | return config
12 | },
13 | chainWebpack: chainConfig => {
14 | // 你可以在这里通过 https://github.com/neutrinojs/webpack-chain 来精细的修改webpack配置
15 | // console.log('chainWebpack执行了', chainConfig.toString())
16 | },
17 | // 原生小程序组件存放目录,默认为src/native
18 | // 如果你有多个平台的原生组件,你应当在此目录下再新建几个子文件夹,我们约定,子文件夹名和平台的名字一致:
19 | // 微信小程序组件则命名为 'wechat',支付宝为'alipay', 百度为 'swan'
20 | // 如果只有一个平台,则无需再新建子文件夹
21 | nativeDir: '/src/native',
22 |
23 | css: {
24 | loaderOptions: {
25 | css: {
26 | // https://github.com/webpack-contrib/css-loader#options
27 | },
28 | less: {
29 | // https://github.com/webpack-contrib/less-loader
30 | },
31 | sass: {
32 | // https://github.com/webpack-contrib/sass-loader
33 | },
34 | stylus: {
35 | // https://github.com/shama/stylus-loader
36 | },
37 | // https://github.com/megalojs/megalo-px2rpx-loader
38 | px2rpx: {
39 | rpxUnit: 0.5
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/megalo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo",
3 | "version": "1.0.0",
4 | "private": true,
5 | "scripts": {
6 | "build:wechat": "megalo-cli-service build",
7 | "build:alipay": "megalo-cli-service build --platform alipay",
8 | "build:swan": "megalo-cli-service build --platform swan",
9 | "build:toutiao": "megalo-cli-service build --platform toutiao",
10 | "dev:alipay": "megalo-cli-service serve --platform alipay",
11 | "dev:swan": "megalo-cli-service serve --platform swan",
12 | "dev:wechat": "megalo-cli-service serve",
13 | "dev:toutiao": "megalo-cli-service serve --platform toutiao",
14 | "lint": "megalo-cli-service lint"
15 | },
16 | "license": "ISC",
17 | "babel": {
18 | "presets": [
19 | "@megalo/app"
20 | ]
21 | },
22 | "devDependencies": {
23 | "@megalo/babel-preset-app": "latest",
24 | "@megalo/cli-plugin-eslint": "latest",
25 | "@megalo/cli-service": "latest",
26 | "@megalo/eslint-config-standard": "latest",
27 | "@megalo/target": "latest",
28 | "@megalo/template-compiler": "latest",
29 | "eslint": "^5.15.3",
30 | "less": "^3.8.1",
31 | "less-loader": "^4.1.0"
32 | },
33 | "dependencies": {
34 | "@megalo/vhtml-plugin": "latest",
35 | "megalo": "latest",
36 | "octoparse": "^0.4.2",
37 | "umtrack-wx": "^2.3.4"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/wepy-one/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "A WePY project",
3 | "setting": {
4 | "urlCheck": true,
5 | "es6": false,
6 | "enhance": false,
7 | "postcss": false,
8 | "preloadBackgroundData": false,
9 | "minified": false,
10 | "newFeature": false,
11 | "coverView": true,
12 | "nodeModules": false,
13 | "autoAudits": false,
14 | "showShadowRootInWxmlPanel": true,
15 | "scopeDataCheck": false,
16 | "uglifyFileName": false,
17 | "checkInvalidKey": true,
18 | "checkSiteMap": true,
19 | "uploadWithSourceMap": true,
20 | "compileHotReLoad": false,
21 | "useMultiFrameRuntime": true,
22 | "useApiHook": true,
23 | "useApiHostProcess": false,
24 | "babelSetting": {
25 | "ignore": [],
26 | "disablePlugins": [],
27 | "outputPath": ""
28 | },
29 | "enableEngineNative": false,
30 | "bundle": false,
31 | "useIsolateContext": true,
32 | "useCompilerModule": true,
33 | "userConfirmedUseCompilerModuleSwitch": false,
34 | "userConfirmedBundleSwitch": false,
35 | "packNpmManually": false,
36 | "packNpmRelationList": [],
37 | "minifyWXSS": true
38 | },
39 | "compileType": "miniprogram",
40 | "appid": "wxa0ad5680e02bf2ef",
41 | "projectname": "myproject",
42 | "miniprogramRoot": "dist/",
43 | "condition": {}
44 | }
--------------------------------------------------------------------------------
/mpvue/src/App.vue:
--------------------------------------------------------------------------------
1 |
32 |
33 |
51 |
--------------------------------------------------------------------------------
/mpx/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | performance: {
3 | hints: false
4 | },
5 | mode: 'none',
6 | resolve: {
7 | extensions: ['.mpx', '.js', '.wxml', '.vue', '.ts'],
8 | modules: ['node_modules']
9 | },
10 | optimization: {
11 | minimizer: [
12 | {
13 | apply: compiler => {
14 | // Lazy load the Terser plugin
15 | const TerserPlugin = require('terser-webpack-plugin')
16 | const SourceMapDevToolPlugin = require('webpack/lib/SourceMapDevToolPlugin')
17 | const options = compiler.options
18 | new TerserPlugin({
19 | cache: true,
20 | parallel: true,
21 | sourceMap:
22 | (options.devtool && /source-?map/.test(options.devtool)) ||
23 | (options.plugins &&
24 | options.plugins.some(p => p instanceof SourceMapDevToolPlugin)),
25 | // terserOptions参考 https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions
26 | terserOptions: {
27 | // terser的默认行为会把某些对象方法转为箭头函数,导致ios9等不支持箭头函数的环境不支持,详情见 https://github.com/terser/terser#compress-options
28 | compress: {
29 | arrows: false
30 | }
31 | }
32 | }).apply(compiler)
33 | }
34 | }
35 | ]
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/wx-game/js/npc/enemy.js:
--------------------------------------------------------------------------------
1 | import Animation from '../base/animation'
2 | import DataBus from '../databus'
3 |
4 | const ENEMY_IMG_SRC = 'images/enemy.png'
5 | const ENEMY_WIDTH = 60
6 | const ENEMY_HEIGHT = 60
7 |
8 | const __ = {
9 | speed: Symbol('speed')
10 | }
11 |
12 | let databus = new DataBus()
13 |
14 | function rnd(start, end){
15 | return Math.floor(Math.random() * (end - start) + start)
16 | }
17 |
18 | export default class Enemy extends Animation {
19 | constructor() {
20 | super(ENEMY_IMG_SRC, ENEMY_WIDTH, ENEMY_HEIGHT)
21 |
22 | this.initExplosionAnimation()
23 | }
24 |
25 | init(speed) {
26 | this.x = rnd(0, window.innerWidth - ENEMY_WIDTH)
27 | this.y = -this.height
28 |
29 | this[__.speed] = speed
30 |
31 | this.visible = true
32 | }
33 |
34 | // 预定义爆炸的帧动画
35 | initExplosionAnimation() {
36 | let frames = []
37 |
38 | const EXPLO_IMG_PREFIX = 'images/explosion'
39 | const EXPLO_FRAME_COUNT = 19
40 |
41 | for ( let i = 0;i < EXPLO_FRAME_COUNT;i++ ) {
42 | frames.push(EXPLO_IMG_PREFIX + (i + 1) + '.png')
43 | }
44 |
45 | this.initFrames(frames)
46 | }
47 |
48 | // 每一帧更新子弹位置
49 | update() {
50 | this.y += this[__.speed]
51 |
52 | // 对象回收
53 | if ( this.y > window.innerHeight + this.height )
54 | databus.removeEnemey(this)
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/wx-plugin/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "miniprogramRoot": "miniprogram/",
3 | "pluginRoot": "plugin/",
4 | "compileType": "plugin",
5 | "setting": {
6 | "urlCheck": false,
7 | "es6": true,
8 | "enhance": false,
9 | "postcss": true,
10 | "preloadBackgroundData": false,
11 | "minified": true,
12 | "newFeature": false,
13 | "coverView": true,
14 | "nodeModules": false,
15 | "autoAudits": false,
16 | "showShadowRootInWxmlPanel": true,
17 | "scopeDataCheck": false,
18 | "uglifyFileName": false,
19 | "checkInvalidKey": true,
20 | "checkSiteMap": true,
21 | "uploadWithSourceMap": true,
22 | "compileHotReLoad": false,
23 | "useMultiFrameRuntime": true,
24 | "useApiHook": true,
25 | "useApiHostProcess": false,
26 | "babelSetting": {
27 | "ignore": [],
28 | "disablePlugins": [],
29 | "outputPath": ""
30 | },
31 | "enableEngineNative": false,
32 | "bundle": false,
33 | "useIsolateContext": true,
34 | "useCompilerModule": true,
35 | "userConfirmedUseCompilerModuleSwitch": false,
36 | "userConfirmedBundleSwitch": false,
37 | "packNpmManually": false,
38 | "packNpmRelationList": [],
39 | "minifyWXSS": true
40 | },
41 | "appid": "wxaccea9d583013448",
42 | "projectname": "%E6%8F%92%E4%BB%B6%E5%BC%80%E5%8F%91",
43 | "condition": {}
44 | }
--------------------------------------------------------------------------------
/wepy-one/src/components/list.wpy:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | {{item.id}}: {{item.title}}
17 |
18 |
19 |
20 |
21 |
56 |
--------------------------------------------------------------------------------
/taro/src/pages/index/index.jsx:
--------------------------------------------------------------------------------
1 | import Taro, { Component, uma } from '@tarojs/taro'
2 | import { View, Text } from '@tarojs/components'
3 | import './index.less'
4 |
5 | //import uma from '../../uma/uma';
6 |
7 | export default class Index extends Component {
8 |
9 | componentWillMount () { }
10 |
11 | componentDidMount () { }
12 |
13 | componentWillUnmount () { }
14 |
15 | componentDidShow () {
16 | uma.trackEvent('bu7y', {
17 | name: 'car3'
18 | });
19 | Taro.uma.trackEvent('ooooo', {
20 | name: 'car4'
21 | });
22 |
23 | }
24 |
25 | componentDidHide () { }
26 |
27 | config = {
28 | navigationBarTitleText: '首页'
29 | }
30 |
31 | onShareAppMessage (res) {
32 | console.log('Page onShareAppMessage: ', this);
33 |
34 | return {
35 | title: '自定义转发标题',
36 | path: 'pages/index/index?um_test=1111111111'
37 | }
38 | }
39 |
40 | trackEvent () {
41 | uma.trackEvent('buy', {
42 | name: 'car'
43 | });
44 | }
45 |
46 | render () {
47 | return (
48 |
49 |
55 |
56 |
57 | )
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/alipay/pages/page1/page1.js:
--------------------------------------------------------------------------------
1 | Page({
2 | data: {},
3 | onLoad(option) {
4 | },
5 | onReady() {
6 | // 页面加载完成
7 | },
8 | onShow(e) {
9 | },
10 | onHide() {
11 | },
12 | onUnload() {
13 | },
14 | onShareAppMessage(e) {
15 | return {
16 | title: '分享 View 组件',
17 | desc: 'View 组件很通用',
18 | path: 'pages/page1/page1',
19 | };
20 | },
21 | gotoPage2() {
22 | my.navigateTo({
23 | url: '../page2/page2'
24 | })
25 | },
26 | noop2() {
27 | console.log('noop')
28 | var callback = function(){}
29 | my.getSetting({
30 | success: function (res) {
31 | console.log('setting: ', res);
32 |
33 | if (res && res.authSetting && res.authSetting.userInfo) {
34 | my.getOpenUserInfo({
35 | fail: (res) => {
36 | console.log(res)
37 | },
38 | success: (res) => {
39 | let userInfo = JSON.parse(res.response).response // 以下方的报文格式解析两层 response
40 | console.log(userInfo)
41 | }
42 | });
43 | } else {
44 | callback && callback();
45 | }
46 | },
47 | fail: function (e) {
48 | console.log(e)
49 | callback && callback();
50 | }
51 | })
52 | },
53 | trackEvent() {
54 | const eventId = 'event1';
55 | const properties = { 'test': 'auth' };
56 | my.uma.trackEvent(eventId, properties);
57 | }
58 | });
59 |
--------------------------------------------------------------------------------
/mpvue/dist/wx/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/main",
4 | "pages/logs/main"
5 | ],
6 | "window": {
7 | "backgroundTextStyle": "light",
8 | "navigationBarBackgroundColor": "#fff",
9 | "navigationBarTitleText": "WeChat",
10 | "navigationBarTextStyle": "black"
11 | },
12 | "tabBar": {
13 | "color": "#999",
14 | "backgroundColor": "#fafafa",
15 | "selectedColor": "#333",
16 | "borderStyle": "white",
17 | "list": [
18 | {
19 | "text": "首页",
20 | "pagePath": "pages/index/main",
21 | "iconPath": "static/tabs/home.png",
22 | "selectedIconPath": "static/tabs/home-active.png"
23 | },
24 | {
25 | "text": "订单",
26 | "pagePath": "pages/logs/main",
27 | "iconPath": "static/tabs/orders.png",
28 | "selectedIconPath": "static/tabs/orders-active.png"
29 | }
30 | ],
31 | "items": [
32 | {
33 | "name": "首页",
34 | "pagePath": "pages/index/main",
35 | "icon": "static/tabs/home.png",
36 | "activeIcon": "static/tabs/home-active.png"
37 | },
38 | {
39 | "name": "订单",
40 | "pagePath": "pages/logs/main",
41 | "icon": "static/tabs/orders.png",
42 | "activeIcon": "static/tabs/orders-active.png"
43 | }
44 | ],
45 | "position": "bottom"
46 | },
47 | "sitemapLocation": "sitemap94.json"
48 | }
--------------------------------------------------------------------------------
/mpvue/build/build.js:
--------------------------------------------------------------------------------
1 | require('./check-versions')()
2 |
3 | process.env.NODE_ENV = 'production'
4 | process.env.PLATFORM = process.argv[process.argv.length - 1] || 'wx'
5 |
6 | var ora = require('ora')
7 | var rm = require('rimraf')
8 | var path = require('path')
9 | var chalk = require('chalk')
10 | var webpack = require('webpack')
11 | var config = require('../config')
12 | var webpackConfig = require('./webpack.prod.conf')
13 | var utils = require('./utils')
14 |
15 | var spinner = ora('building for production...')
16 | spinner.start()
17 |
18 | rm(path.join(config.build.assetsRoot, '*'), err => {
19 | if (err) throw err
20 | webpack(webpackConfig, function (err, stats) {
21 | spinner.stop()
22 | if (err) throw err
23 | if (process.env.PLATFORM === 'swan') {
24 | utils.writeFrameworkinfo()
25 | }
26 | process.stdout.write(stats.toString({
27 | colors: true,
28 | modules: false,
29 | children: false,
30 | chunks: false,
31 | chunkModules: false
32 | }) + '\n\n')
33 |
34 | if (stats.hasErrors()) {
35 | console.log(chalk.red(' Build failed with errors.\n'))
36 | process.exit(1)
37 | }
38 |
39 | console.log(chalk.cyan(' Build complete.\n'))
40 | console.log(chalk.yellow(
41 | ' Tip: built files are meant to be served over an HTTP server.\n' +
42 | ' Opening index.html over file:// won\'t work.\n'
43 | ))
44 | })
45 | })
46 |
--------------------------------------------------------------------------------
/megalo/src/main.js:
--------------------------------------------------------------------------------
1 | import uma from './utils/uma'
2 | import App from './App'
3 | import Vue from 'vue'
4 | import VHtmlPlugin from '@megalo/vhtml-plugin'
5 |
6 | Vue.use(uma)
7 | Vue.use(VHtmlPlugin)
8 | const app = new Vue(App)
9 |
10 | app.$mount()
11 |
12 | export default {
13 | config: {
14 | // pages 的首个页面会被编译成首页
15 | pages: [
16 | 'pages/hello',
17 | 'pages/my/my'
18 | ],
19 | subPackages: [
20 | {
21 | root: 'packageA',
22 | pages: ['pages/a/index'],
23 | preloadRule: {
24 | 'pages/a/index': {
25 | 'network': 'all',
26 | 'packages': ['packageA']
27 | }
28 | }
29 | }
30 | ],
31 | tabBar: {
32 | color: '#333',
33 | selectedColor: '#007d37',
34 | list: [
35 | {
36 | pagePath: 'pages/hello',
37 | text: 'home',
38 | iconPath: 'native/tabbar/home.png',
39 | selectedIconPath: 'native/tabbar/home_on.png'
40 | },
41 | {
42 | pagePath: 'pages/my/my',
43 | text: 'my',
44 | iconPath: 'native/tabbar/mine.png',
45 | selectedIconPath: 'native/tabbar/mine_on.png'
46 | }
47 | ]
48 | },
49 | window: {
50 | backgroundTextStyle: 'light',
51 | navigationBarBackgroundColor: '#fff',
52 | navigationBarTitleText: 'megalo project',
53 | navigationBarTextStyle: 'black'
54 | }
55 | }
56 | }
57 |
--------------------------------------------------------------------------------