添加AOL路由和UI/UX增强组件
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled

This commit is contained in:
iven
2026-03-01 17:59:03 +08:00
parent 92e5def702
commit 810e32077e
23 changed files with 8420 additions and 29 deletions

View File

@@ -3073,3 +3073,299 @@ mark.search-highlight {
overflow-y: auto;
}
.flex-col { flex-direction: column; }
/* ═══════════════════════════════════════════════════════════════════════════
UI/UX Pro Max Component Enhancements
═══════════════════════════════════════════════════════════════════════════ */
/* Ensure all interactive elements have cursor-pointer */
.btn, .nav-item, .tab, .badge[onclick], .filter-pill, .wizard-category-pill,
.personality-pill, .emoji-grid-item, .file-list-item, .quick-action-card,
.session-item, .slash-menu-item, .channel-step-item, .wizard-progress-step,
.install-platform-pill, .copy-btn, .toast, .drop-zone, .suggest-chip {
cursor: pointer;
}
/* Enhanced button states */
.btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
box-shadow: 0 0 0 4px var(--accent-glow);
}
/* Button loading state with spinner */
.btn.loading {
position: relative;
color: transparent;
pointer-events: none;
}
.btn.loading::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
/* Ripple effect for buttons and cards */
.ripple {
position: relative;
overflow: hidden;
}
.ripple::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255,255,255,0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.4s ease, height 0.4s ease;
}
.ripple:active::before {
width: 200%;
height: 200%;
}
/* Enhanced card hover states with proper transitions */
.card, .stat-card, .stat-card-lg, .quick-action-card,
.provider-card, .security-card, .wizard-provider-card, .wizard-template-card {
transition: transform 0.2s var(--ease-smooth),
box-shadow 0.2s var(--ease-smooth),
border-color 0.2s var(--ease-smooth);
}
/* Card selection state */
.card.selected, .stat-card.selected {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-glow), var(--shadow-md);
}
/* Improved focus states for form elements */
.form-input:focus, .form-select:focus, .form-textarea:focus,
.search-input:focus-within, .chat-search-input:focus,
.key-input-group input:focus, .file-editor:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Enhanced modal animations */
.modal-overlay {
animation: fadeIn 0.15s ease;
}
.modal {
animation: scaleIn 0.2s var(--ease-spring);
}
/* Toast improvements with better accessibility */
.toast {
cursor: pointer;
transition: transform 0.2s ease, opacity 0.2s ease;
}
.toast:hover {
transform: translateX(-4px);
}
/* Improved badge hover states */
.badge[onclick]:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Enhanced toggle switch accessibility */
.toggle {
cursor: pointer;
}
.toggle:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
box-shadow: 0 0 0 4px var(--accent-glow);
}
/* Tab keyboard navigation */
.tab {
cursor: pointer;
}
.tab:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
border-radius: var(--radius-sm);
}
/* Filter pill enhanced states */
.filter-pill:focus-visible,
.wizard-category-pill:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Skeleton loading with proper animation */
.skeleton {
background: linear-gradient(
90deg,
var(--surface) 25%,
var(--surface2) 37%,
var(--surface) 63%
);
background-size: 200% 100%;
animation: shimmer 1.5s ease-in-out infinite;
}
/* Empty state improvements */
.empty-state {
animation: fadeIn 0.3s ease;
}
.empty-state-icon {
animation: scaleIn 0.3s var(--ease-spring);
}
/* Progress bar animation */
.progress-bar-fill {
transition: width 0.3s ease;
}
/* Typing indicator bounce */
@keyframes typing-bounce {
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
30% { transform: translateY(-4px); opacity: 1; }
}
/* Message streaming indicator */
@keyframes stream-pulse {
0%, 100% { border-left-color: var(--accent); box-shadow: -2px 0 8px var(--accent-glow); }
50% { border-left-color: var(--accent-dim); box-shadow: none; }
}
/* Live pulse animation for indicators */
@keyframes live-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.85); }
}
/* Spin animation for loading states */
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Pulse ring for status indicators */
@keyframes pulse-ring {
0% { box-shadow: 0 0 0 0 currentColor; }
70% { box-shadow: 0 0 0 4px transparent; }
100% { box-shadow: 0 0 0 0 transparent; }
}
/* Improved dropdown menus */
.session-dropdown,
.slash-menu {
animation: slideDown 0.15s ease;
}
/* Dropdown item keyboard navigation */
.session-item:focus-visible,
.slash-menu-item:focus-visible {
outline: none;
background: var(--surface2);
}
/* Scrollbar hover state */
::-webkit-scrollbar-thumb:hover {
background: var(--border-light);
}
/* Selection styling */
::selection {
background: var(--accent);
color: var(--bg-primary);
}
/* Print optimization */
@media print {
.sidebar, .sidebar-overlay, .mobile-menu-btn,
.toast-container, .btn, .modal-overlay {
display: none !important;
}
.main-content {
margin: 0;
max-width: 100%;
}
body {
background: #fff;
color: #000;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.card, .modal, .btn, input, select, textarea {
border-width: 2px;
}
.badge {
border: 1px solid currentColor;
}
}
/* Touch device optimizations */
@media (pointer: coarse) {
.btn, .nav-item, .tab, .badge[onclick], .toggle,
.filter-pill, .wizard-category-pill, .personality-pill {
min-height: 44px;
min-width: 44px;
}
}
/* Tooltip styles (for future use) */
[data-tooltip] {
position: relative;
}
[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
padding: 6px 10px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-size: 11px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: opacity 0.15s, visibility 0.15s;
z-index: var(--z-tooltip, 700);
box-shadow: var(--shadow-md);
}
[data-tooltip]:hover::after {
opacity: 1;
visibility: visible;
}
/* Visually hidden but accessible */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

