split timings, remove useless kvs

This commit is contained in:
2026-04-10 07:10:11 +04:00
parent a6d0596c9e
commit 8c3cc3739a
9 changed files with 46 additions and 58 deletions
+2 -4
View File
@@ -738,11 +738,11 @@ export const dashboard = new Elysia()
bar_frequency: b.bar_frequency || "daily",
bar_count: Number(b.bar_count) || 90,
show_response_time: !!b.show_response_time,
show_cert_expiry: !!b.show_cert_expiry,
show_powered_by: !!b.show_powered_by,
index_search: !!b.index_search,
auto_refresh_s: Number(b.auto_refresh_s) || 60,
og_image_url: b.og_image_url || null,
password: b.password || undefined,
custom_domain: b.custom_domain || null,
custom_css: b.custom_css || null,
@@ -771,11 +771,9 @@ export const dashboard = new Elysia()
bar_frequency: b.bar_frequency || "daily",
bar_count: Number(b.bar_count) || 90,
show_response_time: !!b.show_response_time,
show_cert_expiry: !!b.show_cert_expiry,
show_powered_by: !!b.show_powered_by,
index_search: !!b.index_search,
auto_refresh_s: Number(b.auto_refresh_s) || 60,
og_image_url: b.og_image_url || null,
custom_domain: b.custom_domain || null,
custom_css: b.custom_css || null,
footer_text: b.footer_text || null,
-3
View File
@@ -300,12 +300,9 @@ Content-Type: application/json
<tr><td>custom_domain</td><td>string?</td><td>Custom domain for the page (e.g. <code>status.example.com</code>). CNAME to the status server IP. SSL is automatic.</td></tr>
<tr><td>custom_css</td><td>string?</td><td>Custom CSS injected after the default stylesheet (up to 50KB).</td></tr>
<tr><td>footer_text</td><td>string?</td><td>Text shown in the page footer (up to 5000 chars).</td></tr>
<tr><td>og_image_url</td><td>string?</td><td>OpenGraph image URL for social previews.</td></tr>
<tr><td>analytics_html</td><td>string?</td><td>Raw HTML injected in the head (e.g. analytics snippet).</td></tr>
<tr><td>index_search</td><td>boolean?</td><td>Allow search engine indexing. Default <code>true</code>.</td></tr>
<tr><td>show_powered_by</td><td>boolean?</td><td>Show "Powered by PingQL" footer. Default <code>true</code>.</td></tr>
<tr><td>show_response_time</td><td>boolean?</td><td>Display response time per monitor. Default <code>true</code>.</td></tr>
<tr><td>show_cert_expiry</td><td>boolean?</td><td>Show cert expiry info. Default <code>false</code>.</td></tr>
<tr><td>groups</td><td>array?</td><td>Groups to organize monitors. Each has <code>name</code> (string) and optional <code>position</code> (number).</td></tr>
<tr><td>monitors</td><td>array?</td><td>Monitors to display. See monitor fields below.</td></tr>
</tbody>
-9
View File
@@ -223,10 +223,6 @@
<input type="checkbox" name="show_response_time" value="1" <%= (p.show_response_time !== false) ? 'checked' : '' %> class="accent-blue-500">
Show response time
</label>
<label class="flex items-center gap-2 text-sm text-gray-400">
<input type="checkbox" name="show_cert_expiry" value="1" <%= p.show_cert_expiry ? 'checked' : '' %> class="accent-blue-500">
Show cert expiry
</label>
<label class="flex items-center gap-2 text-sm text-gray-400">
<input type="checkbox" name="show_powered_by" value="1" <%= (p.show_powered_by !== false) ? 'checked' : '' %> class="accent-blue-500">
Show "Powered by PingQL"
@@ -246,11 +242,6 @@
<% }) %>
</select>
</div>
<div class="flex-1">
<label class="block text-sm text-gray-400 mb-1.5">OG image URL <span class="text-gray-600">(optional)</span></label>
<input name="og_image_url" type="url" value="<%= p.og_image_url || '' %>" placeholder="https://example.com/og.png"
class="w-full bg-surface-solid border border-border-subtle rounded-lg px-4 py-2.5 text-gray-100 placeholder-gray-600 focus:outline-none focus:border-blue-500 text-sm">
</div>
</div>
<% const hasPassword = !it.isNew && p.password_hash; %>