@tapni/auth 1.0.59 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ import{e as l,_ as g,A as u,E as _,c as n,a as s,f as r,g as h,w as f,t as i,F as m,h as b,r as y,o}from"./index-B_ObVKmg.js";const w={async getRecordById(t){return l().post("/objects/record/"+t.id,t)},async getRecords(t){return l().post("/objects/records",t)}},k={name:"AuthApps",mixins:[u],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,apps:[]}},async mounted(){this.isLoggedIn||this.$router.push("/login");const t=await w.getRecords({objectId:"6dc545ea-2e2f-4720-b4fe-c5ebdd8af063",query:{fields:["t_apps_name","t_apps_icon","t_apps_url"],relations:[]}});this.apps=t.data.records},methods:{close(){_.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})}}},v={class:"page-login content-boxed content-boxed-padding"},x={class:"subheaderContainer full-top"},B=["src"],I={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},A={class:"container left-text"},L={class:"center-text"},C={class:"full-top"},M=["href"],R={class:"firstRow"},j=["src"],E=["src"];function $(t,a,F,N,d,c){const p=y("router-link");return o(),n("div",v,[t.isModal?(o(),n("a",{key:0,onClick:a[0]||(a[0]=(...e)=>c.close&&c.close(...e)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},a[1]||(a[1]=[s("i",{class:"font-17 color-black"},[s("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):r("",!0),s("div",x,[t.isModal?r("",!0):(o(),h(p,{key:0,to:"/account",class:"button gray-button pointer left-button"},{default:f(()=>[s("img",{src:t.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,B)]),_:1})),s("h2",I,i(t.ssoLang[t.appLanguage].apps),1)]),s("div",A,[s("p",L,i(t.ssoLang[t.appLanguage].apps_p),1),s("div",C,[r("",!0),(o(!0),n(m,null,b(d.apps,e=>(o(),n("a",{key:e.id,href:e.t_apps_url,target:"_blank",class:"settingRow half-bottom"},[s("div",R,[s("img",{src:t.getIcon(e.t_apps_icon),class:"withBackground"},null,8,j),s("h4",null,i(e.t_apps_name),1),s("img",{src:t.getIcon("arrow-gray-right.svg")},null,8,E)])],8,M))),128))])])])}const V=g(k,[["render",$],["__scopeId","data-v-2f7f5584"]]);export{V as default};
@@ -0,0 +1 @@
1
+ .withBackground[data-v-2f7f5584]{height:50px}
@@ -0,0 +1 @@
1
+ .withBackground[data-v-4d3e1bec]{height:50px}
@@ -0,0 +1 @@
1
+ import{_ as p,A as u,i as g,E as _,c as i,a as s,f as r,g as h,w as b,t as a,d as m,F as f,h as y,r as v,o as e}from"./index-B_ObVKmg.js";const w={name:"AuthBilling",mixins:[u],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,subscriptions:[]}},async mounted(){this.isLoggedIn||this.$router.push("/login");const t=await g.getRecords({objectId:"6dc545ea-2e2f-4720-b4fe-c5ebdd8af066",query:{where:{account:this.account.id},fields:["t_subscriptions_name","t_subscriptions_desc","t_subscriptions_type","t_subscriptions_active","t_subscriptions_app"],relations:{t_subscriptions_app:{fields:["t_apps_name","t_apps_icon","t_apps_url"],relations:{}}}}});this.subscriptions=t.data.records},methods:{close(){_.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})}}},k={class:"page-login content-boxed content-boxed-padding"},B={class:"subheaderContainer full-top"},x=["src"],I={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},L={class:"container left-text"},A={class:"center-text"},C={class:"full-top"},E={class:"firstRow"},M=["src"],N=["src"];function R(t,o,V,$,l,c){const d=v("router-link");return e(),i("div",k,[t.isModal?(e(),i("a",{key:0,onClick:o[0]||(o[0]=(...n)=>c.close&&c.close(...n)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},o[1]||(o[1]=[s("i",{class:"font-17 color-black"},[s("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):r("",!0),s("div",B,[t.isModal?r("",!0):(e(),h(d,{key:0,to:"/account",class:"button gray-button pointer left-button"},{default:b(()=>[s("img",{src:t.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,x)]),_:1})),s("h2",I,a(t.ssoLang[t.appLanguage].billing),1)]),s("div",L,[s("p",A,a(t.ssoLang[t.appLanguage].billing_p),1),s("div",C,[r("",!0),m(" "+a(t.account.billing)+" ",1),(e(!0),i(f,null,y(l.subscriptions,n=>(e(),i("div",{key:n.id,class:"settingRow half-bottom"},[s("div",E,[s("img",{src:t.getIcon(t.app.t_apps_icon),class:"withBackground"},null,8,M),s("h4",null,a(n.t_subscriptions_name),1),s("img",{src:t.getIcon("arrow-gray-right.svg")},null,8,N)])]))),128))])])])}const F=p(w,[["render",R],["__scopeId","data-v-4d3e1bec"]]);export{F as default};
@@ -0,0 +1 @@
1
+ import{_ as d,A as u,i as g,E as _,c as n,a as t,f as i,g as h,w as m,t as r,r as f,o}from"./index-B_ObVKmg.js";const y={name:"AuthCustomApp",mixins:[u],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,app:{}}},async mounted(){this.isLoggedIn||this.$router.push("/login");const e=await g.getRecordById({id:this.$route.params.app,query:{fields:["t_apps_name","t_apps_icon","t_apps_url"],relations:[]}});this.app=e.data.record},methods:{close(){_.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})}}},b={class:"page-login content-boxed content-boxed-padding"},v={class:"subheaderContainer full-top"},x=["src"],k={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},w={class:"container left-text"},A={class:"center-text"};function C(e,s,B,E,l,a){const p=f("router-link");return o(),n("div",b,[e.isModal?(o(),n("a",{key:0,onClick:s[0]||(s[0]=(...c)=>a.close&&a.close(...c)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},s[1]||(s[1]=[t("i",{class:"font-17 color-black"},[t("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):i("",!0),t("div",v,[e.isModal?i("",!0):(o(),h(p,{key:0,to:"/apps",class:"button gray-button pointer left-button"},{default:m(()=>[t("img",{src:e.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,x)]),_:1})),t("h2",k,r(l.app.t_apps_name),1)]),t("div",w,[t("p",A,r(e.ssoLang[e.appLanguage].apps_p),1),s[2]||(s[2]=t("div",{class:"full-top"},null,-1))])])}const M=d(y,[["render",C],["__scopeId","data-v-36b27d1f"]]);export{M as default};
@@ -0,0 +1 @@
1
+ .withBackground[data-v-36b27d1f]{height:50px}
Binary file
@@ -0,0 +1 @@
1
+ import{_ as a,A as l,Q as i,c as r,a as o,t,b as u,w as p,r as d,o as g,d as _}from"./index-B_ObVKmg.js";const m={name:"AuthQR",mixins:[l,i]},L={class:"page-login content-boxed content-boxed-padding"},b={style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"130px"}},h={class:"center-text"},f={style:{margin:"0 auto",width:"85%","text-align":"left"}},y={class:"center-text"};function v(e,n,w,k,C,q){const s=d("router-link");return g(),r("div",L,[o("h5",b,t(e.ssoLang[e.appLanguage].use_tapni_on_the_web),1),n[6]||(n[6]=o("br",null,null,-1)),o("div",h,[n[3]||(n[3]=o("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1)),n[4]||(n[4]=o("br",null,null,-1)),n[5]||(n[5]=o("br",null,null,-1)),o("div",f,[o("h2",y,t(e.ssoLang[e.appLanguage].login_by_scanning_qr_code),1),n[0]||(n[0]=o("br",null,null,-1)),o("h4",null,t(e.ssoLang[e.appLanguage].open_tapni_app_on_your_phone),1),o("h4",null,t(e.ssoLang[e.appLanguage].go_to_settings_link_a_device),1),o("h4",null,t(e.ssoLang[e.appLanguage].point_your_phone_at_this_qr_code),1),n[1]||(n[1]=o("br",null,null,-1)),n[2]||(n[2]=o("br",null,null,-1))]),u(s,{to:"/login"},{default:p(()=>[_(t(e.ssoLang[e.appLanguage].choose_other_login_methods),1)]),_:1})])])}const A=a(m,[["render",v]]);export{A as default};