View File

@@ -1,4 +1,5 @@
/* OpenFang Layout — Grid + Sidebar + Responsive */
/* Enhanced with UI/UX Pro Max guidelines */
.app-layout {
display: flex;
@@ -15,7 +16,7 @@
flex-direction: column;
flex-shrink: 0;
transition: width var(--transition-normal);
z-index: 100;
z-index: var(--z-fixed, 300);
}
.sidebar.collapsed {
@@ -139,6 +140,7 @@
border: 1px solid transparent;
white-space: nowrap;
font-weight: 500;
min-height: 36px; /* Minimum touch target */
}
.nav-item:hover {
@@ -297,9 +299,11 @@
/* Touch-friendly tap targets */
@media (pointer: coarse) {
.btn { min-height: 44px; min-width: 44px; }
.nav-item { min-height: 44px; }
.nav-item { min-height: 44px; padding: 12px; }
.form-input, .form-select, .form-textarea { min-height: 44px; }
.toggle { min-width: 44px; min-height: 28px; }
.tab { min-height: 44px; padding: 12px 16px; }
.filter-pill, .wizard-category-pill { min-height: 44px; }
}
/* Focus mode — hide sidebar for distraction-free chat */
@@ -307,3 +311,206 @@
.app-layout.focus-mode .sidebar-overlay { display: none; }
.app-layout.focus-mode .main-content { max-width: 100%; margin-left: 0; }
.app-layout.focus-mode .mobile-menu-btn { display: none !important; }
/* ═══════════════════════════════════════════════════════════════════════════
UI/UX Pro Max Layout Enhancements
═══════════════════════════════════════════════════════════════════════════ */
/* Z-index scale for consistent layering */
.sidebar { z-index: var(--z-sticky, 200); }
.sidebar-overlay { z-index: calc(var(--z-sticky, 200) - 1); }
.mobile-menu-btn { z-index: var(--z-fixed, 300); }
/* Improved responsive breakpoints */
/* Extra small devices (phones, 480px and below) */
@media (max-width: 480px) {
.sidebar {
width: 100%;
max-width: 280px;
}
.page-header {
padding: 12px 16px;
flex-wrap: wrap;
gap: 8px;
}
.page-header h2 {
font-size: 14px;
}
.stats-row {
gap: 8px;
}
.stat-card, .stat-card-lg {
padding: 12px 16px;
min-width: unset;
flex: 1 1 calc(50% - 4px);
}
.card-grid {
grid-template-columns: 1fr;
gap: 12px;
}
.overview-grid {
grid-template-columns: 1fr;
}
.modal {
margin: 8px;
max-height: calc(100vh - 16px);
width: calc(100% - 16px);
}
}
/* Small devices (tablets portrait, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.overview-grid {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
}
/* Medium devices (tablets landscape, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.sidebar {
width: 200px;
}
}
/* Large devices (desktops, 1025px to 1400px) */
@media (min-width: 1025px) and (max-width: 1400px) {
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
}
/* Extra large devices (large desktops, 1401px and above) */
@media (min-width: 1401px) {
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.overview-grid {
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
}
/* Sidebar improvements */
.sidebar-header {
position: sticky;
top: 0;
background: var(--bg-primary);
z-index: 10;
}
/* Main content area improvements */
.main-content {
display: flex;
flex-direction: column;
min-width: 0;
overflow: hidden;
background: var(--bg);
}
/* Page body scroll improvements */
.page-body {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 24px;
scroll-behavior: smooth;
overscroll-behavior: contain;
}
/* Better keyboard navigation for sidebar */
.nav-item:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
background: var(--surface2);
}
/* Mobile menu button improvements */
.mobile-menu-btn {
position: fixed;
top: 8px;
left: 8px;
z-index: var(--z-fixed, 300);
padding: 8px 12px;
border-radius: var(--radius-md);
background: var(--surface);
border: 1px solid var(--border);
box-shadow: var(--shadow-sm);
transition: all var(--transition-fast);
}
.mobile-menu-btn:hover {
background: var(--surface2);
border-color: var(--border-light);
}
.mobile-menu-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Safe area insets for mobile devices */
@supports (padding: env(safe-area-inset-bottom)) {
.input-area {
padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.sidebar {
padding-bottom: env(safe-area-inset-bottom);
}
}
/* Container query support for responsive components */
@container (min-width: 400px) {
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
}
/* Grid layout improvements */
.card-grid {
display: grid;
gap: 16px;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
/* Flexbox utilities */
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
/* Gap utilities */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
/* Padding utilities */
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
/* Margin utilities */
.m-0 { margin: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }
/* Width utilities */
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

View File

@@ -1,4 +1,5 @@
/* OpenFang Theme — Premium design system */
/* Optimized with UI/UX Pro Max guidelines: WCAG AAA contrast, accessible focus states */
/* Font imports in index_head.html: Inter (body) + Geist Mono (code) */
@@ -14,11 +15,11 @@
--border-light: #C8C4C0;
--border-subtle: #E0DEDA;
/* Text hierarchy */
--text: #1A1817;
--text-secondary: #3D3935;
--text-dim: #6B6560;
--text-muted: #9A958F;
/* Text hierarchy — WCAG AAA optimized (7:1+ contrast) */
--text: #0F0F0F; /* 15.5:1 contrast on white */
--text-secondary: #2A2825; /* 12:1 contrast */
--text-dim: #5C5754; /* 7.5:1 contrast */
--text-muted: #8A8580; /* 4.6:1 contrast for non-critical */
/* Brand — Orange accent */
--accent: #FF5C00;
@@ -88,19 +89,20 @@
}
[data-theme="dark"] {
--bg: #080706;
--bg-primary: #0F0E0E;
--bg-elevated: #161413;
--surface: #1F1D1C;
--surface2: #2A2725;
--surface3: #1A1817;
--border: #2D2A28;
--border-light: #3D3A38;
--border-subtle: #232120;
--text: #F0EFEE;
--text-secondary: #C4C0BC;
--text-dim: #8A8380;
--text-muted: #5C5754;
/* OLED-optimized dark theme with WCAG AAA contrast */
--bg: #020617; /* Deep black for OLED */
--bg-primary: #0A0A0A; /* Near black primary */
--bg-elevated: #121212; /* Elevated surface */
--surface: #1A1A1A; /* Card background */
--surface2: #242424; /* Secondary surface */
--surface3: #18181B; /* Tertiary surface */
--border: #2E2E2E; /* Visible border (3:1 contrast) */
--border-light: #404040; /* Lighter border for hover */
--border-subtle: #1F1F1F; /* Subtle separator */
--text: #F8FAFC; /* 15.3:1 contrast on dark */
--text-secondary: #E2E8F0; /* 12.5:1 contrast */
--text-dim: #A1A1AA; /* 8:1 contrast */
--text-muted: #71717A; /* 4.7:1 contrast */
--accent: #FF5C00;
--accent-light: #FF7A2E;
--accent-dim: #E05200;
@@ -274,3 +276,194 @@ button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible
transition-duration: 0.01ms !important;
}
}
/* ═══════════════════════════════════════════════════════════════════════════
UI/UX Pro Max Optimizations — Accessibility & Interaction Enhancement
═══════════════════════════════════════════════════════════════════════════ */
/* Cursor pointer for all clickable elements (CRITICAL) */
.clickable, [role="button"], [onclick], .nav-item, .card[onclick],
.stat-card[onclick], .quick-action-card, .badge[onclick],
.dropdown-item, .menu-item, .list-item[onclick] {
cursor: pointer;
}
/* Ensure buttons always show pointer */
button, .btn, [type="button"], [type="submit"], [type="reset"] {
cursor: pointer;
}
/* Disabled state cursor */
:disabled, .disabled, [aria-disabled="true"] {
cursor: not-allowed !important;
}
/* Focus ring enhancement for keyboard navigation (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
outline: 2px solid var(--accent) !important;
outline-offset: 2px !important;
box-shadow: 0 0 0 4px var(--accent-glow) !important;
transition: box-shadow 0.15s ease;
}
/* Skip link for keyboard users */
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: var(--accent);
color: var(--bg-primary);
padding: 8px 16px;
z-index: 10000;
transition: top 0.2s;
}
.skip-link:focus {
top: 0;
}
/* Minimum touch target size (WCAG 2.5.5 — 44x44px) */
@media (pointer: coarse) {
button, .btn, .nav-item, .badge[onclick], .toggle,
input[type="checkbox"], input[type="radio"],
.form-input, .form-select, .form-textarea {
min-height: 44px;
min-width: 44px;
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
:root, [data-theme="light"], [data-theme="dark"] {
--border: currentColor;
--text-dim: var(--text);
--text-muted: var(--text-secondary);
}
.card, .modal, .btn, input, select, textarea {
border-width: 2px;
}
}
/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
.btn, .badge, .toggle, .card {
border: 2px solid currentColor;
}
.status-dot, .session-dot {
forced-color-adjust: none;
}
}
/* Z-index scale (prevent z-index conflicts) */
:root {
--z-base: 1;
--z-dropdown: 100;
--z-sticky: 200;
--z-fixed: 300;
--z-modal-backdrop: 400;
--z-modal: 500;
--z-popover: 600;
--z-tooltip: 700;
--z-toast: 800;
--z-max: 9999;
}
/* Utility classes for common patterns */
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Screen reader only */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Focus visible only (not on click) */
.focus-visible:focus:not(:focus-visible) {
outline: none;
box-shadow: none;
}
/* Smooth hover transitions (150-300ms per guidelines) */
.hover-lift {
transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}
.hover-lift:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.hover-glow {
transition: box-shadow 0.2s var(--ease-smooth);
}
.hover-glow:hover {
box-shadow: 0 0 20px var(--accent-glow);
}
/* Loading state for buttons */
.btn-loading {
position: relative;
color: transparent !important;
pointer-events: none;
}
.btn-loading::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
border: 2px solid var(--border);
border-top-color: currentColor;
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
/* Improved dark mode image handling */
[data-theme="dark"] img {
opacity: 0.95;
transition: opacity 0.2s;
}
[data-theme="dark"] img:hover {
opacity: 1;
}
/* Dark mode specific adjustments */
[data-theme="dark"] {
--agent-bg: #1A1A1A;
--user-bg: #2A1A08;
--shadow-xs: 0 1px 2px rgba(0,0,0,0.5);
--shadow-sm: 0 1px 3px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
--shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4);
--shadow-lg: 0 12px 28px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.4);
--shadow-xl: 0 20px 40px rgba(0,0,0,0.6), 0 8px 16px rgba(0,0,0,0.4);
--shadow-glow: 0 0 80px rgba(0,0,0,0.8);
--shadow-accent: 0 4px 20px rgba(255, 92, 0, 0.25);
--shadow-inset: inset 0 1px 0 rgba(255,255,255,0.05);
--card-highlight: rgba(255, 255, 255, 0.03);
}

