diff --git a/dist/css/app.3630d946.css b/dist/css/app.3630d946.css new file mode 100644 index 0000000..c17c3b5 --- /dev/null +++ b/dist/css/app.3630d946.css @@ -0,0 +1 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto);.recipeItem[data-v-39756038]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:.1rem;border-bottom:1px dotted #ccc}.recipeItem[data-v-39756038]:nth-of-type(odd){background-color:rgba(0,0,0,.04)}.listItemSix[data-v-39756038]{-webkit-box-flex:6;-ms-flex:6;flex:6}.listItemThree[data-v-39756038]{-webkit-box-flex:3;-ms-flex:3;flex:3}.chicken[data-v-39756038]{background:#8e5241;color:#fff}.beef[data-v-39756038]{background:#d72414;color:#fff}.pork[data-v-39756038]{background:#ef96d9;color:#fff}.fish[data-v-39756038]{background:#005ba0;color:#fff}.egg[data-v-39756038]{background:#fbc003;color:#000}.vegetable[data-v-39756038]{background:#00903e;color:#fff}*{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0}body{font-family:Roboto,sans-serif;font-size:1rem;line-height:1.6;background-color:#fff;color:#333}a{color:var(--primary-color);text-decoration:none}a:hover{color:#666}ul{list-style:none}img{width:100%}.dataRow{cursor:pointer}.container{max-width:1100px;margin:auto;overflow:hidden;padding:0 2rem}.x-large{font-size:4rem}.large,.x-large{line-height:1.2;margin-bottom:1rem}.large{font-size:3rem}.lead{font-size:1.5rem;margin-bottom:1rem}.text-primary{color:var(--primary-color)}.text-dark{color:var(--dark-color)}.text-success{color:var(--success-color)}.text-danger{color:var(--danger-color)}.text-center{text-align:center}.text-right{text-align:right}.text-left{text-align:left}.all-center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%;margin:auto;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}.card{padding:1rem;border:1px dotted #ccc;margin:.7rem 0}.list{margin:.5rem 0}.list li{padding-bottom:.3rem}.p{padding:.5rem}.p-1{padding:1rem}.p-2{padding:2rem}.p-3{padding:3rem}.py{padding:.5rem 0}.py-1{padding:1rem 0}.py-2{padding:2rem 0}.py-3{padding:3rem 0}.m{margin:.5rem}.m-1{margin:1rem}.m-2{margin:2rem}.m-3{margin:3rem}.my{margin:.5rem 0}.my-1{margin:1rem 0}.my-2{margin:2rem 0}.my-3{margin:3rem 0}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:1rem}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:1rem}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:1rem}.btn{display:inline-block;background:var(--light-color);color:#333;padding:.4rem 1.3rem;font-size:1rem;border:none;cursor:pointer;margin-right:.5rem;-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in;outline:none}.btn-link{background:none;padding:0;margin:0}.btn-block{display:block;width:100%}.btn-sm{font-size:.8rem;padding:.3rem 1rem;margin-right:.2rem}.badge{display:inline-block;font-size:.6rem;padding:.1rem .4rem;text-align:center;margin:.3rem;border-radius:3px}.alert,.badge{background:var(--light-color);color:#333}.alert{padding:.7rem;margin:1rem 0;opacity:.9}.alert-primary,.badge-primary,.bg-primary,.btn-primary{background:var(--primary-color);color:#fff}.alert-light,.badge-light,.bg-light,.btn-light{background:var(--light-color);color:#333}.alert-dark,.badge-dark,.bg-dark,.btn-dark{background:var(--dark-color);color:#fff}.alert-danger,.badge-danger,.bg-danger,.btn-danger{background:var(--danger-color);color:#fff}.alert-success,.badge-success,.bg-success,.btn-success{background:var(--success-color);color:#fff}.alert-white,.badge-white,.bg-white,.btn-white{background:#fff;color:#333;border:1px solid #ccc}.btn:disabled{cursor:not-allowed;pointer-events:none;opacity:.6;-webkit-box-shadow:none;box-shadow:none}.btn:enabled:hover{opacity:.8}.badge-light,.bg-light{border:1px solid #ccc}.round-img{border-radius:50%}input{margin:1.2rem 0}.form-text{display:block;margin-top:.3rem;color:#888}input[type=date],input[type=email],input[type=password],input[type=text],select,textarea{display:block;width:100%;padding:.4rem;border:1px solid #ccc}button,input[type=submit]{font:inherit}table td,table th{padding:1rem;text-align:left}table th{background:var(--light-color)}.navbar{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.7rem 2rem;z-index:1;width:100%;opacity:.9;margin-bottom:1rem}.navbar,.navbar ul{display:-webkit-box;display:-ms-flexbox;display:flex}.navbar a{color:#fff;padding:.45rem;margin:0 .25rem}.navbar a:hover{color:var(--light-color)}.navbar .welcome span{margin-right:.6rem}@media (max-width:700px){.hide-sm{display:none}.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.x-large{font-size:3rem}.large{font-size:2rem}.lead{font-size:1rem}.navbar{display:block;text-align:center}.navbar ul{text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}:root{--primary-color:#64b5f6;--dark-color:#333;--light-color:#f4f4f4;--danger-color:#dc3545;--success-color:#28a745;--medium-color:#999}.table-responsive{display:block;overflow-x:auto;width:100%}.cardV2{border-radius:4px;background-color:#fff;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.14),0 3px 4px 0 rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);box-shadow:0 0 4px 0 rgba(0,0,0,.14),0 3px 4px 0 rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);min-width:0}table{max-width:100%;width:100%;border:0;margin-bottom:1rem;border-collapse:collapse}tr{border-top:1px solid #ccc}tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.04)}tbody td{border-top:1px solid #e1e1e1}.chicken{background:#8e5241;color:#fff}.beef{background:#d72414;color:#fff}.pork{background:#ef96d9;color:#fff}.fish{background:#005ba0;color:#fff}.egg{background:#fbc003;color:#fff}.vegetable{background:#00903e;color:#fff}.filterBar{background:var(--medium-color);margin-bottom:1rem;padding:10px 5px}.modalWindow{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.2);z-index:99999;opacity:0;pointer-events:none;text-align:center}.modalWindow:target{opacity:1;pointer-events:auto}.modalWindow>div{width:500px;position:relative;margin:10% auto;background:#fff} \ No newline at end of file diff --git a/dist/js/app.5a9c41fb.js b/dist/js/app.5a9c41fb.js new file mode 100644 index 0000000..4e5f2e0 --- /dev/null +++ b/dist/js/app.5a9c41fb.js @@ -0,0 +1,2 @@ +(function(e){function t(t){for(var a,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)},watch:{editMode:function(e){!0===e&&window.scrollTo(0,0)}}},F=N,T=Object(m["a"])(F,k,M,!1,null,"c30c324e",null),S=T.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:S,FilterBar:H,Recipes:C},methods:{}},J=G,L=(r("034f"),Object(m["a"])(J,n,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,a=t.short;return ra?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 a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Q.a.get("".concat(W,"/").concat(t));case 2:a=e.sent,r("setCurrentItem",a.data),r("setEditMode",!0);case 5: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 a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=Object(c["a"])({},t),""!==a.hash){e.next=8;break}return console.log("Create new"),e.next=5,Q.a.post("".concat(W),a);case 5:n=e.sent,e.next=12;break;case 8:return console.log("Update existing"),e.next=11,Q.a.put("".concat(W,"/").concat(a.hash),a);case 11:n=e.sent;case 12:if(!(n.data.changes>0||"Row inserted"===n.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 a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.target.value,r("setFilter",a);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 a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=Object.assign({},X.currentItem,t),r("setCurrentItem",a);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};a["a"].use(u["a"]);var re=new u["a"].Store({state:{},mutations:{},actions:{},modules:{recipes:te}});a["a"].config.productionTip=!1,new a["a"]({store:re,render:function(e){return e(U)}}).$mount("#app")},"85ec":function(e,t,r){}}); +//# sourceMappingURL=app.5a9c41fb.js.map \ No newline at end of file diff --git a/dist/js/app.5a9c41fb.js.map b/dist/js/app.5a9c41fb.js.map new file mode 100644 index 0000000..8c40995 --- /dev/null +++ b/dist/js/app.5a9c41fb.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?7e02","webpack:///./src/components/RecipeItem.vue?dccd","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?5932","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?663b","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","console","log","meat","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","mealTypes","updateRecipe","updateFilter","Header","Editor","FilterBar","Recipes","state","getters","filtered","recipes","parseInt","filterMode","sort","a","b","shortA","short","shortB","currentItem","actions","commit","axios","response","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,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrB,IAAO,GAGJK,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU6B,QAGnC,I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AW7C,GAClD,UAAa,SAACwF,EAAO4B,GAAR,OAAqB5B,EAAMK,WAAauB,IAIxC,IACb5B,QACAC,UACAY,UACAa,cC5IFG,OAAIC,IAAIC,QAEO,WAAIA,OAAKC,MAAM,CAC5B,MAAS,GAET,UAAa,GAEb,QAAW,GAEX,QAAW,CACT7B,cCTJ0B,OAAII,OAAOC,eAAgB,EAG3B,IAAIL,OAAI,CACNM,SACA,OAAU,SAAAC,GAAC,OAAIA,EAAEC,MAChBC,OAAO,S","file":"js/app.5a9c41fb.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=39756038&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=39756038&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","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.item.mealtype === 128)?_c('span',{staticClass:\"badge badge-dark\"},[_vm._v(\"Note\")]):_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\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=39756038&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=39756038&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 \"39756038\",\n null\n \n)\n\nexport default component.exports","\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('option',{attrs:{\"value\":\"128\"}},[_vm._v(\"Note\")])]),_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","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=c30c324e&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 \"c30c324e\",\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","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","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 const response = await axios.get(`${url}/${hash}`);\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