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/vue-loader/3876abae8f801fef0946160e063...

1 line
5.8 KiB
JSON

{"remainingRequest":"/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":1564062719000},{"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//\n\nimport UserService from '../services/User'\n\nexport 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",{"version":3,"sources":["Login.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"Login.vue","sourceRoot":"src/components","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>"]}]}