Files
epusdt/src/www/assets/general-error-CAIDyDhH.js
T
line-6000 09514a6946 fix(http): block /install page after setup is complete
- skip SPA fallback for `/install` and `/install/*` in main server
- keep install wizard accessible only during `RunInstallServer` phase
- prevent post-install access to install UI
2026-04-23 00:39:22 +08:00

1 line
889 B
JavaScript

import{Mc as e,Nc as t,Pc as n,Tu as r,jc as i}from"./messages-xqHXgrWc.js";import{t as a}from"./useRouter-DbizRCmt.js";import{t as o}from"./useNavigate-DSiROrTl.js";import{i as s,t as c}from"./button-BQECWbag.js";var l=r();function u({className:r,minimal:u=!1}){let d=o(),{history:f}=a();return(0,l.jsx)(`div`,{className:s(`h-svh w-full`,r),children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[!u&&(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`500`}),(0,l.jsx)(`span`,{className:`font-medium`,children:n()}),(0,l.jsx)(`p`,{className:`text-center text-muted-foreground`,children:t()}),!u&&(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>f.go(-1),variant:`outline`,children:e()}),(0,l.jsx)(c,{onClick:()=>d({to:`/dashboard`}),children:i()})]})]})})}export{u as t};