├── git ├── static └── .gitkeep ├── config ├── prod.env.js ├── dev.env.js └── index.js ├── .editorconfig ├── .gitignore ├── .babelrc ├── .postcssrc.js ├── index.html ├── src ├── App.vue ├── main.js ├── db │ └── index.js ├── router │ └── index.js └── components │ ├── Navbar.vue │ ├── ProductPage.vue │ └── Products.vue ├── docs ├── static │ ├── css │ │ ├── app.01fce1da86438a65fc836bc742f2e0d9.css │ │ └── app.01fce1da86438a65fc836bc742f2e0d9.css.map │ └── js │ │ ├── manifest.2ae2e69a05c33dfc65f8.js │ │ ├── manifest.2ae2e69a05c33dfc65f8.js.map │ │ ├── app.2128752eb39cfdc2da47.js │ │ └── app.2128752eb39cfdc2da47.js.map └── index.html ├── README.md └── package.json /git: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | /dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | .vscode 11 | *.suo 12 | *.ntvs* 13 | *.njsproj 14 | *.sln 15 | -------------------------------------------------------------------------------- /.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-vue-jsx", "transform-runtime"] 12 | } 13 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-import": {}, 6 | "postcss-url": {}, 7 | // to edit target browsers: use "browserslist" field in package.json 8 | "autoprefixer": {} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |ID: {{productId}}
11 |Product Name: {{productName}}
12 |Product Price: ${{productPrice}}
13 | 14 || 40 | Product ID 41 | | 42 |43 | Product Name 44 | | 45 |46 | Product Price 47 | | 48 |49 | Action 50 | | 51 |||||
|---|---|---|---|---|---|---|---|
| 57 | | 58 | | 59 | | 60 | 61 | 62 | 63 | 64 | 65 | 66 | | 67 | 68 | 69 |70 | {{product.product_id}} 71 | | 72 |73 | {{product.product_name}} 74 | | 75 |76 | {{product.product_price}} 77 | | 78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 | |
96 |
97 |
ID: {{productId}}
\r\n\tProduct Name: {{productName}}
\r\n\tProduct Price: ${{productPrice}}
\r\n\t \r\n\t