├── .babelrc ├── .editorconfig ├── .eslintrc ├── .gitignore ├── .npmignore ├── .nvmrc ├── .travis.yml ├── CHANGELOG.md ├── LATESTLOG.md ├── LICENSE ├── README.md ├── devtools.js ├── examples ├── cart-create │ ├── README.md │ ├── cart │ │ ├── cart-list.jsx │ │ ├── index.js │ │ └── store.js │ ├── config.js │ ├── index.css │ ├── index.html │ ├── index.js │ ├── list │ │ ├── index.js │ │ └── store.js │ └── store.js ├── cart-inject │ ├── README.md │ ├── components │ │ ├── cart-list.jsx │ │ ├── cart.js │ │ └── list.js │ ├── config.js │ ├── index.css │ ├── index.html │ ├── index.js │ └── store.js ├── cart │ ├── README.md │ ├── components │ │ ├── cart-list.jsx │ │ ├── cart.js │ │ └── list.js │ ├── config.js │ ├── index.css │ ├── index.html │ ├── index.js │ └── store.js ├── counter │ ├── index.html │ └── index.js ├── pure │ ├── index.html │ └── index.js ├── scenes │ ├── index.html │ └── index.js └── todo-mvc │ ├── index.html │ └── index.js ├── package.json ├── request.js ├── router.js ├── scripts ├── notice.js ├── release │ ├── changelog.js │ ├── index.js │ └── notice.js └── utils.js ├── src ├── compose.jsx ├── connect.jsx ├── data-source.js ├── events.js ├── hooks.js ├── hot-render.jsx ├── index.js ├── inject.jsx ├── meta.js ├── plugins │ ├── devtools.js │ ├── route.js │ └── set-values.js ├── provider.js ├── proxy.js ├── render.jsx ├── route.jsx ├── store.js └── utils.js ├── test ├── case.spec.js ├── hooks.spec.js ├── render.spec.js ├── roy.spec.js └── tojson.js └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/.npmignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v6.10 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LATESTLOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/LATESTLOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/README.md -------------------------------------------------------------------------------- /devtools.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/plugins/devtools'); 2 | -------------------------------------------------------------------------------- /examples/cart-create/README.md: -------------------------------------------------------------------------------- 1 | # Shopping Cart 2 | 3 | 演示了基于create拆分store的示例 4 | -------------------------------------------------------------------------------- /examples/cart-create/cart/cart-list.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/cart/cart-list.jsx -------------------------------------------------------------------------------- /examples/cart-create/cart/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/cart/index.js -------------------------------------------------------------------------------- /examples/cart-create/cart/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/cart/store.js -------------------------------------------------------------------------------- /examples/cart-create/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/config.js -------------------------------------------------------------------------------- /examples/cart-create/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/index.css -------------------------------------------------------------------------------- /examples/cart-create/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/index.html -------------------------------------------------------------------------------- /examples/cart-create/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/index.js -------------------------------------------------------------------------------- /examples/cart-create/list/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/list/index.js -------------------------------------------------------------------------------- /examples/cart-create/list/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/list/store.js -------------------------------------------------------------------------------- /examples/cart-create/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-create/store.js -------------------------------------------------------------------------------- /examples/cart-inject/README.md: -------------------------------------------------------------------------------- 1 | # Shopping Cart 2 | 3 | 演示了基于单一Store的inject行为 4 | -------------------------------------------------------------------------------- /examples/cart-inject/components/cart-list.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/components/cart-list.jsx -------------------------------------------------------------------------------- /examples/cart-inject/components/cart.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/components/cart.js -------------------------------------------------------------------------------- /examples/cart-inject/components/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/components/list.js -------------------------------------------------------------------------------- /examples/cart-inject/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/config.js -------------------------------------------------------------------------------- /examples/cart-inject/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/index.css -------------------------------------------------------------------------------- /examples/cart-inject/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/index.html -------------------------------------------------------------------------------- /examples/cart-inject/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/index.js -------------------------------------------------------------------------------- /examples/cart-inject/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart-inject/store.js -------------------------------------------------------------------------------- /examples/cart/README.md: -------------------------------------------------------------------------------- 1 | # Shopping Cart 2 | 3 | 演示了基于单一Store的connect行为 4 | -------------------------------------------------------------------------------- /examples/cart/components/cart-list.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/components/cart-list.jsx -------------------------------------------------------------------------------- /examples/cart/components/cart.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/components/cart.js -------------------------------------------------------------------------------- /examples/cart/components/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/components/list.js -------------------------------------------------------------------------------- /examples/cart/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/config.js -------------------------------------------------------------------------------- /examples/cart/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/index.css -------------------------------------------------------------------------------- /examples/cart/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/index.html -------------------------------------------------------------------------------- /examples/cart/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/index.js -------------------------------------------------------------------------------- /examples/cart/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/cart/store.js -------------------------------------------------------------------------------- /examples/counter/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/counter/index.html -------------------------------------------------------------------------------- /examples/counter/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/counter/index.js -------------------------------------------------------------------------------- /examples/pure/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/pure/index.html -------------------------------------------------------------------------------- /examples/pure/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/pure/index.js -------------------------------------------------------------------------------- /examples/scenes/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/scenes/index.html -------------------------------------------------------------------------------- /examples/scenes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/scenes/index.js -------------------------------------------------------------------------------- /examples/todo-mvc/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/todo-mvc/index.html -------------------------------------------------------------------------------- /examples/todo-mvc/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/examples/todo-mvc/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/package.json -------------------------------------------------------------------------------- /request.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/request.js -------------------------------------------------------------------------------- /router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/router.js -------------------------------------------------------------------------------- /scripts/notice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/scripts/notice.js -------------------------------------------------------------------------------- /scripts/release/changelog.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/scripts/release/changelog.js -------------------------------------------------------------------------------- /scripts/release/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/scripts/release/index.js -------------------------------------------------------------------------------- /scripts/release/notice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/scripts/release/notice.js -------------------------------------------------------------------------------- /scripts/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/scripts/utils.js -------------------------------------------------------------------------------- /src/compose.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/compose.jsx -------------------------------------------------------------------------------- /src/connect.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/connect.jsx -------------------------------------------------------------------------------- /src/data-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/data-source.js -------------------------------------------------------------------------------- /src/events.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/events.js -------------------------------------------------------------------------------- /src/hooks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/hooks.js -------------------------------------------------------------------------------- /src/hot-render.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/hot-render.jsx -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/index.js -------------------------------------------------------------------------------- /src/inject.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/inject.jsx -------------------------------------------------------------------------------- /src/meta.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /src/plugins/devtools.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/plugins/devtools.js -------------------------------------------------------------------------------- /src/plugins/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/plugins/route.js -------------------------------------------------------------------------------- /src/plugins/set-values.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/plugins/set-values.js -------------------------------------------------------------------------------- /src/provider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/provider.js -------------------------------------------------------------------------------- /src/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/proxy.js -------------------------------------------------------------------------------- /src/render.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/render.jsx -------------------------------------------------------------------------------- /src/route.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/route.jsx -------------------------------------------------------------------------------- /src/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/store.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/src/utils.js -------------------------------------------------------------------------------- /test/case.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/test/case.spec.js -------------------------------------------------------------------------------- /test/hooks.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/test/hooks.spec.js -------------------------------------------------------------------------------- /test/render.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/test/render.spec.js -------------------------------------------------------------------------------- /test/roy.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/test/roy.spec.js -------------------------------------------------------------------------------- /test/tojson.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/test/tojson.js -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/windyGex/royjs/HEAD/webpack.config.js --------------------------------------------------------------------------------