-
Notifications
You must be signed in to change notification settings - Fork 0
/
b5e9f4436498f7e258e7.js
1 lines (1 loc) · 4.3 KB
/
b5e9f4436498f7e258e7.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{357:function(t,e,r){},369:function(t,e,r){"use strict";var n=r(357);r.n(n).a},391:function(t,e,r){"use strict";r.r(e);r(22),r(41);var n=r(12),c={asyncData:function(t){return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,c,o,l,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,n=t.params,c=t.$axios,o=t.redirect,l=n.id,e.prev=2,e.next=5,c.$get("https://amazing.shallot-paste.com/api/v1/recipe?slug="+l);case 5:if(!(d=e.sent).status){e.next=10;break}return e.abrupt("return",{slug:l,isValid:!0,loading:!1,title:d.recipe.name,recipe:d.recipe});case 10:o(r.localePath("recipes"));case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),o(r.localePath("recipes"));case 16:case"end":return e.stop()}}),e,null,[[2,13]])})))()},name:"RecipeDetails",head:function(){return{title:"Recipe | "+this.title,meta:[{hid:"title",name:"title",content:"Recipe | "+this.title+" - Shallot Paste"},{hid:"keywords",name:"keywords",content:"shallot paste, resep, resep makanan"},{hid:"description",name:"description",content:"Shallot Paste is an intermediate product from crushed shallots so that it can be used directly as a spice or mixed with other seasoning ingredients."},{property:"og:type",content:"website"},{property:"og:url",content:"https://shallot-paste.com/recipe/"+this.slug},{property:"og:site_name",content:"Pasta Bawang Merah - Shallot Paste"},{property:"og:title",content:"Recipe | "+this.title+" - Shallot Paste"},{property:"og:description",content:"Shallot Paste is an intermediate product from crushed shallots so that it can be used directly as a spice or mixed with other seasoning ingredients."}]}},data:function(){return{loading:!0,recipe:null,tabs:null}},computed:{getRecipeTitle:function(){return null!=this.recipe?this.recipe.name:""},breadcrumb_items:function(){return this.loading?[]:[{text:this.$t("navbar.home"),disabled:!1,exact:!0,link:!0,to:this.localePath("index")},{text:this.$t("navbar.recipes"),disabled:!1,exact:!0,link:!0,to:this.localePath("recipes")},{text:this.recipe.name,disabled:!0}]},tabs_items:function(){return[{text:this.recipe.ingredients},{text:this.recipe.steps}]}}},o=(r(369),r(52)),l=r(72),d=r.n(l),h=r(392),v=r(343),m=r(342),f=r(323),x=r(351),_=r(145),y=r(123),w=r(149),k=r(358),V=r(326),P=r(384),R=r(385),T=r(393),C=r(374),$=r(377),component=Object(o.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("v-parallax",{attrs:{height:"350","lazy-src":t.recipe.photos,src:t.recipe.photos}},[r("v-overlay",{attrs:{value:"true",absolute:""}},[r("v-container",[r("v-row",{attrs:{justify:"center",align:"center"}},[r("v-col",{attrs:{cols:"12",lg:"12"}},[r("div",{staticClass:"text-center"},[r("h1",{staticClass:"display-1 font-weight-bold font-italic"},[t._v(t._s(t.getRecipeTitle))])])])],1)],1)],1)],1),t._v(" "),r("v-container",[r("v-row",[t.loading?t._e():r("v-col",[r("v-breadcrumbs",{attrs:{large:"",items:t.breadcrumb_items}})],1)],1),t._v(" "),t.loading?t._e():r("v-row",{attrs:{justify:"center"}},[r("v-col",{attrs:{cols:"8",md:"4",lg:"4"}},[r("v-img",{staticClass:"elevation-4",attrs:{"lazy-src":t.recipe.photos,src:t.recipe.photos}})],1),t._v(" "),r("v-col",{attrs:{cols:"12",md:"8",lg:"8"}},[r("v-card",[r("v-tabs",{attrs:{"background-color":"orange darken-1",centered:"",dark:"","icons-and-text":""},model:{value:t.tabs,callback:function(e){t.tabs=e},expression:"tabs"}},[r("v-tabs-slider"),t._v(" "),r("v-tab",{attrs:{href:"#tab-1"}},[t._v("\n "+t._s(t.$t("recipes.ingredients"))+"\n "),r("v-icon",[t._v("mdi-shaker-outline")])],1),t._v(" "),r("v-tab",{attrs:{href:"#tab-2"}},[t._v("\n "+t._s(t.$t("recipes.steps"))+"\n "),r("v-icon",[t._v("mdi-chef-hat")])],1)],1),t._v(" "),r("v-tabs-items",{model:{value:t.tabs,callback:function(e){t.tabs=e},expression:"tabs"}},t._l(t.tabs_items,(function(e,i){return r("v-tab-item",{key:i,attrs:{value:"tab-"+(i+1)}},[r("v-card",{attrs:{flat:""}},[r("v-card-text",[r("div",{staticClass:"body-1",domProps:{innerHTML:t._s(e.text)}})])],1)],1)})),1)],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports;d()(component,{VBreadcrumbs:h.a,VCard:v.a,VCardText:m.b,VCol:f.a,VContainer:x.a,VIcon:_.a,VImg:y.a,VOverlay:w.a,VParallax:k.a,VRow:V.a,VTab:P.a,VTabItem:R.a,VTabs:T.a,VTabsItems:C.a,VTabsSlider:$.a})}}]);