├── .babelrc ├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── src ├── _helpers │ ├── fake-backend.js │ ├── handle-response.js │ ├── index.js │ ├── request-options.js │ ├── role.js │ └── router.js ├── _services │ ├── authentication.service.js │ ├── index.js │ └── user.service.js ├── admin │ └── AdminPage.vue ├── app │ └── App.vue ├── home │ └── HomePage.vue ├── index.html ├── index.js └── login │ └── LoginPage.vue └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/package.json -------------------------------------------------------------------------------- /src/_helpers/fake-backend.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_helpers/fake-backend.js -------------------------------------------------------------------------------- /src/_helpers/handle-response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_helpers/handle-response.js -------------------------------------------------------------------------------- /src/_helpers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_helpers/index.js -------------------------------------------------------------------------------- /src/_helpers/request-options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_helpers/request-options.js -------------------------------------------------------------------------------- /src/_helpers/role.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_helpers/role.js -------------------------------------------------------------------------------- /src/_helpers/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_helpers/router.js -------------------------------------------------------------------------------- /src/_services/authentication.service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_services/authentication.service.js -------------------------------------------------------------------------------- /src/_services/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_services/index.js -------------------------------------------------------------------------------- /src/_services/user.service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/_services/user.service.js -------------------------------------------------------------------------------- /src/admin/AdminPage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/admin/AdminPage.vue -------------------------------------------------------------------------------- /src/app/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/app/App.vue -------------------------------------------------------------------------------- /src/home/HomePage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/home/HomePage.vue -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/index.html -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/index.js -------------------------------------------------------------------------------- /src/login/LoginPage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/src/login/LoginPage.vue -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/vue-role-based-authorization-example/HEAD/webpack.config.js --------------------------------------------------------------------------------