248eee0c3dd74417dfec707dbea6d8d0.json 4.1 KB

1
  1. {"remainingRequest":"C:\\Vue\\node_modules\\babel-loader\\lib\\index.js!C:\\Vue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Vue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Vue\\src\\components\\AddTask.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Vue\\src\\components\\AddTask.vue","mtime":1607779006730},{"path":"C:\\Vue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Vue\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Vue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Vue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.date.now\";\nimport \"core-js/modules/es6.string.trim\";\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//\nexport default {\n data: function data() {\n return {\n title: \"\",\n picked: \"\",\n newTask: {\n id: \"\",\n title: \"\",\n completed: false,\n important: false\n }\n };\n },\n methods: {\n onSubmit: function onSubmit() {\n if (this.title.trim()) {\n this.newTask = {\n id: Date.now(),\n title: this.title,\n completed: false\n };\n\n if (this.picked == \"y\") {\n this.newTask.important = true;\n } else {\n this.newTask.important = false;\n }\n }\n\n this.$emit(\"add-task\", this.newTask);\n this.title = \"\";\n }\n }\n};",{"version":3,"sources":["AddTask.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,KAAA,EAAA,EADA;AAEA,MAAA,MAAA,EAAA,EAFA;AAGA,MAAA,OAAA,EAAA;AACA,QAAA,EAAA,EAAA,EADA;AAEA,QAAA,KAAA,EAAA,EAFA;AAGA,QAAA,SAAA,EAAA,KAHA;AAIA,QAAA,SAAA,EAAA;AAJA;AAHA,KAAA;AAUA,GAZA;AAaA,EAAA,OAAA,EAAA;AACA,IAAA,QADA,sBACA;AACA,UAAA,KAAA,KAAA,CAAA,IAAA,EAAA,EAAA;AACA,aAAA,OAAA,GAAA;AACA,UAAA,EAAA,EAAA,IAAA,CAAA,GAAA,EADA;AAEA,UAAA,KAAA,EAAA,KAAA,KAFA;AAGA,UAAA,SAAA,EAAA;AAHA,SAAA;;AAKA,YAAA,KAAA,MAAA,IAAA,GAAA,EAAA;AACA,eAAA,OAAA,CAAA,SAAA,GAAA,IAAA;AACA,SAFA,MAEA;AACA,eAAA,OAAA,CAAA,SAAA,GAAA,KAAA;AACA;AACA;;AAEA,WAAA,KAAA,CAAA,UAAA,EAAA,KAAA,OAAA;AACA,WAAA,KAAA,GAAA,EAAA;AACA;AAjBA;AAbA,CAAA","sourcesContent":["<template>\n <form @submit.prevent=\"onSubmit\" class=\"mb-3\">\n <input type=\"text\" class=\"form-control\" v-model=\"title\" />\n\n <fieldset class=\"row mb-3\">\n <legend class=\"col-form-label col-sm-2 pt-0\">Important?</legend>\n <div class=\"col-sm-10\">\n <div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"radio\"\n checked\n v-model=\"picked\"\n value=\"y\"\n />\n <label class=\"form-check-label\"> Yes </label>\n </div>\n <div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"radio\"\n name=\"gridRadios\"\n id=\"gridRadios2\"\n v-model=\"picked\"\n value=\"n\"\n />\n <label class=\"form-check-label\"> No </label>\n </div>\n </div>\n </fieldset>\n <button type=\"submit\" class=\"btn btn-primary\">Create</button>\n </form>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n title: \"\",\n picked: \"\",\n newTask: {\n id: \"\",\n title: \"\",\n completed: false,\n important: false,\n },\n };\n },\n methods: {\n onSubmit() {\n if (this.title.trim()) {\n this.newTask = {\n id: Date.now(),\n title: this.title,\n completed: false,\n };\n if (this.picked == \"y\") {\n this.newTask.important = true;\n } else {\n this.newTask.important = false;\n }\n }\n\n this.$emit(\"add-task\", this.newTask);\n this.title = \"\";\n },\n },\n};\n</script>\n"],"sourceRoot":"src/components"}]}