-
9 |
- 10 | {{ k }}: {{ v }} 11 | 12 |
Login
5 | 26 | 27 |29 | {{ error.statusText }} 30 | {{ error.status }} 31 |
32 |├── .eslintrc ├── .babelrc ├── src ├── assets │ └── logo.png ├── main.js ├── App.vue ├── api.js ├── components │ ├── Profile.vue │ ├── Home.vue │ ├── Login.vue │ └── layout │ │ └── TopBar.vue └── router.js ├── .gitignore ├── index.html ├── README.md ├── package.json ├── webpack.config.js └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "standard" 3 | } 4 | 5 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }] 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ianaya89/demo-auth-jwt-vue/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | npm-debug.log 4 | yarn-error.log 5 | 6 | # Editor directories and files 7 | .idea 8 | *.suo 9 | *.ntvs* 10 | *.njsproj 11 | *.sln 12 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from '@/App.vue' 3 | 4 | import router from '@/router' 5 | 6 | new Vue({ // eslint-disable-line 7 | el: '#app', 8 | render: h => h(App), 9 | router 10 | }) 11 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
14 |
15 | {{ apiStatus }}
16 |
17 |
18 |
26 |
27 | {{ tokenStatus }}
28 |
29 |
30 | 29 | {{ error.statusText }} 30 | {{ error.status }} 31 |
32 |