Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/settings.html
Diff
/var/www/vhosts/3dshawn.com/site1/TEMPLATES/settings.html
modified on local at 2026-07-12 00:02:15
Added
+44
lines
Removed
-0
lines
Context
32
unchanged
Blobs
from 5a2e6611fac6
to 907d3c47340c
to 907d3c47340c
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | 1 | <div class="page-head"> |
| 2 | 2 | <span class="page-eyebrow"><span class="dot"></span> Configure</span> |
| 3 | 3 | <h1 class="page-title">Settings</h1> |
| 4 | 4 | <p class="page-subtitle">Installation-level configuration. Read from <code>/etc/drift_sense/drift_sense.conf</code> -- edit that file to change values, then restart the daemons.</p> |
| 5 | 5 | </div> |
| 6 | 6 | |
| 7 | 7 | <div class="dash-grid" style="grid-template-columns:repeat(3,1fr);margin-bottom:16px"> |
| 8 | 8 | <div class="module glow-teal"> |
| 9 | 9 | <div class="module-head"><div class="left"><div class="module-title">BLOB_STORE size</div><span class="module-subtitle">Unique content states.</span></div></div> |
| 10 | 10 | <div class="module-body kpi kpi-teal"><div class="num">$blob_ct</div><div class="lbl">unique blobs</div></div> |
| 11 | 11 | </div> |
| 12 | 12 | <div class="module glow-emerald"> |
| 13 | 13 | <div class="module-head"><div class="left"><div class="module-title">Compression ratio</div><span class="module-subtitle">Uncompressed vs on-disk.</span></div></div> |
| 14 | 14 | <div class="module-body kpi kpi-emerald"><div class="num">$ratio</div><div class="lbl">savings</div></div> |
| 15 | 15 | </div> |
| 16 | 16 | <div class="module glow-sky"> |
| 17 | 17 | <div class="module-head"><div class="left"><div class="module-title">Dedup references</div><span class="module-subtitle">How many FILE_CHANGES rows point at BLOB_STORE.</span></div></div> |
| 18 | 18 | <div class="module-body kpi kpi-sky"><div class="num">$total_refs</div><div class="lbl">references</div></div> |
| 19 | </div> | |
| 20 | </div> | |
| 21 | ||
| 22 | [if:$saved] | |
| 23 | <div class="banner banner-ok" style="margin:0 0 16px;padding:10px 14px;border-radius:10px;background:rgba(52,211,153,.10);border:1px solid rgba(52,211,153,.35);color:#a7f3d0;font-size:13px"> | |
| 24 | Global scan settings saved. Applies to the very next scanner tick. | |
| 25 | </div> | |
| 26 | [/if] | |
| 27 | ||
| 28 | <div class="module glow-amber" style="margin-bottom:16px"> | |
| 29 | <div class="module-head"><div class="left"> | |
| 30 | <div class="module-icon"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg></div> | |
| 31 | <div class="module-title">Global scan settings</div> | |
| 32 | <span class="module-subtitle">Applied to every monitor -- portfolio-wide. Ignore patterns are UNION'd with each monitor's own list. File-type filter is used only when a monitor's own filter is empty.</span> | |
| 33 | </div></div> | |
| 34 | <div class="module-body"> | |
| 35 | <form method="post" action="/settings.cgi" style="display:flex;flex-direction:column;gap:14px"> | |
| 36 | <input type="hidden" name="save_globals" value="1"> | |
| 37 | ||
| 38 | <label style="display:flex;flex-direction:column;gap:4px"> | |
| 39 | <span class="rb-label">Global ignore patterns | |
| 40 | <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">— one per line OR comma-separated. Glob wildcards <code>*</code>, <code>?</code>, and <code>**</code> supported.</span> | |
| 41 | </span> | |
| 42 | <textarea name="global_ignore_list" rows="10" placeholder="*.swp *.tmp *.bak node_modules/* .git/* logs/*" | |
| 43 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px 12px;font-family:var(--mono);font-size:11.5px;line-height:1.6;resize:vertical">$global_ignore_pretty</textarea> | |
| 44 | </label> | |
| 45 | ||
| 46 | <div style="display:flex;gap:12px"> | |
| 47 | <label style="flex:2;display:flex;flex-direction:column;gap:4px"> | |
| 48 | <span class="rb-label">Global file-type filter <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">(blank = all types)</span></span> | |
| 49 | <input type="text" name="global_file_type_filter" value="$global_file_type_filter" placeholder="pl,pm,cgi,html,css,js,sql,conf,md" | |
| 50 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-family:var(--mono);font-size:12px"> | |
| 51 | </label> | |
| 52 | <label style="flex:1;display:flex;flex-direction:column;gap:4px"> | |
| 53 | <span class="rb-label">Global max file size (bytes)</span> | |
| 54 | <input type="number" name="global_max_file_size_bytes" value="$global_max_file_size_bytes" min="0" | |
| 55 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px"> | |
| 56 | </label> | |
| 57 | </div> | |
| 58 | ||
| 59 | <div style="display:flex;justify-content:flex-end"> | |
| 60 | <button type="submit" class="tr-chip is-active" style="border:none;padding:8px 18px">Save globals</button> | |
| 61 | </div> | |
| 62 | </form> | |
| 19 | 63 | </div> |
| 20 | 64 | </div> |
| 21 | 65 | |
| 22 | 66 | <div class="module glow-teal"> |
| 23 | 67 | <div class="module-head"><div class="left"><div class="module-title">Resolved configuration</div><span class="module-subtitle">Merged from conf file + code defaults. Secrets redacted.</span></div></div> |
| 24 | 68 | <div class="module-body tight"> |
| 25 | 69 | <table class="tbl"> |
| 26 | 70 | <thead><tr><th style="width:260px">Key</th><th>Value</th></tr></thead> |
| 27 | 71 | <tbody> |
| 28 | 72 | [loop:@cfg_rows]<tr><td class="mono"><strong>$key</strong></td><td class="mono dim">$value</td></tr>[/loop] |
| 29 | 73 | </tbody> |
| 30 | 74 | </table> |
| 31 | 75 | </div> |
| 32 | 76 | </div> |