7 | {{todo.content}} 8 |
9 |├── .gitignore ├── logo.png ├── src ├── .babelrc ├── Interface.js ├── index.js ├── install.js ├── Context.js ├── Mapper.js └── EventManager.js ├── examples ├── counter │ ├── CountModel.js │ ├── app.js │ ├── Context.js │ ├── CountCommand.js │ ├── index.html │ └── Counter.vue ├── todos │ ├── TodosModel.js │ ├── app.js │ ├── Context.js │ ├── Todos.vue │ ├── Todo.vue │ ├── index.html │ └── TodoCommands.js ├── index.html ├── server.js ├── webpack.config.prod.js ├── webpack.config.js └── dist │ ├── todos.js │ └── counter.js ├── config ├── rollup.config.common.js └── rollup.config.js ├── test └── unit │ ├── interface.js │ ├── context.js │ ├── mapper.js │ ├── eventManager.js │ └── history.js ├── package.json ├── README.md └── dist ├── vuecommander.min.js ├── vuecommander.esm.js ├── vuecommander.common.js └── vuecommander.js /.gitignore: -------------------------------------------------------------------------------- 1 | .cache 2 | node_modules 3 | yarn-error.log -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jschatz1/vuecommander/HEAD/logo.png -------------------------------------------------------------------------------- /src/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["@babel/env", {"modules": false}] 4 | ] 5 | } -------------------------------------------------------------------------------- /examples/counter/CountModel.js: -------------------------------------------------------------------------------- 1 | export default { 2 | likes: 0, 3 | retweets: 0, 4 | replies: 0, 5 | } -------------------------------------------------------------------------------- /examples/todos/TodosModel.js: -------------------------------------------------------------------------------- 1 | export default { 2 | currentInput: "", 3 | todos: [{ 4 | id: 0, 5 | content: "Make sure to do the thing", 6 | done: false 7 | }] 8 | } -------------------------------------------------------------------------------- /examples/todos/app.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import context from './Context'; 3 | import Todos from './Todos.vue'; 4 | 5 | new Vue({ 6 | el: '#app', 7 | context: context, 8 | render: h => h(Todos), 9 | }); -------------------------------------------------------------------------------- /examples/counter/app.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import context from './Context'; 3 | import Counter from './Counter.vue'; 4 | 5 | new Vue({ 6 | el: '#app', 7 | context: context, 8 | render: h => h(Counter) 9 | }); -------------------------------------------------------------------------------- /examples/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |Nothing left todo!
11 |7 | {{todo.content}} 8 |
9 |
7 |
12 | John Smith @johnsmith 31m
13 |
14 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.
15 |