jj
This commit is contained in:
@@ -165,8 +165,6 @@ function doSignOut() {
|
||||
function updateSidebarUser() {
|
||||
document.getElementById("sidebar-username").textContent =
|
||||
currentEmail || "Not signed in";
|
||||
const settingsEl = document.getElementById("settings-session-email");
|
||||
if (settingsEl) settingsEl.textContent = currentEmail || "—";
|
||||
}
|
||||
|
||||
/* ─── Navigation ─────────────────────────────────────────────────── */
|
||||
@@ -187,9 +185,6 @@ document.querySelectorAll(".nav-item[data-section]").forEach((el) => {
|
||||
instances: "Instances",
|
||||
backup: "Backup",
|
||||
servers: "Servers",
|
||||
settings: "Settings",
|
||||
"coming-soon-firewall": "Firewall",
|
||||
"coming-soon-ssl": "SSL / TLS",
|
||||
keys: "Keys",
|
||||
sales: "Sales",
|
||||
};
|
||||
|
||||
+5
-167
@@ -45,21 +45,6 @@
|
||||
</svg>
|
||||
DNS Records
|
||||
</div>
|
||||
<div class="nav-item" data-section="coming-soon-firewall">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
|
||||
</svg>
|
||||
Firewall
|
||||
</div>
|
||||
|
||||
<div class="sidebar-section-label">Infrastructure</div>
|
||||
<div class="nav-item" data-section="instances">
|
||||
@@ -98,8 +83,7 @@
|
||||
</svg>
|
||||
Backup
|
||||
</div>
|
||||
|
||||
<div class="nav-item" data-section="coming-soon-ssl">
|
||||
<div class="nav-item" data-section="keys">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
@@ -110,10 +94,11 @@
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect x="3" y="11" width="18" height="11" rx="2" />
|
||||
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
|
||||
<path
|
||||
d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"
|
||||
/>
|
||||
</svg>
|
||||
SSL / TLS
|
||||
Keys
|
||||
</div>
|
||||
|
||||
<div
|
||||
@@ -163,24 +148,6 @@
|
||||
Servers
|
||||
</div>
|
||||
|
||||
<div class="nav-item" data-section="keys">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path
|
||||
d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"
|
||||
/>
|
||||
</svg>
|
||||
Keys
|
||||
</div>
|
||||
|
||||
<div class="sidebar-footer">
|
||||
<div
|
||||
class="nav-item"
|
||||
@@ -211,24 +178,6 @@
|
||||
</svg>
|
||||
<span id="sidebar-username">Not signed in</span>
|
||||
</div>
|
||||
<div class="nav-item" data-section="settings">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="12" cy="12" r="3" />
|
||||
<path
|
||||
d="M19.07 4.93a10 10 0 0 0-14.14 0M4.93 19.07a10 10 0 0 0 14.14 0M12 2v2M12 20v2M2 12h2M20 12h2"
|
||||
/>
|
||||
</svg>
|
||||
Settings
|
||||
</div>
|
||||
<div
|
||||
class="nav-item"
|
||||
onclick="doSignOut()"
|
||||
@@ -694,67 +643,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ─── Settings Section ──────────────────────────────────── -->
|
||||
<div class="section" id="section-settings">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="card-title">API Connection</span>
|
||||
</div>
|
||||
<div class="settings-grid">
|
||||
<div
|
||||
class="form-group"
|
||||
style="grid-column: 1/-1"
|
||||
>
|
||||
<label>API Base URL</label>
|
||||
<input
|
||||
type="text"
|
||||
id="setting-url"
|
||||
placeholder="https://n8n.derez.ai/webhook"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 16px">
|
||||
<button
|
||||
class="btn btn-primary"
|
||||
onclick="settingsSave()"
|
||||
>
|
||||
Save URL
|
||||
</button>
|
||||
<button
|
||||
class="btn btn-ghost"
|
||||
onclick="settingsTest()"
|
||||
style="margin-left: 8px"
|
||||
>
|
||||
Test Connection
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="card-title">Current Session</span>
|
||||
</div>
|
||||
<p
|
||||
style="
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 16px;
|
||||
"
|
||||
>
|
||||
Signed in as
|
||||
<strong id="settings-session-email">—</strong>.
|
||||
Sign out to switch accounts.
|
||||
</p>
|
||||
<div style="margin-top: 16px">
|
||||
<button
|
||||
class="btn btn-danger"
|
||||
onclick="doSignOut()"
|
||||
>
|
||||
Sign Out
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ─── Keys Section ───────────────────────────────────── -->
|
||||
<div class="section" id="section-keys">
|
||||
<div class="card">
|
||||
@@ -862,56 +750,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ─── Coming-soon placeholders ─────────────────────────── -->
|
||||
<div class="section" id="section-coming-soon-firewall">
|
||||
<div class="card">
|
||||
<div class="empty-state">
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="1.5"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path
|
||||
d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"
|
||||
/>
|
||||
</svg>
|
||||
<p>Firewall management — coming soon</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section" id="section-coming-soon-ssl">
|
||||
<div class="card">
|
||||
<div class="empty-state">
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="1.5"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect
|
||||
x="3"
|
||||
y="11"
|
||||
width="18"
|
||||
height="11"
|
||||
rx="2"
|
||||
/>
|
||||
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
|
||||
</svg>
|
||||
<p>SSL / TLS management — coming soon</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /content -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user