├── static └── .gitkeep ├── config ├── prod.env.js ├── dev.env.js └── index.js ├── .gitignore ├── src ├── assets │ └── logo.png ├── store │ ├── mutation-types.js │ ├── index.js │ ├── actions.js │ └── mutations.js ├── components │ ├── 404.vue │ ├── Home.vue │ ├── Sidebar.vue │ ├── Hello.vue │ ├── LogTime.vue │ └── TimeEntries.vue ├── App.vue └── main.js ├── .babelrc ├── .editorconfig ├── index.html ├── .idea └── codeStyleSettings.xml ├── package.json └── README.md /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log 5 | .idea/ 6 | 7 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MeCKodo/vue-tutorial/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "stage-2"], 3 | "plugins": ["transform-runtime"], 4 | "comments": false 5 | } 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /src/store/mutation-types.js: -------------------------------------------------------------------------------- 1 | // 增加总时间或者减少总时间 2 | export const ADD_TOTAL_TIME = 'ADD_TOTAL_TIME'; 3 | export const DEC_TOTAL_TIME = 'DEC_TOTAL_TIME'; 4 | 5 | // 新增和删除一条计划 6 | export const SAVE_PLAN = 'SAVE_PLAN'; 7 | export const DELETE_PLAN = 'DELETE_PLAN'; 8 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
5 |
6 |
167 |
168 |
还没有任何计划
270 | 271 |287 | 288 | {{ plan.name }} 289 | 290 |
291 |299 | 300 | {{ plan.date }} 301 |
302 |{{ plan.comment }}
306 |
{{ plan.comment }}
46 |