1 line
6.4 KiB
JSON
1 line
6.4 KiB
JSON
|
{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js!/home/soeren/dev/keksaccountgui/node_modules/vuetify-loader/lib/loader.js!/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/soeren/dev/keksaccountgui/src/views/Login.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/views/Login.vue","mtime":1563355562050},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vuetify-loader/lib/loader.js","mtime":1549812933000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport ServerService from \"../services/Server\";\nimport UserService from \"../services/User\";\nimport LoginComponent from \"../components/Login\";\nexport default {\n data: function data() {\n return {\n nameBig: '',\n nameSmall: '',\n username: '',\n password: '',\n errorMessage: ''\n };\n },\n components: {\n \"Login\": LoginComponent\n },\n methods: {\n 'login': function login() {\n var _this = this;\n\n UserService.login(this.username, this.password).then(function (res) {\n _this.errorMessage = '';\n UserService.setAccessToken(res.data.data[\"access_token\"]);\n console.log(\"Login ok, dispatch event\");\n\n _this.$store.dispatch('checkAccount');\n }, function (res) {\n _this.errorMessage = res.response.data.msg;\n });\n }\n },\n mounted: function mounted() {\n console.log(\"REDIRECT: \" + this.$store.state.redirectIfLoggedIn);\n\n if (this.$store.state.loggedIn == true) {\n if (this.$store.state.redirectIfLoggedIn != null) {\n this.$router.push(this.$store.state.redirectIfLoggedIn);\n } else {\n this.$router.push({\n name: 'Dashboard'\n });\n }\n }\n\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n }\n};",{"version":3,"sources":["Login.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAA,aAAA;AACA,OAAA,WAAA;AACA,OAAA,cAAA;AAEA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,OAAA,EAAA,EADA;AAEA,MAAA,SAAA,EAAA,EAFA;AAGA,MAAA,QAAA,EAAA,EAHA;AAIA,MAAA,QAAA,EAAA,EAJA;AAKA,MAAA,YAAA,EAAA;AALA,KAAA;AAOA,GATA;AAUA,EAAA,UAAA,EAAA;AACA,aAAA;AADA,GAVA;AAaA,EAAA,OAAA,EAAA;AACA,aAAA,iBAAA;AAAA;;AACA,MAAA,WAAA,CAAA,KAAA,CAAA,KAAA,QAAA,EAAA,KAAA,QAAA,EAAA,IAAA,CAAA,UAAA,GAAA,EAAA;AACA,QAAA,KAAA,CAAA,YAAA,GAAA,EAAA;AACA,QAAA,WAAA,CAAA,cAAA,CAAA,GAAA,CAAA,IAAA,CAAA,IAAA,CAAA,cAAA,CAAA;AACA,QAAA,OAAA,CAAA,GAAA,CAAA,0BAAA;;AACA,QAAA,KAAA,CAAA,MAAA,CAAA,QAAA,CAAA,cAAA;AACA,OALA,EAKA,UAAA,GAAA,EAAA;AACA,QAAA,KAAA,CAAA,YAAA,GAAA,GAAA,CAAA,QAAA,CAAA,IAAA,CAAA,GAAA;AACA,OAPA;AAQA;AAVA,GAbA;AAyBA,EAAA,OAAA,EAAA,mBAAA;AACA,IAAA,OAAA,CAAA,GAAA,CAAA,eAAA,KAAA,MAAA,CAAA,KAAA,CAAA,kBAAA;;AACA,QAAA,KAAA,MAAA,CAAA,KAAA,CAAA,QAAA,IAAA,IAAA,EAAA;AACA,UAAA,KAAA,MAAA,CAAA,KAAA,CAAA,kBAAA,IAAA,IAAA,EAAA;AACA,aAAA,OAAA,CAAA,IAAA,CAAA,KAAA,MAAA,CAAA,KAAA,CAAA,kBAAA;AACA,OAFA,MAEA;AACA,aAAA,OAAA,CAAA,IAAA,CAAA;AAAA,UAAA,IAAA,EAAA;AAAA,SAAA;AACA;AAGA;;AACA,SAAA,OAAA,GAAA,KAAA,MAAA,CAAA,OAAA,CAAA,eAAA,CAAA,UAAA,CAAA;AACA,SAAA,SAAA,GAAA,KAAA,MAAA,CAAA,OAAA,CAAA,eAAA,CAAA,YAAA,CAAA;AACA;AAtCA,CAAA","sourcesContent":["<template>\n <div style=\"\">\n <div class=\"header\">\n </div>\n <v-container grid-list-md>\n <v-layout row wrap>\n <v-flex md4></v-flex>\n <v-flex md4 v-if=\"!$store.state.loggedIn\">\n <Login></Login>\n <
|