This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/.cache/babel-loader/e25ec8d83f4032acd0612ed429659edd.json
2019-08-11 20:48:02 +02:00

1 line
No EOL
6.8 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/components/Login.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/components/Login.vue","mtime":1559742501210},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport UserService from \"../services/User\";\nexport default {\n data: function data() {\n return {\n username: '',\n password: '',\n errorMessage: '',\n nameBig: '',\n nameSmall: '',\n loginText: '',\n logintoMainAccount: true\n };\n },\n props: ['loginToService', 'serviceName'],\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\n _this.$emit('loggedIn');\n }, function (res) {\n _this.errorMessage = res.response.data.msg;\n });\n },\n showPermanentLogin: function showPermanentLogin() {\n return false;\n\n if (this.loginToService && this.logintoMainAccount) {\n return true;\n }\n\n if (!this.loginToService) {\n return true;\n }\n\n return false;\n }\n },\n mounted: function mounted() {\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n this.loginText = \"Login to \" + this.nameBig + this.nameSmall + \" too\";\n }\n};",{"version":3,"sources":["Login.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,OAAA,WAAA;AAEA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,QAAA,EAAA,EADA;AAEA,MAAA,QAAA,EAAA,EAFA;AAGA,MAAA,YAAA,EAAA,EAHA;AAIA,MAAA,OAAA,EAAA,EAJA;AAKA,MAAA,SAAA,EAAA,EALA;AAMA,MAAA,SAAA,EAAA,EANA;AAOA,MAAA,kBAAA,EAAA;AAPA,KAAA;AASA,GAXA;AAYA,EAAA,KAAA,EAAA,CACA,gBADA,EAEA,aAFA,CAZA;AAgBA,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,QAAA,KAAA,CAAA,KAAA,CAAA,UAAA;AACA,OANA,EAMA,UAAA,GAAA,EAAA;AACA,QAAA,KAAA,CAAA,YAAA,GAAA,GAAA,CAAA,QAAA,CAAA,IAAA,CAAA,GAAA;AACA,OARA;AASA,KAXA;AAYA,IAAA,kBAAA,EAAA,8BAAA;AACA,aAAA,KAAA;;AACA,UAAA,KAAA,cAAA,IAAA,KAAA,kBAAA,EAAA;AACA,eAAA,IAAA;AACA;;AACA,UAAA,CAAA,KAAA,cAAA,EAAA;AACA,eAAA,IAAA;AACA;;AACA,aAAA,KAAA;AACA;AArBA,GAhBA;AAuCA,EAAA,OAAA,EAAA,mBAAA;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,SAAA,SAAA,GAAA,cAAA,KAAA,OAAA,GAAA,KAAA,SAAA,GAAA,MAAA;AACA;AA3CA,CAAA","sourcesContent":["<template>\n <div>\n <h1>Login</h1>\n <v-alert\n :value=\"true\"\n type=\"error\"\n v-if=\"errorMessage\"\n >\n {{ errorMessage }}\n </v-alert>\n <p>Login to your <span v-if=\"loginToService\">{{ serviceName }}</span><span v-if=\"!loginToService\">{{nameBig}}{{nameSmall}}</span> with your credentials.</p>\n <v-text-field\n label=\"Username\"\n value=\"\"\n v-model=\"username\"\n ></v-text-field>\n <v-text-field\n label=\"Password\"\n value=\"\"\n type=\"password\"\n v-model=\"password\"\n ></v-text-field>\n <v-checkbox\n v-model=\"logintoMainAccount\"\n :label=\"loginText\"\n v-if=\"loginToService\"\n disabled=\"true\"\n ></v-checkbox>\n <v-checkbox\n v-model=\"allowSpaces\"\n label=\"Permanent Login at this Device\"\n v-if=\"showPermanentLogin()\"\n ></v-checkbox>\n <v-btn\n color=\"success\"\n @click=\"login\"\n >\n Login\n </v-btn>\n </div>\n</template>\n\n<script>\n import UserService from '../services/User'\n\n export default {\n data () {\n return {\n username: '',\n password: '',\n errorMessage: '',\n nameBig: '',\n nameSmall: '',\n loginText: '',\n logintoMainAccount: true\n }\n },\n props: [\n 'loginToService',\n 'serviceName'\n ],\n methods: {\n 'login': function () {\n UserService.login(this.username, this.password).then((res) => {\n this.errorMessage = '';\n UserService.setAccessToken(res.data.data[\"access_token\"]);\n console.log(\"Login ok, dispatch event\");\n this.$store.dispatch('checkAccount');\n this.$emit('loggedIn')\n }, (res) => {\n this.errorMessage = res.response.data.msg;\n });\n },\n showPermanentLogin: function () {\n return false;\n if(this.loginToService && this.logintoMainAccount) {\n return true;\n }\n if(!this.loginToService) {\n return true;\n }\n return false;\n }\n },\n mounted: function() {\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n this.loginText = \"Login to \"+this.nameBig+this.nameSmall+\" too\"\n }\n }\n</script>\n\n\n<style>\n\n</style>"],"sourceRoot":"src/components"}]}