PageSourceSearch

https://www.ftu.org.hk/_nuxt/C7e5FGw_.js

js ftu.org.hk collected 2026-10-02 17:35:28 UTC 1,694 bytes, 1 lines download raw bytes

1import{d as y,i as x,k as E,U as L,l as c,o as p,al as C,m as s,p as n,q as l,e as a,am as P,t as B,Y as m,an as I,C as _,_ as A}from"./rNMPrltl.js";import{u as S}from"./BdMKc64D.js";import{u as V}from"./CUF8NFeV.js";const b={class:"page-wrapper"},q={key:1,class:"page-login-prompt"},M={class:"login-prompt-card"},N={class:"login-prompt-icon"},R={class:"login-prompt-message"},U={class:"login-prompt-actions"},T=y({__name:"index",props:{requireAuth:{type:Boolean,default:!0},loginMessage:{default:"当前页面需要登录后才能访问,请先登录您的账户。"}},setup(g,{expose:h}){const i=g,r=V(),{isLoggedIn:f,isTokenValid:v}=S(),e=x(!1),u=()=>{if(i.requireAuth){const t=!f.value||!v.value;e.value=t}},k=()=>{const t=r.currentRoute.value.fullPath;r.push(`/login?redirect=${encodeURIComponent(t)}`)},w=()=>{r.push("/")},d=()=>{e.value=!0};return E(()=>{u(),window.addEventListener("auth:401",d)}),L(()=>{window.removeEventListener("auth:401",d)}),h({checkAuthStatus:u,showLoginPrompt:()=>{e.value=!0},hideLoginPrompt:()=>{e.value=!1}}),(t,o)=>(p(),c("div",b,[e.value?(p(),c("div",q,[s("div",M,[s("div",N,[n(a(P),{size:48,color:"#E60013"},{default:l(()=>[n(a(I))]),_:1})]),o[2]||(o[2]=s("h3",{class:"login-prompt-title"},"需要登录",-1)),s("p",R,B(i.loginMessage),1),s("div",U,[n(a(m),{type:"primary",style:{"background-color":"#e60013","border-color":"#e60013"},onClick:k},{default:l(()=>[...o[0]||(o[0]=[_(" 前往登录 ",-1)])]),_:1}),n(a(m),{style:{color:"#e60013","border-color":"#e60013"},onClick:w},{default:l(()=>[...o[1]||(o[1]=[_(" 返回首页 ",-1)])]),_:1})])])])):C(t.$slots,"default",{key:0},void 0,!0)]))}}),G=A(T,[["__scopeId","data-v-694e3975"]]);export{G as _};

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.