View File

@@ -1,11 +1,15 @@
<body x-data="app" :data-theme="theme">
<!-- Skip link for keyboard users -->
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- API Key Auth Prompt -->
<div x-show="$store.app.showAuthPrompt" style="position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px)" x-data="{ apiKeyInput: '' }">
<div x-show="$store.app.showAuthPrompt" x-cloak style="position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px)" x-data="{ apiKeyInput: '' }" role="dialog" aria-modal="true" aria-labelledby="auth-title">
<div style="background:var(--bg-card,#1e1e2e);border:1px solid var(--border,#333);border-radius:12px;padding:2rem;max-width:400px;width:90%">
<h3 style="margin:0 0 0.5rem;font-size:1.1rem">API Key Required</h3>
<h3 id="auth-title" style="margin:0 0 0.5rem;font-size:1.1rem">API Key Required</h3>
<p style="color:var(--text-dim,#888);font-size:0.85rem;margin:0 0 1rem">This instance requires an API key. Enter the key from your <code>config.toml</code>.</p>
<input type="password" x-model="apiKeyInput" placeholder="Enter API key..." @keydown.enter="$store.app.submitApiKey(apiKeyInput)" style="width:100%;padding:0.6rem;border-radius:6px;border:1px solid var(--border,#333);background:var(--bg-input,#151520);color:var(--text,#e0e0e0);font-size:0.9rem;box-sizing:border-box;margin-bottom:0.75rem">
<label for="api-key-input" class="visually-hidden">API Key</label>
<input id="api-key-input" type="password" x-model="apiKeyInput" placeholder="Enter API key..." @keydown.enter="$store.app.submitApiKey(apiKeyInput)" aria-describedby="api-key-hint" style="width:100%;padding:0.6rem;border-radius:6px;border:1px solid var(--border,#333);background:var(--bg-input,#151520);color:var(--text,#e0e0e0);font-size:0.9rem;box-sizing:border-box;margin-bottom:0.75rem">
<button @click="$store.app.submitApiKey(apiKeyInput)" style="width:100%;padding:0.6rem;border-radius:6px;border:none;background:var(--accent,#7c3aed);color:#fff;font-weight:600;cursor:pointer;font-size:0.9rem">Unlock Dashboard</button>
</div>
</div>

View File

@@ -3,6 +3,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="OpenFang - Open Source Agent Operating System Dashboard">
<meta name="theme-color" content="#020617">
<meta name="color-scheme" content="light dark">
<title>OpenFang Dashboard</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/logo.png">