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/5e2a5f2ce2adccc8bac75cac11f75078.json
2019-08-11 20:48:02 +02:00

1 line
No EOL
10 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/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},{"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 ServerService from \"../services/Server\";\nimport UserService from \"../services/User\";\nimport LoginComponent from \"../components/Login\";\nimport AppsService from \"../services/Apps\";\nexport default {\n data: function 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 getAppData() {\n var _this = this;\n\n AppsService.getAppByKey(this.$route.query.client_id).then(function (res) {\n _this.appId = res.data.data[0].id;\n AppsService.getAccess(res.data.data[0].id).then(function (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\n console.log(\"ALLOWED\");\n } else {\n _this.disabledLoginButton = false;\n }\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 allowAccess() {\n console.log(this.$route.query);\n AppsService.allowAccess(this.appId, this.$route.query.redirect_uri, this.$route.query.scope).then(function (res) {\n console.log(\"App Access\", res);\n location.href = res.data.data.redirectUrl;\n });\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.getAppData();\n }\n};",{"version":3,"sources":["OAuthPermission.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,OAAA,aAAA;AACA,OAAA,WAAA;AACA,OAAA,cAAA;AACA,OAAA,WAAA;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,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;AACA,MAAA,OAAA,CAAA,GAAA,CAAA,KAAA,MAAA,CAAA,KAAA;AACA,MAAA,WAAA,CAAA,WAAA,CAAA,KAAA,KAAA,EAAA,KAAA,MAAA,CAAA,KAAA,CAAA,YAAA,EAAA,KAAA,MAAA,CAAA,KAAA,CAAA,KAAA,EAAA,IAAA,CAAA,UAAA,GAAA,EAAA;AACA,QAAA,OAAA,CAAA,GAAA,CAAA,YAAA,EAAA,GAAA;AACA,QAAA,QAAA,CAAA,IAAA,GAAA,GAAA,CAAA,IAAA,CAAA,IAAA,CAAA,WAAA;AACA,OAHA;AAIA;AA5BA,GAhBA;AA+CA,EAAA,OAAA,EAAA,mBAAA;AAEA,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,UAAA;AAEA;AArDA,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 loginToService=\"true\" serviceName=\"Jenkins\" @loggedIn=\"getAppData();\"></Login>\n </v-flex>\n <v-flex md4 v-if=\"$store.state.loggedIn && app != null\">\n <h1>Login to {{ app.name }}</h1>\n <p>{{ app.description }}</p>\n <hr>\n <div style=\"margin-top:20px;margin-bottom:20px;\">\n This App get the following permissions:<br /><br />\n <ul>\n <li v-if=\"app.access.read_profile\">Read your Profile information</li>\n <li v-if=\"app.access.update_profile\">>Update your Profile information</li>\n\n <li v-if=\"app.access.read_apps\">>Read your App information</li>\n <li v-if=\"app.access.update_apps\">>Update your App information</li>\n\n <li v-if=\"app.access.read_access\">>Read your Access information</li>\n <li v-if=\"app.access.update_access\">>Update your Access information</li>\n </ul>\n </div>\n\n <v-btn color=\"success\" @click=\"allowAccess()\" :disabled=\"disabledLoginButton\" style=\"width: 100%;\">Login to {{ app.name }}</v-btn>\n <br><br>\n\n <a :href=\"app.url\">Go to App-Webpage</a>\n </v-flex>\n\n </v-layout>\n </v-container>\n\n\n </div>\n\n</template>\n\n<script>\n import ServerService from '../services/Server'\n import UserService from '../services/User'\n import LoginComponent from '../components/Login'\n import AppsService from '../services/Apps'\n\n export 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</script>\n\n<style>\n .header {\n background-image: url('~@/assets/manhattan-407703_1920.jpg');\n background-repeat: no-repeat;\n margin-top: -100px;\n height: 30vh;\n text-align: center;\n }\n .header h1{\n padding-top: 200px;\n font-size: 56px !important;\n font-weight: 400;\n line-height: 32px !important;\n letter-spacing: normal !important;\n }\n .header h1 .small{\n font-weight: 300 !important;\n }\n .header h2{\n padding-top: 30px;\n font-size: 34px !important;\n font-weight: 300;\n line-height: 32px !important;\n letter-spacing: normal !important;\n }\n h1{\n font-weight: 300;\n line-height: 32px !important;\n letter-spacing: normal !important;\n }\n h2{\n font-weight: 300;\n line-height: 32px !important;\n letter-spacing: normal !important;\n }\n</style>\n"],"sourceRoot":"src/views"}]}