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

1 line
No EOL
6.9 KiB
JSON

{"remainingRequest":"/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":["//\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 () {\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",{"version":3,"sources":["NewApp.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA;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;AACA;AACA;;AAEA;AACA","file":"NewApp.vue","sourceRoot":"src/views","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"]}]}