Spaces:
Sleeping
Sleeping
File size: 10,049 Bytes
ee7b200 d39b2ef ee7b200 d39b2ef ee7b200 d39b2ef ee7b200 d39b2ef ee7b200 d39b2ef ee7b200 d39b2ef ee7b200 d39b2ef ee7b200 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | <!doctype html><html><head><meta charset='utf-8'/>
<meta name='viewport' content='width=device-width,initial-scale=1'/>
<title>Settings · __NAME__ v__VERSION__</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');
:root{--bg:#070b18;--panel:#0e1730;--panel2:#121d3c;--line:#21345f;--txt:#eaf1ff;--muted:#8ba6d6;--cyan:#36e2f5;--pink:#fb74bc;--green:#5ce39e;--amber:#ffcb52;--vio:#8e9dff;--mono:'JetBrains Mono',ui-monospace,Menlo,monospace}
*{box-sizing:border-box}
body{margin:0;color:var(--txt);font-family:'Sora',Inter,Segoe UI,Arial,sans-serif;background:#05070f;position:relative;overflow-x:hidden}
body:before{content:'';position:fixed;inset:0;z-index:-2;background:radial-gradient(1100px 620px at 12% -8%,rgba(54,226,245,.16),transparent 60%),radial-gradient(900px 560px at 100% 0%,rgba(142,157,255,.16),transparent 55%),linear-gradient(180deg,#070b18,#04060d)}
.wrap{max-width:1080px;margin:0 auto;padding:16px 16px 60px}
.hero{position:relative;display:flex;flex-direction:column;gap:12px;padding:15px 18px;border:1px solid #2a447e;border-radius:18px;background:linear-gradient(120deg,rgba(14,23,48,.92),rgba(16,28,62,.86));box-shadow:0 18px 50px rgba(0,0,0,.45);overflow:hidden}
.hero-top{display:flex;align-items:center;gap:14px;min-width:0}
.logo{width:48px;height:48px;min-width:48px;border-radius:13px;border:1px solid #2f5da8;background:radial-gradient(circle at 50% 50%,#11346f,#091a3d);display:flex;align-items:center;justify-content:center;box-shadow:0 0 24px rgba(54,226,245,.3)}
.logo svg{width:30px;height:30px}
.brand{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.title{margin:0;font-size:20px;font-weight:800;line-height:1.05;background:linear-gradient(90deg,#eaf4ff,#8fe9ff 60%,#b6a8ff);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.sub{color:#a4c0ee;font-size:12px}
.back{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #3a64b4;border-radius:999px;color:#dbe7ff;background:linear-gradient(180deg,rgba(36,72,140,.55),rgba(18,40,86,.55));text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap;flex:none;align-self:flex-start}
.back:hover{background:linear-gradient(180deg,#1d56b8,#143e8e);border-color:#6fe9fb;color:#fff}
.back svg{width:14px;height:14px}
/* global action bar */
.gbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:12px 14px;border:1px solid #2c4d8c;border-radius:14px;background:linear-gradient(180deg,rgba(13,33,72,.96),rgba(9,22,52,.96));backdrop-filter:blur(8px);box-shadow:0 10px 30px rgba(0,0,0,.35)}
.gbar .gtitle{font-size:12.5px;font-weight:700;color:#bcd4ff;text-transform:uppercase;letter-spacing:.4px}
.gbar .gspace{flex:1}
.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:10px;border:1px solid #3a64b4;cursor:pointer;font-size:11.5px;font-weight:700;font-family:'Sora',sans-serif;color:#dbe7ff;background:linear-gradient(180deg,rgba(36,72,140,.6),rgba(18,40,86,.6));transition:box-shadow .12s ease,background .12s ease,border-color .12s ease}
.btn svg{width:13px;height:13px}
.btn:hover{box-shadow:0 4px 13px rgba(54,226,245,.22)}
.btn.primary{background:linear-gradient(180deg,#1f8f5a,#13633d);border-color:#43e08a;color:#eafff3}
.btn.primary:hover{background:linear-gradient(180deg,#23a567,#157046);box-shadow:0 6px 18px rgba(67,224,138,.3)}
.btn.danger{background:linear-gradient(180deg,#7a2230,#54151f);border-color:#ef6b7e;color:#ffe2e6}
.btn.danger:hover{background:linear-gradient(180deg,#9c2c3d,#6c1c28)}
.gstatus{font-size:10.5px;font-weight:600;color:#9fb6e4;font-family:var(--mono)}
.gstatus.ok{color:#7df0a8}.gstatus.err{color:#ff9cae}
/* section */
.sec{margin-top:14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,var(--panel2),var(--panel));box-shadow:0 10px 30px rgba(0,0,0,.28);overflow:hidden}
.sec-h{display:flex;align-items:center;gap:10px;padding:13px 16px;cursor:pointer;user-select:none;border-bottom:1px solid transparent}
.sec-h.open{border-bottom-color:#1e335f}
.sec-h .si{width:32px;height:32px;min-width:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:rgba(54,226,245,.12);border:1px solid rgba(54,226,245,.4);color:#7af6ff;font-weight:800;font-size:14px}
.sec-h .st{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.sec-h .stt{font-size:14.5px;font-weight:700;color:#eaf2ff}
.sec-h .sts{font-size:11.5px;color:var(--muted);line-height:1.3}
.sec-h .chev{margin-left:auto;color:#bad4ff;font-size:18px;transition:transform .15s ease}
.sec-h.open .chev{transform:rotate(180deg)}
.sec-b{padding:6px 16px 14px}
.sec-b.collapsed{display:none}
/* field */
.fld{padding:13px 2px;border-bottom:1px solid #13254a}
.fld:last-child{border-bottom:none}
.fld-top{display:flex;align-items:flex-start;gap:12px}
.fld-l{flex:1;min-width:0}
.fld-lbl{font-size:13.5px;font-weight:700;color:#e7eeff}
.fld-help{font-size:11.5px;color:var(--muted);line-height:1.4;margin-top:3px}
.fld-r{flex:none;display:flex;align-items:center;gap:8px}
.unit{font-size:11px;color:#9fb6e4;font-family:var(--mono)}
input[type=text],input[type=number],input[type=password]{background:#0a1838;border:1px solid #2c4d8c;border-radius:10px;color:#eaf2ff;font-family:var(--mono);font-size:13px;padding:8px 11px;width:140px;outline:none}
input:focus{border-color:#5fe6f9;box-shadow:0 0 0 2px rgba(54,226,245,.18)}
input.wide{width:100%}
/* switch */
.sw{position:relative;width:48px;height:27px;flex:none;cursor:pointer}
.sw input{opacity:0;width:0;height:0;position:absolute}
.sw .track{position:absolute;inset:0;border-radius:999px;background:#2a3b63;border:1px solid #38538c;transition:background .15s ease}
.sw .knob{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#cdd9f5;transition:transform .15s ease,background .15s ease}
.sw input:checked + .track{background:linear-gradient(90deg,#1f8f5a,#43e08a);border-color:#43e08a}
.sw input:checked + .track + .knob{transform:translateX(21px);background:#eafff3}
/* presets */
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{cursor:pointer;font-size:11px;font-weight:600;padding:5px 11px;border-radius:999px;border:1px solid #2c4d8c;background:rgba(11,26,58,.7);color:#bcd4ff;transition:all .12s ease}
.chip:hover{border-color:#5fe6f9;color:#dff6ff}
.chip.active{background:linear-gradient(180deg,#1d56b8,#143e8e);border-color:#6fe9fb;color:#fff}
.chip.def{border-style:dashed;color:#9fb6e4}
.stepper{display:inline-flex;align-items:center;border:1px solid #2c4d8c;border-radius:10px;overflow:hidden}
.stepper button{width:30px;height:36px;border:none;background:#0d2148;color:#bad4ff;font-size:17px;font-weight:800;cursor:pointer}
.stepper button:hover{background:#15306a;color:#fff}
.stepper input{border:none;border-radius:0;width:74px;text-align:center}
.eye{cursor:pointer;color:#9fb6e4;font-size:11px;border:1px solid #2c4d8c;border-radius:8px;padding:7px 9px;background:#0a1838}
.eye:hover{color:#dff6ff;border-color:#5fe6f9}
.badge-ok{font-size:10.5px;font-weight:700;color:#bdf7d6;border:1px solid rgba(92,227,158,.6);background:rgba(13,40,28,.7);border-radius:999px;padding:3px 9px;white-space:nowrap}
.badge-no{font-size:10.5px;font-weight:700;color:#ffd3b0;border:1px solid rgba(255,160,90,.5);background:rgba(48,30,12,.6);border-radius:999px;padding:3px 9px;white-space:nowrap}
.muted{color:var(--muted)}
@media(max-width:620px){
.wrap{padding:12px 10px 50px}
.fld-top{flex-direction:column;gap:10px}.fld-r{align-self:flex-start}
input[type=text],input[type=number],input[type=password]{width:100%}
.gbar{position:static}
.gbar .gtitle{width:100%}
.gbar .btn{flex:1;justify-content:center;padding:8px 6px}
.gbar .gspace{display:none}
.gstatus{width:100%;text-align:center;margin-top:2px}
}
</style></head><body>
<div class='wrap'>
<div class='hero'>
<div class='hero-top'>
<div class='logo' aria-hidden='true'>
<svg viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'>
<defs><linearGradient id='lg' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='#5fe6f9'/><stop offset='1' stop-color='#8e9dff'/></linearGradient></defs>
<circle cx='50' cy='50' r='42' stroke='url(#lg)' stroke-opacity='0.55' stroke-width='2'/>
<polyline points='20,66 38,58 52,40 66,46 80,26' stroke='#7af6ff' stroke-width='3' fill='none' stroke-linecap='round'/>
</svg>
</div>
<div class='brand'>
<h1 class='title'>Settings</h1>
<div class='sub'>__NAME__ · Configure every engine, alert and strategy option</div>
</div>
</div>
<a class='back' href='/'><svg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5'/><path d='M12 19l-7-7 7-7'/></svg>Back To Dashboard</a>
</div>
<div class='gbar'>
<span class='gtitle'>Global</span>
<button class='btn primary' id='save-all'><svg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/><path d='M17 21v-8H7v8M7 3v5h8'/></svg>Save All Settings</button>
<button class='btn danger' id='reset-all'><svg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 1 0 3-6.7L3 8'/><path d='M3 3v5h5'/></svg>Reset To Default</button>
<span class='gspace'></span>
<span class='gstatus' id='gstatus'>Loading…</span>
</div>
<div id='sections'></div>
<p class='muted' style='font-size:11px;margin-top:18px'>Values are saved to a file on your private persistent disk and applied live — no restart needed. Secrets (bot token, chat I.D) are stored only on your disk and never shown after saving.</p>
</div>
<script src='settings.js'></script>
</body></html>
|