diff --git a/dist/index.html b/dist/index.html
index 119f74f..a9b91b1 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -1 +1 @@
-
Menus
\ No newline at end of file
+Menus
\ No newline at end of file
diff --git a/dist/js/app.127befb7.js b/dist/js/app.a4f9d1d7.js
similarity index 72%
rename from dist/js/app.127befb7.js
rename to dist/js/app.a4f9d1d7.js
index 4920896..febafe6 100644
--- a/dist/js/app.127befb7.js
+++ b/dist/js/app.a4f9d1d7.js
@@ -1,2 +1,2 @@
-(function(e){function t(t){for(var n,o,s=t[0],c=t[1],u=t[2],d=0,m=[];d0){var v=m.map((function(e){return e[0].toLowerCase()}));for(var f in v.forEach((function(e){s[e]=s[e]+1||1})),s)s[f]>c&&(c=s[f],u=t.indexOf(f));r.meat=u}p.length>0?r.mealtype=2:r.mealtype=1,this.updateRecipe(r)}}),created:function(){this.debouncedGetPastedtTitle=$()(this.getPastedTitle,500)}},N=F,S=Object(m["a"])(N,k,M,!1,null,"63042c54",null),T=S.exports,B=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"container"},[r("div",{staticClass:"filterBar grid-4"},[r("select",{on:{change:function(t){return e.updateFilter(t)}}},[r("option",{attrs:{value:"0"}},[e._v("All")]),r("option",{attrs:{value:"1"}},[e._v("Chicken")]),r("option",{attrs:{value:"2"}},[e._v("Beef")]),r("option",{attrs:{value:"3"}},[e._v("Pork")]),r("option",{attrs:{value:"4"}},[e._v("Fish")]),r("option",{attrs:{value:"5"}},[e._v("Egg")]),r("option",{attrs:{value:"6"}},[e._v("Vegetable")])])])])},A=[],q={name:"FilterBar",methods:Object(c["a"])({},Object(u["b"])(["updateFilter"]))},V=q,D=Object(m["a"])(V,B,A,!1,null,"396df403",null),H=D.exports,G={name:"App",data:function(){return{}},components:{Header:v,Editor:T,FilterBar:H,Recipes:C},methods:{}},J=G,L=(r("034f"),Object(m["a"])(J,a,i,!1,null,null,null)),U=L.exports,z=(r("99af"),r("4de4"),r("96cf"),r("1da1")),K=r("bc3a"),Q=r.n(K),W="http://localhost:3000/recipes",X={recipes:[],currentItem:{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""},editMode:!1,filterMode:0},Y={allRecipes:function(e){var t=e.recipes.filter((function(t){return 0===parseInt(e.filterMode,10)||t.meat===parseInt(e.filterMode,10)}));return t.sort((function(e,t){var r=e.short,n=t.short;return rn?1:0}))},editorItem:function(e){return e.currentItem},editMode:function(e){return e.editMode},filterMode:function(e){return e.filterMode}},Z={fetchRecipes:function(e){var t=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(W);case 2:r=e.sent,t("setRecipes",r.data);case 4:case"end":return e.stop()}}),e)})))()},editRecipe:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t),console.log(r),e.next=4,Q.a.get("".concat(W,"/").concat(t));case 4:n=e.sent,console.log(n.data),r("setCurrentItem",n.data),r("setEditMode",!0);case 8:case"end":return e.stop()}}),e)})))()},newRecipe:function(e){var t=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t("setCurrentItem",{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""}),t("setEditMode",!0);case 2:case"end":return e.stop()}}),e)})))()},closeEditor:function(e){var t=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t("setCurrentItem",{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""}),t("setEditMode",!1);case 2:case"end":return e.stop()}}),e)})))()},saveRecipe:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Object(c["a"])({},t),""!==n.hash){e.next=8;break}return console.log("Create new"),e.next=5,Q.a.post("".concat(W),n);case 5:a=e.sent,e.next=12;break;case 8:return console.log("Update existing"),e.next=11,Q.a.put("".concat(W,"/").concat(n.hash),n);case 11:a=e.sent;case 12:if(!(a.data.changes>0||"Row inserted"===a.data.msg)){e.next=19;break}return r("setEditMode",!1),r("setCurrentItem",{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""}),e.next=17,Q.a.get(W);case 17:i=e.sent,r("setRecipes",i.data);case 19:case"end":return e.stop()}}),e)})))()},updateFilter:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.target.value,r("setFilter",n);case 2:case"end":return e.stop()}}),e)})))()},updateRecipe:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=Object.assign({},X.currentItem,t),r("setCurrentItem",n);case 2:case"end":return e.stop()}}),e)})))()}},ee={setRecipes:function(e,t){return e.recipes=t},setCurrentItem:function(e,t){return e.currentItem=t},setEditMode:function(e,t){return e.editMode=t},setFilter:function(e,t){return e.filterMode=t}},te={state:X,getters:Y,actions:Z,mutations:ee};n["a"].use(u["a"]);var re=new u["a"].Store({state:{},mutations:{},actions:{},modules:{recipes:te}});n["a"].config.productionTip=!1,new n["a"]({store:re,render:function(e){return e(U)}}).$mount("#app")},"85ec":function(e,t,r){},c9e9:function(e,t,r){}});
-//# sourceMappingURL=app.127befb7.js.map
\ No newline at end of file
+(function(e){function t(t){for(var n,o,s=t[0],c=t[1],u=t[2],d=0,m=[];d0){var v=m.map((function(e){return e[0].toLowerCase()}));for(var f in v.forEach((function(e){s[e]=s[e]+1||1})),s)s[f]>c&&(c=s[f],u=t.indexOf(f));r.meat=u}p.length>0?r.mealtype=2:r.mealtype=1,this.updateRecipe(r)}}),created:function(){this.debouncedGetPastedtTitle=$()(this.getPastedTitle,500)}},N=F,S=Object(m["a"])(N,k,M,!1,null,"63042c54",null),T=S.exports,B=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"container"},[r("div",{staticClass:"filterBar grid-4"},[r("select",{on:{change:function(t){return e.updateFilter(t)}}},[r("option",{attrs:{value:"0"}},[e._v("All")]),r("option",{attrs:{value:"1"}},[e._v("Chicken")]),r("option",{attrs:{value:"2"}},[e._v("Beef")]),r("option",{attrs:{value:"3"}},[e._v("Pork")]),r("option",{attrs:{value:"4"}},[e._v("Fish")]),r("option",{attrs:{value:"5"}},[e._v("Egg")]),r("option",{attrs:{value:"6"}},[e._v("Vegetable")])])])])},A=[],q={name:"FilterBar",methods:Object(c["a"])({},Object(u["b"])(["updateFilter"]))},V=q,D=Object(m["a"])(V,B,A,!1,null,"396df403",null),H=D.exports,G={name:"App",data:function(){return{}},components:{Header:v,Editor:T,FilterBar:H,Recipes:C},methods:{}},J=G,L=(r("034f"),Object(m["a"])(J,a,i,!1,null,null,null)),U=L.exports,z=(r("99af"),r("4de4"),r("96cf"),r("1da1")),K=r("bc3a"),Q=r.n(K),W="https://menu.silvrtree.co.uk/recipes",X={recipes:[],currentItem:{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""},editMode:!1,filterMode:0},Y={allRecipes:function(e){var t=e.recipes.filter((function(t){return 0===parseInt(e.filterMode,10)||t.meat===parseInt(e.filterMode,10)}));return t.sort((function(e,t){var r=e.short,n=t.short;return rn?1:0}))},editorItem:function(e){return e.currentItem},editMode:function(e){return e.editMode},filterMode:function(e){return e.filterMode}},Z={fetchRecipes:function(e){var t=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get(W);case 2:r=e.sent,t("setRecipes",r.data);case 4:case"end":return e.stop()}}),e)})))()},editRecipe:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t),console.log(r),e.next=4,Q.a.get("".concat(W,"/").concat(t));case 4:n=e.sent,console.log(n.data),r("setCurrentItem",n.data),r("setEditMode",!0);case 8:case"end":return e.stop()}}),e)})))()},newRecipe:function(e){var t=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t("setCurrentItem",{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""}),t("setEditMode",!0);case 2:case"end":return e.stop()}}),e)})))()},closeEditor:function(e){var t=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t("setCurrentItem",{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""}),t("setEditMode",!1);case 2:case"end":return e.stop()}}),e)})))()},saveRecipe:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Object(c["a"])({},t),""!==n.hash){e.next=8;break}return console.log("Create new"),e.next=5,Q.a.post("".concat(W),n);case 5:a=e.sent,e.next=12;break;case 8:return console.log("Update existing"),e.next=11,Q.a.put("".concat(W,"/").concat(n.hash),n);case 11:a=e.sent;case 12:if(!(a.data.changes>0||"Row inserted"===a.data.msg)){e.next=19;break}return r("setEditMode",!1),r("setCurrentItem",{name:"",url:"",md:"",meat:"",mealtype:"",_id:"",short:"",hash:"",lastused:""}),e.next=17,Q.a.get(W);case 17:i=e.sent,r("setRecipes",i.data);case 19:case"end":return e.stop()}}),e)})))()},updateFilter:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.target.value,r("setFilter",n);case 2:case"end":return e.stop()}}),e)})))()},updateRecipe:function(e,t){var r=e.commit;return Object(z["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=Object.assign({},X.currentItem,t),r("setCurrentItem",n);case 2:case"end":return e.stop()}}),e)})))()}},ee={setRecipes:function(e,t){return e.recipes=t},setCurrentItem:function(e,t){return e.currentItem=t},setEditMode:function(e,t){return e.editMode=t},setFilter:function(e,t){return e.filterMode=t}},te={state:X,getters:Y,actions:Z,mutations:ee};n["a"].use(u["a"]);var re=new u["a"].Store({state:{},mutations:{},actions:{},modules:{recipes:te}});n["a"].config.productionTip=!1,new n["a"]({store:re,render:function(e){return e(U)}}).$mount("#app")},"85ec":function(e,t,r){},c9e9:function(e,t,r){}});
+//# sourceMappingURL=app.a4f9d1d7.js.map
\ No newline at end of file
diff --git a/dist/js/app.127befb7.js.map b/dist/js/app.a4f9d1d7.js.map
similarity index 91%
rename from dist/js/app.127befb7.js.map
rename to dist/js/app.a4f9d1d7.js.map
index 4c76cc8..6f4e55b 100644
--- a/dist/js/app.127befb7.js.map
+++ b/dist/js/app.a4f9d1d7.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?7e02","webpack:///./src/components/RecipeItem.vue?3dc2","webpack:///./src/App.vue?e770","webpack:///./src/components/layout/Header.vue?fd33","webpack:///src/components/layout/Header.vue","webpack:///./src/components/layout/Header.vue?2022","webpack:///./src/components/layout/Header.vue","webpack:///./src/components/Recipes.vue?fb8b","webpack:///./src/components/RecipeItem.vue?aecf","webpack:///src/components/RecipeItem.vue","webpack:///./src/components/RecipeItem.vue?6647","webpack:///./src/components/RecipeItem.vue","webpack:///src/components/Recipes.vue","webpack:///./src/components/Recipes.vue?73ed","webpack:///./src/components/Recipes.vue","webpack:///./src/components/Editor.vue?18a8","webpack:///src/components/Editor.vue","webpack:///./src/components/Editor.vue?145f","webpack:///./src/components/Editor.vue","webpack:///./src/components/FilterBar.vue?89a8","webpack:///src/components/FilterBar.vue","webpack:///./src/components/FilterBar.vue?2775","webpack:///./src/components/FilterBar.vue","webpack:///src/App.vue","webpack:///./src/App.vue?1160","webpack:///./src/App.vue","webpack:///./src/store/modules/recipes.js","webpack:///./src/store/index.js","webpack:///./src/main.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","staticClass","_v","on","$event","newRecipe","component","_l","item","_id","url","_s","mealtype","_e","class","meatClass","meatText","editRecipe","hash","created","fetchRecipes","editMode","directives","rawName","editorItem","expression","domProps","target","composing","$set","onPasteMD","$$selectedVal","Array","filter","options","selected","map","val","_value","multiple","closeEditor","saveRecipe","debouncedGetPastedtTitle","getPastedTitle","newTitle","newFragment","newLink","matchedFoods","toLowerCase","deboxed","forEach","foodCount","el","winnerVal","winnerId","meats","indexOf","meat","mealTypes","updateRecipe","updateFilter","Header","Editor","FilterBar","Recipes","state","getters","filtered","recipes","parseInt","filterMode","sort","a","b","shortA","short","shortB","currentItem","actions","commit","axios","response","console","log","post","put","changes","msg","updatedList","event","newVal","newRecord","assign","mutations","recipe","newMode","Vue","use","Vuex","Store","config","productionTip","store","h","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EA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A,EAAO,iBAAkB,CACvB,KAAQ,GACR,IAAO,GACP,GAAM,GACN,KAAQ,GACR,SAAY,GACZ,IAAO,GACP,MAAS,GACT,KAAQ,GACR,SAAY,KA1BsB,UA6BVC,IAAM3G,IAAIqC,GA7BA,QA6B9B8E,EA7B8B,OA8BpCT,EAAO,aAAcS,EAAY5J,MA9BG,+CAiClCgI,aAlFQ,WAkFiB6B,GAAO,IAAjBV,EAAiB,EAAjBA,OAAiB,mJAC9BW,EAASD,EAAM9D,OAAOlD,MAC5BsG,EAAO,YAAaW,GAFgB,8CAKhC/B,aAvFQ,WAuFiBd,GAAa,IAAvBkC,EAAuB,EAAvBA,OAAuB,mJACpCY,EAAYtJ,OAAOuJ,OAAO,GAAI3B,EAAMY,YAAahC,GAEvDkC,EAAO,iBAAkBY,GAHiB,+CAOxCE,GAAY,CAChB,WAAc,SAAC5B,EAAOG,GAAR,OAAqBH,EAAMG,QAAUA,GACnD,eAAkB,SAACH,EAAO6B,GAAR,OAAoB7B,EAAMY,YAAciB,GAC1D,YAAe,SAAC7B,EAAOtF,GAAR,OAAkBsF,EAAM5C,SAAW1C,GAClD,UAAa,SAACsF,EAAO8B,GAAR,OAAqB9B,EAAMK,WAAayB,IAIxC,IACb9B,QACAC,UACAY,UACAe,cClJFG,OAAIC,IAAIC,QAEO,WAAIA,OAAKC,MAAM,CAC5B,MAAS,GAET,UAAa,GAEb,QAAW,GAEX,QAAW,CACT/B,cCTJ4B,OAAII,OAAOC,eAAgB,EAG3B,IAAIL,OAAI,CACNM,SACA,OAAU,SAAAC,GAAC,OAAIA,EAAEC,MAChBC,OAAO,S","file":"js/app.127befb7.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=style&index=0&id=203d6576&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=style&index=0&id=203d6576&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('Header'),_c('Editor'),_c('FilterBar'),_c('Recipes')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('header',{staticClass:\"navbar bg-primary\"},[_c('h2',[_vm._v(\" Recipes \")]),_c('ul',[_c('li',[_c('button',{staticClass:\"btn btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.newRecipe()}}},[_vm._v(\"New Recipe\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Header.vue?vue&type=template&id=276d2a9c&scoped=true&\"\nimport script from \"./Header.vue?vue&type=script&lang=js&\"\nexport * from \"./Header.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"276d2a9c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container \"},_vm._l((_vm.allRecipes),function(item){return _c('div',{key:item._id},[_c('RecipeItem',{attrs:{\"item\":item}})],1)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"recipeItem\"},[_c('div',{staticClass:\"listItemSix\"},[_c('a',{attrs:{\"href\":_vm.url}},[_vm._v(_vm._s(_vm.item.name))])]),_c('div',{staticClass:\"listItemThree\"},[(_vm.item.mealtype === 2)?_c('span',{staticClass:\"badge badge-light\"},[_vm._v(\"Soup\")]):_vm._e(),_c('span',{staticClass:\"badge\",class:_vm.meatClass},[_vm._v(_vm._s(_vm.meatText))])]),_c('div',{staticClass:\"listItemThree all-center\"},[_c('button',{staticClass:\"btn btn-primary btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.editRecipe(_vm.item.hash)}}},[_vm._v(\"Edit\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n Soup\n {{meatText}}\n
\n
\n \n
\n\n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RecipeItem.vue?vue&type=template&id=203d6576&scoped=true&\"\nimport script from \"./RecipeItem.vue?vue&type=script&lang=js&\"\nexport * from \"./RecipeItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RecipeItem.vue?vue&type=style&index=0&id=203d6576&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"203d6576\",\n null\n \n)\n\nexport default component.exports","\n \n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Recipes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Recipes.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Recipes.vue?vue&type=template&id=47ce2f76&scoped=true&\"\nimport script from \"./Recipes.vue?vue&type=script&lang=js&\"\nexport * from \"./Recipes.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"47ce2f76\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container \"},[(_vm.editMode === true)?_c('form',{attrs:{\"autocomplete\":\"off\"}},[_c('label',{attrs:{\"for\":\"name\"}},[_vm._v(\"Name:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.name),expression:\"editorItem.name\"}],attrs:{\"type\":\"text\",\"name\":\"name\",\"id\":\"name\",\"value\":\"\",\"required\":\"\"},domProps:{\"value\":(_vm.editorItem.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"name\", $event.target.value)}}}),_c('label',{attrs:{\"for\":\"url\"}},[_vm._v(\"Url:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.url),expression:\"editorItem.url\"}],attrs:{\"type\":\"text\",\"name\":\"url\",\"id\":\"url\",\"value\":\"\",\"required\":\"\"},domProps:{\"value\":(_vm.editorItem.url)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"url\", $event.target.value)}}}),_c('label',{attrs:{\"for\":\"md\"}},[_vm._v(\"Markdown:\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.md),expression:\"editorItem.md\"}],attrs:{\"id\":\"md\",\"name\":\"md\",\"cols\":\"50\",\"rows\":\"10\"},domProps:{\"value\":(_vm.editorItem.md)},on:{\"paste\":_vm.onPasteMD,\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"md\", $event.target.value)}}}),_c('label',{attrs:{\"for\":\"meat\"}},[_vm._v(\"Meat\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.meat),expression:\"editorItem.meat\"}],attrs:{\"id\":\"meat\",\"name\":\"meat\",\"required\":\"\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.editorItem, \"meat\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option'),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"Chicken\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"Beef\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"Pork\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"Fish\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"Egg\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"Vegetable\")])]),_c('label',{attrs:{\"for\":\"mealtype\"}},[_vm._v(\"Meal type\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.mealtype),expression:\"editorItem.mealtype\"}],attrs:{\"id\":\"mealtype\",\"name\":\"mealtype\",\"required\":\"\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.editorItem, \"mealtype\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option'),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"Main\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"Soup\")])]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem._id),expression:\"editorItem._id\"}],attrs:{\"id\":\"_id\",\"name\":\"id\",\"type\":\"hidden\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem._id)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"_id\", $event.target.value)}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.short),expression:\"editorItem.short\"}],attrs:{\"type\":\"hidden\",\"id\":\"short\",\"name\":\"short\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem.short)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"short\", $event.target.value)}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.hash),expression:\"editorItem.hash\"}],attrs:{\"type\":\"hidden\",\"id\":\"hash\",\"name\":\"hash\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem.hash)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"hash\", $event.target.value)}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.lastused),expression:\"editorItem.lastused\"}],attrs:{\"type\":\"hidden\",\"id\":\"lastused\",\"name\":\"lastused\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem.lastused)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"lastused\", $event.target.value)}}}),_c('div',{staticClass:\"my text-right\"},[_c('button',{staticClass:\"btn btn-danger btn-sm\",attrs:{\"id\":\"delete\",\"type\":\"button\"}},[_vm._v(\" Delete \")]),_c('button',{staticClass:\"btn btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.closeEditor}},[_vm._v(\" Close \")]),_c('button',{staticClass:\"btn btn-primary btn-sm\",attrs:{\"id\":\"save\",\"type\":\"button\"},on:{\"click\":function($event){return _vm.saveRecipe(_vm.editorItem)}}},[_vm._v(\" Save \")])])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Editor.vue?vue&type=template&id=63042c54&scoped=true&\"\nimport script from \"./Editor.vue?vue&type=script&lang=js&\"\nexport * from \"./Editor.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"63042c54\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"filterBar grid-4\"},[_c('select',{on:{\"change\":function($event){return _vm.updateFilter($event)}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"All\")]),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"Chicken\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"Beef\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"Pork\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"Fish\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"Egg\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"Vegetable\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n\n \n
\n\n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FilterBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FilterBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FilterBar.vue?vue&type=template&id=396df403&scoped=true&\"\nimport script from \"./FilterBar.vue?vue&type=script&lang=js&\"\nexport * from \"./FilterBar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"396df403\",\n null\n \n)\n\nexport default component.exports","\n \n \n \n \n \n
\n\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=e449d61c&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import axios from 'axios';\n\n// const url = 'https://menu.silvrtree.co.uk/recipes';\nconst url = process.env.NODE_ENV === 'Production' ? 'https://menu.silvrtree.co.uk/recipes' : 'http://localhost:3000/recipes';\n\nconst state = {\n 'recipes': [],\n 'currentItem': {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n },\n 'editMode': false,\n 'filterMode':0\n};\n\nconst getters = {\n 'allRecipes': (state) => {\n const filtered = state.recipes.filter(item => parseInt(state.filterMode, 10) === 0 || item.meat === parseInt(state.filterMode, 10));\n\n return filtered.sort((a, b) => {\n var shortA = a.short; // ignore upper and lowercase\n var shortB = b.short; // ignore upper and lowercase\n if (shortA < shortB) \n return -1;\n \n if (shortA > shortB) \n return 1;\n\n // names must be equal\n return 0;\n });\n },\n 'editorItem': (state) => state.currentItem,\n 'editMode': (state) => state.editMode,\n 'filterMode':(state) => state.filterMode\n};\n\nconst actions = {\n\n async fetchRecipes({ commit }) {\n const response = await axios.get(url);\n commit('setRecipes', response.data);\n },\n\n async editRecipe({ commit }, hash) {\n console.log(hash);\n console.log(commit);\n\n const response = await axios.get(`${url}/${hash}`);\n\n console.log(response.data);\n\n commit('setCurrentItem', response.data);\n\n commit('setEditMode', true);\n },\n async newRecipe({ commit }) {\n commit('setCurrentItem', {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n });\n\n commit('setEditMode', true);\n },\n async closeEditor({ commit }) {\n commit('setCurrentItem', {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n });\n\n commit('setEditMode', false);\n },\n async saveRecipe({ commit }, newRecipe) {\n const data = { ...newRecipe };\n\n let response;\n\n if (data.hash === '') {\n console.log('Create new');\n response = await axios.post(`${url}`, data);\n }\n else {\n console.log('Update existing');\n response = await axios.put(`${url}/${data.hash}`, data);\n }\n\n if (response.data.changes > 0 || response.data.msg === 'Row inserted') {\n commit('setEditMode', false);\n\n commit('setCurrentItem', {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n });\n\n const updatedList = await axios.get(url);\n commit('setRecipes', updatedList.data);\n }\n },\n async updateFilter({ commit }, event) {\n const newVal = event.target.value;\n commit('setFilter', newVal);\n },\n // async updateRecipe({ commit }, oldRecord, newFragment) {\n async updateRecipe({ commit }, newFragment) {\n const newRecord = Object.assign({}, state.currentItem, newFragment );\n\n commit('setCurrentItem', newRecord);\n }\n};\n\nconst mutations = {\n 'setRecipes': (state, recipes) => (state.recipes = recipes),\n 'setCurrentItem': (state, recipe) => (state.currentItem = recipe),\n 'setEditMode': (state, mode) => (state.editMode = mode),\n 'setFilter': (state, newMode) => (state.filterMode = newMode)\n \n};\n\nexport default {\n state,\n getters,\n actions,\n mutations\n};\n","import Vue from 'vue';\nimport Vuex from 'vuex';\n\nimport recipes from './modules/recipes';\nVue.use(Vuex);\n\nexport default new Vuex.Store({\n 'state': {\n },\n 'mutations': {\n },\n 'actions': {\n },\n 'modules': {\n recipes\n }\n});\n","import Vue from 'vue';\nimport App from './App.vue';\nimport store from './store';\n// import axios from 'axios';\n\nVue.config.productionTip = false;\n// Vue.prototype.$http = axios;\n\nnew Vue({\n store,\n 'render': h => h(App)\n}).$mount('#app');\n"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?7e02","webpack:///./src/components/RecipeItem.vue?3dc2","webpack:///./src/App.vue?e770","webpack:///./src/components/layout/Header.vue?fd33","webpack:///src/components/layout/Header.vue","webpack:///./src/components/layout/Header.vue?2022","webpack:///./src/components/layout/Header.vue","webpack:///./src/components/Recipes.vue?fb8b","webpack:///./src/components/RecipeItem.vue?aecf","webpack:///src/components/RecipeItem.vue","webpack:///./src/components/RecipeItem.vue?6647","webpack:///./src/components/RecipeItem.vue","webpack:///src/components/Recipes.vue","webpack:///./src/components/Recipes.vue?73ed","webpack:///./src/components/Recipes.vue","webpack:///./src/components/Editor.vue?18a8","webpack:///src/components/Editor.vue","webpack:///./src/components/Editor.vue?145f","webpack:///./src/components/Editor.vue","webpack:///./src/components/FilterBar.vue?89a8","webpack:///src/components/FilterBar.vue","webpack:///./src/components/FilterBar.vue?2775","webpack:///./src/components/FilterBar.vue","webpack:///src/App.vue","webpack:///./src/App.vue?1160","webpack:///./src/App.vue","webpack:///./src/store/modules/recipes.js","webpack:///./src/store/index.js","webpack:///./src/main.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","staticClass","_v","on","$event","newRecipe","component","_l","item","_id","url","_s","mealtype","_e","class","meatClass","meatText","editRecipe","hash","created","fetchRecipes","editMode","directives","rawName","editorItem","expression","domProps","target","composing","$set","onPasteMD","$$selectedVal","Array","filter","options","selected","map","val","_value","multiple","closeEditor","saveRecipe","debouncedGetPastedtTitle","getPastedTitle","newTitle","newFragment","newLink","matchedFoods","toLowerCase","deboxed","forEach","foodCount","el","winnerVal","winnerId","meats","indexOf","meat","mealTypes","updateRecipe","updateFilter","Header","Editor","FilterBar","Recipes","state","getters","filtered","recipes","parseInt","filterMode","sort","a","b","shortA","short","shortB","currentItem","actions","commit","axios","response","console","log","post","put","changes","msg","updatedList","event","newVal","newRecord","assign","mutations","recipe","newMode","Vue","use","Vuex","Store","config","productionTip","store","h","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,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ACR,IAAO,GACP,GAAM,GACN,KAAQ,GACR,SAAY,GACZ,IAAO,GACP,MAAS,GACT,KAAQ,GACR,SAAY,KA1BsB,UA6BVC,IAAM3G,IAAIqC,GA7BA,QA6B9B8E,EA7B8B,OA8BpCT,EAAO,aAAcS,EAAY5J,MA9BG,+CAiClCgI,aAlFQ,WAkFiB6B,GAAO,IAAjBV,EAAiB,EAAjBA,OAAiB,mJAC9BW,EAASD,EAAM9D,OAAOlD,MAC5BsG,EAAO,YAAaW,GAFgB,8CAKhC/B,aAvFQ,WAuFiBd,GAAa,IAAvBkC,EAAuB,EAAvBA,OAAuB,mJACpCY,EAAYtJ,OAAOuJ,OAAO,GAAI3B,EAAMY,YAAahC,GAEvDkC,EAAO,iBAAkBY,GAHiB,+CAOxCE,GAAY,CAChB,WAAc,SAAC5B,EAAOG,GAAR,OAAqBH,EAAMG,QAAUA,GACnD,eAAkB,SAACH,EAAO6B,GAAR,OAAoB7B,EAAMY,YAAciB,GAC1D,YAAe,SAAC7B,EAAOtF,GAAR,OAAkBsF,EAAM5C,SAAW1C,GAClD,UAAa,SAACsF,EAAO8B,GAAR,OAAqB9B,EAAMK,WAAayB,IAIxC,IACb9B,QACAC,UACAY,UACAe,cCjJFG,OAAIC,IAAIC,QAEO,WAAIA,OAAKC,MAAM,CAC5B,MAAS,GAET,UAAa,GAEb,QAAW,GAEX,QAAW,CACT/B,cCTJ4B,OAAII,OAAOC,eAAgB,EAG3B,IAAIL,OAAI,CACNM,SACA,OAAU,SAAAC,GAAC,OAAIA,EAAEC,MAChBC,OAAO,S","file":"js/app.a4f9d1d7.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=style&index=0&id=203d6576&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=style&index=0&id=203d6576&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('Header'),_c('Editor'),_c('FilterBar'),_c('Recipes')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('header',{staticClass:\"navbar bg-primary\"},[_c('h2',[_vm._v(\" Recipes \")]),_c('ul',[_c('li',[_c('button',{staticClass:\"btn btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.newRecipe()}}},[_vm._v(\"New Recipe\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Header.vue?vue&type=template&id=276d2a9c&scoped=true&\"\nimport script from \"./Header.vue?vue&type=script&lang=js&\"\nexport * from \"./Header.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"276d2a9c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container \"},_vm._l((_vm.allRecipes),function(item){return _c('div',{key:item._id},[_c('RecipeItem',{attrs:{\"item\":item}})],1)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"recipeItem\"},[_c('div',{staticClass:\"listItemSix\"},[_c('a',{attrs:{\"href\":_vm.url}},[_vm._v(_vm._s(_vm.item.name))])]),_c('div',{staticClass:\"listItemThree\"},[(_vm.item.mealtype === 2)?_c('span',{staticClass:\"badge badge-light\"},[_vm._v(\"Soup\")]):_vm._e(),_c('span',{staticClass:\"badge\",class:_vm.meatClass},[_vm._v(_vm._s(_vm.meatText))])]),_c('div',{staticClass:\"listItemThree all-center\"},[_c('button',{staticClass:\"btn btn-primary btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.editRecipe(_vm.item.hash)}}},[_vm._v(\"Edit\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n Soup\n {{meatText}}\n
\n
\n \n
\n\n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipeItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RecipeItem.vue?vue&type=template&id=203d6576&scoped=true&\"\nimport script from \"./RecipeItem.vue?vue&type=script&lang=js&\"\nexport * from \"./RecipeItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RecipeItem.vue?vue&type=style&index=0&id=203d6576&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"203d6576\",\n null\n \n)\n\nexport default component.exports","\n \n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Recipes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Recipes.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Recipes.vue?vue&type=template&id=47ce2f76&scoped=true&\"\nimport script from \"./Recipes.vue?vue&type=script&lang=js&\"\nexport * from \"./Recipes.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"47ce2f76\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container \"},[(_vm.editMode === true)?_c('form',{attrs:{\"autocomplete\":\"off\"}},[_c('label',{attrs:{\"for\":\"name\"}},[_vm._v(\"Name:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.name),expression:\"editorItem.name\"}],attrs:{\"type\":\"text\",\"name\":\"name\",\"id\":\"name\",\"value\":\"\",\"required\":\"\"},domProps:{\"value\":(_vm.editorItem.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"name\", $event.target.value)}}}),_c('label',{attrs:{\"for\":\"url\"}},[_vm._v(\"Url:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.url),expression:\"editorItem.url\"}],attrs:{\"type\":\"text\",\"name\":\"url\",\"id\":\"url\",\"value\":\"\",\"required\":\"\"},domProps:{\"value\":(_vm.editorItem.url)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"url\", $event.target.value)}}}),_c('label',{attrs:{\"for\":\"md\"}},[_vm._v(\"Markdown:\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.md),expression:\"editorItem.md\"}],attrs:{\"id\":\"md\",\"name\":\"md\",\"cols\":\"50\",\"rows\":\"10\"},domProps:{\"value\":(_vm.editorItem.md)},on:{\"paste\":_vm.onPasteMD,\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"md\", $event.target.value)}}}),_c('label',{attrs:{\"for\":\"meat\"}},[_vm._v(\"Meat\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.meat),expression:\"editorItem.meat\"}],attrs:{\"id\":\"meat\",\"name\":\"meat\",\"required\":\"\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.editorItem, \"meat\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option'),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"Chicken\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"Beef\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"Pork\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"Fish\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"Egg\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"Vegetable\")])]),_c('label',{attrs:{\"for\":\"mealtype\"}},[_vm._v(\"Meal type\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.mealtype),expression:\"editorItem.mealtype\"}],attrs:{\"id\":\"mealtype\",\"name\":\"mealtype\",\"required\":\"\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.editorItem, \"mealtype\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option'),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"Main\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"Soup\")])]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem._id),expression:\"editorItem._id\"}],attrs:{\"id\":\"_id\",\"name\":\"id\",\"type\":\"hidden\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem._id)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"_id\", $event.target.value)}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.short),expression:\"editorItem.short\"}],attrs:{\"type\":\"hidden\",\"id\":\"short\",\"name\":\"short\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem.short)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"short\", $event.target.value)}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.hash),expression:\"editorItem.hash\"}],attrs:{\"type\":\"hidden\",\"id\":\"hash\",\"name\":\"hash\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem.hash)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"hash\", $event.target.value)}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editorItem.lastused),expression:\"editorItem.lastused\"}],attrs:{\"type\":\"hidden\",\"id\":\"lastused\",\"name\":\"lastused\",\"value\":\"\",\"disabled\":\"\"},domProps:{\"value\":(_vm.editorItem.lastused)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.editorItem, \"lastused\", $event.target.value)}}}),_c('div',{staticClass:\"my text-right\"},[_c('button',{staticClass:\"btn btn-danger btn-sm\",attrs:{\"id\":\"delete\",\"type\":\"button\"}},[_vm._v(\" Delete \")]),_c('button',{staticClass:\"btn btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.closeEditor}},[_vm._v(\" Close \")]),_c('button',{staticClass:\"btn btn-primary btn-sm\",attrs:{\"id\":\"save\",\"type\":\"button\"},on:{\"click\":function($event){return _vm.saveRecipe(_vm.editorItem)}}},[_vm._v(\" Save \")])])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Editor.vue?vue&type=template&id=63042c54&scoped=true&\"\nimport script from \"./Editor.vue?vue&type=script&lang=js&\"\nexport * from \"./Editor.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"63042c54\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"filterBar grid-4\"},[_c('select',{on:{\"change\":function($event){return _vm.updateFilter($event)}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"All\")]),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"Chicken\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"Beef\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"Pork\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"Fish\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"Egg\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"Vegetable\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n\n \n
\n\n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FilterBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FilterBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FilterBar.vue?vue&type=template&id=396df403&scoped=true&\"\nimport script from \"./FilterBar.vue?vue&type=script&lang=js&\"\nexport * from \"./FilterBar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"396df403\",\n null\n \n)\n\nexport default component.exports","\n \n \n \n \n \n
\n\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=e449d61c&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import axios from 'axios';\n\nconst url = process.env.NODE_ENV === 'production' ? 'https://menu.silvrtree.co.uk/recipes' : 'http://localhost:3000/recipes';\n\nconst state = {\n 'recipes': [],\n 'currentItem': {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n },\n 'editMode': false,\n 'filterMode':0\n};\n\nconst getters = {\n 'allRecipes': (state) => {\n const filtered = state.recipes.filter(item => parseInt(state.filterMode, 10) === 0 || item.meat === parseInt(state.filterMode, 10));\n\n return filtered.sort((a, b) => {\n var shortA = a.short; // ignore upper and lowercase\n var shortB = b.short; // ignore upper and lowercase\n if (shortA < shortB) \n return -1;\n \n if (shortA > shortB) \n return 1;\n\n // names must be equal\n return 0;\n });\n },\n 'editorItem': (state) => state.currentItem,\n 'editMode': (state) => state.editMode,\n 'filterMode':(state) => state.filterMode\n};\n\nconst actions = {\n\n async fetchRecipes({ commit }) {\n const response = await axios.get(url);\n commit('setRecipes', response.data);\n },\n\n async editRecipe({ commit }, hash) {\n console.log(hash);\n console.log(commit);\n\n const response = await axios.get(`${url}/${hash}`);\n\n console.log(response.data);\n\n commit('setCurrentItem', response.data);\n\n commit('setEditMode', true);\n },\n async newRecipe({ commit }) {\n commit('setCurrentItem', {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n });\n\n commit('setEditMode', true);\n },\n async closeEditor({ commit }) {\n commit('setCurrentItem', {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n });\n\n commit('setEditMode', false);\n },\n async saveRecipe({ commit }, newRecipe) {\n const data = { ...newRecipe };\n\n let response;\n\n if (data.hash === '') {\n console.log('Create new');\n response = await axios.post(`${url}`, data);\n }\n else {\n console.log('Update existing');\n response = await axios.put(`${url}/${data.hash}`, data);\n }\n\n if (response.data.changes > 0 || response.data.msg === 'Row inserted') {\n commit('setEditMode', false);\n\n commit('setCurrentItem', {\n 'name': '',\n 'url': '',\n 'md': '',\n 'meat': '',\n 'mealtype': '',\n '_id': '',\n 'short': '',\n 'hash': '',\n 'lastused': ''\n });\n\n const updatedList = await axios.get(url);\n commit('setRecipes', updatedList.data);\n }\n },\n async updateFilter({ commit }, event) {\n const newVal = event.target.value;\n commit('setFilter', newVal);\n },\n // async updateRecipe({ commit }, oldRecord, newFragment) {\n async updateRecipe({ commit }, newFragment) {\n const newRecord = Object.assign({}, state.currentItem, newFragment );\n\n commit('setCurrentItem', newRecord);\n }\n};\n\nconst mutations = {\n 'setRecipes': (state, recipes) => (state.recipes = recipes),\n 'setCurrentItem': (state, recipe) => (state.currentItem = recipe),\n 'setEditMode': (state, mode) => (state.editMode = mode),\n 'setFilter': (state, newMode) => (state.filterMode = newMode)\n \n};\n\nexport default {\n state,\n getters,\n actions,\n mutations\n};\n","import Vue from 'vue';\nimport Vuex from 'vuex';\n\nimport recipes from './modules/recipes';\nVue.use(Vuex);\n\nexport default new Vuex.Store({\n 'state': {\n },\n 'mutations': {\n },\n 'actions': {\n },\n 'modules': {\n recipes\n }\n});\n","import Vue from 'vue';\nimport App from './App.vue';\nimport store from './store';\n// import axios from 'axios';\n\nVue.config.productionTip = false;\n// Vue.prototype.$http = axios;\n\nnew Vue({\n store,\n 'render': h => h(App)\n}).$mount('#app');\n"],"sourceRoot":""}
\ No newline at end of file