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/feceadfca6d5c61118593acc975b57f9.json

1 line
8.6 KiB
JSON
Raw Normal View History

2019-08-11 18:48:02 +00:00
{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/soeren/dev/keksaccountgui/src/views/OAuthPermission.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/views/OAuthPermission.vue","mtime":1561046436563},{"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//\n\nimport ServerService from '../services/Server'\nimport UserService from '../services/User'\nimport LoginComponent from '../components/Login'\nimport AppsService from '../services/Apps'\n\nexport default {\n data () {\n return {\n nameBig: '',\n nameSmall: '',\n username: '',\n password: '',\n errorMessage: '',\n app: null,\n disabledLoginButton: true,\n appId: null\n }\n },\n components: {\n 'Login': LoginComponent\n },\n methods: {\n getAppData: function () {\n AppsService.getAppByKey(this.$route.query.client_id).then((res) => {\n this.appId = res.data.data[0].id\n AppsService.getAccess(res.data.data[0].id).then((access) => {\n if(access.data.data.status == \"allowed\") {\n if(res.data.data[0].properties.stopAutoRedirect) {\n this.disabledLoginButton = false;\n console.log(\"Disabled Auto redirect\");\n } else {\n this.allowAccess();\n }\n console.log(\"ALLOWED\");\n } else {\n this.disabledLoginButton = false;\n }\n console.log(\"Access Data\", res.data);\n });\n console.log(\"App Data\", res.data);\n this.app = res.data.data[0];\n });\n },\n allowAccess: function () {\n console.log(this.$route.query);\n AppsService.allowAccess(this.appId, this.$route.query.redirect_uri, this.$route.query.scope).then((res) => {\n console.log(\"App Access\", res);\n location.href=res.data.data.redirectUrl\n });\n }\n\n },\n mounted: function() {\n\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n this.getAppData();\n\n }\n}\n",{"version":3,"sources":["OAuthPermission.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA;AACA;AACA;AACA;;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;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA","file":"OAuthPermission.vue","sourceRoot":"src/views","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 loginToService=\"true\" serviceName=\"Jenkins\" @loggedIn=\"getAppData();\"></Login>\n </v-flex>\n <v-flex md4 v-if=\"$store.state.loggedIn && ap