Refactor global styles and enhance MITM functionality

- Updated global CSS to implement a new brand color palette and improve light/dark theme consistency.
- Enhanced the MitmServerCard component to provide clearer user feedback regarding admin privileges.
- Filtered LLM combos in the CombosPage to ensure only relevant data is displayed.
- Improved APIPageClient layout for better usability and visual consistency.
- Added functionality to save and load DNS tool states in the MITM manager.
- Updated OAuth configuration URLs for Qwen to reflect the new endpoint structure.
- Refined tunnel management logic to improve reliability and user experience.
This commit is contained in:
decolua
2026-05-03 18:00:35 +07:00
parent 1686adc704
commit 6cdf40b44e
40 changed files with 1029 additions and 762 deletions

View File

@@ -30,20 +30,20 @@ export default function NineRemotePromoModal({ isOpen, onClose }) {
return createPortal(
<div className="fixed inset-0 z-[9999] flex items-center justify-center p-4">
<div className="absolute inset-0 bg-black/60 backdrop-blur-sm" onClick={onClose} />
<div className="absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in" onClick={onClose} />
<div className="relative w-full max-w-sm rounded-xl overflow-hidden shadow-2xl animate-in fade-in zoom-in-95 duration-200 flex flex-col bg-surface border border-black/10 dark:border-white/10">
<div className="relative w-full max-w-sm rounded-[14px] overflow-hidden shadow-[var(--shadow-elev)] fade-in flex flex-col bg-surface border border-border-subtle">
{/* Header */}
<div className="flex items-center justify-between px-5 py-4 border-b border-black/5 dark:border-white/5">
<div className="flex items-center justify-between px-5 py-3 border-b border-border-subtle">
<div className="flex items-center gap-3">
<div className="w-7 h-7 rounded-lg flex items-center justify-center" style={{ background: "#FF570A" }}>
<div className="w-7 h-7 rounded-[8px] flex items-center justify-center bg-primary">
<span className="material-symbols-outlined text-white text-base">terminal</span>
</div>
<span className="text-xs font-bold uppercase tracking-wider" style={{ fontFamily: "monospace", color: "#FF570A" }}>9Remote</span>
<span className="text-xs font-bold uppercase tracking-wider text-primary font-mono">9Remote</span>
</div>
<button
onClick={onClose}
className="w-7 h-7 flex items-center justify-center rounded-lg bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/10 text-text-muted hover:text-text-main transition-colors"
className="p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors"
>
<span className="material-symbols-outlined text-base">close</span>
</button>
@@ -53,11 +53,8 @@ export default function NineRemotePromoModal({ isOpen, onClose }) {
<div className="px-7 py-7 pb-9 flex flex-col gap-6">
{/* Hero */}
<div className="flex flex-col items-center gap-2 text-center mt-2">
<div
className="w-14 h-14 rounded-2xl flex items-center justify-center mb-1"
style={{ background: "#FF570A", boxShadow: "rgba(255,87,10,0.35) 0px 8px 32px" }}
>
<span className="material-symbols-outlined text-white" style={{ fontSize: 30 }}>terminal</span>
<div className="w-14 h-14 rounded-[14px] flex items-center justify-center mb-1 bg-primary shadow-[var(--shadow-warm)]">
<span className="material-symbols-outlined text-white text-[30px]">terminal</span>
</div>
<h1 className="text-lg font-bold text-text-main tracking-tight">9Remote</h1>
<p className="text-xs text-text-muted leading-5 max-w-[220px]">
@@ -68,8 +65,8 @@ export default function NineRemotePromoModal({ isOpen, onClose }) {
{/* Feature cards */}
<div className="flex gap-2 w-full">
{FEATURES.map(({ icon, label, desc }) => (
<div key={label} className="flex-1 flex flex-col items-center gap-1.5 py-4 px-1 rounded-xl border border-black/10 dark:border-white/10 bg-bg-alt">
<span className="material-symbols-outlined" style={{ fontSize: 22, color: "#ff6e33" }}>{icon}</span>
<div key={label} className="flex-1 flex flex-col items-center gap-1.5 py-4 px-1 rounded-[10px] border border-border-subtle bg-surface-2">
<span className="material-symbols-outlined text-primary text-[22px]">{icon}</span>
<p className="text-xs font-semibold text-text-main">{label}</p>
<p className="text-[10px] text-text-muted text-center leading-4">{desc}</p>
</div>
@@ -80,7 +77,7 @@ export default function NineRemotePromoModal({ isOpen, onClose }) {
<div className="flex flex-col gap-3 w-full">
{BULLETS.map(({ icon, text }) => (
<div key={icon} className="flex items-center gap-2.5">
<span className="material-symbols-outlined flex-shrink-0" style={{ fontSize: 16, color: "#ff6e33" }}>{icon}</span>
<span className="material-symbols-outlined flex-shrink-0 text-primary text-[16px]">{icon}</span>
<span className="text-xs text-text-muted">{text}</span>
</div>
))}
@@ -89,8 +86,7 @@ export default function NineRemotePromoModal({ isOpen, onClose }) {
{/* CTA */}
<button
onClick={() => window.open(NINE_REMOTE_URL, "_blank")}
className="w-full py-3.5 flex items-center justify-center gap-2 text-sm font-semibold text-white rounded-xl hover:opacity-90 active:scale-[0.98] transition-all"
style={{ background: "#FF570A", boxShadow: "0 4px 16px rgba(255,87,10,0.35)" }}
className="w-full py-3 flex items-center justify-center gap-2 text-sm font-semibold text-white rounded-[10px] bg-primary hover:bg-primary-hover shadow-[var(--shadow-warm)] active:scale-[0.98] transition-all"
>
<span className="material-symbols-outlined text-base">open_in_new</span>
Get 9Remote