remove a lot of things that shouldnt be in git
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{P as r,h as c,w as e,g as t,V as s,i as _,j as n,k as l,z as f,t as u,K as d,f as i}from"./main-BhFWIRV_.js";const V={};function p(o,a){return i(),c(d,null,{default:e(()=>[t(l,null,{default:e(()=>[t(s,{class:"text-center"},{default:e(()=>a[0]||(a[0]=[_("h1",null,"404",-1),n(" Oops, there is nothing here. ")])),_:1,__:[0]})]),_:1}),t(l,null,{default:e(()=>[t(s,{class:"text-center"},{default:e(()=>[t(f,{to:{name:"StartPage"}},{default:e(()=>[n(u(o.$t("Home")),1)]),_:1})]),_:1})]),_:1})]),_:1})}const g=r(V,[["render",p]]);export{g as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{P as r,h as c,w as e,g as t,V as s,i as _,j as n,k as l,z as f,t as u,K as d,f as i}from"./main-BhFWIRV_.js";const V={};function p(o,a){return i(),c(d,null,{default:e(()=>[t(l,null,{default:e(()=>[t(s,{class:"text-center"},{default:e(()=>a[0]||(a[0]=[_("h1",null,"404",-1),n(" Oops, there is nothing here. ")])),_:1,__:[0]})]),_:1}),t(l,null,{default:e(()=>[t(s,{class:"text-center"},{default:e(()=>[t(f,{to:{name:"StartPage"}},{default:e(()=>[n(u(o.$t("Home")),1)]),_:1})]),_:1})]),_:1})]),_:1})}const g=r(V,[["render",p]]);export{g as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as S,aM as w,o as x,D as y,h as C,f as _,w as s,g as l,O,ac as T,l as e,k as I,V as p,S as c,aY as U}from"./main-BhFWIRV_.js";import{_ as F}from"./BtnCopy.vue_vue_type_script_setup_true_lang-B_1A58TG.js";import{u as $,_ as q}from"./useModelEditorFunctions-Du2kfr61.js";import"./VTooltip-CP00KBBq.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const z=S({__name:"AccessTokenEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(i,{emit:f}){const d=i,n=f,{setupState:g,deleteObject:V,saveObject:b,isUpdate:v,editingObjName:j,loading:u,editingObj:a,editingObjChanged:m,modelClass:k}=$("AccessToken",n);w([()=>d.item,()=>d.itemId],()=>{r()}),x(()=>{r()});function r(){g(d.item,d.itemId,{newItemFunction:()=>{a.value.expires=y.now().plus({year:1}).toJSDate(),a.value.scope="read write"},itemDefaults:d.itemDefaults})}return(D,t)=>(_(),C(q,{loading:e(u),dialog:i.dialog,onSave:e(b),onDelete:e(V),onClose:t[3]||(t[3]=o=>{n("close"),m.value=!1}),"is-update":e(v)(),"is-changed":e(m),"model-class":e(k),"object-name":e(j)(),"editing-object":e(a)},{default:s(()=>[l(O,null,{default:s(()=>[l(T,{disabled:e(u)},{default:s(()=>[l(I,null,{default:s(()=>[l(p,{cols:"10"},{default:s(()=>[l(c,{label:"Token",modelValue:e(a).token,"onUpdate:modelValue":t[0]||(t[0]=o=>e(a).token=o),disabled:""},null,8,["modelValue"])]),_:1}),l(p,{cols:"2"},{default:s(()=>[l(F,{"copy-value":e(a).token,class:"me-1"},null,8,["copy-value"])]),_:1})]),_:1}),l(c,{label:"Scope",modelValue:e(a).scope,"onUpdate:modelValue":t[1]||(t[1]=o=>e(a).scope=o)},null,8,["modelValue"]),l(e(U),{label:D.$t("Valid Until"),modelValue:e(a).expires,"onUpdate:modelValue":t[2]||(t[2]=o=>e(a).expires=o)},null,8,["label","modelValue"])]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as S,aM as w,o as x,D as y,h as C,f as _,w as s,g as l,O,ac as T,l as e,k as I,V as p,S as c,aY as U}from"./main-BhFWIRV_.js";import{_ as F}from"./BtnCopy.vue_vue_type_script_setup_true_lang-B_1A58TG.js";import{u as $,_ as q}from"./useModelEditorFunctions-Du2kfr61.js";import"./VTooltip-CP00KBBq.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const z=S({__name:"AccessTokenEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(i,{emit:f}){const d=i,n=f,{setupState:g,deleteObject:V,saveObject:b,isUpdate:v,editingObjName:j,loading:u,editingObj:a,editingObjChanged:m,modelClass:k}=$("AccessToken",n);w([()=>d.item,()=>d.itemId],()=>{r()}),x(()=>{r()});function r(){g(d.item,d.itemId,{newItemFunction:()=>{a.value.expires=y.now().plus({year:1}).toJSDate(),a.value.scope="read write"},itemDefaults:d.itemDefaults})}return(D,t)=>(_(),C(q,{loading:e(u),dialog:i.dialog,onSave:e(b),onDelete:e(V),onClose:t[3]||(t[3]=o=>{n("close"),m.value=!1}),"is-update":e(v)(),"is-changed":e(m),"model-class":e(k),"object-name":e(j)(),"editing-object":e(a)},{default:s(()=>[l(O,null,{default:s(()=>[l(T,{disabled:e(u)},{default:s(()=>[l(I,null,{default:s(()=>[l(p,{cols:"10"},{default:s(()=>[l(c,{label:"Token",modelValue:e(a).token,"onUpdate:modelValue":t[0]||(t[0]=o=>e(a).token=o),disabled:""},null,8,["modelValue"])]),_:1}),l(p,{cols:"2"},{default:s(()=>[l(F,{"copy-value":e(a).token,class:"me-1"},null,8,["copy-value"])]),_:1})]),_:1}),l(c,{label:"Scope",modelValue:e(a).scope,"onUpdate:modelValue":t[1]||(t[1]=o=>e(a).scope=o)},null,8,["modelValue"]),l(e(U),{label:D.$t("Valid Until"),modelValue:e(a).expires,"onUpdate:modelValue":t[2]||(t[2]=o=>e(a).expires=o)},null,8,["label","modelValue"])]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as w,b as y,h as V,e as $,l as d,aa as h,w as t,g as a,i as r,ab as S,k as _,V as f,j as o,I as c,t as s,z as m,F as E,f as g,L as p,a7 as R,r as M,o as D,A as k,Q as v,R as U,ac as N,B as C,S as b,U as B,ad as F}from"./main-BhFWIRV_.js";import{_ as T}from"./logo_color-BwefLr6I.js";const H={class:"mt-2"},j={class:"mt-2"},O=w({__name:"ThankYouNote",setup(A){return(i,n)=>(g(),y(E,null,[d(p)().serverSettings.hosted?(g(),V(h,{key:0,color:"primary",variant:"tonal"},{default:t(()=>[a(S,null,{default:t(()=>[a(_,null,{default:t(()=>[a(f,null,{default:t(()=>[a(c,{image:T,class:"me-2"}),o(" "+s(i.$t("ThankYou"))+"! ",1)]),_:1}),a(f,null,{default:t(()=>[a(m,{color:"primary",class:"float-right",href:"https://tandoor.dev/manage",target:"_blank"},{default:t(()=>[o(s(i.$t("ManageSubscription")),1)]),_:1})]),_:1})]),_:1})]),_:1}),r("p",H,s(i.$t("ThanksTextHosted")),1)]),_:1})):$("",!0),d(p)().serverSettings.hosted?$("",!0):(g(),V(h,{key:1,color:"primary",variant:"tonal"},{default:t(()=>[a(S,null,{default:t(()=>[a(_,null,{default:t(()=>[a(f,null,{default:t(()=>[a(c,{image:T,class:"me-2"}),o(" "+s(i.$t("ThankYou"))+"! ",1)]),_:1}),a(f,null,{default:t(()=>[a(m,{color:"primary",class:"float-right",href:"https://github.com/sponsors/vabene1111",target:"_blank"},{default:t(()=>n[0]||(n[0]=[r("i",{class:"fa-brands fa-github"},null,-1),o(" GitHub Sponsors ")])),_:1,__:[0]})]),_:1})]),_:1})]),_:1}),r("p",j,s(i.$t("ThanksTextSelfhosted")),1)]),_:1}))],64))}}),Y={class:"text-h6"},L={class:"text-h6 mt-3"},z={class:"text-h6 mt-3"},G={class:"text-disabled"},q=w({__name:"AccountSettings",setup(A){const{getDjangoUrl:i}=R(),n=M({});D(()=>{new k().apiUserRetrieve({id:p().userSettings.user.id}).then(e=>{n.value=e}).catch(e=>{v().addError(U.FETCH_ERROR,e)})});function P(){new k().apiUserPartialUpdate({id:n.value.id,patchedUser:n.value}).then(e=>{n.value=e,v().addPreparedMessage(F.UPDATE_SUCCESS)}).catch(e=>{v().addError(U.UPDATE_ERROR,e)})}return(l,e)=>(g(),V(N,null,{default:t(()=>[r("p",Y,s(l.$t("Profile")),1),a(C,{class:"mb-3"}),a(O),a(b,{class:"mt-3",label:l.$t("Username"),modelValue:n.value.username,"onUpdate:modelValue":e[0]||(e[0]=u=>n.value.username=u),disabled:"",hint:l.$t("theUsernameCannotBeChanged"),"persistent-hint":""},null,8,["label","modelValue","hint"]),a(b,{label:l.$t("First_name"),modelValue:n.value.firstName,"onUpdate:modelValue":e[1]||(e[1]=u=>n.value.firstName=u)},null,8,["label","modelValue"]),a(b,{label:l.$t("Last_name"),modelValue:n.value.lastName,"onUpdate:modelValue":e[2]||(e[2]=u=>n.value.lastName=u)},null,8,["label","modelValue"]),a(m,{color:"success","prepend-icon":"$save",onClick:e[3]||(e[3]=u=>P())},{default:t(()=>[o(s(l.$t("Save")),1)]),_:1}),r("p",L,s(l.$t("Account")),1),a(C,{class:"mb-3"}),a(m,{color:"primary",class:"mt-1",href:d(i)("accounts/email/"),target:"_blank"},{default:t(()=>[o(s(l.$t("Manage_Emails")),1)]),_:1},8,["href"]),e[7]||(e[7]=r("br",null,null,-1)),a(m,{color:"primary",class:"mt-1",href:d(i)("accounts/password/change/"),target:"_blank"},{default:t(()=>[o(s(l.$t("Change_Password")),1)]),_:1},8,["href"]),e[8]||(e[8]=r("br",null,null,-1)),a(m,{color:"primary",class:"mt-1",href:d(i)("accounts/social/connections/"),target:"_blank"},{default:t(()=>[o(s(l.$t("Social_Authentication")),1)]),_:1},8,["href"]),e[9]||(e[9]=r("br",null,null,-1)),r("p",z,s(l.$t("DeviceSettings")),1),r("p",G,s(l.$t("DeviceSettingsHelp")),1),a(B,{modelValue:d(p)().deviceSettings.start_showMealPlan,"onUpdate:modelValue":e[4]||(e[4]=u=>d(p)().deviceSettings.start_showMealPlan=u),label:l.$t("ShowMealPlanOnStartPage")},null,8,["modelValue","label"]),a(m,{onClick:e[5]||(e[5]=u=>d(p)().resetDeviceSettings()),color:"warning"},{default:t(()=>[o(s(l.$t("Reset")),1)]),_:1}),e[10]||(e[10]=o()),e[11]||(e[11]=r("br",null,null,-1)),a(m,{onClick:e[6]||(e[6]=u=>d(p)().deviceSettings.general_closedHelpAlerts=[]),color:"warning",class:"mt-1"},{default:t(()=>[o(s(l.$t("ResetHelp")),1)]),_:1})]),_:1,__:[7,8,9,10,11]}))}});export{q as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as w,b as y,h as V,e as $,l as d,aa as h,w as t,g as a,i as r,ab as S,k as _,V as f,j as o,I as c,t as s,z as m,F as E,f as g,L as p,a7 as R,r as M,o as D,A as k,Q as v,R as U,ac as N,B as C,S as b,U as B,ad as F}from"./main-BhFWIRV_.js";import{_ as T}from"./logo_color-BwefLr6I.js";const H={class:"mt-2"},j={class:"mt-2"},O=w({__name:"ThankYouNote",setup(A){return(i,n)=>(g(),y(E,null,[d(p)().serverSettings.hosted?(g(),V(h,{key:0,color:"primary",variant:"tonal"},{default:t(()=>[a(S,null,{default:t(()=>[a(_,null,{default:t(()=>[a(f,null,{default:t(()=>[a(c,{image:T,class:"me-2"}),o(" "+s(i.$t("ThankYou"))+"! ",1)]),_:1}),a(f,null,{default:t(()=>[a(m,{color:"primary",class:"float-right",href:"https://tandoor.dev/manage",target:"_blank"},{default:t(()=>[o(s(i.$t("ManageSubscription")),1)]),_:1})]),_:1})]),_:1})]),_:1}),r("p",H,s(i.$t("ThanksTextHosted")),1)]),_:1})):$("",!0),d(p)().serverSettings.hosted?$("",!0):(g(),V(h,{key:1,color:"primary",variant:"tonal"},{default:t(()=>[a(S,null,{default:t(()=>[a(_,null,{default:t(()=>[a(f,null,{default:t(()=>[a(c,{image:T,class:"me-2"}),o(" "+s(i.$t("ThankYou"))+"! ",1)]),_:1}),a(f,null,{default:t(()=>[a(m,{color:"primary",class:"float-right",href:"https://github.com/sponsors/vabene1111",target:"_blank"},{default:t(()=>n[0]||(n[0]=[r("i",{class:"fa-brands fa-github"},null,-1),o(" GitHub Sponsors ")])),_:1,__:[0]})]),_:1})]),_:1})]),_:1}),r("p",j,s(i.$t("ThanksTextSelfhosted")),1)]),_:1}))],64))}}),Y={class:"text-h6"},L={class:"text-h6 mt-3"},z={class:"text-h6 mt-3"},G={class:"text-disabled"},q=w({__name:"AccountSettings",setup(A){const{getDjangoUrl:i}=R(),n=M({});D(()=>{new k().apiUserRetrieve({id:p().userSettings.user.id}).then(e=>{n.value=e}).catch(e=>{v().addError(U.FETCH_ERROR,e)})});function P(){new k().apiUserPartialUpdate({id:n.value.id,patchedUser:n.value}).then(e=>{n.value=e,v().addPreparedMessage(F.UPDATE_SUCCESS)}).catch(e=>{v().addError(U.UPDATE_ERROR,e)})}return(l,e)=>(g(),V(N,null,{default:t(()=>[r("p",Y,s(l.$t("Profile")),1),a(C,{class:"mb-3"}),a(O),a(b,{class:"mt-3",label:l.$t("Username"),modelValue:n.value.username,"onUpdate:modelValue":e[0]||(e[0]=u=>n.value.username=u),disabled:"",hint:l.$t("theUsernameCannotBeChanged"),"persistent-hint":""},null,8,["label","modelValue","hint"]),a(b,{label:l.$t("First_name"),modelValue:n.value.firstName,"onUpdate:modelValue":e[1]||(e[1]=u=>n.value.firstName=u)},null,8,["label","modelValue"]),a(b,{label:l.$t("Last_name"),modelValue:n.value.lastName,"onUpdate:modelValue":e[2]||(e[2]=u=>n.value.lastName=u)},null,8,["label","modelValue"]),a(m,{color:"success","prepend-icon":"$save",onClick:e[3]||(e[3]=u=>P())},{default:t(()=>[o(s(l.$t("Save")),1)]),_:1}),r("p",L,s(l.$t("Account")),1),a(C,{class:"mb-3"}),a(m,{color:"primary",class:"mt-1",href:d(i)("accounts/email/"),target:"_blank"},{default:t(()=>[o(s(l.$t("Manage_Emails")),1)]),_:1},8,["href"]),e[7]||(e[7]=r("br",null,null,-1)),a(m,{color:"primary",class:"mt-1",href:d(i)("accounts/password/change/"),target:"_blank"},{default:t(()=>[o(s(l.$t("Change_Password")),1)]),_:1},8,["href"]),e[8]||(e[8]=r("br",null,null,-1)),a(m,{color:"primary",class:"mt-1",href:d(i)("accounts/social/connections/"),target:"_blank"},{default:t(()=>[o(s(l.$t("Social_Authentication")),1)]),_:1},8,["href"]),e[9]||(e[9]=r("br",null,null,-1)),r("p",z,s(l.$t("DeviceSettings")),1),r("p",G,s(l.$t("DeviceSettingsHelp")),1),a(B,{modelValue:d(p)().deviceSettings.start_showMealPlan,"onUpdate:modelValue":e[4]||(e[4]=u=>d(p)().deviceSettings.start_showMealPlan=u),label:l.$t("ShowMealPlanOnStartPage")},null,8,["modelValue","label"]),a(m,{onClick:e[5]||(e[5]=u=>d(p)().resetDeviceSettings()),color:"warning"},{default:t(()=>[o(s(l.$t("Reset")),1)]),_:1}),e[10]||(e[10]=o()),e[11]||(e[11]=r("br",null,null,-1)),a(m,{onClick:e[6]||(e[6]=u=>d(p)().deviceSettings.general_closedHelpAlerts=[]),color:"warning",class:"mt-1"},{default:t(()=>[o(s(l.$t("ResetHelp")),1)]),_:1})]),_:1,__:[7,8,9,10,11]}))}});export{q as default};
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as v,r as y,o as D,A as E,Q as I,R as B,h as p,w as o,ac as L,i as n,g as t,t as r,B as $,l as i,a7 as g,k as f,V as w,aa as A,j as l,_ as b,z as T,b as C,p as S,F as N,x as P,f as u,y as x,C as R,E as F,D as m,e as j,ai as z,G as M}from"./main-BhFWIRV_.js";import{_ as V}from"./DatabaseLinkCol.vue_vue_type_script_setup_true_lang-Bnq1B2KL.js";const U={class:"text-h6"},K=v({__name:"ApiSettings",setup(O){const k=y([]);D(()=>{d()});function d(){new E().apiAccessTokenList().then(e=>{k.value=e}).catch(e=>{I().addError(B.FETCH_ERROR,e)})}return(a,e)=>(u(),p(L,null,{default:o(()=>[n("p",U,r(a.$t("API")),1),t($,{class:"mb-3"}),t(f,null,{default:o(()=>[t(V,{"prepend-icon":"fa-solid fa-terminal",href:i(g)().getDjangoUrl("api"),lg:6,title:a.$t("API_Browser")},null,8,["href","title"]),t(V,{"prepend-icon":"fa-solid fa-laptop-code",href:i(g)().getDjangoUrl("/docs/api/"),lg:6,title:a.$t("API_Documentation")},null,8,["href","title"])]),_:1}),t(f,null,{default:o(()=>[t(w,null,{default:o(()=>[t(A,{color:"error",variant:"tonal"},{default:o(()=>e[2]||(e[2]=[l(" The API is made for developers to interact with the application. It is possible to break things using the API so be careful and create a backup first. The API definition can and will change in the future, make sure to read the changelog to spot changes early on. ")])),_:1,__:[2]})]),_:1})]),_:1}),t(f,null,{default:o(()=>[t(w,null,{default:o(()=>[e[4]||(e[4]=l(" Authentication works by proving the word ")),e[5]||(e[5]=n("code",null,"Bearer",-1)),e[6]||(e[6]=l(" followed by an API Token as a request Authorization header as shown below. ")),e[7]||(e[7]=n("br",null,null,-1)),e[8]||(e[8]=n("code",null,"Authorization: Bearer TOKEN",-1)),e[9]||(e[9]=l(" -or-")),e[10]||(e[10]=n("br",null,null,-1)),e[11]||(e[11]=n("code",null,"curl -X GET http://your.domain.com/api/recipe/ -H 'Authorization: Bearer TOKEN'",-1)),e[12]||(e[12]=n("br",null,null,-1)),e[13]||(e[13]=n("br",null,null,-1)),e[14]||(e[14]=l(" You can have multiple tokens and each token can have its own scope. Currently there is ")),e[15]||(e[15]=n("code",null,"read",-1)),e[16]||(e[16]=l(", ")),e[17]||(e[17]=n("code",null,"write",-1)),e[18]||(e[18]=l(" and ")),e[19]||(e[19]=n("code",null,"bookmarklet",-1)),e[20]||(e[20]=l(". Read and write do what the name says, the bookmarklet scope is only used for the bookmarklet to limit access to it. ")),t(A,{color:"warning",variant:"tonal"},{default:o(()=>e[3]||(e[3]=[l("Make sure to save your token after creation as they cannot be viewed afterwards.")])),_:1,__:[3]})]),_:1,__:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]})]),_:1}),t(T,{"prepend-icon":"$create",color:"create",class:"mt-2"},{default:o(()=>[l(r(a.$t("New"))+" ",1),t(b,{model:"AccessToken",onCreate:e[0]||(e[0]=s=>d()),"close-after-create":!1})]),_:1}),t(P,{class:"mt-2",border:""},{default:o(()=>[(u(!0),C(N,null,S(k.value,s=>(u(),p(x,null,{append:o(()=>[s.expires<i(m).now().toJSDate()?(u(),p(z,{key:0,color:"error",class:"me-2"},{default:o(()=>e[21]||(e[21]=[l("Expired")])),_:1,__:[21]})):j("",!0),t(T,{color:"edit"},{default:o(()=>[t(M,{icon:"$edit"}),t(b,{model:"AccessToken",item:s,class:"mt-2",onDelete:e[1]||(e[1]=G=>d())},null,8,["item"])]),_:2},1024)]),default:o(()=>[t(R,null,{default:o(()=>[l(r(s.token),1)]),_:2},1024),t(F,null,{default:o(()=>[l("Scope "+r(s.scope)+" Expires "+r(i(m).fromJSDate(s.expires).toLocaleString(i(m).DATE_FULL)),1)]),_:2},1024)]),_:2},1024))),256))]),_:1})]),_:1}))}});export{K as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as v,r as y,o as D,A as E,Q as I,R as B,h as p,w as o,ac as L,i as n,g as t,t as r,B as $,l as i,a7 as g,k as f,V as w,aa as A,j as l,_ as b,z as T,b as C,p as S,F as N,x as P,f as u,y as x,C as R,E as F,D as m,e as j,ai as z,G as M}from"./main-BhFWIRV_.js";import{_ as V}from"./DatabaseLinkCol.vue_vue_type_script_setup_true_lang-Bnq1B2KL.js";const U={class:"text-h6"},K=v({__name:"ApiSettings",setup(O){const k=y([]);D(()=>{d()});function d(){new E().apiAccessTokenList().then(e=>{k.value=e}).catch(e=>{I().addError(B.FETCH_ERROR,e)})}return(a,e)=>(u(),p(L,null,{default:o(()=>[n("p",U,r(a.$t("API")),1),t($,{class:"mb-3"}),t(f,null,{default:o(()=>[t(V,{"prepend-icon":"fa-solid fa-terminal",href:i(g)().getDjangoUrl("api"),lg:6,title:a.$t("API_Browser")},null,8,["href","title"]),t(V,{"prepend-icon":"fa-solid fa-laptop-code",href:i(g)().getDjangoUrl("/docs/api/"),lg:6,title:a.$t("API_Documentation")},null,8,["href","title"])]),_:1}),t(f,null,{default:o(()=>[t(w,null,{default:o(()=>[t(A,{color:"error",variant:"tonal"},{default:o(()=>e[2]||(e[2]=[l(" The API is made for developers to interact with the application. It is possible to break things using the API so be careful and create a backup first. The API definition can and will change in the future, make sure to read the changelog to spot changes early on. ")])),_:1,__:[2]})]),_:1})]),_:1}),t(f,null,{default:o(()=>[t(w,null,{default:o(()=>[e[4]||(e[4]=l(" Authentication works by proving the word ")),e[5]||(e[5]=n("code",null,"Bearer",-1)),e[6]||(e[6]=l(" followed by an API Token as a request Authorization header as shown below. ")),e[7]||(e[7]=n("br",null,null,-1)),e[8]||(e[8]=n("code",null,"Authorization: Bearer TOKEN",-1)),e[9]||(e[9]=l(" -or-")),e[10]||(e[10]=n("br",null,null,-1)),e[11]||(e[11]=n("code",null,"curl -X GET http://your.domain.com/api/recipe/ -H 'Authorization: Bearer TOKEN'",-1)),e[12]||(e[12]=n("br",null,null,-1)),e[13]||(e[13]=n("br",null,null,-1)),e[14]||(e[14]=l(" You can have multiple tokens and each token can have its own scope. Currently there is ")),e[15]||(e[15]=n("code",null,"read",-1)),e[16]||(e[16]=l(", ")),e[17]||(e[17]=n("code",null,"write",-1)),e[18]||(e[18]=l(" and ")),e[19]||(e[19]=n("code",null,"bookmarklet",-1)),e[20]||(e[20]=l(". Read and write do what the name says, the bookmarklet scope is only used for the bookmarklet to limit access to it. ")),t(A,{color:"warning",variant:"tonal"},{default:o(()=>e[3]||(e[3]=[l("Make sure to save your token after creation as they cannot be viewed afterwards.")])),_:1,__:[3]})]),_:1,__:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]})]),_:1}),t(T,{"prepend-icon":"$create",color:"create",class:"mt-2"},{default:o(()=>[l(r(a.$t("New"))+" ",1),t(b,{model:"AccessToken",onCreate:e[0]||(e[0]=s=>d()),"close-after-create":!1})]),_:1}),t(P,{class:"mt-2",border:""},{default:o(()=>[(u(!0),C(N,null,S(k.value,s=>(u(),p(x,null,{append:o(()=>[s.expires<i(m).now().toJSDate()?(u(),p(z,{key:0,color:"error",class:"me-2"},{default:o(()=>e[21]||(e[21]=[l("Expired")])),_:1,__:[21]})):j("",!0),t(T,{color:"edit"},{default:o(()=>[t(M,{icon:"$edit"}),t(b,{model:"AccessToken",item:s,class:"mt-2",onDelete:e[1]||(e[1]=G=>d())},null,8,["item"])]),_:2},1024)]),default:o(()=>[t(R,null,{default:o(()=>[l(r(s.token),1)]),_:2},1024),t(F,null,{default:o(()=>[l("Scope "+r(s.scope)+" Expires "+r(i(m).fromJSDate(s.expires).toLocaleString(i(m).DATE_FULL)),1)]),_:2},1024)]),_:2},1024))),256))]),_:1})]),_:1}))}});export{K as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as S,u as D,aM as R,o as T,h as C,f as $,w as u,g as i,O as P,ac as y,l as e,i as j,S as s,T as L,af as F,U as _,t as M}from"./main-BhFWIRV_.js";import{u as c,_ as k}from"./useModelEditorFunctions-Du2kfr61.js";import{V as w}from"./VTextarea-Dyu7dPGe.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const B={href:"https://docs.tandoor.dev/features/automation/",target:"_blank"},z=S({__name:"AutomationEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(m,{emit:f}){const{t:o}=D(),n=m,r=f,{setupState:v,deleteObject:g,saveObject:A,isUpdate:E,editingObjName:I,loading:p,editingObj:l,editingObjChanged:V,modelClass:O,applyItemDefaults:N}=c("Automation",r);R([()=>n.item,()=>n.itemId],()=>{b()});const U=[{value:"FOOD_ALIAS",title:o("Food_Alias")},{value:"UNIT_ALIAS",title:o("Unit_Alias")},{value:"KEYWORD_ALIAS",title:o("Keyword_Alias")},{value:"NAME_REPLACE",title:o("Name_Replace")},{value:"DESCRIPTION_REPLACE",title:o("Description_Replace")},{value:"INSTRUCTION_REPLACE",title:o("Instruction_Replace")},{value:"FOOD_REPLACE",title:o("Food_Replace")},{value:"UNIT_REPLACE",title:o("Unit_Replace")},{value:"NEVER_UNIT",title:o("Never_Unit")},{value:"TRANSPOSE_WORDS",title:o("Transpose_Words")}];T(()=>{b()});function b(){v(n.item,n.itemId,{newItemFunction:()=>{l.value.order=0,N(n.itemDefaults)},itemDefaults:n.itemDefaults})}return(d,a)=>($(),C(k,{loading:e(p),dialog:m.dialog,onSave:e(A),onDelete:e(g),onClose:a[8]||(a[8]=t=>{r("close"),V.value=!1}),"is-update":e(E)(),"is-changed":e(V),"model-class":e(O),"object-name":e(I)(),"editing-object":e(l)},{default:u(()=>[i(P,null,{default:u(()=>[i(y,{disabled:e(p)},{default:u(()=>[i(s,{label:d.$t("Name"),modelValue:e(l).name,"onUpdate:modelValue":a[0]||(a[0]=t=>e(l).name=t)},null,8,["label","modelValue"]),i(L,{label:d.$t("Type"),items:U,modelValue:e(l).type,"onUpdate:modelValue":a[1]||(a[1]=t=>e(l).type=t)},null,8,["label","modelValue"]),i(s,{label:d.$t("Parameter")+" 1",modelValue:e(l).param1,"onUpdate:modelValue":a[2]||(a[2]=t=>e(l).param1=t)},null,8,["label","modelValue"]),i(s,{label:d.$t("Parameter")+" 2",modelValue:e(l).param2,"onUpdate:modelValue":a[3]||(a[3]=t=>e(l).param2=t)},null,8,["label","modelValue"]),i(s,{label:d.$t("Parameter")+" 3",modelValue:e(l).param3,"onUpdate:modelValue":a[4]||(a[4]=t=>e(l).param3=t)},null,8,["label","modelValue"]),i(w,{label:d.$t("Description"),modelValue:e(l).description,"onUpdate:modelValue":a[5]||(a[5]=t=>e(l).description=t)},null,8,["label","modelValue"]),i(F,{label:d.$t("Order"),step:10,modelValue:e(l).order,"onUpdate:modelValue":a[6]||(a[6]=t=>e(l).order=t),hint:d.$t("OrderInformation"),"control-variant":"stacked"},null,8,["label","modelValue","hint"]),i(_,{label:d.$t("Disabled"),modelValue:e(l).disabled,"onUpdate:modelValue":a[7]||(a[7]=t=>e(l).disabled=t)},null,8,["label","modelValue"]),j("a",B,M(d.$t("Learn_More")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as S,u as D,aM as R,o as T,h as C,f as $,w as u,g as i,O as P,ac as y,l as e,i as j,S as s,T as L,af as F,U as _,t as M}from"./main-BhFWIRV_.js";import{u as c,_ as k}from"./useModelEditorFunctions-Du2kfr61.js";import{V as w}from"./VTextarea-Dyu7dPGe.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const B={href:"https://docs.tandoor.dev/features/automation/",target:"_blank"},z=S({__name:"AutomationEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(m,{emit:f}){const{t:o}=D(),n=m,r=f,{setupState:v,deleteObject:g,saveObject:A,isUpdate:E,editingObjName:I,loading:p,editingObj:l,editingObjChanged:V,modelClass:O,applyItemDefaults:N}=c("Automation",r);R([()=>n.item,()=>n.itemId],()=>{b()});const U=[{value:"FOOD_ALIAS",title:o("Food_Alias")},{value:"UNIT_ALIAS",title:o("Unit_Alias")},{value:"KEYWORD_ALIAS",title:o("Keyword_Alias")},{value:"NAME_REPLACE",title:o("Name_Replace")},{value:"DESCRIPTION_REPLACE",title:o("Description_Replace")},{value:"INSTRUCTION_REPLACE",title:o("Instruction_Replace")},{value:"FOOD_REPLACE",title:o("Food_Replace")},{value:"UNIT_REPLACE",title:o("Unit_Replace")},{value:"NEVER_UNIT",title:o("Never_Unit")},{value:"TRANSPOSE_WORDS",title:o("Transpose_Words")}];T(()=>{b()});function b(){v(n.item,n.itemId,{newItemFunction:()=>{l.value.order=0,N(n.itemDefaults)},itemDefaults:n.itemDefaults})}return(d,a)=>($(),C(k,{loading:e(p),dialog:m.dialog,onSave:e(A),onDelete:e(g),onClose:a[8]||(a[8]=t=>{r("close"),V.value=!1}),"is-update":e(E)(),"is-changed":e(V),"model-class":e(O),"object-name":e(I)(),"editing-object":e(l)},{default:u(()=>[i(P,null,{default:u(()=>[i(y,{disabled:e(p)},{default:u(()=>[i(s,{label:d.$t("Name"),modelValue:e(l).name,"onUpdate:modelValue":a[0]||(a[0]=t=>e(l).name=t)},null,8,["label","modelValue"]),i(L,{label:d.$t("Type"),items:U,modelValue:e(l).type,"onUpdate:modelValue":a[1]||(a[1]=t=>e(l).type=t)},null,8,["label","modelValue"]),i(s,{label:d.$t("Parameter")+" 1",modelValue:e(l).param1,"onUpdate:modelValue":a[2]||(a[2]=t=>e(l).param1=t)},null,8,["label","modelValue"]),i(s,{label:d.$t("Parameter")+" 2",modelValue:e(l).param2,"onUpdate:modelValue":a[3]||(a[3]=t=>e(l).param2=t)},null,8,["label","modelValue"]),i(s,{label:d.$t("Parameter")+" 3",modelValue:e(l).param3,"onUpdate:modelValue":a[4]||(a[4]=t=>e(l).param3=t)},null,8,["label","modelValue"]),i(w,{label:d.$t("Description"),modelValue:e(l).description,"onUpdate:modelValue":a[5]||(a[5]=t=>e(l).description=t)},null,8,["label","modelValue"]),i(F,{label:d.$t("Order"),step:10,modelValue:e(l).order,"onUpdate:modelValue":a[6]||(a[6]=t=>e(l).order=t),hint:d.$t("OrderInformation"),"control-variant":"stacked"},null,8,["label","modelValue","hint"]),i(_,{label:d.$t("Disabled"),modelValue:e(l).disabled,"onUpdate:modelValue":a[7]||(a[7]=t=>e(l).disabled=t)},null,8,["label","modelValue"]),j("a",B,M(d.$t("Learn_More")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{bF as O,s as z,bG as E,bH as F,aM as I,bI as k,aT as T,d as A,aL as $,u as G,aH as P,r as q,bC as R,h as f,aN as H,w as i,g as u,M as Q,aO as U,l as y,B as j,O as J,j as C,i as K,t as h,x as W,b as X,p as Y,F as Z,aP as ee,z as B,f as d,y as te,e as _,G as M}from"./main-BhFWIRV_.js";const S=new WeakMap;function oe(m,v,D={}){const{mode:p="replace",route:V=O(),router:s=z(),transform:a}=D;let o=e=>e,g=e=>e;typeof a=="function"?o=a:a&&(a.get&&(o=a.get),a.set&&(g=a.set)),S.has(s)||S.set(s,new Map);const n=S.get(s);let r=V.query[m];E(()=>{r=void 0});let b;const l=F((e,t)=>(b=t,{get(){return e(),o(r!==void 0?r:k(v))},set(c){c=g(c),r!==c&&(r=c===k(v)?void 0:c,n.set(m,c===k(v)?void 0:c),t(),T(()=>{if(n.size===0)return;const w=Object.fromEntries(n.entries());n.clear();const{params:N,query:x,hash:L}=V;s[k(p)]({params:N,query:{...x,...w},hash:L})}))}}));return I(()=>V.query[m],e=>{r!==o(e)&&(r=e,b())},{flush:"sync"}),l}const ae={class:"font-italic text-disabled"},se=A({__name:"BatchDeleteDialog",props:$({model:{type:String,required:!0},items:{type:Array,required:!0},activator:{type:String,default:"parent"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:$(["change"],["update:modelValue"]),setup(m,{emit:v}){const D=v,p=m,{t:V}=G(),s=P(m,"modelValue"),a=q(!1),o=R(p.model,V),g=q([]),n=q([]),r=q([]);I(s,(l,e)=>{!e&&l&&(g.value=JSON.parse(JSON.stringify(p.items)))});function b(){let l=[];a.value=!0,g.value.forEach(e=>{l.push(o.destroy(e.id).then(t=>{r.value.push(e)}).catch(t=>{n.value.push(e)}))}),Promise.allSettled(l).then(()=>{a.value=!1,D("change")})}return(l,e)=>(d(),f(H,{"max-width":"600px",activator:p.activator,modelValue:s.value,"onUpdate:modelValue":e[3]||(e[3]=t=>s.value=t)},{default:i(()=>[u(Q,{loading:a.value},{default:i(()=>[u(U,{title:l.$t("delete_title",{type:l.$t(y(o).model.localizationKey)}),"sub-title":y(o).getLabel(p.source),icon:y(o).model.icon,modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value=t)},null,8,["title","sub-title","icon","modelValue"]),u(j),u(J,null,{default:i(()=>[C(h(l.$t("BatchDeleteConfirm"))+" ",1),u(W,null,{default:i(()=>[(d(!0),X(Z,null,Y(g.value,t=>(d(),f(te,{border:""},{append:i(()=>[n.value.includes(t)?(d(),f(M,{key:0,icon:"fa-solid fa-xmark",color:"error",variant:"tonal"})):r.value.includes(t)?(d(),f(M,{key:1,icon:"fa-solid fa-check",color:"success",variant:"tonal"})):a.value?(d(),f(M,{key:2,icon:"fa-solid fa-circle-notch fa-spin",variant:"tonal",color:"info"})):_("",!0),y(o).model.name=="Food"&&n.value.includes(t)?(d(),f(B,{key:3,icon:"fa-solid fa-up-right-from-square",to:{name:"IngredientEditorPage",query:{food_id:t.id}},size:"small"},null,8,["to"])):_("",!0),y(o).model.name=="Unit"&&n.value.includes(t)?(d(),f(B,{key:4,icon:"fa-solid fa-up-right-from-square",to:{name:"IngredientEditorPage",query:{unit_id:t.id}},size:"small"},null,8,["to"])):_("",!0)]),default:i(()=>[C(h(y(o).getLabel(t))+" ",1)]),_:2},1024))),256))]),_:1}),K("p",ae,h(l.$t("BatchDeleteHelp")),1)]),_:1}),u(ee,null,{default:i(()=>[u(B,{disabled:a.value,onClick:e[1]||(e[1]=t=>s.value=!1)},{default:i(()=>[C(h(l.$t("Cancel")),1)]),_:1},8,["disabled"]),u(B,{color:"error",onClick:e[2]||(e[2]=t=>b()),loading:a.value},{default:i(()=>[C(h(l.$t("Delete_All")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["loading"])]),_:1},8,["activator","modelValue"]))}});export{se as _,oe as u};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{bF as O,s as z,bG as E,bH as F,aM as I,bI as k,aT as T,d as A,aL as $,u as G,aH as P,r as q,bC as R,h as f,aN as H,w as i,g as u,M as Q,aO as U,l as y,B as j,O as J,j as C,i as K,t as h,x as W,b as X,p as Y,F as Z,aP as ee,z as B,f as d,y as te,e as _,G as M}from"./main-BhFWIRV_.js";const S=new WeakMap;function oe(m,v,D={}){const{mode:p="replace",route:V=O(),router:s=z(),transform:a}=D;let o=e=>e,g=e=>e;typeof a=="function"?o=a:a&&(a.get&&(o=a.get),a.set&&(g=a.set)),S.has(s)||S.set(s,new Map);const n=S.get(s);let r=V.query[m];E(()=>{r=void 0});let b;const l=F((e,t)=>(b=t,{get(){return e(),o(r!==void 0?r:k(v))},set(c){c=g(c),r!==c&&(r=c===k(v)?void 0:c,n.set(m,c===k(v)?void 0:c),t(),T(()=>{if(n.size===0)return;const w=Object.fromEntries(n.entries());n.clear();const{params:N,query:x,hash:L}=V;s[k(p)]({params:N,query:{...x,...w},hash:L})}))}}));return I(()=>V.query[m],e=>{r!==o(e)&&(r=e,b())},{flush:"sync"}),l}const ae={class:"font-italic text-disabled"},se=A({__name:"BatchDeleteDialog",props:$({model:{type:String,required:!0},items:{type:Array,required:!0},activator:{type:String,default:"parent"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:$(["change"],["update:modelValue"]),setup(m,{emit:v}){const D=v,p=m,{t:V}=G(),s=P(m,"modelValue"),a=q(!1),o=R(p.model,V),g=q([]),n=q([]),r=q([]);I(s,(l,e)=>{!e&&l&&(g.value=JSON.parse(JSON.stringify(p.items)))});function b(){let l=[];a.value=!0,g.value.forEach(e=>{l.push(o.destroy(e.id).then(t=>{r.value.push(e)}).catch(t=>{n.value.push(e)}))}),Promise.allSettled(l).then(()=>{a.value=!1,D("change")})}return(l,e)=>(d(),f(H,{"max-width":"600px",activator:p.activator,modelValue:s.value,"onUpdate:modelValue":e[3]||(e[3]=t=>s.value=t)},{default:i(()=>[u(Q,{loading:a.value},{default:i(()=>[u(U,{title:l.$t("delete_title",{type:l.$t(y(o).model.localizationKey)}),"sub-title":y(o).getLabel(p.source),icon:y(o).model.icon,modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value=t)},null,8,["title","sub-title","icon","modelValue"]),u(j),u(J,null,{default:i(()=>[C(h(l.$t("BatchDeleteConfirm"))+" ",1),u(W,null,{default:i(()=>[(d(!0),X(Z,null,Y(g.value,t=>(d(),f(te,{border:""},{append:i(()=>[n.value.includes(t)?(d(),f(M,{key:0,icon:"fa-solid fa-xmark",color:"error",variant:"tonal"})):r.value.includes(t)?(d(),f(M,{key:1,icon:"fa-solid fa-check",color:"success",variant:"tonal"})):a.value?(d(),f(M,{key:2,icon:"fa-solid fa-circle-notch fa-spin",variant:"tonal",color:"info"})):_("",!0),y(o).model.name=="Food"&&n.value.includes(t)?(d(),f(B,{key:3,icon:"fa-solid fa-up-right-from-square",to:{name:"IngredientEditorPage",query:{food_id:t.id}},size:"small"},null,8,["to"])):_("",!0),y(o).model.name=="Unit"&&n.value.includes(t)?(d(),f(B,{key:4,icon:"fa-solid fa-up-right-from-square",to:{name:"IngredientEditorPage",query:{unit_id:t.id}},size:"small"},null,8,["to"])):_("",!0)]),default:i(()=>[C(h(y(o).getLabel(t))+" ",1)]),_:2},1024))),256))]),_:1}),K("p",ae,h(l.$t("BatchDeleteHelp")),1)]),_:1}),u(ee,null,{default:i(()=>[u(B,{disabled:a.value,onClick:e[1]||(e[1]=t=>s.value=!1)},{default:i(()=>[C(h(l.$t("Cancel")),1)]),_:1},8,["disabled"]),u(B,{color:"error",onClick:e[2]||(e[2]=t=>b()),loading:a.value},{default:i(()=>[C(h(l.$t("Delete_All")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["loading"])]),_:1},8,["activator","modelValue"]))}});export{se as _,oe as u};
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as v,r as d,o as R,A as w,Q as E,R as T,h as c,w as a,K as x,g as e,V as p,S as y,z as r,G as m,_,k as V,b as $,p as A,F,f as i,M,N,j as s,t as n,X as S,O as I,aP as P}from"./main-BhFWIRV_.js";const z=v({__name:"BooksPage",setup(b){const f=d(!1);d(null),d([]);const t=d([]);R(()=>{k()});function k(){const u=new w;f.value=!0,u.apiRecipeBookList().then(l=>{t.value=l.results}).catch(l=>{E().addError(T.FETCH_ERROR)}).finally(()=>{f.value=!1})}return(u,l)=>(i(),c(x,null,{default:a(()=>[e(V,null,{default:a(()=>[e(p,{cols:"12",md:"6","offset-md":"3"},{default:a(()=>[e(y,null,{append:a(()=>[e(r,{icon:"",color:"create"},{default:a(()=>[e(m,{icon:"$create"}),e(_,{model:"RecipeBook",onCreate:l[0]||(l[0]=o=>{t.value.push(o)})})]),_:1})]),_:1})]),_:1})]),_:1}),e(V,null,{default:a(()=>[(i(!0),$(F,null,A(t.value,(o,B)=>(i(),c(p,{cols:"12",md:"3"},{default:a(()=>[e(M,null,{default:a(()=>[e(N,null,{default:a(()=>[e(m,{icon:"$books",size:"small"}),s(" "+n(o.name),1)]),_:2},1024),e(S,null,{default:a(()=>[s(n(o.createdBy.displayName),1)]),_:2},1024),e(I,null,{default:a(()=>[s(n(o.description),1)]),_:2},1024),e(P,null,{default:a(()=>[e(r,null,{default:a(()=>[s(n(u.$t("Edit"))+" ",1),e(_,{model:"RecipeBook",item:t.value[B],onDelete:l[1]||(l[1]=C=>{t.value.splice(t.value.findIndex(g=>g.id==C.id),1)})},null,8,["item"])]),_:2},1024),e(r,{to:{name:"BookViewPage",params:{bookId:o.id}}},{default:a(()=>[s(n(u.$t("View")),1)]),_:2},1032,["to"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1})]),_:1}))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as v,r as d,o as R,A as w,Q as E,R as T,h as c,w as a,K as x,g as e,V as p,S as y,z as r,G as m,_,k as V,b as $,p as A,F,f as i,M,N,j as s,t as n,X as S,O as I,aP as P}from"./main-BhFWIRV_.js";const z=v({__name:"BooksPage",setup(b){const f=d(!1);d(null),d([]);const t=d([]);R(()=>{k()});function k(){const u=new w;f.value=!0,u.apiRecipeBookList().then(l=>{t.value=l.results}).catch(l=>{E().addError(T.FETCH_ERROR)}).finally(()=>{f.value=!1})}return(u,l)=>(i(),c(x,null,{default:a(()=>[e(V,null,{default:a(()=>[e(p,{cols:"12",md:"6","offset-md":"3"},{default:a(()=>[e(y,null,{append:a(()=>[e(r,{icon:"",color:"create"},{default:a(()=>[e(m,{icon:"$create"}),e(_,{model:"RecipeBook",onCreate:l[0]||(l[0]=o=>{t.value.push(o)})})]),_:1})]),_:1})]),_:1})]),_:1}),e(V,null,{default:a(()=>[(i(!0),$(F,null,A(t.value,(o,B)=>(i(),c(p,{cols:"12",md:"3"},{default:a(()=>[e(M,null,{default:a(()=>[e(N,null,{default:a(()=>[e(m,{icon:"$books",size:"small"}),s(" "+n(o.name),1)]),_:2},1024),e(S,null,{default:a(()=>[s(n(o.createdBy.displayName),1)]),_:2},1024),e(I,null,{default:a(()=>[s(n(o.description),1)]),_:2},1024),e(P,null,{default:a(()=>[e(r,null,{default:a(()=>[s(n(u.$t("Edit"))+" ",1),e(_,{model:"RecipeBook",item:t.value[B],onDelete:l[1]||(l[1]=C=>{t.value.splice(t.value.findIndex(g=>g.id==C.id),1)})},null,8,["item"])]),_:2},1024),e(r,{to:{name:"BookViewPage",params:{bookId:o.id}}},{default:a(()=>[s(n(u.$t("View")),1)]),_:2},1032,["to"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1})]),_:1}))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as p,aZ as f,bV as y,r as m,h as V,z as v,w as s,aJ as g,f as C,g as o,G as i,j as S,t as B}from"./main-BhFWIRV_.js";import{V as z}from"./VTooltip-CP00KBBq.js";const k=p({__name:"BtnCopy",props:{copyValue:{type:String,default:""},color:{type:String,default:"success"},size:{type:String,default:"default"},density:{type:String,default:"default"},variant:{type:String,default:"elevated"}},setup(e){const{copy:r}=f(),u=e,d=y("copyBtn"),t=m(!1);function c(){r(u.copyValue),t.value=!0,setTimeout(()=>{t.value=!1},3e3)}return(l,a)=>(C(),V(v,{ref:"copyBtn",color:e.color,size:e.size,density:e.density,onClick:a[1]||(a[1]=n=>c()),variant:e.variant},{default:s(()=>[g(l.$slots,"default",{},()=>[o(i,{icon:"$copy"}),o(z,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=n=>t.value=n),target:d.value,location:"top"},{default:s(()=>[o(i,{icon:"$copy"}),S(" "+B(l.$t("Copied"))+"! ",1)]),_:1},8,["modelValue","target"])])]),_:3},8,["color","size","density","variant"]))}});export{k as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as p,aZ as f,bV as y,r as m,h as V,z as v,w as s,aJ as g,f as C,g as o,G as i,j as S,t as B}from"./main-BhFWIRV_.js";import{V as z}from"./VTooltip-CP00KBBq.js";const k=p({__name:"BtnCopy",props:{copyValue:{type:String,default:""},color:{type:String,default:"success"},size:{type:String,default:"default"},density:{type:String,default:"default"},variant:{type:String,default:"elevated"}},setup(e){const{copy:r}=f(),u=e,d=y("copyBtn"),t=m(!1);function c(){r(u.copyValue),t.value=!0,setTimeout(()=>{t.value=!1},3e3)}return(l,a)=>(C(),V(v,{ref:"copyBtn",color:e.color,size:e.size,density:e.density,onClick:a[1]||(a[1]=n=>c()),variant:e.variant},{default:s(()=>[g(l.$slots,"default",{},()=>[o(i,{icon:"$copy"}),o(z,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=n=>t.value=n),target:d.value,location:"top"},{default:s(()=>[o(i,{icon:"$copy"}),S(" "+B(l.$t("Copied"))+"! ",1)]),_:1},8,["modelValue","target"])])]),_:3},8,["color","size","density","variant"]))}});export{k as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as y,c as n,L as r,h as c,e as i,aa as k,w as a,i as v,j as d,t as u,z as A,g as C,G as V,Q as T,Y as _,f as p}from"./main-BhFWIRV_.js";const B=y({__name:"ClosableHelpAlert",props:{title:{type:String,required:!1},text:{type:String,required:!0},actionText:{type:String,required:!1}},emits:["click"],setup(o,{emit:g}){const f=g,t=o,s=n(()=>t.text.split("").reduce((l,e)=>(l<<5)-l+e.charCodeAt(0)|0,0).toString()),m=n(()=>!r().deviceSettings.general_closedHelpAlerts.includes(s.value));function x(){r().deviceSettings.general_closedHelpAlerts.includes(s.value)?T().addMessage(_.ERROR,"Trying to close already closed alert",0,t.text):r().deviceSettings.general_closedHelpAlerts.push(s.value)}return(l,e)=>m.value?(p(),c(k,{key:0,title:t.title,closable:"","onClick:close":e[1]||(e[1]=S=>x())},{prepend:a(()=>[C(V,{icon:"$help"})]),default:a(()=>[v("p",null,[d(u(t.text)+" ",1),t.actionText?(p(),c(A,{key:0,color:"success",class:"float-right",onClick:e[0]||(e[0]=S=>f("click"))},{default:a(()=>[d(u(o.actionText),1)]),_:1})):i("",!0)])]),_:1},8,["title"])):i("",!0)}});export{B as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as y,c as n,L as r,h as c,e as i,aa as k,w as a,i as v,j as d,t as u,z as A,g as C,G as V,Q as T,Y as _,f as p}from"./main-BhFWIRV_.js";const B=y({__name:"ClosableHelpAlert",props:{title:{type:String,required:!1},text:{type:String,required:!0},actionText:{type:String,required:!1}},emits:["click"],setup(o,{emit:g}){const f=g,t=o,s=n(()=>t.text.split("").reduce((l,e)=>(l<<5)-l+e.charCodeAt(0)|0,0).toString()),m=n(()=>!r().deviceSettings.general_closedHelpAlerts.includes(s.value));function x(){r().deviceSettings.general_closedHelpAlerts.includes(s.value)?T().addMessage(_.ERROR,"Trying to close already closed alert",0,t.text):r().deviceSettings.general_closedHelpAlerts.push(s.value)}return(l,e)=>m.value?(p(),c(k,{key:0,title:t.title,closable:"","onClick:close":e[1]||(e[1]=S=>x())},{prepend:a(()=>[C(V,{icon:"$help"})]),default:a(()=>[v("p",null,[d(u(t.text)+" ",1),t.actionText?(p(),c(A,{key:0,color:"success",class:"float-right",onClick:e[0]||(e[0]=S=>f("click"))},{default:a(()=>[d(u(o.actionText),1)]),_:1})):i("",!0)])]),_:1},8,["title"])):i("",!0)}});export{B as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as C,aM as D,o as j,h as L,f as v,w as u,g as d,O as k,ac as F,l as e,i as O,S as s,T,U as i,t as N}from"./main-BhFWIRV_.js";import{u as B,_ as q}from"./useModelEditorFunctions-Du2kfr61.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const A=C({__name:"ConnectorConfigEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(m,{emit:g}){const n=m,p=g,{setupState:f,deleteObject:E,saveObject:y,isUpdate:S,editingObjName:U,loading:r,editingObj:t,editingObjChanged:b,modelClass:$}=B("ConnectorConfig",p);D([()=>n.item,()=>n.itemId],()=>{V()}),j(()=>{V()});function V(){f(n.item,n.itemId,{itemDefaults:n.itemDefaults})}return(o,l)=>(v(),L(q,{loading:e(r),dialog:m.dialog,onSave:e(y),onDelete:e(E),onClose:l[10]||(l[10]=a=>{p("close"),b.value=!1}),"is-update":e(S)(),"is-changed":e(b),"model-class":e($),"object-name":e(U)(),"editing-object":e(t)},{default:u(()=>[d(k,null,{default:u(()=>[d(F,{disabled:e(r)},{default:u(()=>[d(s,{label:o.$t("Name"),modelValue:e(t).name,"onUpdate:modelValue":l[0]||(l[0]=a=>e(t).name=a)},null,8,["label","modelValue"]),d(T,{label:o.$t("Type"),items:["HomeAssistant"],modelValue:e(t).type,"onUpdate:modelValue":l[1]||(l[1]=a=>e(t).type=a)},null,8,["label","modelValue"]),d(s,{label:o.$t("Url"),modelValue:e(t).url,"onUpdate:modelValue":l[2]||(l[2]=a=>e(t).url=a)},null,8,["label","modelValue"]),d(s,{label:o.$t("Access_Token"),modelValue:e(t).token,"onUpdate:modelValue":l[3]||(l[3]=a=>e(t).token=a)},null,8,["label","modelValue"]),d(s,{label:"Todo entity",modelValue:e(t).todoEntity,"onUpdate:modelValue":l[4]||(l[4]=a=>e(t).todoEntity=a)},null,8,["modelValue"]),d(i,{label:o.$t("SupportsDescriptionField"),"hide-details":"",modelValue:e(t).supportsDescriptionField,"onUpdate:modelValue":l[5]||(l[5]=a=>e(t).supportsDescriptionField=a)},null,8,["label","modelValue"]),d(i,{label:o.$t("Enabled"),modelValue:e(t).enabled,"onUpdate:modelValue":l[6]||(l[6]=a=>e(t).enabled=a)},null,8,["label","modelValue"]),O("h3",null,N(o.$t("Events")),1),d(i,{label:o.$t("ShoppingListEntry")+" - "+o.$t("Created"),"hide-details":"",modelValue:e(t).onShoppingListEntryCreatedEnabled,"onUpdate:modelValue":l[7]||(l[7]=a=>e(t).onShoppingListEntryCreatedEnabled=a)},null,8,["label","modelValue"]),d(i,{label:o.$t("ShoppingListEntry")+" - "+o.$t("Updated"),"hide-details":"",modelValue:e(t).onShoppingListEntryUpdatedEnabled,"onUpdate:modelValue":l[8]||(l[8]=a=>e(t).onShoppingListEntryUpdatedEnabled=a)},null,8,["label","modelValue"]),d(i,{label:o.$t("ShoppingListEntry")+" - "+o.$t("Deleted"),"hide-details":"",modelValue:e(t).onShoppingListEntryDeletedEnabled,"onUpdate:modelValue":l[9]||(l[9]=a=>e(t).onShoppingListEntryDeletedEnabled=a)},null,8,["label","modelValue"])]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{A as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as C,aM as D,o as j,h as L,f as v,w as u,g as d,O as k,ac as F,l as e,i as O,S as s,T,U as i,t as N}from"./main-BhFWIRV_.js";import{u as B,_ as q}from"./useModelEditorFunctions-Du2kfr61.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const A=C({__name:"ConnectorConfigEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(m,{emit:g}){const n=m,p=g,{setupState:f,deleteObject:E,saveObject:y,isUpdate:S,editingObjName:U,loading:r,editingObj:t,editingObjChanged:b,modelClass:$}=B("ConnectorConfig",p);D([()=>n.item,()=>n.itemId],()=>{V()}),j(()=>{V()});function V(){f(n.item,n.itemId,{itemDefaults:n.itemDefaults})}return(o,l)=>(v(),L(q,{loading:e(r),dialog:m.dialog,onSave:e(y),onDelete:e(E),onClose:l[10]||(l[10]=a=>{p("close"),b.value=!1}),"is-update":e(S)(),"is-changed":e(b),"model-class":e($),"object-name":e(U)(),"editing-object":e(t)},{default:u(()=>[d(k,null,{default:u(()=>[d(F,{disabled:e(r)},{default:u(()=>[d(s,{label:o.$t("Name"),modelValue:e(t).name,"onUpdate:modelValue":l[0]||(l[0]=a=>e(t).name=a)},null,8,["label","modelValue"]),d(T,{label:o.$t("Type"),items:["HomeAssistant"],modelValue:e(t).type,"onUpdate:modelValue":l[1]||(l[1]=a=>e(t).type=a)},null,8,["label","modelValue"]),d(s,{label:o.$t("Url"),modelValue:e(t).url,"onUpdate:modelValue":l[2]||(l[2]=a=>e(t).url=a)},null,8,["label","modelValue"]),d(s,{label:o.$t("Access_Token"),modelValue:e(t).token,"onUpdate:modelValue":l[3]||(l[3]=a=>e(t).token=a)},null,8,["label","modelValue"]),d(s,{label:"Todo entity",modelValue:e(t).todoEntity,"onUpdate:modelValue":l[4]||(l[4]=a=>e(t).todoEntity=a)},null,8,["modelValue"]),d(i,{label:o.$t("SupportsDescriptionField"),"hide-details":"",modelValue:e(t).supportsDescriptionField,"onUpdate:modelValue":l[5]||(l[5]=a=>e(t).supportsDescriptionField=a)},null,8,["label","modelValue"]),d(i,{label:o.$t("Enabled"),modelValue:e(t).enabled,"onUpdate:modelValue":l[6]||(l[6]=a=>e(t).enabled=a)},null,8,["label","modelValue"]),O("h3",null,N(o.$t("Events")),1),d(i,{label:o.$t("ShoppingListEntry")+" - "+o.$t("Created"),"hide-details":"",modelValue:e(t).onShoppingListEntryCreatedEnabled,"onUpdate:modelValue":l[7]||(l[7]=a=>e(t).onShoppingListEntryCreatedEnabled=a)},null,8,["label","modelValue"]),d(i,{label:o.$t("ShoppingListEntry")+" - "+o.$t("Updated"),"hide-details":"",modelValue:e(t).onShoppingListEntryUpdatedEnabled,"onUpdate:modelValue":l[8]||(l[8]=a=>e(t).onShoppingListEntryUpdatedEnabled=a)},null,8,["label","modelValue"]),d(i,{label:o.$t("ShoppingListEntry")+" - "+o.$t("Deleted"),"hide-details":"",modelValue:e(t).onShoppingListEntryDeletedEnabled,"onUpdate:modelValue":l[9]||(l[9]=a=>e(t).onShoppingListEntryDeletedEnabled=a)},null,8,["label","modelValue"])]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{A as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as D,aM as S,o as y,h as N,f as O,w as d,g as t,O as $,ac as k,l as e,k as w,V as n,i as I,ae as U,j as B,t as q,af as E,aY as L}from"./main-BhFWIRV_.js";import{u as M,_ as R}from"./useModelEditorFunctions-Du2kfr61.js";import{V as T}from"./VTextarea-Dyu7dPGe.js";import{V as x}from"./VRating-BGFrV4il.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const G=D({__name:"CookLogEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(u,{emit:p}){const s=u,m=p,{setupState:V,deleteObject:b,saveObject:c,isUpdate:v,editingObjName:j,loading:r,editingObj:l,editingObjChanged:f,modelClass:C}=M("CookLog",m);S([()=>s.item,()=>s.itemId],()=>{g()}),y(()=>{g()});function g(){V(s.item,s.itemId,{itemDefaults:s.itemDefaults})}return(i,a)=>(O(),N(R,{loading:e(r),dialog:u.dialog,onSave:e(c),onDelete:e(b),onClose:a[4]||(a[4]=o=>{m("close"),f.value=!1}),"is-update":e(v)(),"is-changed":e(f),"model-class":e(C),"object-name":e(j)(),"editing-object":e(l)},{default:d(()=>[t($,null,{default:d(()=>[t(k,{disabled:e(r)},{default:d(()=>[t(T,{label:i.$t("Comment"),rows:"2",modelValue:e(l).comment,"onUpdate:modelValue":a[0]||(a[0]=o=>e(l).comment=o)},null,8,["label","modelValue"]),t(w,{dense:""},{default:d(()=>[t(n,{cols:"12",md:"4"},{default:d(()=>[t(U,null,{default:d(()=>[B(q(i.$t("Rating")),1)]),_:1}),a[5]||(a[5]=I("br",null,null,-1)),t(x,{modelValue:e(l).rating,"onUpdate:modelValue":a[1]||(a[1]=o=>e(l).rating=o),clearable:"",hover:"",density:"compact"},null,8,["modelValue"])]),_:1,__:[5]}),t(n,{cols:"12",md:"4"},{default:d(()=>[t(E,{label:i.$t("Servings"),modelValue:e(l).servings,"onUpdate:modelValue":a[2]||(a[2]=o=>e(l).servings=o),precision:2},null,8,["label","modelValue"])]),_:1}),t(n,{cols:"12",md:"4"},{default:d(()=>[t(e(L),{label:i.$t("Date"),modelValue:e(l).createdAt,"onUpdate:modelValue":a[3]||(a[3]=o=>e(l).createdAt=o)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{G as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as D,aM as S,o as y,h as N,f as O,w as d,g as t,O as $,ac as k,l as e,k as w,V as n,i as I,ae as U,j as B,t as q,af as E,aY as L}from"./main-BhFWIRV_.js";import{u as M,_ as R}from"./useModelEditorFunctions-Du2kfr61.js";import{V as T}from"./VTextarea-Dyu7dPGe.js";import{V as x}from"./VRating-BGFrV4il.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const G=D({__name:"CookLogEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(u,{emit:p}){const s=u,m=p,{setupState:V,deleteObject:b,saveObject:c,isUpdate:v,editingObjName:j,loading:r,editingObj:l,editingObjChanged:f,modelClass:C}=M("CookLog",m);S([()=>s.item,()=>s.itemId],()=>{g()}),y(()=>{g()});function g(){V(s.item,s.itemId,{itemDefaults:s.itemDefaults})}return(i,a)=>(O(),N(R,{loading:e(r),dialog:u.dialog,onSave:e(c),onDelete:e(b),onClose:a[4]||(a[4]=o=>{m("close"),f.value=!1}),"is-update":e(v)(),"is-changed":e(f),"model-class":e(C),"object-name":e(j)(),"editing-object":e(l)},{default:d(()=>[t($,null,{default:d(()=>[t(k,{disabled:e(r)},{default:d(()=>[t(T,{label:i.$t("Comment"),rows:"2",modelValue:e(l).comment,"onUpdate:modelValue":a[0]||(a[0]=o=>e(l).comment=o)},null,8,["label","modelValue"]),t(w,{dense:""},{default:d(()=>[t(n,{cols:"12",md:"4"},{default:d(()=>[t(U,null,{default:d(()=>[B(q(i.$t("Rating")),1)]),_:1}),a[5]||(a[5]=I("br",null,null,-1)),t(x,{modelValue:e(l).rating,"onUpdate:modelValue":a[1]||(a[1]=o=>e(l).rating=o),clearable:"",hover:"",density:"compact"},null,8,["modelValue"])]),_:1,__:[5]}),t(n,{cols:"12",md:"4"},{default:d(()=>[t(E,{label:i.$t("Servings"),modelValue:e(l).servings,"onUpdate:modelValue":a[2]||(a[2]=o=>e(l).servings=o),precision:2},null,8,["label","modelValue"])]),_:1}),t(n,{cols:"12",md:"4"},{default:d(()=>[t(e(L),{label:i.$t("Date"),modelValue:e(l).createdAt,"onUpdate:modelValue":a[3]||(a[3]=o=>e(l).createdAt=o)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{G as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as b,r as $,u as f,o as v,A as k,Q as L,R as T,h,T as U,f as w,w as d,ac as D,i as g,g as n,t as r,B as S,j as m,ae as N,l,U as u,z as V,S as B,af as A,L as a}from"./main-BhFWIRV_.js";import{V as H}from"./VColorPicker-DN5Oz5I8.js";const O=b({__name:"LanguageSelect",setup(C){const i=$([]),{locale:s}=f();v(()=>{new k().apiLocalizationList().then(o=>{i.value=o}).catch(o=>{L().addError(T.FETCH_ERROR,o)})});function t(){const e=new Date;e.setTime(e.getTime()+100*365*24*60*60*1e3),document.cookie=`django_language=${s.value}; expires=${e.toUTCString()}; path=/`,location.reload()}return(e,o)=>(w(),h(U,{label:e.$t("Language"),modelValue:e.$i18n.locale,"onUpdate:modelValue":[o[0]||(o[0]=p=>e.$i18n.locale=p),o[1]||(o[1]=p=>t())],items:i.value,"item-title":"language","item-value":"code"},null,8,["label","modelValue","items"]))}}),R={class:"text-h6"},F={class:"text-h6 mt-3"},E=b({__name:"CosmeticSettings",setup(C){const{t:i}=f();return $([{page:"SEARCH",label:i("Search")},{page:"SHOPPING",label:i("Shopping_list")},{page:"PLAN",label:i("Meal_Plan")},{page:"BOOKS",label:i("Books")}]),v(()=>{}),(s,t)=>(w(),h(D,null,{default:d(()=>[g("p",R,r(s.$t("Cosmetic")),1),n(S,{class:"mb-3"}),n(O),n(N,null,{default:d(()=>[m(r(s.$t("Nav_Color")),1)]),_:1}),n(H,{modelValue:l(a)().userSettings.navBgColor,"onUpdate:modelValue":t[0]||(t[0]=e=>l(a)().userSettings.navBgColor=e),mode:"hex",modes:["hex"],"show-swatches":"",swatches:[["#ddbf86"],["#b98766"],["#b55e4f"],["#82aa8b"],["#385f84"]]},null,8,["modelValue"]),n(U,{label:s.$t("Theme"),class:"mt-4",modelValue:l(a)().userSettings.theme,"onUpdate:modelValue":t[1]||(t[1]=e=>l(a)().userSettings.theme=e),items:[{title:"Tandoor",value:"TANDOOR"},{title:"Tandoor Dark",value:"TANDOOR_DARK"}]},null,8,["label","modelValue"]),n(u,{label:s.$t("Show_Logo"),hint:s.$t("Show_Logo_Help"),"persistent-hint":"",modelValue:l(a)().userSettings.navShowLogo,"onUpdate:modelValue":t[2]||(t[2]=e=>l(a)().userSettings.navShowLogo=e)},null,8,["label","hint","modelValue"]),n(u,{label:s.$t("Sticky_Nav"),hint:s.$t("Sticky_Nav_Help"),"persistent-hint":"",modelValue:l(a)().userSettings.navSticky,"onUpdate:modelValue":t[3]||(t[3]=e=>l(a)().userSettings.navSticky=e)},null,8,["label","hint","modelValue"]),n(V,{class:"mt-3",color:"success",onClick:t[4]||(t[4]=e=>l(a)().updateUserSettings()),"prepend-icon":"$save"},{default:d(()=>[m(r(s.$t("Save")),1)]),_:1}),g("p",F,r(s.$t("Preferences")),1),n(S,{class:"mb-3"}),n(B,{modelValue:l(a)().userSettings.defaultUnit,"onUpdate:modelValue":t[5]||(t[5]=e=>l(a)().userSettings.defaultUnit=e),label:s.$t("Default_Unit")},null,8,["modelValue","label"]),n(A,{modelValue:l(a)().userSettings.ingredientDecimals,"onUpdate:modelValue":t[6]||(t[6]=e=>l(a)().userSettings.ingredientDecimals=e),label:s.$t("Decimals")},null,8,["modelValue","label"]),n(u,{label:s.$t("Use_Fractions"),hint:s.$t("Use_Fractions_Help"),"persistent-hint":"",modelValue:l(a)().userSettings.useFractions,"onUpdate:modelValue":t[7]||(t[7]=e=>l(a)().userSettings.useFractions=e)},null,8,["label","hint","modelValue"]),n(u,{label:s.$t("Comments_setting"),modelValue:l(a)().userSettings.comments,"onUpdate:modelValue":t[8]||(t[8]=e=>l(a)().userSettings.comments=e)},null,8,["label","modelValue"]),n(u,{label:s.$t("left_handed"),hint:s.$t("left_handed_help"),"persistent-hint":"",modelValue:l(a)().userSettings.leftHanded,"onUpdate:modelValue":t[9]||(t[9]=e=>l(a)().userSettings.leftHanded=e)},null,8,["label","hint","modelValue"]),n(u,{label:s.$t("show_step_ingredients_setting"),hint:s.$t("show_step_ingredients_setting_help"),"persistent-hint":"",modelValue:l(a)().userSettings.showStepIngredients,"onUpdate:modelValue":t[10]||(t[10]=e=>l(a)().userSettings.showStepIngredients=e)},null,8,["label","hint","modelValue"]),n(V,{class:"mt-3",color:"success",onClick:t[11]||(t[11]=e=>l(a)().updateUserSettings()),"prepend-icon":"$save"},{default:d(()=>[m(r(s.$t("Save")),1)]),_:1})]),_:1}))}});export{E as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as b,r as $,u as f,o as v,A as k,Q as L,R as T,h,T as U,f as w,w as d,ac as D,i as g,g as n,t as r,B as S,j as m,ae as N,l,U as u,z as V,S as B,af as A,L as a}from"./main-BhFWIRV_.js";import{V as H}from"./VColorPicker-DN5Oz5I8.js";const O=b({__name:"LanguageSelect",setup(C){const i=$([]),{locale:s}=f();v(()=>{new k().apiLocalizationList().then(o=>{i.value=o}).catch(o=>{L().addError(T.FETCH_ERROR,o)})});function t(){const e=new Date;e.setTime(e.getTime()+100*365*24*60*60*1e3),document.cookie=`django_language=${s.value}; expires=${e.toUTCString()}; path=/`,location.reload()}return(e,o)=>(w(),h(U,{label:e.$t("Language"),modelValue:e.$i18n.locale,"onUpdate:modelValue":[o[0]||(o[0]=p=>e.$i18n.locale=p),o[1]||(o[1]=p=>t())],items:i.value,"item-title":"language","item-value":"code"},null,8,["label","modelValue","items"]))}}),R={class:"text-h6"},F={class:"text-h6 mt-3"},E=b({__name:"CosmeticSettings",setup(C){const{t:i}=f();return $([{page:"SEARCH",label:i("Search")},{page:"SHOPPING",label:i("Shopping_list")},{page:"PLAN",label:i("Meal_Plan")},{page:"BOOKS",label:i("Books")}]),v(()=>{}),(s,t)=>(w(),h(D,null,{default:d(()=>[g("p",R,r(s.$t("Cosmetic")),1),n(S,{class:"mb-3"}),n(O),n(N,null,{default:d(()=>[m(r(s.$t("Nav_Color")),1)]),_:1}),n(H,{modelValue:l(a)().userSettings.navBgColor,"onUpdate:modelValue":t[0]||(t[0]=e=>l(a)().userSettings.navBgColor=e),mode:"hex",modes:["hex"],"show-swatches":"",swatches:[["#ddbf86"],["#b98766"],["#b55e4f"],["#82aa8b"],["#385f84"]]},null,8,["modelValue"]),n(U,{label:s.$t("Theme"),class:"mt-4",modelValue:l(a)().userSettings.theme,"onUpdate:modelValue":t[1]||(t[1]=e=>l(a)().userSettings.theme=e),items:[{title:"Tandoor",value:"TANDOOR"},{title:"Tandoor Dark",value:"TANDOOR_DARK"}]},null,8,["label","modelValue"]),n(u,{label:s.$t("Show_Logo"),hint:s.$t("Show_Logo_Help"),"persistent-hint":"",modelValue:l(a)().userSettings.navShowLogo,"onUpdate:modelValue":t[2]||(t[2]=e=>l(a)().userSettings.navShowLogo=e)},null,8,["label","hint","modelValue"]),n(u,{label:s.$t("Sticky_Nav"),hint:s.$t("Sticky_Nav_Help"),"persistent-hint":"",modelValue:l(a)().userSettings.navSticky,"onUpdate:modelValue":t[3]||(t[3]=e=>l(a)().userSettings.navSticky=e)},null,8,["label","hint","modelValue"]),n(V,{class:"mt-3",color:"success",onClick:t[4]||(t[4]=e=>l(a)().updateUserSettings()),"prepend-icon":"$save"},{default:d(()=>[m(r(s.$t("Save")),1)]),_:1}),g("p",F,r(s.$t("Preferences")),1),n(S,{class:"mb-3"}),n(B,{modelValue:l(a)().userSettings.defaultUnit,"onUpdate:modelValue":t[5]||(t[5]=e=>l(a)().userSettings.defaultUnit=e),label:s.$t("Default_Unit")},null,8,["modelValue","label"]),n(A,{modelValue:l(a)().userSettings.ingredientDecimals,"onUpdate:modelValue":t[6]||(t[6]=e=>l(a)().userSettings.ingredientDecimals=e),label:s.$t("Decimals")},null,8,["modelValue","label"]),n(u,{label:s.$t("Use_Fractions"),hint:s.$t("Use_Fractions_Help"),"persistent-hint":"",modelValue:l(a)().userSettings.useFractions,"onUpdate:modelValue":t[7]||(t[7]=e=>l(a)().userSettings.useFractions=e)},null,8,["label","hint","modelValue"]),n(u,{label:s.$t("Comments_setting"),modelValue:l(a)().userSettings.comments,"onUpdate:modelValue":t[8]||(t[8]=e=>l(a)().userSettings.comments=e)},null,8,["label","modelValue"]),n(u,{label:s.$t("left_handed"),hint:s.$t("left_handed_help"),"persistent-hint":"",modelValue:l(a)().userSettings.leftHanded,"onUpdate:modelValue":t[9]||(t[9]=e=>l(a)().userSettings.leftHanded=e)},null,8,["label","hint","modelValue"]),n(u,{label:s.$t("show_step_ingredients_setting"),hint:s.$t("show_step_ingredients_setting_help"),"persistent-hint":"",modelValue:l(a)().userSettings.showStepIngredients,"onUpdate:modelValue":t[10]||(t[10]=e=>l(a)().userSettings.showStepIngredients=e)},null,8,["label","hint","modelValue"]),n(V,{class:"mt-3",color:"success",onClick:t[11]||(t[11]=e=>l(a)().updateUserSettings()),"prepend-icon":"$save"},{default:d(()=>[m(r(s.$t("Save")),1)]),_:1})]),_:1}))}});export{E as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as C,aM as _,o as v,h as O,f as S,w as i,g as m,O as x,ac as D,l as e,j as h}from"./main-BhFWIRV_.js";import{u as y,_ as F}from"./useModelEditorFunctions-Du2kfr61.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const E=C({__name:"CustomFilterEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(o,{emit:u}){const t=o,s=u,{setupState:r,deleteObject:c,saveObject:f,isUpdate:g,editingObjName:p,loading:d,editingObj:b,editingObjChanged:l,modelClass:j}=y("CustomFilter",s);_([()=>t.item,()=>t.itemId],()=>{n()}),v(()=>{n()});function n(){r(t.item,t.itemId,{itemDefaults:t.itemDefaults})}return(N,a)=>(S(),O(F,{loading:e(d),dialog:o.dialog,onSave:e(f),onDelete:e(c),onClose:a[0]||(a[0]=V=>{s("close"),l.value=!1}),"is-update":e(g)(),"is-changed":e(l),"model-class":e(j),"object-name":e(p)(),"editing-object":e(b)},{default:i(()=>[m(x,null,{default:i(()=>[m(D,{disabled:e(d)},{default:i(()=>a[1]||(a[1]=[h(" Coming Soon ")])),_:1,__:[1]},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{E as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as C,aM as _,o as v,h as O,f as S,w as i,g as m,O as x,ac as D,l as e,j as h}from"./main-BhFWIRV_.js";import{u as y,_ as F}from"./useModelEditorFunctions-Du2kfr61.js";import"./DeleteConfirmDialog.vue_vue_type_script_setup_true_lang-C6y9GBNB.js";const E=C({__name:"CustomFilterEditor",props:{item:{type:{},required:!1,default:null},itemId:{type:[Number,String],required:!1,default:void 0},itemDefaults:{type:{},required:!1,default:{}},dialog:{type:Boolean,default:!1}},emits:["create","save","delete","close","changedState"],setup(o,{emit:u}){const t=o,s=u,{setupState:r,deleteObject:c,saveObject:f,isUpdate:g,editingObjName:p,loading:d,editingObj:b,editingObjChanged:l,modelClass:j}=y("CustomFilter",s);_([()=>t.item,()=>t.itemId],()=>{n()}),v(()=>{n()});function n(){r(t.item,t.itemId,{itemDefaults:t.itemDefaults})}return(N,a)=>(S(),O(F,{loading:e(d),dialog:o.dialog,onSave:e(f),onDelete:e(c),onClose:a[0]||(a[0]=V=>{s("close"),l.value=!1}),"is-update":e(g)(),"is-changed":e(l),"model-class":e(j),"object-name":e(p)(),"editing-object":e(b)},{default:i(()=>[m(x,null,{default:i(()=>[m(D,{disabled:e(d)},{default:i(()=>a[1]||(a[1]=[h(" Coming Soon ")])),_:1,__:[1]},8,["disabled"])]),_:1})]),_:1},8,["loading","dialog","onSave","onDelete","is-update","is-changed","model-class","object-name","editing-object"]))}});export{E as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as l,u as n,c as r,h as a,V as s,w as p,g as i,M as d,f as u}from"./main-BhFWIRV_.js";const h=l({__name:"DatabaseLinkCol",props:{prependIcon:{type:String,default:""},title:{type:String,default:""},subtitle:{type:String,default:""},to:{type:{}},href:{type:String,default:""},cols:{type:Number,default:12},md:{type:Number,default:6},lg:{type:Number,default:4}},setup(t){const{t:c}=n(),e=t,o=r(()=>e.href!=""||e.to!=null);return(f,m)=>(u(),a(s,{cols:e.cols,md:e.md,lg:e.lg},{default:p(()=>[i(d,{"prepend-icon":e.prependIcon,title:e.title,subtitle:e.subtitle,to:e.to,link:o.value,href:e.href,"append-icon":"fa-solid fa-arrow-right"},null,8,["prepend-icon","title","subtitle","to","link","href"])]),_:1},8,["cols","md","lg"]))}});export{h as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as l,u as n,c as r,h as a,V as s,w as p,g as i,M as d,f as u}from"./main-BhFWIRV_.js";const h=l({__name:"DatabaseLinkCol",props:{prependIcon:{type:String,default:""},title:{type:String,default:""},subtitle:{type:String,default:""},to:{type:{}},href:{type:String,default:""},cols:{type:Number,default:12},md:{type:Number,default:6},lg:{type:Number,default:4}},setup(t){const{t:c}=n(),e=t,o=r(()=>e.href!=""||e.to!=null);return(f,m)=>(u(),a(s,{cols:e.cols,md:e.md,lg:e.lg},{default:p(()=>[i(d,{"prepend-icon":e.prependIcon,title:e.title,subtitle:e.subtitle,to:e.to,link:o.value,href:e.href,"append-icon":"fa-solid fa-arrow-right"},null,8,["prepend-icon","title","subtitle","to","link","href"])]),_:1},8,["cols","md","lg"]))}});export{h as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as h,u as v,r as $,aM as k,bC as p,bD as P,h as _,V as d,w as a,g as e,M as S,f as i,K as L,b as f,e as C,i as r,t as s,k as o,l as y,L as M,F as c,p as D,bK as V,aX as w}from"./main-BhFWIRV_.js";import{_ as F}from"./DatabaseLinkCol.vue_vue_type_script_setup_true_lang-Bnq1B2KL.js";const l=h({__name:"DatabaseModelCol",props:{model:{type:String,default:"food"}},setup(g){const{t}=v(),m=g,n=$({});return k(()=>m.model,(u,b)=>{u!=b&&(n.value=p(m.model,t))}),P(()=>{try{n.value=p(m.model,t)}catch{console.error("Invalid model passed to ModelListPage, loading Food instead"),n.value=p("Food",t)}}),(u,b)=>(i(),_(d,{cols:"12",md:"6",lg:"4"},{default:a(()=>[e(S,{"prepend-icon":n.value.model.icon,title:u.$t(n.value.model.localizationKey),subtitle:u.$t(n.value.model.localizationKeyDescription),to:{name:"ModelListPage",params:{model:n.value.model.name}},"append-icon":"fa-solid fa-arrow-right"},null,8,["prepend-icon","title","subtitle","to"])]),_:1}))}}),I={class:"text-wrap"},U=h({__name:"DatabasePage",setup(g){return(t,m)=>(i(),_(L,null,{default:a(()=>[e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[e(S,{"prepend-icon":"fa-solid fa-folder-tree",title:t.$t("Database")},{subtitle:a(()=>[r("div",I,s(t.$t("DatabaseHelp")),1)]),_:1},8,["title"])]),_:1})]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Basics")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Food"}),e(l,{model:"Unit"}),e(l,{model:"Keyword"}),e(l,{model:"PropertyType"})]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Planning&Shopping")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Supermarket"}),e(l,{model:"SupermarketCategory"}),e(l,{model:"MealType"})]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Space")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Space"}),e(l,{model:"UserSpace"}),e(l,{model:"InviteLink"})]),_:1}),y(M)().activeSpace.aiEnabled?(i(),f(c,{key:0},[e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Ai")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"AiProvider"}),e(l,{model:"AiLog"})]),_:1})],64)):C("",!0),(i(!0),f(c,null,D(y(V),n=>(i(),f(c,{key:n.name},[n.databasePageComponent?(i(),_(w(n.databasePageComponent),{key:0})):C("",!0)],64))),128)),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Miscellaneous")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"UnitConversion"}),e(l,{model:"Automation"}),e(l,{model:"UserFile"}),e(l,{model:"CustomFilter"}),e(l,{model:"CookLog"}),e(l,{model:"ViewLog"}),e(F,{to:{name:"IngredientEditorPage"},"prepend-icon":"fa-solid fa-table-list",title:t.$t("Ingredient Editor"),subtitle:t.$t("IngredientEditorHelp")},null,8,["title","subtitle"])]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("External")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Sync"}),e(l,{model:"SyncLog"}),e(l,{model:"Storage"}),e(l,{model:"RecipeImport"}),e(l,{model:"ConnectorConfig"})]),_:1})]),_:1}))}});export{U as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as h,u as v,r as $,aM as k,bC as p,bD as P,h as _,V as d,w as a,g as e,M as S,f as i,K as L,b as f,e as C,i as r,t as s,k as o,l as y,L as M,F as c,p as D,bK as V,aX as w}from"./main-BhFWIRV_.js";import{_ as F}from"./DatabaseLinkCol.vue_vue_type_script_setup_true_lang-Bnq1B2KL.js";const l=h({__name:"DatabaseModelCol",props:{model:{type:String,default:"food"}},setup(g){const{t}=v(),m=g,n=$({});return k(()=>m.model,(u,b)=>{u!=b&&(n.value=p(m.model,t))}),P(()=>{try{n.value=p(m.model,t)}catch{console.error("Invalid model passed to ModelListPage, loading Food instead"),n.value=p("Food",t)}}),(u,b)=>(i(),_(d,{cols:"12",md:"6",lg:"4"},{default:a(()=>[e(S,{"prepend-icon":n.value.model.icon,title:u.$t(n.value.model.localizationKey),subtitle:u.$t(n.value.model.localizationKeyDescription),to:{name:"ModelListPage",params:{model:n.value.model.name}},"append-icon":"fa-solid fa-arrow-right"},null,8,["prepend-icon","title","subtitle","to"])]),_:1}))}}),I={class:"text-wrap"},U=h({__name:"DatabasePage",setup(g){return(t,m)=>(i(),_(L,null,{default:a(()=>[e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[e(S,{"prepend-icon":"fa-solid fa-folder-tree",title:t.$t("Database")},{subtitle:a(()=>[r("div",I,s(t.$t("DatabaseHelp")),1)]),_:1},8,["title"])]),_:1})]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Basics")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Food"}),e(l,{model:"Unit"}),e(l,{model:"Keyword"}),e(l,{model:"PropertyType"})]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Planning&Shopping")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Supermarket"}),e(l,{model:"SupermarketCategory"}),e(l,{model:"MealType"})]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Space")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Space"}),e(l,{model:"UserSpace"}),e(l,{model:"InviteLink"})]),_:1}),y(M)().activeSpace.aiEnabled?(i(),f(c,{key:0},[e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Ai")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"AiProvider"}),e(l,{model:"AiLog"})]),_:1})],64)):C("",!0),(i(!0),f(c,null,D(y(V),n=>(i(),f(c,{key:n.name},[n.databasePageComponent?(i(),_(w(n.databasePageComponent),{key:0})):C("",!0)],64))),128)),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("Miscellaneous")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"UnitConversion"}),e(l,{model:"Automation"}),e(l,{model:"UserFile"}),e(l,{model:"CustomFilter"}),e(l,{model:"CookLog"}),e(l,{model:"ViewLog"}),e(F,{to:{name:"IngredientEditorPage"},"prepend-icon":"fa-solid fa-table-list",title:t.$t("Ingredient Editor"),subtitle:t.$t("IngredientEditorHelp")},null,8,["title","subtitle"])]),_:1}),e(o,null,{default:a(()=>[e(d,null,{default:a(()=>[r("h2",null,s(t.$t("External")),1)]),_:1})]),_:1}),e(o,{dense:""},{default:a(()=>[e(l,{model:"Sync"}),e(l,{model:"SyncLog"}),e(l,{model:"Storage"}),e(l,{model:"RecipeImport"}),e(l,{model:"ConnectorConfig"})]),_:1})]),_:1}))}});export{U as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as p,r as V,h as C,aN as N,w as l,g as t,M as g,N as v,j as d,t as a,O as D,i as u,aP as $,z as i,f as b}from"./main-BhFWIRV_.js";const B=p({__name:"DeleteConfirmDialog",props:{objectName:{type:String,default:""},modelName:{type:String,default:""}},emits:["delete"],setup(r,{emit:m}){const f=m,n=V(!1);return(o,e)=>(b(),C(N,{"max-width":"600",activator:"parent",modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=s=>n.value=s)},{default:l(()=>[t(g,null,{default:l(()=>[t(v,null,{default:l(()=>[d(a(o.$t("Delete")),1)]),_:1}),t(D,null,{default:l(()=>[d(a(o.$t("DeleteConfirmQuestion"))+" ",1),e[3]||(e[3]=u("br",null,null,-1)),u("b",null,a(r.modelName),1),e[4]||(e[4]=u("br",null,null,-1)),u("b",null,a(r.objectName),1)]),_:1,__:[3,4]}),t($,null,{default:l(()=>[t(i,{onClick:e[0]||(e[0]=s=>n.value=!1)},{default:l(()=>[d(a(o.$t("Cancel")),1)]),_:1}),t(i,{onClick:e[1]||(e[1]=s=>{f("delete"),n.value=!1}),color:"delete","prepend-icon":"$delete"},{default:l(()=>[d(a(o.$t("Delete")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});export{B as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as p,r as V,h as C,aN as N,w as l,g as t,M as g,N as v,j as d,t as a,O as D,i as u,aP as $,z as i,f as b}from"./main-BhFWIRV_.js";const B=p({__name:"DeleteConfirmDialog",props:{objectName:{type:String,default:""},modelName:{type:String,default:""}},emits:["delete"],setup(r,{emit:m}){const f=m,n=V(!1);return(o,e)=>(b(),C(N,{"max-width":"600",activator:"parent",modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=s=>n.value=s)},{default:l(()=>[t(g,null,{default:l(()=>[t(v,null,{default:l(()=>[d(a(o.$t("Delete")),1)]),_:1}),t(D,null,{default:l(()=>[d(a(o.$t("DeleteConfirmQuestion"))+" ",1),e[3]||(e[3]=u("br",null,null,-1)),u("b",null,a(r.modelName),1),e[4]||(e[4]=u("br",null,null,-1)),u("b",null,a(r.objectName),1)]),_:1,__:[3,4]}),t($,null,{default:l(()=>[t(i,{onClick:e[0]||(e[0]=s=>n.value=!1)},{default:l(()=>[d(a(o.$t("Cancel")),1)]),_:1}),t(i,{onClick:e[1]||(e[1]=s=>{f("delete"),n.value=!1}),color:"delete","prepend-icon":"$delete"},{default:l(()=>[d(a(o.$t("Delete")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});export{B as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as y,r as n,c as C,b as V,i as m,g as t,t as o,B as g,w as v,ac as F,F as b,e as w,T as A,U as D,ag as c,z as E,j as x,l as N,a7 as h,A as R,Q as k,R as B,f as T}from"./main-BhFWIRV_.js";import{I as S}from"./integration_utils-sX7uYpAT.js";import{V as L}from"./VTextarea-Dyu7dPGe.js";const j={class:"text-h6"},z=y({__name:"ExportDataSettings",setup(I){const p=n("DEFAULT"),u=n(!1),d=n([]),r=n(null),a=n({}),i=n(!1),$=C(()=>{let l=[];return S.forEach(e=>{e.export&&l.push({title:e.name,value:e.id})}),l});function U(){let l=new R;a.value={},i.value=!0,l.apiExportCreate({exportRequest:{all:u.value,type:p.value,recipes:d.value,customFilter:r.value}}).then(e=>{a.value=e,f()}).catch(e=>{i.value=!1,k().addError(B.CREATE_ERROR,e)}).finally(()=>{})}function f(){new R().apiExportLogRetrieve({id:a.value.id}).then(e=>{a.value=e,a.value.running?setTimeout(()=>f(),1e3):i.value=!1})}return(l,e)=>(T(),V(b,null,[m("p",j,o(l.$t("Export")),1),t(g),t(F,{class:"mt-2"},{default:v(()=>[t(A,{items:$.value,label:l.$t("Type"),modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=s=>p.value=s)},null,8,["items","label","modelValue"]),t(D,{label:l.$t("AllRecipes"),modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=s=>u.value=s),disabled:d.value.length>0||r.value!=null},null,8,["label","modelValue","disabled"]),t(c,{model:"Recipe",mode:"tags",modelValue:d.value,"onUpdate:modelValue":e[2]||(e[2]=s=>d.value=s),disabled:u.value||r.value!=null},null,8,["modelValue","disabled"]),t(c,{model:"CustomFilter",mode:"single",modelValue:r.value,"onUpdate:modelValue":e[3]||(e[3]=s=>r.value=s),disabled:d.value.length>0||u.value},null,8,["modelValue","disabled"]),t(E,{onClick:e[4]||(e[4]=s=>U()),loading:i.value,disabled:d.value.length==0&&r.value==null&&!u.value},{default:v(()=>[x(o(l.$t("Export")),1)]),_:1},8,["loading","disabled"]),a.value.id?(T(),V(b,{key:0},[t(g,{class:"mt-4 mb-4"}),m("h4",null,o(l.$t("Export"))+" #"+o(a.value.id),1),m("p",null,o(l.$t("Recipes"))+": "+o(a.value.exportedRecipes),1),t(E,{color:"success",href:N(h)().getDjangoUrl(`export-file/${a.value.id}`),class:"mt-2",disabled:a.value.running},{default:v(()=>[x(o(l.$t("Download")),1)]),_:1},8,["href","disabled"]),t(L,{label:l.$t("Messages"),"auto-grow":"",readonly:"","max-rows":"20",modelValue:a.value.msg,"onUpdate:modelValue":e[5]||(e[5]=s=>a.value.msg=s),class:"mt-2"},null,8,["label","modelValue"])],64)):w("",!0)]),_:1})],64))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as y,r as n,c as C,b as V,i as m,g as t,t as o,B as g,w as v,ac as F,F as b,e as w,T as A,U as D,ag as c,z as E,j as x,l as N,a7 as h,A as R,Q as k,R as B,f as T}from"./main-BhFWIRV_.js";import{I as S}from"./integration_utils-sX7uYpAT.js";import{V as L}from"./VTextarea-Dyu7dPGe.js";const j={class:"text-h6"},z=y({__name:"ExportDataSettings",setup(I){const p=n("DEFAULT"),u=n(!1),d=n([]),r=n(null),a=n({}),i=n(!1),$=C(()=>{let l=[];return S.forEach(e=>{e.export&&l.push({title:e.name,value:e.id})}),l});function U(){let l=new R;a.value={},i.value=!0,l.apiExportCreate({exportRequest:{all:u.value,type:p.value,recipes:d.value,customFilter:r.value}}).then(e=>{a.value=e,f()}).catch(e=>{i.value=!1,k().addError(B.CREATE_ERROR,e)}).finally(()=>{})}function f(){new R().apiExportLogRetrieve({id:a.value.id}).then(e=>{a.value=e,a.value.running?setTimeout(()=>f(),1e3):i.value=!1})}return(l,e)=>(T(),V(b,null,[m("p",j,o(l.$t("Export")),1),t(g),t(F,{class:"mt-2"},{default:v(()=>[t(A,{items:$.value,label:l.$t("Type"),modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=s=>p.value=s)},null,8,["items","label","modelValue"]),t(D,{label:l.$t("AllRecipes"),modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=s=>u.value=s),disabled:d.value.length>0||r.value!=null},null,8,["label","modelValue","disabled"]),t(c,{model:"Recipe",mode:"tags",modelValue:d.value,"onUpdate:modelValue":e[2]||(e[2]=s=>d.value=s),disabled:u.value||r.value!=null},null,8,["modelValue","disabled"]),t(c,{model:"CustomFilter",mode:"single",modelValue:r.value,"onUpdate:modelValue":e[3]||(e[3]=s=>r.value=s),disabled:d.value.length>0||u.value},null,8,["modelValue","disabled"]),t(E,{onClick:e[4]||(e[4]=s=>U()),loading:i.value,disabled:d.value.length==0&&r.value==null&&!u.value},{default:v(()=>[x(o(l.$t("Export")),1)]),_:1},8,["loading","disabled"]),a.value.id?(T(),V(b,{key:0},[t(g,{class:"mt-4 mb-4"}),m("h4",null,o(l.$t("Export"))+" #"+o(a.value.id),1),m("p",null,o(l.$t("Recipes"))+": "+o(a.value.exportedRecipes),1),t(E,{color:"success",href:N(h)().getDjangoUrl(`export-file/${a.value.id}`),class:"mt-2",disabled:a.value.running},{default:v(()=>[x(o(l.$t("Download")),1)]),_:1},8,["href","disabled"]),t(L,{label:l.$t("Messages"),"auto-grow":"",readonly:"","max-rows":"20",modelValue:a.value.msg,"onUpdate:modelValue":e[5]||(e[5]=s=>a.value.msg=s),class:"mt-2"},null,8,["label","modelValue"])],64)):w("",!0)]),_:1})],64))}});export{z as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as F,aL as T,aH as C,r as o,h as c,w as t,g as l,M as D,aO as R,O as $,S as L,aR as k,z as w,T as x,x as B,b as E,F as M,p as N,aN as b,A as h,Q as I,R as O,f as r,y as U,E as _,j as V,t as f,ai as A}from"./main-BhFWIRV_.js";const z=F({__name:"FdcSearchDialog",props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:T(["selected"],["update:modelValue"]),setup(v,{emit:y}){const S=y,s=C(v,"modelValue"),u=o(!1),n=o(""),m=o(void 0),g=o(["Branded","Foundation","Survey (FNDDS)","SR Legacy"]),i=o(["Foundation","Survey (FNDDS)","SR Legacy"]);function p(){let d=new h;u.value=!0,d.apiFdcSearchRetrieve({query:n.value,dataType:i.value.join(",")}).then(e=>{m.value=e}).catch(e=>{I().addError(O.FETCH_ERROR,e)}).finally(()=>{u.value=!1})}return(d,e)=>(r(),c(b,{"max-width":"900",modelValue:s.value,"onUpdate:modelValue":e[5]||(e[5]=a=>s.value=a)},{default:t(()=>[l(D,null,{default:t(()=>[l(R,{title:d.$t("Search"),icon:"$search",modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=a=>s.value=a)},null,8,["title","modelValue"]),l($,null,{default:t(()=>[l(L,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=a=>n.value=a),loading:u.value,label:d.$t("Search"),onKeydown:e[3]||(e[3]=k(a=>p(),["enter"]))},{append:t(()=>[l(w,{icon:"$search",color:"success",onClick:e[1]||(e[1]=a=>p())})]),_:1},8,["modelValue","loading","label"]),l(x,{multiple:"",modelValue:i.value,"onUpdate:modelValue":e[4]||(e[4]=a=>i.value=a),items:g.value,chips:""},null,8,["modelValue","items"]),l(B,null,{default:t(()=>[(r(!0),E(M,null,N(m.value?.foods,a=>(r(),c(U,{title:a.description,onClick:j=>{s.value=!1,S("selected",a.fdcId)}},{default:t(()=>[l(_,null,{default:t(()=>[V(f(a.dataType)+" ",1),l(A,{size:"small"},{default:t(()=>[V(f(a.fdcId),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["title","onClick"]))),256))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});export{z as _};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as F,aL as T,aH as C,r as o,h as c,w as t,g as l,M as D,aO as R,O as $,S as L,aR as k,z as w,T as x,x as B,b as E,F as M,p as N,aN as b,A as h,Q as I,R as O,f as r,y as U,E as _,j as V,t as f,ai as A}from"./main-BhFWIRV_.js";const z=F({__name:"FdcSearchDialog",props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:T(["selected"],["update:modelValue"]),setup(v,{emit:y}){const S=y,s=C(v,"modelValue"),u=o(!1),n=o(""),m=o(void 0),g=o(["Branded","Foundation","Survey (FNDDS)","SR Legacy"]),i=o(["Foundation","Survey (FNDDS)","SR Legacy"]);function p(){let d=new h;u.value=!0,d.apiFdcSearchRetrieve({query:n.value,dataType:i.value.join(",")}).then(e=>{m.value=e}).catch(e=>{I().addError(O.FETCH_ERROR,e)}).finally(()=>{u.value=!1})}return(d,e)=>(r(),c(b,{"max-width":"900",modelValue:s.value,"onUpdate:modelValue":e[5]||(e[5]=a=>s.value=a)},{default:t(()=>[l(D,null,{default:t(()=>[l(R,{title:d.$t("Search"),icon:"$search",modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=a=>s.value=a)},null,8,["title","modelValue"]),l($,null,{default:t(()=>[l(L,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=a=>n.value=a),loading:u.value,label:d.$t("Search"),onKeydown:e[3]||(e[3]=k(a=>p(),["enter"]))},{append:t(()=>[l(w,{icon:"$search",color:"success",onClick:e[1]||(e[1]=a=>p())})]),_:1},8,["modelValue","loading","label"]),l(x,{multiple:"",modelValue:i.value,"onUpdate:modelValue":e[4]||(e[4]=a=>i.value=a),items:g.value,chips:""},null,8,["modelValue","items"]),l(B,null,{default:t(()=>[(r(!0),E(M,null,N(m.value?.foods,a=>(r(),c(U,{title:a.description,onClick:j=>{s.value=!1,S("selected",a.fdcId)}},{default:t(()=>[l(_,null,{default:t(()=>[V(f(a.dataType)+" ",1),l(A,{size:"small"},{default:t(()=>[V(f(a.fdcId),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["title","onClick"]))),256))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});export{z as _};
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as t,h,w as e,K as s,g as a,V as o,a6 as _,k as n,f as r}from"./main-BhFWIRV_.js";const p=t({__name:"HelpPage",setup(c){return(i,f)=>(r(),h(s,{height:"70vh"},{default:e(()=>[a(n,{height:"70vh"},{default:e(()=>[a(o,{height:"70vh"},{default:e(()=>[a(_,{height:"70vh"})]),_:1})]),_:1})]),_:1}))}});export{p as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
import{d as t,h,w as e,K as s,g as a,V as o,a6 as _,k as n,f as r}from"./main-BhFWIRV_.js";const p=t({__name:"HelpPage",setup(c){return(i,f)=>(r(),h(s,{height:"70vh"},{default:e(()=>[a(n,{height:"70vh"},{default:e(()=>[a(o,{height:"70vh"},{default:e(()=>[a(_,{height:"70vh"})]),_:1})]),_:1})]),_:1}))}});export{p as default};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
.v-treeview-item{--list-indent-size: 28px}.v-treeview-item.v-treeview-item--filtered{display:none}.v-treeview-item.v-list-item--disabled:not(a){pointer-events:auto}.v-treeview-item.v-list-item--disabled:not(a) .v-selection-control{pointer-events:none}.v-treeview-item__level{width:28px}.v-treeview--fluid .v-treeview-item__level{width:0}.v-treeview.v-list{--indent-padding: 16px}.v-treeview.v-list--disabled .v-list-item__prepend{pointer-events:auto}.v-treeview .v-list-item--slim>.v-list-item__prepend>.v-icon~.v-list-item__spacer{width:10px}.v-treeview .v-list-item--slim>.v-list-item__prepend:not(:has(.v-list-item-action))>.v-icon{margin-inline-start:-6px}.v-treeview-indent-lines{position:absolute;inset-inline-start:0;height:100%;display:grid;padding-inline-start:8px;padding-block:0;grid-template-columns:repeat(var(--v-indent-parts, 1),var(--prepend-width));opacity:.4;pointer-events:none}.v-treeview-indent-line,.v-treeview-indent-line:before{border:0px solid rgb(var(--v-theme-on-surface))}.v-treeview-indent-line--leaf,.v-treeview-indent-line--line{border-inline-start-width:1px;height:100%;width:calc(50% + 1px);justify-self:end}.v-treeview-indent-line--leaf{position:relative}.v-treeview-indent-line--leaf:before{content:"";position:absolute;border-bottom-width:1px;height:calc(50% + 1px);width:100%}.v-treeview-indent-line--leaf:last-child:before{width:calc(100% - 4px)}.v-treeview-indent-line--leaf-link{border-bottom-width:1px;height:calc(50% + 1px);margin-inline-start:0;margin-inline-end:6px}.v-treeview-indent-line--last-leaf{border-inline-start-width:1px;border-bottom-width:1px;height:calc(50% + 1px);margin-inline-start:calc(50% - 1px);border-bottom-left-radius:4px}.v-locale--is-rtl.v-treeview-indent-line--last-leaf,.v-locale--is-rtl .v-treeview-indent-line--last-leaf{border-bottom-left-radius:0;border-bottom-right-radius:4px}.v-treeview-indent-line--last-leaf:last-child{margin-inline-end:4px}.v-treeview-group.v-list-group{--list-indent-size: 0px}.v-treeview-group.v-list-group>.v-treeview-item__level{width:0px}.v-treeview-group.v-list-group .v-list-group__items .v-list-item{padding-inline-start:calc(var(--indent-padding))!important}
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
.v-treeview-item{--list-indent-size: 28px}.v-treeview-item.v-treeview-item--filtered{display:none}.v-treeview-item.v-list-item--disabled:not(a){pointer-events:auto}.v-treeview-item.v-list-item--disabled:not(a) .v-selection-control{pointer-events:none}.v-treeview-item__level{width:28px}.v-treeview--fluid .v-treeview-item__level{width:0}.v-treeview.v-list{--indent-padding: 16px}.v-treeview.v-list--disabled .v-list-item__prepend{pointer-events:auto}.v-treeview .v-list-item--slim>.v-list-item__prepend>.v-icon~.v-list-item__spacer{width:10px}.v-treeview .v-list-item--slim>.v-list-item__prepend:not(:has(.v-list-item-action))>.v-icon{margin-inline-start:-6px}.v-treeview-indent-lines{position:absolute;inset-inline-start:0;height:100%;display:grid;padding-inline-start:8px;padding-block:0;grid-template-columns:repeat(var(--v-indent-parts, 1),var(--prepend-width));opacity:.4;pointer-events:none}.v-treeview-indent-line,.v-treeview-indent-line:before{border:0px solid rgb(var(--v-theme-on-surface))}.v-treeview-indent-line--leaf,.v-treeview-indent-line--line{border-inline-start-width:1px;height:100%;width:calc(50% + 1px);justify-self:end}.v-treeview-indent-line--leaf{position:relative}.v-treeview-indent-line--leaf:before{content:"";position:absolute;border-bottom-width:1px;height:calc(50% + 1px);width:100%}.v-treeview-indent-line--leaf:last-child:before{width:calc(100% - 4px)}.v-treeview-indent-line--leaf-link{border-bottom-width:1px;height:calc(50% + 1px);margin-inline-start:0;margin-inline-end:6px}.v-treeview-indent-line--last-leaf{border-inline-start-width:1px;border-bottom-width:1px;height:calc(50% + 1px);margin-inline-start:calc(50% - 1px);border-bottom-left-radius:4px}.v-locale--is-rtl.v-treeview-indent-line--last-leaf,.v-locale--is-rtl .v-treeview-indent-line--last-leaf{border-bottom-left-radius:0;border-bottom-right-radius:4px}.v-treeview-indent-line--last-leaf:last-child{margin-inline-end:4px}.v-treeview-group.v-list-group{--list-indent-size: 0px}.v-treeview-group.v-list-group>.v-treeview-item__level{width:0px}.v-treeview-group.v-list-group .v-list-group__items .v-list-item{padding-inline-start:calc(var(--indent-padding))!important}
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user