mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
feat: add backend configuration and windows utilities, and initialize frontend dependencies
This commit is contained in:
+256
-169
@@ -1,125 +1,168 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
|
||||
|
||||
:root {
|
||||
--bg-color: #0b0f1a;
|
||||
--card-bg: rgba(30, 41, 59, 0.7);
|
||||
--input-bg: rgba(51, 65, 85, 0.5);
|
||||
--text-color: #f8fafc;
|
||||
--text-muted: #94a3b8;
|
||||
--primary-color: #3b82f6;
|
||||
--primary-hover: #2563eb;
|
||||
--accent-color: #6366f1;
|
||||
--border-color: rgba(75, 85, 99, 0.4);
|
||||
--success-color: #10b981;
|
||||
--glass-border: rgba(255, 255, 255, 0.1);
|
||||
--bg: #111113;
|
||||
--surface: #1a1a1e;
|
||||
--surface-2: #222226;
|
||||
--border: rgba(255, 255, 255, 0.07);
|
||||
--border-hover: rgba(255, 255, 255, 0.13);
|
||||
--text: #e8e8ea;
|
||||
--text-2: #8a8a90;
|
||||
--text-3: #555560;
|
||||
--accent: #e8622a;
|
||||
--accent-dim: rgba(232, 98, 42, 0.15);
|
||||
--accent-hover: #f07040;
|
||||
--green: #3dba6e;
|
||||
--green-dim: rgba(61, 186, 110, 0.12);
|
||||
--red: #e05252;
|
||||
--red-dim: rgba(224, 82, 82, 0.12);
|
||||
--radius: 10px;
|
||||
--radius-sm: 7px;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
background: radial-gradient(circle at top right, #1e293b, #0b0f1a);
|
||||
color: var(--text-color);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
padding: 30px;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
letter-spacing: -0.01em;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* ── Layout ── */
|
||||
.container {
|
||||
max-width: 720px;
|
||||
max-width: 680px;
|
||||
margin: 0 auto;
|
||||
padding: 32px 28px 60px;
|
||||
}
|
||||
|
||||
/* ── Header ── */
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, #60a5fa, #a78bfa);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
margin-bottom: 30px;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
/* ── Section cards ── */
|
||||
.section {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
padding: 24px;
|
||||
border-radius: 16px;
|
||||
margin-bottom: 24px;
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
|
||||
transition: transform 0.2s ease;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px 22px;
|
||||
margin-bottom: 10px;
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
|
||||
.section:hover {
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
border-color: var(--border-hover);
|
||||
}
|
||||
|
||||
/* ── Labels ── */
|
||||
label {
|
||||
display: block;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 10px;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
margin-bottom: 9px;
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
accent-color: var(--primary-color);
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
cursor: pointer;
|
||||
.hint {
|
||||
font-size: 12px;
|
||||
color: var(--text-2);
|
||||
margin-top: 7px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* ── Inputs ── */
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
select,
|
||||
textarea {
|
||||
width: 100%;
|
||||
background: var(--input-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
color: white;
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
transition: all 0.2s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
select {
|
||||
appearance: none;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
padding: 9px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 13.5px;
|
||||
font-family: inherit;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 14px center;
|
||||
background-size: 16px;
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
select option {
|
||||
background: var(--bg-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
min-height: 80px;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
background: rgba(51, 65, 85, 0.8);
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-dim);
|
||||
}
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
/* Custom select arrow */
|
||||
select {
|
||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23555560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='4 6 8 10 12 6'%3e%3c/polyline%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 11px center;
|
||||
background-size: 14px;
|
||||
padding-right: 34px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
select option {
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
min-height: 80px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
accent-color: var(--accent);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ── Form control width ── */
|
||||
.form-control {
|
||||
max-width: 480px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ── Input wrapper (for eye-btn) ── */
|
||||
.input-wrapper {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
@@ -127,10 +170,7 @@ textarea:focus {
|
||||
}
|
||||
|
||||
.input-wrapper input {
|
||||
width: 100%;
|
||||
padding-right: 44px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
.eye-btn {
|
||||
@@ -142,35 +182,96 @@ textarea:focus {
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
cursor: pointer;
|
||||
padding: 4px !important;
|
||||
font-size: 16px;
|
||||
opacity: 0.5;
|
||||
transition: opacity 0.2s;
|
||||
padding: 2px !important;
|
||||
font-size: 15px;
|
||||
opacity: 0.35;
|
||||
transition: opacity 0.15s;
|
||||
line-height: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.eye-btn:hover {
|
||||
opacity: 1;
|
||||
transform: translateY(-50%) scale(1.1);
|
||||
opacity: 0.8;
|
||||
transform: translateY(-50%);
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
/* ── Buttons ── */
|
||||
button {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 9px 16px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-weight: 500;
|
||||
font-size: 13.5px;
|
||||
transition: background 0.15s ease, transform 0.1s ease;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: var(--accent-hover);
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
button:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
color: var(--red) !important;
|
||||
padding: 0 !important;
|
||||
font-size: 12px !important;
|
||||
text-decoration: none;
|
||||
opacity: 0.75;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.btn-link:hover {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: transparent !important;
|
||||
border: 1px solid var(--red) !important;
|
||||
color: var(--red) !important;
|
||||
box-shadow: none !important;
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
background: var(--red-dim) !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
/* ── Save status toast ── */
|
||||
.save-status {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
right: 30px;
|
||||
background: var(--success-color);
|
||||
color: white;
|
||||
padding: 12px 24px;
|
||||
border-radius: 12px;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
|
||||
transform: translateY(100px);
|
||||
bottom: 24px;
|
||||
right: 24px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border-hover);
|
||||
color: var(--green);
|
||||
padding: 10px 18px;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
|
||||
transform: translateY(16px);
|
||||
opacity: 0;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
z-index: 1000;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.save-status.show {
|
||||
@@ -178,98 +279,84 @@ textarea:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
|
||||
background-color: var(--primary-hover);
|
||||
}
|
||||
|
||||
button:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
button[style*="background: transparent"] {
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
text-decoration: underline;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
button[style*="background: transparent"]:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* ── History ── */
|
||||
.history-list {
|
||||
max-height: 250px;
|
||||
max-height: 240px;
|
||||
overflow-y: auto;
|
||||
margin-top: 10px;
|
||||
padding-right: 5px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.history-item {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 14px;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
transition: all 0.2s ease;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
padding: 11px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
margin-bottom: 6px;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
|
||||
.history-item:hover {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
transform: translateX(2px);
|
||||
border-color: var(--border-hover);
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.history-time {
|
||||
color: var(--primary-color);
|
||||
color: var(--text-2);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 6px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 4px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Scrollbar excellence */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
/* ── Inline status badges (online/offline) ── */
|
||||
#connectionStatus {
|
||||
border-radius: var(--radius-sm) !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
/* Installed whisper card */
|
||||
#whisperInstalled > div {
|
||||
border-radius: var(--radius-sm) !important;
|
||||
}
|
||||
|
||||
/* Install button override */
|
||||
#installBtn {
|
||||
background: var(--accent) !important;
|
||||
border-radius: var(--radius-sm) !important;
|
||||
font-size: 14px !important;
|
||||
padding: 11px 20px !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#installBtn:hover {
|
||||
background: var(--accent-hover) !important;
|
||||
}
|
||||
|
||||
/* ── Offline Whisper section separator ── */
|
||||
#offlineWhisperSection {
|
||||
border-top: 1px solid var(--border) !important;
|
||||
margin-top: 20px !important;
|
||||
padding-top: 20px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ── Section group header divider ── */
|
||||
.section-group-label {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.07em;
|
||||
color: var(--text-3);
|
||||
margin: 22px 0 8px;
|
||||
}
|
||||
|
||||
/* ── Scrollbar ── */
|
||||
::-webkit-scrollbar { width: 5px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--border-color);
|
||||
background: var(--surface-2);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--text-muted);
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
|
||||
Reference in New Issue
Block a user