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

1 line
No EOL
8.3 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/NewApp.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/views/NewApp.vue","mtime":1563898961467},{"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":["import \"core-js/modules/es6.function.name\";\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//\n//\n//\n//\n//\n//\n//\n//\nimport AppService from \"../services/Apps\";\nexport default {\n data: function data() {\n return {\n name: '',\n nameError: null,\n nameErrorFlag: false,\n description: '',\n descriptionError: '',\n descriptionErrorFlag: false,\n url: '',\n urlError: '',\n urlErrorFlag: false\n };\n },\n methods: {\n createApp: function createApp() {\n var _this = this;\n\n this.nameErrorFlag = false;\n this.nameError = null;\n this.descriptionErrorFlag = false;\n this.descriptionError = null;\n this.urlErrorFlag = false;\n this.urlError = null;\n AppService.newApp(this.name, this.description, this.url).then(function (res) {\n _this.$router.push({\n name: 'appDetails',\n params: {\n id: res.data.data.id\n }\n });\n }).catch(function (error) {\n if (error.response.status == 422) {\n if (error.response.data.data.name != undefined) {\n _this.nameErrorFlag = true;\n _this.nameError = error.response.data.data.name[0];\n }\n\n if (error.response.data.data.description != undefined) {\n _this.descriptionErrorFlag = true;\n _this.descriptionError = error.response.data.data.description[0];\n }\n\n if (error.response.data.data.url != undefined) {\n _this.urlErrorFlag = true;\n _this.urlError = error.response.data.data.url[0];\n }\n\n console.log(error.response.data.data);\n } else {\n alert(error.response.data.msg);\n }\n });\n }\n },\n mounted: function mounted() {}\n};",{"version":3,"sources":["NewApp.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,OAAA,UAAA;AACA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,IAAA,EAAA,EADA;AAEA,MAAA,SAAA,EAAA,IAFA;AAGA,MAAA,aAAA,EAAA,KAHA;AAIA,MAAA,WAAA,EAAA,EAJA;AAKA,MAAA,gBAAA,EAAA,EALA;AAMA,MAAA,oBAAA,EAAA,KANA;AAOA,MAAA,GAAA,EAAA,EAPA;AAQA,MAAA,QAAA,EAAA,EARA;AASA,MAAA,YAAA,EAAA;AATA,KAAA;AAWA,GAbA;AAcA,EAAA,OAAA,EAAA;AACA,IAAA,SAAA,EAAA,qBAAA;AAAA;;AACA,WAAA,aAAA,GAAA,KAAA;AACA,WAAA,SAAA,GAAA,IAAA;AACA,WAAA,oBAAA,GAAA,KAAA;AACA,WAAA,gBAAA,GAAA,IAAA;AACA,WAAA,YAAA,GAAA,KAAA;AACA,WAAA,QAAA,GAAA,IAAA;AACA,MAAA,UAAA,CAAA,MAAA,CAAA,KAAA,IAAA,EAAA,KAAA,WAAA,EAAA,KAAA,G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A,GAdA;AA6CA,EAAA,OAAA,EAAA,mBAAA,CAEA;AA/CA,CAAA","sourcesContent":["<template>\n <div style=\"\">\n <v-container grid-list-md>\n <v-layout row wrap>\n <v-flex md12>\n <h1>New App</h1>\n <v-text-field\n label=\"Name\"\n value=\"\"\n type=\"text\"\n v-model=\"name\"\n error=true\n :error=nameErrorFlag\n :error-messages=nameError\n ></v-text-field>\n <v-text-field\n label=\"Description\"\n value=\"\"\n type=\"text\"\n v-model=\"description\"\n error=true\n :error=descriptionErrorFlag\n :error-messages=descriptionError\n ></v-text-field>\n <v-text-field\n label=\"URL\"\n value=\"\"\n type=\"text\"\n v-model=\"url\"\n :error-messages=urlError\n :error=urlErrorFlag\n ></v-text-field>\n </v-flex>\n </v-layout>\n\n <v-btn\n color=\"success\"\n @click=\"createApp\"\n >\n Create App\n </v-btn>\n\n </v-container>\n\n\n </div>\n\n</template>\n\n<script>\n import AppService from '../services/Apps'\n export default {\n data () {\n return {\n name: '',\n nameError: null,\n nameErrorFlag: false,\n description: '',\n descriptionError: '',\n descriptionErrorFlag: false,\n url: '',\n urlError: '',\n urlErrorFlag: false\n }\n },\n methods: {\n createApp: function () {\n this.nameErrorFlag = false;\n this.nameError = null;\n this.descriptionErrorFlag = false;\n this.descriptionError = null;\n this.urlErrorFlag = false;\n this.urlError = null;\n AppService.newApp(this.name, this.description, this.url).then((res) => {\n this.$router.push({name: 'appDetails', params: {id: res.data.data.id}});\n }).catch((error) => {\n if(error.response.status == 422){\n if(error.response.data.data.name != undefined) {\n this.nameErrorFlag = true;\n this.nameError = error.response.data.data.name[0]\n }\n if(error.response.data.data.description != undefined) {\n this.descriptionErrorFlag = true;\n this.descriptionError = error.response.data.data.description[0]\n }\n if(error.response.data.data.url != undefined) {\n this.urlErrorFlag = true;\n this.urlError = error.response.data.data.url[0]\n }\n console.log(error.response.data.data);\n } else {\n alert(error.response.data.msg);\n }\n });\n }\n },\n mounted: function() {\n\n }\n }\n</script>\n\n"],"sourceRoot":"src/views"}]}