PageSourceSearch

https://chartfox.org/build/B3ZwTpW8.js

js chartfox.org collected 2026-09-25 06:29:09 UTC 2,344 bytes, 1 lines download raw bytes

1import{_ as h}from"./DrPr6d7S.js";import{_ as m}from"./BewGTuwX.js";import{d as y,j as g,b as t,k as d,w as i,c as o,l as x,m as v,e as n,t as r,g as u,u as w,p as _,f as b,q as C,W as A}from"./assets/app-DhHwFiyR.js";import"./Fv9B_1zX.js";import"./MxoRInpj.js";import"./BDX0no-Y.js";import"./Ci46WWij.js";import"./De9JX2Wk.js";import"./C-RPN804.js";import"./UgmMt9Ga.js";import"./aScWm5e_.js";import"./DlAUqK2U.js";import"./CVBWAGSS.js";import"./C_s4jupg.js";import"./B0JOyIuy.js";import"./BxOAynVu.js";const $={key:0,class:"mb-2"},B={key:1,class:"space-y-4"},R={class:"space-y-1"},j={class:"font-semibold"},L={class:"text-sm"},N={key:0,class:"text-sm"},S={key:1,class:"text-sm"},D={class:"text-sm"},V={key:2,class:"text-sm"},U={class:"flex flex-col gap-2"},te=y({__name:"authorizations",props:{authorizations:{}},setup(E){var p,l;const c=(l=(p=g().props.config)==null?void 0:p.support)==null?void 0:l.email;function f(a,s){const e=encodeURIComponent(`Abuse Report: ChartFox OAuth app ${a} (Client ID: ${s})`);return`mailto:${c}?subject=${e}`}async function k(a,s){const{isConfirmed:e}=await C.fire({title:"Revoke access?",text:`Are you sure you want to revoke all active authorizations for ${s}?`,showCancelButton:!0,confirmButtonText:"Revoke"});e&&A.delete(`/account/authorizations/${a}`)}return(a,s)=>(t(),d(h,{title:"Authorized apps"},{default:i(()=>[a.authorizations.length?(t(),o("ul",B,[(t(!0),o(x,null,v(a.authorizations,e=>(t(),o("li",{key:e.client_id,class:"bg-fox-2 flex items-start justify-between gap-3 p-3"},[n("div",R,[n("h2",j,r(e.name),1),n("p",L," Authorized: "+r(e.authorized_at?new Date(e.authorized_at).toLocaleString():"Unknown"),1),e.last_used_at?(t(),o("p",N," Last used: "+r(new Date(e.last_used_at).toLocaleString()),1)):(t(),o("p",S,"Last used: Never")),n("p",D," Active authorizations: "+r(e.active_tokens_count),1),e.scopes.length?(t(),o("p",V," Scopes: "+r(e.scopes.join(", ")),1)):u("",!0)]),n("div",U,[w(c)?(t(),d(m,{key:0,kind:"default-2",href:f(e.name,e.client_id),external:!0},{default:i(()=>s[0]||(s[0]=[_(" Report Abuse ")])),_:2},1032,["href"])):u("",!0),b(m,{kind:"warning",onClick:I=>k(e.client_id,e.name)},{default:i(()=>s[1]||(s[1]=[_(" Revoke access ")])),_:2},1032,["onClick"])])]))),128))])):(t(),o("p",$,"You have not authorized any third-party applications."))]),_:1}))}});export{te as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.