3 lines
1.8 KiB
JavaScript
3 lines
1.8 KiB
JavaScript
import{d as m,u as k,j as y,k as _,l as g,f as x,w as C,o as c,a as t,c as l,F as f,g as b,t as o,m as P,n as d,p as a}from"./index-B4XM2BaA.js";import{_ as w}from"./AppLayout.vue_vue_type_script_setup_true_lang-a7NF1jhN.js";const p={class:"space-y-4"},v={class:"flex items-center space-x-4"},A={class:"text-3xl"},B={class:"text-lg font-semibold text-gray-800"},F={key:0,class:"text-sm text-gray-500"},S=["onClick","disabled"],q=m({__name:"SettingsPage",setup(N){const i=g(),n=k(),r=[{key:"google",name:"Google",authPath:"/auth/google",icon:"🔍"},{key:"youtube",name:"YouTube",authPath:"/auth/google",icon:"▶️",note:"Uses Google OAuth"},{key:"facebook",name:"Facebook",authPath:"/auth/meta",icon:"👥"},{key:"instagram",name:"Instagram",authPath:"/auth/meta",icon:"📷",note:"Via Facebook"},{key:"tiktok",name:"TikTok",authPath:"/auth/tiktok",icon:"🎵"}],h=s=>{window.location.href=s};return y(()=>i.query.connected,async s=>{s&&await n.checkAuth()}),_(async()=>{i.query.connected&&await n.checkAuth()}),(s,u)=>(c(),x(w,null,{default:C(()=>[t("div",null,[u[0]||(u[0]=t("h2",{class:"text-3xl font-bold text-gray-800 mb-6"},"Platform Connections",-1)),t("div",p,[(c(),l(f,null,b(r,e=>t("div",{key:e.key,class:"card flex items-center justify-between"},[t("div",v,[t("span",A,o(e.icon),1),t("div",null,[t("h3",B,o(e.name),1),e.note?(c(),l("p",F,o(e.note),1)):P("",!0),t("p",{class:d(["text-sm font-medium mt-1",a(n).isPlatformConnected(e.key)?"text-green-600":"text-red-600"])},o(a(n).isPlatformConnected(e.key)?"✓ Connected":"✗ Not Connected"),3)])]),t("button",{onClick:T=>h(e.authPath),disabled:a(n).isPlatformConnected(e.key),class:d([a(n).isPlatformConnected(e.key)?"btn-secondary":"btn-primary","btn"])},o(a(n).isPlatformConnected(e.key)?"Connected":"Connect"),11,S)])),64))])])]),_:1}))}});export{q as default};
|
|
//# sourceMappingURL=SettingsPage-UkpEXLwQ.js.map
|