1 parent
8c4d463f1e
commit
de13d851a8
75 files changed
+4656
-442
No files matched your search
@@ -22,18 +22,105 @@
|
||||
.breadcrumbs{font:11px/1.2 var(--mono);color:#c7d3ca;letter-spacing:.35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.tool-button,.btn-ui{background:transparent;border:1px solid #49534c;color:#e0e7e0;min-height:31px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 11px;border-radius:3px;font-size:12px;font-weight:510;text-decoration:none;line-height:1.2;cursor:pointer;white-space:nowrap;transition:none}.tool-button:hover,.btn-ui:hover{border-color:#97ada0;color:#fff;background:#1a211e}.tool-button:focus-visible,.btn-ui:focus-visible,.field:focus-visible,.sidenav a:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.ico{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.btn-primary-ui{border-color:#94c488;background:var(--green);color:#10200e;font-weight:690}.btn-primary-ui:hover{background:#b2e6a9;border-color:#b2e6a9;color:#10200e}.btn-danger-ui{border-color:#955651;color:#ffb5ad;background:#251612}.btn-danger-ui:hover{background:#3c2420;border-color:#d18a85;color:#fff}.btn-small{min-height:25px;padding:3px 8px;font-size:11px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;color:#d5dfd7;border:1px solid transparent;border-radius:2px}.icon-button:hover{background:#242f29;color:#fff;border-color:#556256}.icon-button.danger-hover:hover{color:var(--red);border-color:#9d5955}.row-actions{display:flex;gap:3px;justify-content:flex-end}.mobile-menu{display:none}
|
||||
.content{padding:17px 25px 26px;max-width:2220px;margin:0 auto;min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.eyebrow{font:10px/1.4 var(--mono);color:#a4d291;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px}.page-head h1{font-size:27px;line-height:1.15;font-weight:660;letter-spacing:-.65px}.page-subtitle{font-size:12px;color:#aebdb2;margin-top:4px}.page-head-right{align-self:flex-start;margin-top:5px}.operator-label{font:10px var(--mono);color:#a2ada5;border:1px solid var(--line);padding:6px 9px;border-radius:2px}
|
||||
.panel{background:var(--panel);border:1px solid var(--line);border-radius:3px;min-width:0;box-shadow:none}.panel-head{padding:12px 14px;border-bottom:1px solid var(--row);display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.panel-head p{font-size:11px;color:var(--muted);margin-top:2px}.panel-body{padding:16px}.panel-body.compact{padding:12px 14px}.panel-head.border-top{border-top:1px solid var(--line)}.text-link{font-size:11px;color:#9bcce0}.text-link:hover{text-decoration:underline}
|
||||
.status-strip{display:grid;grid-template-columns:1.65fr repeat(4,1fr);align-items:stretch;min-height:70px;padding:10px 0;gap:0}.status-main{display:flex;flex-direction:column;justify-content:center;padding:0 20px}.status-heading{font-size:15px;display:flex;align-items:center;gap:6px;margin-bottom:3px}.status-heading .dot{width:9px;height:9px;margin-right:2px}.strip-cell{display:flex;flex-direction:column;gap:4px;justify-content:center;padding:0 17px;border-left:1px solid var(--line);min-width:0}.strip-cell:first-child{border-left:none}.strip-cell>span:first-child,.metric-label{color:#a9b7ac;font:10px/1.3 var(--mono);text-transform:uppercase;letter-spacing:.3px}.strip-cell strong{font-size:13px;line-height:1.3;font-weight:580;overflow-wrap:anywhere}.strip-cell small{color:var(--subtle);font-size:10px}.compact-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-strip .strip-cell:first-child{border:none}.zone-strip{grid-template-columns:repeat(6,minmax(0,1fr));min-height:76px}.zone-strip .strip-cell:first-child{border:none}
|
||||
.status-strip{display:grid;grid-template-columns:1.65fr repeat(4,1fr);align-items:stretch;min-height:70px;padding:10px 0;gap:0}.status-main{display:flex;flex-direction:column;justify-content:center;padding:0 20px}.status-heading{font-size:15px;display:flex;align-items:center;gap:6px;margin-bottom:3px}.status-heading .dot{width:9px;height:9px;margin-right:2px}.strip-cell{display:flex;flex-direction:column;gap:4px;justify-content:center;padding:0 17px;border-left:1px solid var(--line);min-width:0}.strip-cell:first-child{border-left:none}.strip-cell>span:first-child,.metric-label{color:#a9b7ac;font:10px/1.3 var(--mono);text-transform:uppercase;letter-spacing:.3px}.strip-cell strong{font-size:13px;line-height:1.3;font-weight:580;overflow-wrap:anywhere}.strip-cell small{color:var(--subtle);font-size:10px}.compact-strip{grid-template-columns:repeat(5,minmax(0,1fr))}.compact-strip .strip-cell:first-child{border:none}.zone-strip{grid-template-columns:repeat(6,minmax(0,1fr));min-height:76px}.zone-strip .strip-cell:first-child{border:none}
|
||||
.metrics-grid{display:grid;gap:9px;margin:13px 0}.metrics-grid.six{grid-template-columns:repeat(6,minmax(0,1fr))}.metrics-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{min-height:93px;display:flex;flex-direction:column;justify-content:center;padding:12px 14px}.metric strong{font-size:24px;font-weight:650;line-height:1.3;letter-spacing:.2px;margin-top:4px;white-space:nowrap}.metric small{font-size:11px;color:var(--muted);margin-top:3px}.metric-row{max-width:290px}
|
||||
.chart-grid{display:grid;gap:10px;margin-top:12px}.chart-grid.triple{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-card{padding-bottom:8px;min-height:256px}.chart-card .panel-head{border-bottom:none;padding:12px 14px 6px;align-items:flex-start}.chart-card canvas{display:block;width:calc(100% - 24px);height:169px;margin:7px 12px 0;image-rendering:auto}.chart-foot{padding:8px 14px 1px;font:10px var(--mono);color:#bdcbc0;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.legend-dot{display:inline-block;width:13px;height:2px;background:#aaa;vertical-align:middle}.legend-dot.cyan{background:var(--cyan)}.legend-dot.amber{background:var(--amber)}.legend-dot.red{background:var(--red)}.live-mark{font:9px var(--mono);color:#789c83;white-space:nowrap}
|
||||
.dashboard-lower{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.dashboard-lower.three-cards{margin-top:14px}.dashboard-lower>.panel{min-height:185px}.data-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--row);padding:9px 0;min-height:34px;font-size:12px}.data-row:first-child{padding-top:4px}.data-row:last-child{border-bottom:none}.data-row span{color:#bac4bc;flex-shrink:0}.data-row strong{font-weight:550;text-align:right;color:#ecf2ed;max-width:67%;min-width:0;word-break:break-word}.data-row.mono{justify-content:flex-start}.barline{display:grid;grid-template-columns:100px minmax(0,1fr) 90px;align-items:center;gap:12px;padding:8px 0;font-size:11px}.barline strong{text-align:right;font:11px var(--mono)}.bar-track{display:block;height:8px;background:#29352f;border-radius:0;overflow:hidden}.bar-fill{display:block;height:100%;background:var(--green);width:0}.bar-fill.warn{background:var(--amber)}.bar-fill.danger{background:var(--red)}.bars-large{margin-top:15px}.bars-large .barline{padding:10px 0}.notice-inline{font-size:11px;color:#adbfae;background:#14201a;border-left:2px solid #739c71;padding:11px 14px;line-height:1.5}.notice{padding:11px 15px;border:1px solid #576951;background:#1b281e;color:#ddf0d8;border-radius:2px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;line-height:1.5}.notice.danger{background:#2b1c1c;color:#ffd2cb;border-color:#855a56}.notice.warn{background:#2d2519;color:#efd1a2;border-color:#756346}.notice-dismiss{border:none;background:none;color:inherit;font-size:18px;line-height:1;cursor:pointer}.empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:12px}
|
||||
.table-scroll{overflow-x:auto;scrollbar-color:#425049 transparent;scrollbar-width:thin}.data-table{border-collapse:collapse;table-layout:auto;width:100%;white-space:nowrap;font-size:12px}.data-table th{background:#121915;color:#a8b6ab;font:10px/1.35 var(--mono);text-transform:uppercase;letter-spacing:.45px;font-weight:500;text-align:left;padding:12px 13px;border-bottom:1px solid #455149}.data-table td{padding:9px 13px;border-bottom:1px solid var(--row);color:#d9e1da;height:38px;vertical-align:middle;max-width:630px;overflow-wrap:anywhere}.data-table tbody tr:hover td{background:#17211b}.data-table tbody tr:last-child td{border-bottom:none}.data-table .empty{text-align:center;padding:26px;white-space:normal}.data-table .entity,.entity{color:#f1f7f1;font-weight:610}.entity:hover{color:var(--green)}.data-table td.rdata{max-width:560px;white-space:normal;word-break:break-word}.tag{display:inline-block;font:10px/1.35 var(--mono);border:1px solid #647b55;color:#bbddac;padding:2px 6px;border-radius:2px;text-transform:uppercase;letter-spacing:.2px}.tag.blue{border-color:#597e8d;color:#9ccfe1}.tag.red{border-color:#915c58;color:#eda9a2}.tag.amber{border-color:#917245;color:#f2cb84}.tag.muted-tag{border-color:#546158;color:#a3b0a5}.table-footer{border-top:1px solid var(--row);padding:12px 14px;display:flex;gap:10px;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;min-height:49px}.pagination-ui{display:flex;align-items:center;gap:6px}
|
||||
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 13px;border-bottom:1px solid var(--line);min-height:55px}.toolbar-form{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.toolbar-end{display:flex;align-items:center;gap:8px;flex-shrink:0}.toolbar-title h2{margin-bottom:3px}.toolbar-title p{color:var(--muted);font-size:11px}.field{width:100%;min-height:33px;border:1px solid #48564c;border-radius:2px;color:#f0f4ed;background:var(--field);padding:7px 11px;outline:none;box-shadow:none}.field:focus{border-color:#a4c493;box-shadow:0 0 0 1px #456d51}.field::placeholder{color:#77857c;opacity:1}.field[type=number]{appearance:textfield}.field[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}.field-search{width:290px}.field-select{width:145px;cursor:pointer;padding-right:20px}.toolbar .field{min-height:31px}.field-label{font-size:12px;font-weight:570;color:#cfd8cd;display:block;margin-bottom:7px}textarea.field{resize:vertical;line-height:1.6}select.field{background-color:#0d120f}.required{color:var(--amber)}
|
||||
.form-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.78fr);gap:13px;align-items:start}.policy-layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}.form-body{padding:18px}.form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-row{margin-bottom:18px}.field-row:last-child{margin-bottom:0}.field-row small{font-size:11px;color:var(--subtle);display:block;margin-top:6px}.form-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end;padding-top:18px;margin-top:11px;border-top:1px solid var(--row)}.form-actions .btn-ui{min-width:90px}.readout{display:flex;align-items:center;background:#19211b;color:#c7d1c7}.guide .panel-body p{font-size:12px;line-height:1.6;color:#b6c3b8}.guide .panel-body .data-row{font-size:11px}.guide h3{font-size:12px;margin-bottom:9px}.mode-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 14px}.code-input{min-height:250px;font:12px/1.65 var(--mono)}.code-block{background:#090f0b;border:1px solid #313f33;border-radius:2px;padding:13px;overflow:auto;max-width:100%}.code-block pre,pre.code-block{margin:0;color:#bfdbc7;font:11px/1.6 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere}.code-example{padding:10px;background:#0e1711;border:1px solid #314138;font-size:11px;line-height:2!important;color:#cbe3cd!important}.target-summary{border:1px solid #465147;background:#151e16;padding:10px 15px;margin:15px 0 20px}.confirmation-box{max-width:720px;margin:12px auto}.confirmation-box .panel-body>p{color:#becabf;line-height:1.7;margin:8px 0 20px}.confirmation-box .field{max-width:100%}.border-top{border-top:1px solid var(--line)!important}.operations-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.9fr);gap:13px;margin-top:14px}.operation{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 4px;border-bottom:1px solid var(--row)}.operation:last-child{border:0}.operation strong{display:block;font-size:12px}.operation small{display:block;font-size:11px;color:#9eada3;margin-top:4px}.operation .btn-ui{flex-shrink:0}.tabs{display:flex;align-items:center;gap:5px;margin:12px 0 14px;border-bottom:1px solid #374039;overflow-x:auto;white-space:nowrap}.tab{padding:11px 18px;display:inline-block;border-bottom:2px solid transparent;color:#bfc9bf;font-size:12px}.tab:hover{color:#fff;background:#171f1a}.tab.active{border-bottom-color:var(--green);color:#f6fff2;font-weight:640}.section-actions{display:flex;gap:9px;margin-top:14px}.pool-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:#171e19;border-bottom:1px solid var(--line)}.pool-head h3{margin-bottom:3px}.pool-head+.table-scroll{margin-bottom:5px}.response-summary{display:flex;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 16px;gap:0}.response-summary .strip-cell{flex:1}.response-summary .strip-cell:first-child{border-left:none}.danger-panel{border-color:#65413d}
|
||||
.footer{display:flex;gap:18px;justify-content:space-between;border-top:1px solid #202a23;color:#697b6e;font-size:10px;padding-top:17px;margin-top:22px}.footer span{color:#68766c}
|
||||
.footer{display:flex;justify-content:flex-end;text-align:right;border-top:1px solid #202a23;color:#697b6e;font-size:10px;padding-top:17px;margin-top:22px}
|
||||
.mobile-menu{border:1px solid var(--line);background:#142019;color:#fff;padding:5px 9px;border-radius:2px}.sidebar-overlay{display:none}
|
||||
.login-body{display:grid;place-items:center;min-height:100vh;background:#060908;padding:20px}.login-panel{width:min(440px,100%);background:#111613;border:1px solid #354237;border-radius:3px;padding:32px}.login-brand{font-size:29px;letter-spacing:-1px;font-weight:750;padding-bottom:24px;border-bottom:1px solid var(--line)}.overline{font:10px var(--mono);letter-spacing:1px;color:var(--green);margin-top:23px;margin-bottom:9px}.login-panel h1{font-size:27px;margin-bottom:8px}.login-panel .muted{color:var(--muted);line-height:1.6}.login-help{font-size:11px;color:#829185;line-height:1.6;margin:23px 0 0}
|
||||
.login-body{display:grid;place-items:center;min-height:100vh;background:#060908;padding:20px}.login-panel{width:min(440px,100%);background:#111613;border:1px solid #354237;border-radius:3px;padding:32px}.login-brand{font-size:29px;letter-spacing:-1px;font-weight:750;padding-bottom:20px;border-bottom:1px solid var(--line)}.login-panel h1{font-size:27px;margin-top:22px;margin-bottom:8px}.login-panel .muted{color:var(--muted);line-height:1.6}
|
||||
@media(max-width:1570px){.metrics-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-card canvas{height:160px}.barline{grid-template-columns:75px minmax(0,1fr) 72px}.strip-cell{padding-left:12px;padding-right:12px}}
|
||||
@media(max-width:1130px){.shell{grid-template-columns:190px minmax(0,1fr)}.dashboard-lower{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid.triple{grid-template-columns:repeat(2,minmax(0,1fr))}.form-layout{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.status-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.status-main{min-height:53px}.zone-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.operations-grid{grid-template-columns:1fr}}
|
||||
@media(max-width:820px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;transform:translateX(-100%);width:235px;transition:transform .12s ease;box-shadow:0 0 0 transparent}.sidebar.open{transform:translateX(0)}.sidebar-overlay.open{display:block;position:fixed;inset:0;background:#000b;z-index:20}.mobile-menu{display:block}.top-actions .tool-button span{display:none}.tool-button{padding:6px}.topbar{padding:0 12px}.content{padding:16px 13px}.page-head-right{display:none}.metrics-grid.six{grid-template-columns:repeat(2,minmax(0,1fr))}.status-strip,.compact-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.status-main{grid-column:span 2}.status-strip .strip-cell:nth-child(2n){border-left:0}.field-search{width:180px}.footer span{display:none}}
|
||||
@media(max-width:820px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;transform:translateX(-100%);width:235px;transition:transform .12s ease;box-shadow:0 0 0 transparent}.sidebar.open{transform:translateX(0)}.sidebar-overlay.open{display:block;position:fixed;inset:0;background:#000b;z-index:20}.mobile-menu{display:block}.top-actions .tool-button span{display:none}.tool-button{padding:6px}.topbar{padding:0 12px}.content{padding:16px 13px}.page-head-right{display:none}.metrics-grid.six{grid-template-columns:repeat(2,minmax(0,1fr))}.status-strip,.compact-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.status-main{grid-column:span 2}.status-strip .strip-cell:nth-child(2n){border-left:0}.field-search{width:180px}}
|
||||
@media(max-width:540px){.page-head h1{font-size:23px}.dashboard-lower,.chart-grid.triple,.metrics-grid.four,.metrics-grid.six,.form-columns{grid-template-columns:1fr}.toolbar-form{width:100%}.field-search{flex:1;min-width:150px}.toolbar-end{width:100%;justify-content:flex-end}.status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.zone-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.strip-cell{padding:9px 12px}.status-main{padding:8px 12px}.page-subtitle{font-size:11px}.operator-label,.desktop-only{display:none}.chart-card canvas{height:165px}}
|
||||
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
|
||||
/* Optional multi-server control room. RustProxy-inspired flat OLED components. */
|
||||
.node-picker{display:flex;align-items:center;gap:7px;margin-right:8px;max-width:300px}
|
||||
.node-picker-label{font:10px var(--mono);color:var(--subtle);letter-spacing:.5px}
|
||||
.node-picker .compact-field{min-width:155px;max-width:235px;width:100%;height:31px;padding:5px 24px 5px 8px;font-size:11px;text-overflow:ellipsis}
|
||||
.field.compact-field{min-height:31px}
|
||||
/* Selected target is explicit; fleet metrics visibly distinguish multi-node scope. */
|
||||
.active-server-context{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:-7px 0 17px;padding:9px 13px;background:#0d1511;border:1px solid #3f5146;border-left:2px solid var(--green);color:#d5e1d7;font-size:11px}
|
||||
.active-server-context strong{font-size:12px;color:#fff}
|
||||
.context-label{font:10px var(--mono);letter-spacing:.35px;color:var(--green)}
|
||||
.context-label .dot{margin-right:3px}
|
||||
.context-role{color:#a0bbaa}
|
||||
.context-target{color:#c0d0c4;overflow-wrap:anywhere}
|
||||
.context-hint{color:var(--subtle);margin-left:auto}
|
||||
@media(max-width:1160px){.context-hint{width:100%;margin-left:0}}
|
||||
@media(max-width:820px){.node-picker{gap:4px;margin-right:2px}.node-picker .compact-field{min-width:96px;max-width:154px}}
|
||||
@media(max-width:540px){.node-picker-label{display:none}.node-picker .compact-field{min-width:82px;max-width:125px}}
|
||||
.fleet-summary{display:flex;align-items:stretch;gap:0;padding:0;margin-bottom:15px;min-height:83px}
|
||||
.fleet-status{flex:2;display:flex;align-items:center;padding:16px 20px;gap:8px}
|
||||
.fleet-status strong{font-size:18px;letter-spacing:-.2px}
|
||||
.fleet-status small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
|
||||
.fleet-stat{flex:1;min-width:120px;display:flex;flex-direction:column;justify-content:center;border-left:1px solid var(--line);padding:15px 18px}
|
||||
.fleet-stat span{color:var(--subtle);font:10px var(--mono);letter-spacing:.35px}
|
||||
.fleet-stat strong{font-size:15px;font-weight:620;margin-top:5px}
|
||||
.fleet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:17px 0 10px}
|
||||
.fleet-toolbar h2{font-size:16px}
|
||||
.fleet-toolbar p{margin-top:4px}
|
||||
.topology-layout{display:grid;grid-template-columns:minmax(280px,1fr) 94px minmax(300px,1fr);gap:8px;align-items:stretch}
|
||||
.topology-column{display:flex;flex-direction:column;gap:9px;min-width:0}
|
||||
.topology-caption{font:10px var(--mono);color:var(--subtle);letter-spacing:.6px;padding:2px 4px 5px}
|
||||
.topology-connector{display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--subtle);gap:7px}
|
||||
.topology-connector span{width:1px;flex:1;background:var(--line);min-height:26px}.topology-connector small{font:10px var(--mono);color:var(--amber);white-space:nowrap}
|
||||
.node-card{padding:16px 20px;min-height:194px;display:flex;flex-direction:column;justify-content:space-between}
|
||||
.node-card-secondary{min-height:173px}
|
||||
.node-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
|
||||
.node-role{font:10px var(--mono);letter-spacing:.45px;padding:4px 6px;border:1px solid var(--line);color:var(--muted);border-radius:2px}
|
||||
.node-role.primary{border-color:#668364;color:var(--green)}.node-role.secondary{border-color:#4e7780;color:var(--cyan)}
|
||||
.node-health{font-size:12px;text-transform:capitalize;color:var(--muted)}
|
||||
.node-card h3{font-size:19px;letter-spacing:-.2px;font-weight:650;margin:9px 0 3px}
|
||||
.node-address{color:var(--subtle);font-size:11px;overflow-wrap:anywhere}
|
||||
.node-facts{display:flex;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:11px}
|
||||
.node-facts>div{flex:1;min-width:0;padding:9px 8px;border-right:1px solid var(--line)}.node-facts>div:first-child{padding-left:0}.node-facts>div:last-child{border-right:0;padding-right:0}
|
||||
.node-facts small{color:var(--subtle);font-size:10px;display:block}.node-facts strong{font-family:var(--mono);font-size:13px;display:block;margin-top:4px}
|
||||
.node-error{color:var(--red);font-size:11px;overflow-wrap:anywhere;padding-top:8px}
|
||||
.node-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px}.node-actions form,.row-actions form{margin:0}
|
||||
.node-unassigned{padding:14px;margin-top:9px;display:flex;align-items:center;gap:18px}
|
||||
.topology-disclaimer{font-size:11px;line-height:1.6;color:var(--subtle);margin:10px 3px 14px}
|
||||
.role-form{display:flex;align-items:center;gap:6px}.role-form .compact-field{min-width:120px;max-width:140px;padding:5px 9px;font-size:12px}.role-form .btn-ui{padding:5px 7px}
|
||||
.compare-field{min-width:260px;flex:1;max-width:560px}.compare-field label{display:block;margin-bottom:5px}.comparison-reference{padding:12px 16px;background:var(--panel-alt);border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
|
||||
@media(max-width:1080px){.topology-layout{grid-template-columns:minmax(230px,1fr) 50px minmax(240px,1fr)}.topology-connector small{font-size:8px}.node-picker-label{display:none}.node-picker{max-width:170px}.node-picker .compact-field{min-width:100px}}
|
||||
@media(max-width:750px){.topology-layout{grid-template-columns:1fr}.topology-connector{flex-direction:row;min-height:28px}.topology-connector span{width:100%;height:1px;min-height:1px}.topology-column{gap:8px}.fleet-summary{flex-wrap:wrap}.fleet-status{flex:1 1 100%}.fleet-stat{flex:1 1 33%;border-top:1px solid var(--line)}.fleet-toolbar{align-items:start;flex-direction:column}.node-picker{max-width:140px}.node-picker .compact-field{min-width:88px}}
|
||||
|
||||
/* Multi-server forms reuse the original compact input system. */
|
||||
.form-card{max-width:900px}.form-card .panel-body{padding:18px 20px}.form-card .field-row label{display:block;margin-bottom:7px;color:var(--text);font-weight:580}.form-card .field-row .field{width:100%}.form-card .required{color:var(--amber)}.form-card .field-row{margin-bottom:19px}.form-card .field-row small{display:block;font-size:11px;color:var(--subtle);margin-top:5px;line-height:1.5}.form-card .form-actions{margin-top:26px}
|
||||
.compare-field{margin:0}.compare-field input{width:100%}.node-card .text-link{font-size:11px}
|
||||
|
||||
/* Optional fleet settings: low-noise, standard OLED control row. */
|
||||
.panel-preferences{margin-bottom:1px}
|
||||
.preference-body{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:20px 16px}
|
||||
.preference-label{display:block;max-width:820px;cursor:pointer}
|
||||
.preference-title{display:block;font-size:13px;font-weight:640;color:var(--text);margin-bottom:5px}
|
||||
.preference-description{display:block;font-size:12px;color:var(--muted);line-height:1.6}
|
||||
.preference-controls{display:flex;align-items:center;gap:15px;flex-shrink:0}
|
||||
.preference-switch{display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--muted);font-size:12px}
|
||||
.preference-switch input{width:17px;height:17px;accent-color:var(--green);cursor:pointer}
|
||||
.preference-note{border-top:1px solid var(--line);padding:12px 16px;color:var(--subtle);font-size:11px;line-height:1.6}
|
||||
.preference-note strong{color:var(--muted)}
|
||||
@media(max-width:850px){.preference-body{align-items:flex-start;flex-direction:column;gap:16px}.preference-controls{width:100%;justify-content:space-between}}
|
||||
|
||||
/* Fleet Metrics: matching RustProxy-inspired OLED density, no decorative UI. */
|
||||
.metrics-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 15px;margin-bottom:13px;background:var(--panel)}
|
||||
.metrics-mode-description{display:flex;flex-direction:column;gap:4px;min-width:0}
|
||||
.metrics-mode-description strong{font-size:14px;line-height:1.3}
|
||||
.metrics-mode-description small{font-size:11px;color:var(--muted)}
|
||||
.metrics-mode-tabs{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);background:var(--field);flex-shrink:0}
|
||||
.metrics-mode-tabs a{color:var(--muted);font-size:12px;padding:8px 17px;border:1px solid transparent;text-align:center;min-width:90px}
|
||||
.metrics-mode-tabs a:hover{background:#1e2923;color:var(--text)}
|
||||
.metrics-mode-tabs a.is-active{background:var(--nav-active);border-color:#5a7a5d;color:#e8f4e3;font-weight:650}
|
||||
.fleet-coverage{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;min-height:53px;margin:12px 0}
|
||||
.fleet-coverage-main{display:flex;gap:9px;align-items:center;white-space:nowrap;font-size:12px}
|
||||
.fleet-coverage-description{color:var(--muted);font-size:11px;line-height:1.5;text-align:right}
|
||||
.fleet-coverage .dot{margin-right:0}
|
||||
.metric .metric-text{font-size:19px;color:var(--cyan);white-space:normal}
|
||||
.fleet-swatch{display:inline-block;width:12px;height:3px;vertical-align:middle;margin-right:9px;background:var(--cyan)}
|
||||
.fleet-color-0{background:#72cfe1}.fleet-color-1{background:#f1b42b}.fleet-color-2{background:#a5d996}.fleet-color-3{background:#ba9be6}.fleet-color-4{background:#e98b87}.fleet-color-5{background:#85a8ff}.fleet-color-6{background:#e0bf9a}.fleet-color-7{background:#75d3ad}.fleet-color-8{background:#d9a6ce}.fleet-color-9{background:#d1cc83}.fleet-color-10{background:#b4d5e9}.fleet-color-11{background:#b48c7e}.fleet-color-12{background:#a5bb7f}.fleet-color-13{background:#cc92a1}.fleet-color-14{background:#8fb5b3}.fleet-color-15{background:#c6bbd5}
|
||||
.fleet-methodology{font-size:11px}
|
||||
@media(max-width:900px){.metrics-mode-bar{flex-direction:column;align-items:stretch}.metrics-mode-tabs{align-self:flex-start}.fleet-coverage{align-items:flex-start;flex-direction:column}.fleet-coverage-description{text-align:left}}
|
||||
@media(max-width:540px){.metrics-mode-tabs{width:100%}.metrics-mode-tabs a{flex:1;min-width:0;padding:9px}.fleet-coverage-main{flex-wrap:wrap;white-space:normal}}
|
||||
@@ -9,6 +9,15 @@
|
||||
cover?.addEventListener('click', close);
|
||||
document.addEventListener('keydown', e => {if(e.key === 'Escape') close();});
|
||||
document.querySelectorAll('.notice-dismiss').forEach(el => el.addEventListener('click', () => el.closest('.notice')?.remove()));
|
||||
// Strict CSP disallows inline onchange handlers. The server selector
|
||||
// submits the CSRF-protected form immediately on selection change.
|
||||
document.querySelectorAll('select[data-switch-server]').forEach(select => {
|
||||
select.addEventListener('change', () => {
|
||||
if (!select.form || !select.value) return;
|
||||
if (typeof select.form.requestSubmit === 'function') select.form.requestSubmit();
|
||||
else select.form.submit();
|
||||
});
|
||||
});
|
||||
document.querySelectorAll('.bar-fill[data-count]').forEach(bar => {
|
||||
const count = Number(bar.dataset.count), total = Number(bar.dataset.total);
|
||||
const ratio = Number.isFinite(count) && Number.isFinite(total) && total > 0 ? 100 * count / total : 0;
|
||||
|
||||
@@ -1,55 +1,141 @@
|
||||
/* Small, dependency-free canvas telemetry renderer.
|
||||
* Draws only measured, non-synthetic EasyDNS API sample history.
|
||||
* A 15-second backend poll stores samples in process memory. */
|
||||
/* EasyDNS telemetry charts. Source: authenticated Go panel samples of the
|
||||
* existing EasyDNS GET /api/v1/stats endpoint. There is no synthetic history.
|
||||
* Fleet aggregate QPS is server-aligned and requires complete coverage. */
|
||||
(() => {
|
||||
'use strict';
|
||||
const COLORS={cyan:'#72cfe1',amber:'#f1b42b',red:'#ec8588',grid:'#303a34',muted:'#8d9d91',text:'#dce6df'};
|
||||
const chartTypes={
|
||||
queries:{series:[['queryRate','Queries / s','cyan']],unit:'/s'},
|
||||
cache:{series:[['cacheHitRate','Cache hit %','cyan']],unit:'%',range:[0,100]},
|
||||
latency:{series:[['p50ms','p50','cyan'],['p95ms','p95','amber'],['p99ms','p99','red']],unit:'ms'},
|
||||
blocked:{series:[['blocked','Blocked / s','amber']],unit:'/s'},
|
||||
responses:{series:[['noerror','NOERROR','cyan'],['nxdomain','NXDOMAIN','amber'],['servfail','SERVFAIL','red']],unit:'/s'}
|
||||
};
|
||||
let samples=[];let lastPoll='';
|
||||
function render(c){
|
||||
const type=chartTypes[c.dataset.dnsChart];if(!type)return;
|
||||
const dpr=Math.min(2,window.devicePixelRatio||1);
|
||||
const box=c.getBoundingClientRect();if(box.width<30)return;
|
||||
const width=box.width,height=box.height;
|
||||
c.width=Math.round(width*dpr);c.height=Math.round(height*dpr);
|
||||
const ctx=c.getContext('2d');if(!ctx)return;ctx.setTransform(dpr,0,0,dpr,0,0);ctx.clearRect(0,0,width,height);
|
||||
const pad={left:49,right:12,top:10,bottom:25};const pw=Math.max(5,width-pad.left-pad.right),ph=Math.max(5,height-pad.top-pad.bottom);
|
||||
const series=type.series.map(([key,label,color])=>({key,label,color:COLORS[color],vals:samples.map(s=>typeof s[key]==='number'&&Number.isFinite(s[key])?s[key]:null)}));
|
||||
const observed=series.flatMap(x=>x.vals.filter(v=>v!==null));
|
||||
ctx.font='10px ui-monospace,Consolas,monospace';ctx.textBaseline='middle';
|
||||
if(samples.length<2||observed.length<2){ctx.fillStyle=COLORS.muted;ctx.textAlign='center';ctx.fillText('Collecting live samples…',width/2,height/2-2);ctx.fillText('First rate after 2 successful polls',width/2,height/2+15);return;}
|
||||
let min=type.range?type.range[0]:0,max=type.range?type.range[1]:Math.max(...observed,0.001)*1.16;
|
||||
if(!Number.isFinite(max)||max===min)max=min+1;
|
||||
const x=i=>pad.left+pw*(i/Math.max(1,samples.length-1));
|
||||
const y=v=>pad.top+ph*(1-(v-min)/(max-min));
|
||||
ctx.textAlign='right';ctx.lineWidth=1;for(let tick=0;tick<=4;tick++){
|
||||
const value=min+(max-min)*tick/4,py=y(value);
|
||||
ctx.strokeStyle=COLORS.grid;ctx.setLineDash([2,4]);ctx.beginPath();ctx.moveTo(pad.left,py);ctx.lineTo(width-pad.right,py);ctx.stroke();
|
||||
ctx.fillStyle=COLORS.muted;const label=max<=10?value.toFixed(1):Math.round(value).toString();ctx.fillText(label+type.unit,pad.left-8,py);
|
||||
'use strict';
|
||||
const COLORS = {cyan:'#72cfe1', amber:'#f1b42b', red:'#ec8588',grid:'#303a34',muted:'#8d9d91',text:'#dce6df'};
|
||||
const NODE_COLORS = ['#72cfe1','#f1b42b','#a5d996','#ba9be6','#e98b87','#85a8ff','#e0bf9a','#75d3ad','#d9a6ce','#d1cc83','#b4d5e9','#b48c7e','#a5bb7f','#cc92a1','#8fb5b3','#c6bbd5'];
|
||||
const chartTypes = {
|
||||
queries:{series:[['queryRate','Queries / s','cyan']],unit:'/s'},
|
||||
cache:{series:[['cacheHitRate','Cache hit %','cyan']],unit:'%',range:[0,100]},
|
||||
latency:{series:[['p50ms','p50','cyan'],['p95ms','p95','amber'],['p99ms','p99','red']],unit:'ms'},
|
||||
blocked:{series:[['blocked','Blocked / s','amber']],unit:'/s'},
|
||||
responses:{series:[['noerror','NOERROR','cyan'],['nxdomain','NXDOMAIN','amber'],['servfail','SERVFAIL','red']],unit:'/s'},
|
||||
nxdomain:{series:[['nxdomain','NXDOMAIN','amber']],unit:'/s'}
|
||||
};
|
||||
const root = document.querySelector('[data-metrics-mode]');
|
||||
const mode = root?.dataset.metricsMode || 'single';
|
||||
let telemetry = {samples:[], nodes:[]};
|
||||
const canvases = [...document.querySelectorAll('canvas[data-dns-chart]')];
|
||||
if (!canvases.length) return;
|
||||
|
||||
function asPoints(samples, key) {
|
||||
return (Array.isArray(samples) ? samples : []).map(s => {
|
||||
const time = Date.parse(s.time);
|
||||
const value = s[key];
|
||||
return {time, value: typeof value === 'number' && Number.isFinite(value) ? value : null};
|
||||
}).filter(p => Number.isFinite(p.time));
|
||||
}
|
||||
ctx.setLineDash([]);ctx.textAlign='center';ctx.fillStyle=COLORS.muted;
|
||||
[0,.25,.5,.75,1].forEach(p=>{const idx=Math.min(samples.length-1,Math.round(p*(samples.length-1)));const t=new Date(samples[idx].time);if(!Number.isNaN(t.getTime()))ctx.fillText(t.toLocaleTimeString(undefined,{hour:'2-digit',minute:'2-digit'}),x(idx),height-9);});
|
||||
series.forEach(s=>{ctx.beginPath();ctx.strokeStyle=s.color;ctx.lineWidth=1.65;ctx.lineJoin='round';let connected=false;
|
||||
s.vals.forEach((v,i)=>{if(v===null){connected=false;return;}const px=x(i),py=y(v);if(!connected){ctx.moveTo(px,py);connected=true;}else{ctx.lineTo(px,py);}});ctx.stroke();
|
||||
function seriesFor(typeName) {
|
||||
const kind = chartTypes[typeName];
|
||||
if (!kind) return [];
|
||||
const nodes = Array.isArray(telemetry.nodes) ? telemetry.nodes : [];
|
||||
if (mode === 'split' || (mode === 'aggregate' && typeName === 'latency')) {
|
||||
const key = mode === 'split'
|
||||
? ({queries:'queryRate',responses:'noerror',cache:'cacheHitRate',latency:'p95ms',blocked:'blocked',nxdomain:'nxdomain'}[typeName])
|
||||
: 'p95ms';
|
||||
return nodes.map((n,i) => ({label: String(n.name || n.id || 'Server'), color: NODE_COLORS[i % NODE_COLORS.length], points: asPoints(n.samples, key)}));
|
||||
}
|
||||
return kind.series.map(([key,label,color]) => ({label, color:COLORS[color], points:asPoints(telemetry.samples, key)}));
|
||||
}
|
||||
|
||||
function render(canvas) {
|
||||
const type = chartTypes[canvas.dataset.dnsChart]; if (!type) return;
|
||||
const rect = canvas.getBoundingClientRect();
|
||||
if (rect.width < 30 || rect.height < 30) return;
|
||||
const width = rect.width, height = rect.height, dpr = Math.min(2, window.devicePixelRatio || 1);
|
||||
canvas.width = Math.round(width * dpr); canvas.height = Math.round(height * dpr);
|
||||
const ctx = canvas.getContext('2d'); if (!ctx) return;
|
||||
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
||||
ctx.clearRect(0, 0, width, height);
|
||||
const pad = {left:48,right:12,top:10,bottom:25};
|
||||
const plotW = Math.max(5,width-pad.left-pad.right), plotH = Math.max(5,height-pad.top-pad.bottom);
|
||||
const series = seriesFor(canvas.dataset.dnsChart);
|
||||
const observed = series.flatMap(s => s.points.filter(p => p.value !== null));
|
||||
ctx.font = '10px ui-monospace,Consolas,monospace'; ctx.textBaseline = 'middle';
|
||||
if (observed.length === 0) {
|
||||
ctx.fillStyle=COLORS.muted; ctx.textAlign='center';
|
||||
ctx.fillText('Collecting live samples…',width/2,height/2-4);
|
||||
ctx.fillText(mode === 'aggregate' ? 'All nodes must report fresh readings' : 'First rate after 2 successful polls',width/2,height/2+14);
|
||||
return;
|
||||
}
|
||||
const times = series.flatMap(s => s.points.map(p=>p.time));
|
||||
const start = Math.min(...times), end = Math.max(...times);
|
||||
const timeSpan = Math.max(1000,end-start);
|
||||
const x = t => pad.left + plotW * (t-start)/timeSpan;
|
||||
const min = type.range ? type.range[0] : 0;
|
||||
let max = type.range ? type.range[1] : Math.max(0.001,...observed.map(p=>p.value)) * 1.16;
|
||||
if (!Number.isFinite(max) || max <= min) max = min+1;
|
||||
const y = val => pad.top + plotH * (1 - (val-min)/(max-min));
|
||||
ctx.textAlign = 'right'; ctx.lineWidth = 1;
|
||||
for (let tick=0;tick<=4;tick++) {
|
||||
const v=min+(max-min)*tick/4, py=y(v);
|
||||
ctx.strokeStyle=COLORS.grid;ctx.setLineDash([2,4]);ctx.beginPath();ctx.moveTo(pad.left,py);ctx.lineTo(width-pad.right,py);ctx.stroke();
|
||||
ctx.fillStyle=COLORS.muted;
|
||||
ctx.fillText((max <= 10 ? v.toFixed(1) : Math.round(v).toString()) + type.unit,pad.left-8,py);
|
||||
}
|
||||
ctx.setLineDash([]);ctx.textAlign='center';ctx.fillStyle=COLORS.muted;
|
||||
[0,.25,.5,.75,1].forEach(f=>{
|
||||
const t=new Date(start+f*timeSpan);
|
||||
ctx.fillText(t.toLocaleTimeString(undefined,{hour:'2-digit',minute:'2-digit'}),x(start+f*timeSpan),height-9);
|
||||
});
|
||||
series.forEach(s => {
|
||||
ctx.beginPath(); ctx.strokeStyle=s.color; ctx.lineWidth=1.7; ctx.lineJoin='round';
|
||||
let previous=null;
|
||||
s.points.forEach(p => {
|
||||
if (p.value===null) {previous=null;return;}
|
||||
const px=x(p.time), py=y(p.value);
|
||||
// A server outage may leave a long period without any samples. Do not
|
||||
// draw a fabricated continuous line across a missing-data interval.
|
||||
if (!previous || p.time-previous.time>30000) ctx.moveTo(px,py);
|
||||
else ctx.lineTo(px,py);
|
||||
previous=p;
|
||||
});
|
||||
ctx.stroke();
|
||||
// A single measured rate is drawn as a point, never extended into a
|
||||
// synthetic line or repeated as historical data.
|
||||
const valid = s.points.filter(p=>p.value!==null);
|
||||
if (valid.length === 1) {
|
||||
ctx.beginPath();ctx.fillStyle=s.color;
|
||||
ctx.arc(x(valid[0].time),y(valid[0].value),2.5,0,Math.PI*2);ctx.fill();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function updateLegends() {
|
||||
if (mode === 'single') return; // Preserve original static per-metric legends.
|
||||
document.querySelectorAll('[data-chart-legend]').forEach(el => {
|
||||
const chartType=el.dataset.chartLegend;
|
||||
const series=seriesFor(chartType);
|
||||
el.replaceChildren();
|
||||
series.forEach(s => {
|
||||
const marker=document.createElement('span');
|
||||
marker.className='legend-dot';marker.style.background=s.color;
|
||||
const label=document.createElement('span');label.textContent=s.label;
|
||||
el.append(marker,label);
|
||||
});
|
||||
if (mode==='aggregate' && chartType!=='latency') {
|
||||
const scope=document.createElement('span');scope.className='subtle';
|
||||
scope.textContent='Complete fleet samples only'; el.append(scope);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async function poll() {
|
||||
try {
|
||||
const path='/ui/telemetry?mode='+encodeURIComponent(mode);
|
||||
const r=await fetch(path,{credentials:'same-origin',cache:'no-store',headers:{Accept:'application/json'}});
|
||||
if(!r.ok || !(r.headers.get('content-type')||'').includes('json'))return;
|
||||
const payload=await r.json();
|
||||
if (mode !== 'single' && payload.mode !== mode) return;
|
||||
telemetry={samples:Array.isArray(payload.samples)?payload.samples:[],nodes:Array.isArray(payload.nodes)?payload.nodes:[]};
|
||||
updateLegends();canvases.forEach(render);
|
||||
} catch (_) { // Keep last genuine readings; do not fill gaps with zeroes.
|
||||
}
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded',()=>{
|
||||
const observer=new ResizeObserver(()=>canvases.forEach(render));
|
||||
canvases.forEach(c=>observer.observe(c));
|
||||
poll();setInterval(poll,15000);
|
||||
});
|
||||
}
|
||||
async function poll(){
|
||||
try{
|
||||
const r=await fetch('/ui/telemetry',{credentials:'same-origin',cache:'no-store',headers:{Accept:'application/json'}});
|
||||
if(!r.ok||!(r.headers.get('content-type')||'').includes('json'))return;
|
||||
const data=await r.json();samples=Array.isArray(data.samples)?data.samples:[];lastPoll=data.lastPoll;
|
||||
document.querySelectorAll('canvas[data-dns-chart]').forEach(render);
|
||||
}catch(_){/* Missing data stays empty; never fabricate data. */}
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded',()=>{
|
||||
const canvases=document.querySelectorAll('canvas[data-dns-chart]');if(!canvases.length)return;
|
||||
const observer=new ResizeObserver(()=>canvases.forEach(render));canvases.forEach(c=>observer.observe(c));
|
||||
poll();setInterval(poll,15000);
|
||||
});
|
||||
})();
|
||||
@@ -3,14 +3,17 @@
|
||||
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="color-scheme" content="dark"><meta name="theme-color" content="#050706">
|
||||
<title>{{.Title}} · EasyDNS</title>
|
||||
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="/static/vendor/bootstrap.min.css"><link rel="stylesheet" href="/static/app.css">
|
||||
<script defer src="/static/app.js"></script><script defer src="/static/charts.js"></script>
|
||||
<link rel="icon" href="{{asset "favicon.svg"}}" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="{{asset "vendor/bootstrap.min.css"}}"><link rel="stylesheet" href="{{asset "app.css"}}">
|
||||
<script defer src="{{asset "app.js"}}"></script><script defer src="{{asset "charts.js"}}"></script>
|
||||
</head><body>
|
||||
<div class="shell">
|
||||
<aside class="sidebar" id="sidebar" aria-label="Primary navigation">
|
||||
<div class="brand"><a href="/" aria-label="EasyDNS Overview">EasyDNS</a></div>
|
||||
<div class="sidebar-content">
|
||||
{{if .MultiServer}}<div class="nav-section">FLEET</div>
|
||||
<nav class="sidenav" aria-label="Managed servers"><a {{if eq .Active "servers"}}class="active" aria-current="page"{{end}} href="/servers">Servers</a></nav>
|
||||
{{end}}
|
||||
<div class="nav-section">DNS</div>
|
||||
<nav class="sidenav" aria-label="DNS"><a {{if eq .Active "overview"}}class="active" aria-current="page"{{end}} href="/">Overview</a><a {{if eq .Active "zones"}}class="active" aria-current="page"{{end}} href="/zones">Zones</a><a {{if eq .Active "query"}}class="active" aria-current="page"{{end}} href="/query">DNS lookup</a></nav>
|
||||
<div class="nav-section">RESOLUTION & POLICY</div>
|
||||
@@ -18,17 +21,20 @@
|
||||
<div class="nav-section">MONITORING & SYSTEM</div>
|
||||
<nav class="sidenav" aria-label="Monitoring"><a {{if eq .Active "cache"}}class="active" aria-current="page"{{end}} href="/cache">Cache</a><a {{if eq .Active "metrics"}}class="active" aria-current="page"{{end}} href="/metrics">Metrics</a><a {{if eq .Active "audit"}}class="active" aria-current="page"{{end}} href="/audit">Audit log</a><a {{if eq .Active "status"}}class="active" aria-current="page"{{end}} href="/status">Server status</a><a {{if eq .Active "configuration"}}class="active" aria-current="page"{{end}} href="/configuration">Configuration</a></nav>
|
||||
</div>
|
||||
<div class="sidebar-foot"><span class="indicator"></span> Local control panel <small>EasyDNS API connection</small></div>
|
||||
<div class="sidebar-foot"><span class="indicator"></span> {{if .MultiServer}}Multi-server enabled<small>Active: {{.SelectedNode.Name}}</small>{{else}}Local control panel<small>EasyDNS API connection</small>{{end}}</div>
|
||||
</aside>
|
||||
<div class="workspace">
|
||||
<header class="topbar"><button class="mobile-menu" type="button" id="menuToggle" aria-controls="sidebar" aria-expanded="false" aria-label="Open navigation">☰</button><div class="breadcrumbs">{{.Breadcrumb}}</div>
|
||||
<div class="top-actions"><a href="https://git.linuxiarz.pl/gru/EasyDNS" target="_blank" rel="noopener noreferrer" class="tool-button"><svg class="ico"><use href="/static/icons.svg#book"/></svg><span>Documentation</span></a><a href="/audit" class="tool-button"><svg class="ico"><use href="/static/icons.svg#list"/></svg><span>Audit</span></a><a href="/configuration" class="tool-button"><svg class="ico"><use href="/static/icons.svg#settings"/></svg><span>Configuration</span></a><form method="post" action="/logout" class="inline"><input type="hidden" name="_csrf" value="{{.CSRF}}"><button type="submit" class="tool-button"><svg class="ico"><use href="/static/icons.svg#logout"/></svg><span>Sign out</span></button></form></div>
|
||||
<div class="top-actions">{{if .MultiServer}}
|
||||
<form action="/servers/select" method="post" class="node-picker" aria-label="Active EasyDNS server"><input type="hidden" name="_csrf" value="{{.CSRF}}"><input type="hidden" name="next" value="{{.CurrentPath}}"><label class="sr-only" for="active-node">Active server</label><span class="node-picker-label">SERVER</span><select class="field compact-field" id="active-node" name="server_id" data-switch-server>{{range .Nodes}}<option value="{{.ID}}" {{if eq .ID $.SelectedNode.ID}}selected{{end}}>{{.Name}} ({{.Role}})</option>{{end}}</select></form>
|
||||
{{end}}<a href="https://git.linuxiarz.pl/gru/EasyDNS" target="_blank" rel="noopener noreferrer" class="tool-button"><svg class="ico"><use href="{{asset "icons.svg"}}#book"/></svg><span>Documentation</span></a><a href="/audit" class="tool-button"><svg class="ico"><use href="{{asset "icons.svg"}}#list"/></svg><span>Audit</span></a><a href="/configuration" class="tool-button"><svg class="ico"><use href="{{asset "icons.svg"}}#settings"/></svg><span>Configuration</span></a><form method="post" action="/logout" class="inline"><input type="hidden" name="_csrf" value="{{.CSRF}}"><button type="submit" class="tool-button"><svg class="ico"><use href="{{asset "icons.svg"}}#logout"/></svg><span>Sign out</span></button></form></div>
|
||||
</header>
|
||||
<main class="content" id="main">
|
||||
<div class="page-head"><div class="page-head-left"><p class="eyebrow"><span class="indicator"></span> EasyDNS control room</p><h1>{{.Title}}</h1><p class="page-subtitle">{{.Subtitle}}</p></div><div class="page-head-right"><span class="operator-label">{{.User}}</span></div></div>
|
||||
<div class="page-head"><div class="page-head-left"><p class="eyebrow"><span class="indicator"></span> {{if .MultiServer}}Managing {{.SelectedNode.Name}} · {{.SelectedNode.Role}} label{{else}}EasyDNS control room{{end}}</p><h1>{{.Title}}</h1><p class="page-subtitle">{{.Subtitle}}</p></div><div class="page-head-right"><span class="operator-label">{{.User}}</span></div></div>
|
||||
{{if and .MultiServer (ne .Active "servers")}}<div class="active-server-context" role="status">{{if and (eq .Active "metrics") (ne .Data.MetricsMode "single")}}<span class="context-label"><span class="dot ok"></span>FLEET METRICS</span><strong>All configured servers</strong><span class="context-hint">Charts compare servers; the top selector still controls other DNS pages.</span>{{else}}<span class="context-label"><span class="dot ok"></span>ACTIVE SERVER</span><strong>{{.SelectedNode.Name}}</strong><span class="context-role">{{.SelectedNode.Role}} label</span><span class="context-target mono" title="EasyDNS API target">{{.SelectedNode.URL}}</span><span class="context-hint">All DNS data and actions on this page target this server only.</span>{{end}}</div>{{end}}
|
||||
{{if .Message}}<div class="notice {{.MessageType}}" role="alert"><span>{{.Message}}</span><button class="notice-dismiss" type="button" aria-label="Dismiss notice">×</button></div>{{end}}
|
||||
{{template "content" .}}
|
||||
<footer class="footer">EasyDNS · independent management panel <span>Only verified EasyDNS API operations are available</span></footer>
|
||||
<footer class="footer">EasyDNS · independent management panel</footer>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{{define "content"}}<div class="status-strip panel compact-strip"><div class="strip-cell"><span>CONFIGURED LISTS</span><strong>{{len .Data.Blocklists.Lists}}</strong></div><div class="strip-cell"><span>LOADED LISTS</span><strong>{{len .Data.Blocklists.Loaded}}</strong></div><div class="strip-cell"><span>ACTIVE RULES</span><strong>{{int .Data.Blocklists.Rules}}</strong></div><div class="strip-cell"><span>UPDATE INTERVAL</span><strong>{{.Data.Blocklists.UpdateInterval}}</strong></div></div>
|
||||
<section class="panel mt-panel"><div class="toolbar"><div class="toolbar-title"><h2>Configured feeds</h2><p>Rule sources and their effective enablement.</p></div><a class="btn-ui btn-primary-ui" href="/blocklists/new"><svg class="ico"><use href="/static/icons.svg#plus"/></svg>Add rule</a></div><div class="table-scroll"><table class="data-table"><thead><tr><th>NAME</th><th>CATEGORY</th><th>SOURCE FILE</th><th>REMOTE URL</th><th>ENABLED</th><th>UPDATE INTERVAL</th></tr></thead><tbody>{{range .Data.Blocklists.Lists}}<tr><td class="entity">{{string (get . "name")}}</td><td>{{string (get . "category")}}</td><td class="mono">{{string (get . "file")}}</td><td class="mono break-any">{{string (get . "url")}}</td><td>{{string (get . "enabled")}}</td><td class="mono">{{string (get . "update_interval")}}</td></tr>{{else}}<tr><td class="empty" colspan="6">No blocklist feeds configured.</td></tr>{{end}}</tbody></table></div></section>
|
||||
<section class="panel mt-panel"><div class="toolbar"><div class="toolbar-title"><h2>Configured feeds</h2><p>Rule sources and their effective enablement.</p></div><a class="btn-ui btn-primary-ui" href="/blocklists/new"><svg class="ico"><use href="{{asset "icons.svg"}}#plus"/></svg>Add rule</a></div><div class="table-scroll"><table class="data-table"><thead><tr><th>NAME</th><th>CATEGORY</th><th>SOURCE FILE</th><th>REMOTE URL</th><th>ENABLED</th><th>UPDATE INTERVAL</th></tr></thead><tbody>{{range .Data.Blocklists.Lists}}<tr><td class="entity">{{string (get . "name")}}</td><td>{{string (get . "category")}}</td><td class="mono">{{string (get . "file")}}</td><td class="mono break-any">{{string (get . "url")}}</td><td>{{string (get . "enabled")}}</td><td class="mono">{{string (get . "update_interval")}}</td></tr>{{else}}<tr><td class="empty" colspan="6">No blocklist feeds configured.</td></tr>{{end}}</tbody></table></div></section>
|
||||
<section class="panel mt-panel"><div class="panel-head"><div><h2>Remote list sync state</h2><p>Read-only update and download results</p></div></div><div class="table-scroll"><table class="data-table"><thead><tr><th>NAME</th><th>LAST SUCCESS</th><th>LAST ATTEMPT</th><th>RESULT</th><th>MESSAGE</th></tr></thead><tbody>{{range $key,$v:=.Data.Blocklists.State}}<tr><td class="mono">{{$key}}</td><td class="mono">{{string (get $v "last_success")}}</td><td class="mono">{{string (get $v "last_attempt")}}</td><td>{{string (get $v "ok")}}</td><td>{{string (get $v "message")}}</td></tr>{{else}}<tr><td class="empty" colspan="5">No remote feed sync state available.</td></tr>{{end}}</tbody></table></div></section><div class="notice-inline mt-panel">REST can add individual block rules, but cannot list/remove them individually or force a remote feed download.</div>{{end}}
|
||||
@@ -1,4 +1,15 @@
|
||||
{{define "content"}}<div class="form-layout policy-layout"><section class="panel"><div class="panel-head"><div><h2>Visible runtime configuration</h2><p>Selected runtime parameters exposed by EasyDNS</p></div></div><div class="panel-body compact"><div class="data-row"><span>Server mode</span><strong>{{.Data.Status.Mode}}</strong></div><div class="data-row"><span>Version</span><strong>{{.Data.Status.Version}}</strong></div><div class="data-row"><span>Default resolution</span><strong>{{.Data.Status.Roles.DefaultResolution}}</strong></div><div class="data-row"><span>DNSSEC validation</span><strong>{{string .Data.Status.DNSSECValidation}}</strong></div><div class="data-row"><span>Block action</span><strong>{{string (get .Data.Policies.Policy "block_action")}}</strong></div><div class="data-row"><span>API allowed clients</span><strong>{{join .Data.Policies.APIAllowedClients ", "}}</strong></div><div class="data-row"><span>Recursion allowed clients</span><strong>{{join .Data.Policies.RecursionAllowedClients ", "}}</strong></div></div>
|
||||
{{define "content"}}
|
||||
{{if .CanEditMultiServer}}
|
||||
<section class="panel panel-preferences" id="multi-server-preference">
|
||||
<div class="panel-head"><div><h2>Panel settings · Multi-server management</h2><p>Optional management of multiple independent EasyDNS installations.</p></div><span class="tag {{if .MultiServer}}green{{else}}muted-tag{{end}}">{{if .MultiServer}}ENABLED{{else}}DISABLED BY DEFAULT{{end}}</span></div>
|
||||
<form method="post" action="/configuration/multi-server" class="preference-body"><input type="hidden" name="_csrf" value="{{.CSRF}}">
|
||||
<label class="preference-label" for="enable-multiserver"><span class="preference-title">Enable multi-server management</span><span class="preference-description">Show the Servers topology, switch between installations and compare zone serials. When disabled, the panel works exactly as before with your local EasyDNS instance.</span></label>
|
||||
<div class="preference-controls"><label class="preference-switch" for="enable-multiserver"><input type="checkbox" id="enable-multiserver" name="enabled" value="on" {{if .MultiServer}}checked{{end}}><span>Enable</span></label><button type="submit" class="btn-ui btn-primary-ui">Save panel setting</button></div>
|
||||
</form>
|
||||
<div class="preference-note">This setting affects the <strong>web panel only</strong>. No DNS server configuration, AXFR/IXFR links or NOTIFY targets are changed. Previously saved remote connections are kept when the option is disabled. Remote APIs require HTTPS by default. Private-network HTTP is available only with EASYDNS_UI_ALLOW_INSECURE_HTTP=true; bearer tokens would then travel without encryption.</div>
|
||||
</section>
|
||||
{{end}}
|
||||
<div class="form-layout policy-layout{{if .CanEditMultiServer}} mt-panel{{end}}"><section class="panel"><div class="panel-head"><div><h2>Visible runtime configuration</h2><p>Selected runtime parameters exposed by EasyDNS</p></div></div><div class="panel-body compact"><div class="data-row"><span>Server mode</span><strong>{{.Data.Status.Mode}}</strong></div><div class="data-row"><span>Version</span><strong>{{.Data.Status.Version}}</strong></div><div class="data-row"><span>Default resolution</span><strong>{{.Data.Status.Roles.DefaultResolution}}</strong></div><div class="data-row"><span>DNSSEC validation</span><strong>{{string .Data.Status.DNSSECValidation}}</strong></div><div class="data-row"><span>Block action</span><strong>{{string (get .Data.Policies.Policy "block_action")}}</strong></div><div class="data-row"><span>API allowed clients</span><strong>{{join .Data.Policies.APIAllowedClients ", "}}</strong></div><div class="data-row"><span>Recursion allowed clients</span><strong>{{join .Data.Policies.RecursionAllowedClients ", "}}</strong></div></div>
|
||||
<div class="panel-head border-top"><div><h2>Hot reload</h2><p>Reload configuration from disk. EasyDNS reports errors and preserves prior active configuration.</p></div></div>
|
||||
<form method="post" action="/configuration/reload" class="form-body"><input type="hidden" name="_csrf" value="{{.CSRF}}"><label class="field-label" for="reloadConfirm">Type RELOAD to confirm</label><input class="field mono" id="reloadConfirm" name="confirm" required pattern="RELOAD" autocomplete="off" placeholder="RELOAD"><div class="form-actions"><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#refresh"/></svg>Reload EasyDNS configuration</button></div></form></section>
|
||||
<aside class="panel guide"><div class="panel-head"><h2>What this panel cannot change</h2></div><div class="panel-body"><p>The REST API does not expose arbitrary configuration file editing, token rotation, server restarts, listener updates, ACL edits or rate limiter changes.</p><div class="notice-inline">EasyDNS creates <span class="mono">control.token</span> itself when its TCP API is enabled. The Go process reads that file server-side. It is never sent to your browser.</div><p class="mt-3 muted">This page never displays the token or pretends to modify local configuration.</p></div></aside></div>{{end}}
|
||||
<form method="post" action="/configuration/reload" class="form-body"><input type="hidden" name="_csrf" value="{{.CSRF}}"><label class="field-label" for="reloadConfirm">Type RELOAD to confirm</label><input class="field mono" id="reloadConfirm" name="confirm" required pattern="RELOAD" autocomplete="off" placeholder="RELOAD"><div class="form-actions"><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#refresh"/></svg>Reload EasyDNS configuration</button></div></form></section>
|
||||
<aside class="panel guide"><div class="panel-head"><div><h2>Configuration workflow</h2><p>Apply and verify your EasyDNS changes</p></div></div><div class="panel-body"><div class="data-row"><span>1. Update DNS configuration</span><strong>On the server</strong></div><p class="muted">Edit the EasyDNS configuration on the selected host, then use Hot reload to apply it.</p><div class="data-row"><span>2. Verify the service</span><strong>Check status</strong></div><p class="muted">Confirm health, readiness, server mode and zone state after a reload.</p><div class="data-row"><span>3. Review changes</span><strong>Audit log</strong></div><p class="muted">Inspect administrative events and investigate any failed operations.</p><div class="section-actions"><a class="btn-ui" href="/status">Server status</a><a class="btn-ui" href="/audit">Audit log</a></div></div></aside></div>{{end}}
|
||||
@@ -1,4 +1,4 @@
|
||||
{{define "login"}}<!doctype html><html lang="en" data-bs-theme="dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Sign in · EasyDNS</title><link rel="stylesheet" href="/static/vendor/bootstrap.min.css"><link rel="stylesheet" href="/static/app.css"></head>
|
||||
<body class="login-body"><main class="login-panel"><div class="login-brand">EasyDNS</div><p class="overline">LOCAL CONTROL ROOM</p><h1>Sign in</h1><p class="muted mb-4">Access the EasyDNS administration panel. The EasyDNS bearer token stays on the server.</p>
|
||||
{{define "login"}}<!doctype html><html lang="en" data-bs-theme="dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Sign in · EasyDNS</title><link rel="stylesheet" href="{{asset "vendor/bootstrap.min.css"}}"><link rel="stylesheet" href="{{asset "app.css"}}"></head>
|
||||
<body class="login-body"><main class="login-panel"><div class="login-brand">EasyDNS</div><h1>Sign in</h1>
|
||||
{{with index . "Error"}}{{if .}}<div class="notice danger" role="alert">{{.}}</div>{{end}}{{end}}
|
||||
<form method="post" action="/login" autocomplete="on"><label class="field-label" for="username">Username</label><input class="field" id="username" name="username" autocomplete="username" value="{{index . "Username"}}" required><label class="field-label mt-3" for="password">Password</label><input class="field" type="password" id="password" name="password" autocomplete="current-password" required><button class="btn-ui btn-primary-ui w-100 mt-4" type="submit">Sign in</button></form><p class="login-help">Panel authentication is separate from EasyDNS REST API credentials.</p></main></body></html>{{end}}
|
||||
<form method="post" action="/login" autocomplete="on"><label class="field-label" for="username">Username</label><input class="field" id="username" name="username" autocomplete="username" value="{{index . "Username"}}" required><label class="field-label mt-3" for="password">Password</label><input class="field" type="password" id="password" name="password" autocomplete="current-password" required><button class="btn-ui btn-primary-ui w-100 mt-4" type="submit">Sign in</button></form></main></body></html>{{end}}
|
||||
@@ -1,4 +1,17 @@
|
||||
{{define "content"}}<div class="metrics-grid six"><div class="panel metric"><span class="metric-label">DNS QUERIES</span><strong>{{int .Data.Stats.QueriesTotal}}</strong><small>Cumulative counter</small></div><div class="panel metric"><span class="metric-label">CACHE HIT RATE</span><strong class="success">{{pct .Data.Stats.CacheHitRate}}</strong><small>Latest cache ratio</small></div><div class="panel metric"><span class="metric-label">P50 LATENCY</span><strong>{{ms .Data.Stats.LatencyP50S}}</strong><small>Live histogram</small></div><div class="panel metric"><span class="metric-label">P95 LATENCY</span><strong>{{ms .Data.Stats.LatencyP95S}}</strong><small>Live histogram</small></div><div class="panel metric"><span class="metric-label">P99 LATENCY</span><strong>{{ms .Data.Stats.LatencyP99S}}</strong><small>Live histogram</small></div><div class="panel metric"><span class="metric-label">RATE LIMITED</span><strong class="warning">{{int .Data.Stats.RateLimited}}</strong><small>Cumulative count</small></div></div>
|
||||
{{define "content"}}
|
||||
{{if and .MultiServer (gt (len .Nodes) 1)}}
|
||||
<div class="metrics-mode-bar panel">
|
||||
<div class="metrics-mode-description"><span class="metric-label">METRICS SCOPE</span><strong>{{if eq .Data.MetricsMode "aggregate"}}All servers · aggregate{{else if eq .Data.MetricsMode "split"}}All servers · comparison{{else}}{{.SelectedNode.Name}} · single server{{end}}</strong><small>Choose how EasyDNS samples are presented. This does not change the DNS configuration.</small></div>
|
||||
<nav class="metrics-mode-tabs" aria-label="Metrics display mode">
|
||||
<a href="/metrics?mode=aggregate" {{if eq .Data.MetricsMode "aggregate"}}class="is-active" aria-current="page"{{end}}>Aggregate</a>
|
||||
<a href="/metrics?mode=split" {{if eq .Data.MetricsMode "split"}}class="is-active" aria-current="page"{{end}}>Split</a>
|
||||
<a href="/metrics?mode=single" {{if eq .Data.MetricsMode "single"}}class="is-active" aria-current="page"{{end}}>Single</a>
|
||||
</nav>
|
||||
</div>
|
||||
{{end}}
|
||||
<div class="metrics-view" data-metrics-mode="{{.Data.MetricsMode}}">
|
||||
{{if eq .Data.MetricsMode "single"}}
|
||||
<div class="metrics-grid six"><div class="panel metric"><span class="metric-label">DNS QUERIES</span><strong>{{int .Data.Stats.QueriesTotal}}</strong><small>Cumulative counter</small></div><div class="panel metric"><span class="metric-label">CACHE HIT RATE</span><strong class="success">{{pct .Data.Stats.CacheHitRate}}</strong><small>Latest cache ratio</small></div><div class="panel metric"><span class="metric-label">P50 LATENCY</span><strong>{{ms .Data.Stats.LatencyP50S}}</strong><small>Live histogram</small></div><div class="panel metric"><span class="metric-label">P95 LATENCY</span><strong>{{ms .Data.Stats.LatencyP95S}}</strong><small>Live histogram</small></div><div class="panel metric"><span class="metric-label">P99 LATENCY</span><strong>{{ms .Data.Stats.LatencyP99S}}</strong><small>Live histogram</small></div><div class="panel metric"><span class="metric-label">RATE LIMITED</span><strong class="warning">{{int .Data.Stats.RateLimited}}</strong><small>Cumulative count</small></div></div>
|
||||
<div class="chart-grid triple"><section class="panel chart-card"><div class="panel-head"><div><h2>DNS query throughput</h2><p>Measured requests per second</p></div></div><canvas data-dns-chart="queries" role="img" aria-label="DNS query rate"></canvas><div class="chart-foot"><span class="legend-dot cyan"></span> DNS queries / s</div></section>
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>Response codes</h2><p>Rates from cumulative result counters</p></div></div><canvas data-dns-chart="responses" role="img" aria-label="DNS responses over time"></canvas><div class="chart-foot"><span class="legend-dot cyan"></span> NOERROR <span class="legend-dot amber"></span> NXDOMAIN <span class="legend-dot red"></span> SERVFAIL</div></section>
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>Cache efficiency</h2><p>Hit share calculated per poll</p></div></div><canvas data-dns-chart="cache" role="img" aria-label="Cache hit ratio"></canvas><div class="chart-foot"><span class="legend-dot cyan"></span> Cache hit %</div></section></div>
|
||||
@@ -8,4 +21,55 @@
|
||||
<div class="dashboard-lower mt-panel"><section class="panel"><div class="panel-head"><h2>Query sources</h2></div><div class="table-scroll"><table class="data-table"><thead><tr><th>SOURCE</th><th>COUNT (CUMULATIVE)</th></tr></thead><tbody>{{range $key,$v:=.Data.Stats.Sources}}<tr><td class="mono">{{$key}}</td><td class="mono right">{{int $v}}</td></tr>{{else}}<tr><td class="empty" colspan="2">No query source counters.</td></tr>{{end}}</tbody></table></div></section>
|
||||
<section class="panel"><div class="panel-head"><h2>Cache counters</h2></div><div class="panel-body compact"><div class="data-row"><span>Entries</span><strong>{{int .Data.Stats.Cache.Entries}}</strong></div><div class="data-row"><span>Hits</span><strong>{{int .Data.Stats.Cache.Hits}}</strong></div><div class="data-row"><span>Misses</span><strong>{{int .Data.Stats.Cache.Misses}}</strong></div><div class="data-row"><span>Evictions</span><strong>{{int .Data.Stats.Cache.Evictions}}</strong></div></div></section>
|
||||
<section class="panel"><div class="panel-head"><h2>Telemetry sampling</h2></div><div class="panel-body compact"><div class="data-row"><span>Samples stored in UI memory</span><strong>{{.Data.SamplingCount}}</strong></div><div class="data-row"><span>Polling frequency</span><strong>15 s</strong></div><div class="data-row"><span>Last sample</span><strong>{{if .Data.SamplingTime.IsZero}}—{{else}}{{.Data.SamplingTime.Format "15:04:05"}}{{end}}</strong></div><div class="notice-inline">No artificial 24-hour chart data. Samples are collected only while the Go service runs, and reset on restart.</div></div></section></div>
|
||||
{{else}}
|
||||
<div class="fleet-coverage panel" role="status">
|
||||
<div class="fleet-coverage-main"><span class="dot {{if eq .Data.MetricOnline .Data.MetricTotal}}ok{{else}}warn{{end}}"></span><strong>{{.Data.MetricOnline}} / {{.Data.MetricTotal}} responding</strong><span class="subtle">Current /api/v1/stats snapshot</span></div>
|
||||
<div class="fleet-coverage-description">{{if eq .Data.MetricsMode "aggregate"}}Additive counters are summed across responding servers. Charts need fresh readings from every server.{{else}}Each server has its own chart line; missing data stays missing.{{end}}</div>
|
||||
</div>
|
||||
{{if lt .Data.MetricOnline .Data.MetricTotal}}<div class="notice warn" role="status"><span>Partial data: at least one server is unavailable. Counter totals below include only responding servers. Aggregate rate charts show gaps instead of misleading reduced totals.</span></div>{{end}}
|
||||
|
||||
{{if eq .Data.MetricsMode "aggregate"}}
|
||||
<div class="metrics-grid six">
|
||||
<div class="panel metric"><span class="metric-label">RESPONDING SERVERS</span><strong>{{.Data.MetricOnline}} / {{.Data.MetricTotal}}</strong><small>Live API reachability</small></div>
|
||||
<div class="panel metric"><span class="metric-label">DNS QUERIES</span><strong>{{if .Data.MetricOnline}}{{int .Data.MetricTotals.QueriesTotal}}{{else}}—{{end}}</strong><small>Sum of current counters</small></div>
|
||||
<div class="panel metric"><span class="metric-label">WEIGHTED CACHE HIT</span><strong class="success">{{if .Data.MetricHasCache}}{{pct .Data.MetricTotals.CacheHitRate}}{{else}}—{{end}}</strong><small>Hits / total cache lookups</small></div>
|
||||
<div class="panel metric"><span class="metric-label">BLOCKED QUERIES</span><strong class="warning">{{if .Data.MetricOnline}}{{int .Data.MetricTotals.Blocked}}{{else}}—{{end}}</strong><small>Sum of counters</small></div>
|
||||
<div class="panel metric"><span class="metric-label">RATE LIMITED</span><strong>{{if .Data.MetricOnline}}{{int .Data.MetricTotals.RateLimited}}{{else}}—{{end}}</strong><small>Sum of counters</small></div>
|
||||
<div class="panel metric"><span class="metric-label">P95 LATENCY</span><strong class="metric-text">Per server</strong><small>Percentiles cannot be added</small></div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="panel mt-panel"><div class="panel-head"><div><h2>Server metrics</h2><p>Direct snapshots from each configured EasyDNS API. The selected server in the header does not filter this fleet view.</p></div></div>
|
||||
<div class="table-scroll"><table class="data-table"><thead><tr><th>SERVER</th><th>ROLE (PANEL LABEL)</th><th>API</th><th>QUERIES</th><th>CACHE HIT</th><th>P95</th><th>BLOCKED</th><th>SAMPLES</th></tr></thead><tbody>
|
||||
{{range $i, $n := .Data.MetricNodes}}<tr><td><span class="fleet-swatch fleet-color-{{$i}}"></span><strong>{{$n.Node.Name}}</strong></td><td class="upper mono subtle">{{$n.Node.Role}}</td><td>{{if $n.Available}}<span class="dot ok"></span>Responding{{else}}<span class="dot danger"></span>Unavailable{{end}}</td><td class="mono">{{if $n.Available}}{{int $n.Stats.QueriesTotal}}{{else}}—{{end}}</td><td class="mono">{{if $n.Available}}{{pct $n.Stats.CacheHitRate}}{{else}}—{{end}}</td><td class="mono">{{if $n.Available}}{{ms $n.Stats.LatencyP95S}}{{else}}—{{end}}</td><td class="mono">{{if $n.Available}}{{int $n.Stats.Blocked}}{{else}}—{{end}}</td><td class="mono">{{$n.Samples}}</td></tr>{{end}}
|
||||
</tbody></table></div></div>
|
||||
{{end}}
|
||||
|
||||
<div class="chart-grid triple">
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>DNS query throughput</h2><p>{{if eq .Data.MetricsMode "aggregate"}}Sum of per-server QPS where all servers have fresh samples{{else}}Measured QPS for each server{{end}}</p></div></div><canvas data-dns-chart="queries" role="img" aria-label="Fleet DNS query throughput"></canvas><div class="chart-foot" data-chart-legend="queries">Only real poll samples</div></section>
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>{{if eq .Data.MetricsMode "aggregate"}}Response codes{{else}}NOERROR by server{{end}}</h2><p>Per-second result counter changes</p></div></div><canvas data-dns-chart="responses" role="img" aria-label="Fleet DNS response rates"></canvas><div class="chart-foot" data-chart-legend="responses">Only real poll samples</div></section>
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>Cache efficiency</h2><p>{{if eq .Data.MetricsMode "aggregate"}}Weighted by cache hit/miss operation rates{{else}}Per-server cache hit percentage{{end}}</p></div></div><canvas data-dns-chart="cache" role="img" aria-label="Fleet DNS cache hit ratios"></canvas><div class="chart-foot" data-chart-legend="cache">Only real poll samples</div></section>
|
||||
</div>
|
||||
<div class="chart-grid triple">
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>Resolver latency p95</h2><p>Individual server p95 snapshots — never aggregated</p></div></div><canvas data-dns-chart="latency" role="img" aria-label="Resolver p95 latency by server"></canvas><div class="chart-foot" data-chart-legend="latency">Per-server observations</div></section>
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>Blocked query rate</h2><p>{{if eq .Data.MetricsMode "aggregate"}}Sum of blocked QPS{{else}}Per-server blocked QPS{{end}}</p></div></div><canvas data-dns-chart="blocked" role="img" aria-label="Blocked DNS queries by server"></canvas><div class="chart-foot" data-chart-legend="blocked">Only real poll samples</div></section>
|
||||
{{if eq .Data.MetricsMode "split"}}
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>NXDOMAIN by server</h2><p>Per-second counter changes</p></div></div><canvas data-dns-chart="nxdomain" role="img" aria-label="NXDOMAIN DNS response rates by server"></canvas><div class="chart-foot" data-chart-legend="nxdomain">Only real poll samples</div></section>
|
||||
{{else}}
|
||||
<section class="panel chart-card"><div class="panel-head"><div><h2>Response count mix</h2><p>Summed cumulative counters from responding servers</p></div></div><div class="panel-body compact bars-large">{{range $key,$v:=.Data.MetricTotals.Responses}}<div class="barline"><span class="mono upper">{{$key}}</span><div class="bar-track"><span class="bar-fill {{statusclass $key}}" data-count="{{$v}}" data-total="{{$.Data.MetricTotals.QueriesTotal}}"></span></div><strong>{{int $v}}</strong></div>{{else}}<div class="empty">No available response counters.</div>{{end}}</div></section>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
<div class="dashboard-lower mt-panel">
|
||||
<section class="panel"><div class="panel-head"><h2>{{if eq .Data.MetricsMode "aggregate"}}Summed query sources{{else}}Server sample health{{end}}</h2></div>
|
||||
{{if eq .Data.MetricsMode "aggregate"}}<div class="table-scroll"><table class="data-table"><thead><tr><th>SOURCE</th><th>COUNT</th></tr></thead><tbody>{{range $key,$v:=.Data.MetricTotals.Sources}}<tr><td class="mono">{{$key}}</td><td class="mono right">{{int $v}}</td></tr>{{else}}<tr><td colspan="2" class="empty">No source counters.</td></tr>{{end}}</tbody></table></div>
|
||||
{{else}}<div class="panel-body compact">{{range .Data.MetricNodes}}<div class="data-row"><span>{{.Node.Name}}</span><strong>{{if .LastPoll.IsZero}}Waiting for samples{{else}}{{.LastPoll.Format "15:04:05 UTC"}}{{if .LastError}} · poll failed{{end}}{{end}}</strong></div>{{end}}</div>{{end}}
|
||||
</section>
|
||||
<section class="panel"><div class="panel-head"><h2>{{if eq .Data.MetricsMode "aggregate"}}Summed cache counters{{else}}Latency by node{{end}}</h2></div>
|
||||
{{if eq .Data.MetricsMode "aggregate"}}<div class="panel-body compact"><div class="data-row"><span>Entries</span><strong>{{int .Data.MetricTotals.Cache.Entries}}</strong></div><div class="data-row"><span>Hits</span><strong>{{int .Data.MetricTotals.Cache.Hits}}</strong></div><div class="data-row"><span>Misses</span><strong>{{int .Data.MetricTotals.Cache.Misses}}</strong></div><div class="data-row"><span>Evictions</span><strong>{{int .Data.MetricTotals.Cache.Evictions}}</strong></div></div>
|
||||
{{else}}<div class="table-scroll"><table class="data-table"><thead><tr><th>SERVER</th><th>P50</th><th>P95</th><th>P99</th></tr></thead><tbody>{{range .Data.MetricNodes}}<tr><td>{{.Node.Name}}</td><td>{{if .Available}}{{ms .Stats.LatencyP50S}}{{else}}—{{end}}</td><td>{{if .Available}}{{ms .Stats.LatencyP95S}}{{else}}—{{end}}</td><td>{{if .Available}}{{ms .Stats.LatencyP99S}}{{else}}—{{end}}</td></tr>{{end}}</tbody></table></div>{{end}}
|
||||
</section>
|
||||
<section class="panel"><div class="panel-head"><h2>How fleet metrics work</h2></div><div class="panel-body compact fleet-methodology"><div class="data-row"><span>Poll interval</span><strong>15 seconds</strong></div><div class="data-row"><span>History</span><strong>Up to 6 hours, in RAM</strong></div><div class="data-row"><span>Chart gaps</span><strong>Missing or stale readings</strong></div><div class="notice-inline mt-panel">Counters reset on each DNS service restart. Cumulative totals sum each server's current counters, not a common 24-hour interval. Aggregate QPS requires every registered node; no synthetic zeros. Cache hit % is calculated from hit/miss rates. Latency percentiles are shown separately for each node.</div></div></section>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
@@ -1,3 +1,3 @@
|
||||
{{define "content"}}<div class="form-layout"><section class="panel"><div class="panel-head"><div><h2>DNS resolver diagnostic</h2><p>One-shot DNS query through this EasyDNS server</p></div></div><form method="get" action="/query" class="form-body"><div class="form-columns"><div class="field-row"><label for="qname" class="field-label">Domain name <span class="required">*</span></label><input id="qname" class="field mono" name="name" value="{{selectval .Data.Form "name"}}" required placeholder="example.org"></div><div class="field-row"><label for="qtype" class="field-label">Record type</label><select id="qtype" class="field" name="type">{{range recordTypes}}<option value="{{.}}" {{if eq . (selectval $.Data.Form "type")}}selected{{end}}>{{.}}</option>{{end}}</select></div></div><div class="form-actions"><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#search"/></svg>Run lookup</button></div></form>
|
||||
{{define "content"}}<div class="form-layout"><section class="panel"><div class="panel-head"><div><h2>DNS resolver diagnostic</h2><p>One-shot DNS query through this EasyDNS server</p></div></div><form method="get" action="/query" class="form-body"><div class="form-columns"><div class="field-row"><label for="qname" class="field-label">Domain name <span class="required">*</span></label><input id="qname" class="field mono" name="name" value="{{selectval .Data.Form "name"}}" required placeholder="example.org"></div><div class="field-row"><label for="qtype" class="field-label">Record type</label><select id="qtype" class="field" name="type">{{range recordTypes}}<option value="{{.}}" {{if eq . (selectval $.Data.Form "type")}}selected{{end}}>{{.}}</option>{{end}}</select></div></div><div class="form-actions"><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#search"/></svg>Run lookup</button></div></form>
|
||||
{{if .Data.Query}}<div class="response-summary"><div class="strip-cell"><span>RESPONSE CODE</span><strong class="{{statusclass .Data.Query.RCode}}">{{.Data.Query.RCode}}</strong></div><div class="strip-cell"><span>AUTHORITATIVE</span><strong>{{if .Data.Query.AA}}Yes{{else}}No{{end}}</strong></div><div class="strip-cell"><span>TIME</span><strong>{{float .Data.Query.ElapsedMS}} ms</strong></div></div><div class="panel-head"><h2>Answer section</h2></div><div class="table-scroll"><table class="data-table"><thead><tr><th>NAME</th><th>TYPE</th><th>TTL</th><th>RDATA</th></tr></thead><tbody>{{range .Data.Query.Answers}}<tr><td class="mono">{{.Name}}</td><td><span class="tag green">{{.Type}}</span></td><td>{{.TTL}}</td><td class="mono">{{.Data}}</td></tr>{{else}}<tr><td class="empty" colspan="4">No answer records.</td></tr>{{end}}</tbody></table></div><div class="panel-head"><h2>Authority section</h2></div><div class="table-scroll"><table class="data-table"><thead><tr><th>NAME</th><th>TYPE</th><th>TTL</th><th>RDATA</th></tr></thead><tbody>{{range .Data.Query.Authority}}<tr><td class="mono">{{.Name}}</td><td><span class="tag blue">{{.Type}}</span></td><td>{{.TTL}}</td><td class="mono">{{.Data}}</td></tr>{{else}}<tr><td class="empty" colspan="4">No authority records returned.</td></tr>{{end}}</tbody></table></div>{{end}}</section>
|
||||
<aside class="panel guide"><div class="panel-head"><h2>Diagnostics</h2></div><div class="panel-body"><p>The query is sent through the actual EasyDNS listener using the server API. It is not an external DNS testing service.</p><div class="data-row"><span>Query history</span><strong>Unavailable</strong></div><div class="data-row"><span>Live lookup</span><strong class="success">Supported</strong></div><div class="notice-inline mt-panel">The EasyDNS API defaults an unrecognized type to A. This UI limits the type selector to recognized values.</div></div></aside></div>{{end}}
|
||||
@@ -3,6 +3,6 @@
|
||||
<div class="form-columns"><div class="field-row"><label class="field-label" for="recordName">Record name <span class="required">*</span></label><input class="field mono" id="recordName" name="name" required value="{{selectval .Data.Form "name"}}" placeholder="www or @"><small>@ for zone apex; relative names are allowed.</small></div><div class="field-row"><label class="field-label" for="recordType">Record type <span class="required">*</span></label><select class="field" name="type" id="recordType" required><option value="">Select record type</option>{{range recordTypes}}<option value="{{.}}" {{if eq (selectval $.Data.Form "type") .}}selected{{end}} {{if eq . "SOA"}}disabled{{end}}>{{.}}</option>{{end}}</select><small>SOA changes require whole-zone replacement.</small></div></div>
|
||||
<div class="field-row"><label class="field-label" for="recordData">Record data (RDATA) <span class="required">*</span></label><textarea id="recordData" class="field mono" name="data" rows="4" required placeholder="192.0.2.10">{{selectval .Data.Form "data"}}</textarea><small>Use the syntax expected for the selected RR type; Rust validates exact RDATA format.</small></div>
|
||||
<div class="form-columns"><div class="field-row"><label class="field-label" for="recordTTL">TTL in seconds <span class="required">*</span></label><input class="field mono" id="recordTTL" name="ttl" type="number" min="0" max="4294967295" required value="{{selectval .Data.Form "ttl"}}"><small>0–4,294,967,295. Default: 3600.</small></div><div class="field-row"><label class="field-label">Current zone serial</label><div class="field readout mono">{{.Data.Zone.SerialText}}</div><small>Changes to the serial may trigger HTTP 412.</small></div></div>
|
||||
<div class="form-actions"><a href="{{.Data.ZoneURL}}/records" class="btn-ui">Cancel</a><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#save"/></svg>{{if eq .Data.Action "edit"}}Save changes{{else}}Add record{{end}}</button></div></form>{{else}}<div class="panel-body"><div class="notice-inline">This zone is secondary or unavailable. Record modifications are not allowed.</div></div>{{end}}</section>
|
||||
<div class="form-actions"><a href="{{.Data.ZoneURL}}/records" class="btn-ui">Cancel</a><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#save"/></svg>{{if eq .Data.Action "edit"}}Save changes{{else}}Add record{{end}}</button></div></form>{{else}}<div class="panel-body"><div class="notice-inline">This zone is secondary or unavailable. Record modifications are not allowed.</div></div>{{end}}</section>
|
||||
<aside class="panel guide"><div class="panel-head"><h2>Write behavior</h2></div><div class="panel-body"><p>This form uses an existing EasyDNS operation. There is no record-details endpoint; edits are populated from the record list.</p><div class="data-row"><span>Change conflict</span><strong>412</strong></div><div class="data-row"><span>Validation error</span><strong>400 / 422</strong></div><div class="data-row"><span>Secondary zone</span><strong>409</strong></div><div class="notice-inline mt-panel">The server may assign a different record ID after changing the name, type or value.</div></div></aside>
|
||||
</div>{{end}}
|
||||
@@ -0,0 +1,11 @@
|
||||
{{define "content"}}
|
||||
<section class="panel"><div class="panel-head"><div><h2>Compare SOA serials</h2><p>Read-only lookup of the same zone on each managed EasyDNS server.</p></div><a class="btn-ui btn-small" href="/servers">Back to servers</a></div>
|
||||
<div class="panel-body"><form class="toolbar" method="get" action="/servers/compare"><div class="field-row compare-field"><label for="compare-zone">Zone name</label><input class="field mono" id="compare-zone" name="zone" value="{{.Data.CompareZone}}" placeholder="example.com." maxlength="253" required></div><button type="submit" class="btn-ui btn-primary-ui">Compare zone</button></form></div>
|
||||
{{if .Data.Comparisons}}<div class="comparison-reference">{{if .Data.PrimarySerial}}Reference: Primary label · serial <strong class="mono">{{.Data.PrimarySerial}}</strong>{{else}}Primary reference serial unavailable. This comparison cannot determine whether serials match the Primary node.{{end}}</div>
|
||||
<div class="table-scroll"><table class="data-table"><thead><tr><th>SERVER</th><th>PANEL LABEL</th><th>REPORTED ZONE ROLE</th><th>SOA SERIAL</th><th>ZONE STATE</th><th>VERSUS PRIMARY LABEL</th><th class="right">ACTION</th></tr></thead><tbody>
|
||||
{{range .Data.Comparisons}}<tr><td class="entity">{{.Node.Name}}</td><td><span class="tag {{if eq .Node.Role "primary"}}green{{else}}muted-tag{{end}}">{{.Node.Role}}</span></td><td>{{if .Present}}{{.Zone.Kind}}{{else}}—{{end}}</td><td class="mono">{{.Serial}}</td><td>{{if .Present}}<span class="dot {{if or .Zone.Expired (not .Zone.Loaded)}}warn{{else}}ok{{end}}"></span>{{.Zone.StateText}}{{else}}<span class="muted">{{.Error}}</span>{{end}}</td><td>{{if .Present}}{{if $.Data.PrimarySerial}}{{if .MatchesPrimary}}<span class="success">Serial matches</span>{{else}}<span class="warning">Serial differs</span>{{end}}{{else}}<span class="subtle">No primary reference</span>{{end}}{{else}}—{{end}}</td><td class="right">{{if .Present}}<form method="post" action="/servers/select"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><input type="hidden" name="server_id" value="{{.Node.ID}}"><input type="hidden" name="next" value="{{zoneurl $.Data.CompareZone}}"><button type="submit" class="btn-ui btn-small">Open zone</button></form>{{else}}—{{end}}</td></tr>{{end}}
|
||||
</tbody></table></div>
|
||||
{{else}}<div class="panel-body"><p class="muted">Enter a DNS zone to inspect its state and serial number on every configured server. This uses the native <span class="mono">GET /api/v1/zones/{zone}</span> endpoint on each instance.</p></div>{{end}}
|
||||
</section>
|
||||
<div class="notice-inline mt-panel">Different SOA serials are an observation, not proof of a failed transfer: clocks, propagation, refresh intervals, and RFC 1982 serial arithmetic may matter. This panel does not initiate replication automatically. Open a secondary zone to use its existing “Sync now” operation.</div>
|
||||
{{end}}
|
||||
@@ -0,0 +1,13 @@
|
||||
{{define "content"}}
|
||||
<div class="form-layout">
|
||||
<section class="panel form-card"><div class="panel-head"><div><h2>Remote EasyDNS connection</h2><p>Add an existing installation. The server's DNS configuration is not modified.</p></div><span class="tag green">PANEL ONLY</span></div>
|
||||
<div class="panel-body"><form method="post" action="/servers" autocomplete="off"><input type="hidden" name="_csrf" value="{{.CSRF}}">
|
||||
<div class="field-row"><label for="node-name">Display name <strong class="required">*</strong></label><input class="field" id="node-name" name="name" maxlength="64" required placeholder="dns-secondary-01" value="{{selectval .Data.Form "name"}}"><small>Only used in the EasyDNS web panel.</small></div>
|
||||
<div class="field-row"><label for="node-role">Topology label <strong class="required">*</strong></label><select class="field" id="node-role" name="role"><option value="secondary" {{if eq (selectval .Data.Form "role") "secondary"}}selected{{end}}>Secondary</option><option value="primary" {{if eq (selectval .Data.Form "role") "primary"}}selected{{end}}>Primary</option><option value="unassigned" {{if eq (selectval .Data.Form "role") "unassigned"}}selected{{end}}>Unassigned</option></select><small>Display label only. Does not convert zones or set up replication.</small></div>
|
||||
<div class="field-row"><label for="node-url">EasyDNS API base URL <strong class="required">*</strong></label><input class="field mono" id="node-url" name="url" type="url" required placeholder="https://dns-secondary-01.example.net:9953" value="{{selectval .Data.Form "url"}}"><small>Remote URLs must use HTTPS with a trusted certificate. HTTP is allowed only on 127.0.0.1, ::1, or localhost (e.g., over an SSH tunnel). No path.</small></div>
|
||||
<div class="field-row"><label for="node-token">Generated EasyDNS control token <strong class="required">*</strong></label><input class="field mono" id="node-token" name="token" type="password" required minlength="1" maxlength="4096" spellcheck="false" autocomplete="new-password" placeholder="Paste the token from the remote EasyDNS installation"><small>Stored in a private server-side file (0600); never returned to the browser or rendered in this form.</small></div>
|
||||
<div class="form-actions"><a class="btn-ui" href="/servers">Cancel</a><button class="btn-ui btn-primary-ui" type="submit">Save connection</button></div>
|
||||
</form></div></section>
|
||||
<aside class="panel guide"><div class="panel-head"><h2>Before connecting</h2></div><div class="panel-body"><div class="data-row"><span>1. Install EasyDNS</span><strong>Each server</strong></div><p class="muted">Each remote server must run its own EasyDNS REST API and use its own generated control token.</p><div class="data-row"><span>2. Secure transport</span><strong>TLS or tunnel</strong></div><p class="muted">Protect the REST API behind an authenticated TLS endpoint or a private loopback tunnel. Never expose plain HTTP and bearer credentials over a network.</p><div class="data-row"><span>3. Configure DNS roles</span><strong>Outside panel</strong></div><p class="muted">Primary zones, secondary zones, source addresses, transfer ACLs and NOTIFY targets remain native EasyDNS configuration.</p><div class="data-row"><span>4. Review status</span><strong>Servers</strong></div><p class="muted">After saving, the Servers page probes each node and shows its actual health and zone counts.</p></div></aside>
|
||||
</div>
|
||||
{{end}}
|
||||
@@ -0,0 +1,6 @@
|
||||
{{define "content"}}
|
||||
<section class="panel form-card"><div class="panel-head"><div><h2>Remove managed connection</h2><p>No action is sent to EasyDNS. Only this panel's connection metadata and stored bearer token are removed.</p></div><span class="tag danger">REMOVE</span></div>
|
||||
<div class="panel-body"><div class="data-row"><span>Name</span><strong>{{.Data.ManagedNode.Name}}</strong></div><div class="data-row"><span>Endpoint</span><strong class="mono">{{.Data.ManagedNode.URL}}</strong></div><div class="data-row"><span>Panel role</span><strong>{{.Data.ManagedNode.Role}}</strong></div>
|
||||
<form method="post" action="/servers/{{.Data.ManagedNode.ID}}/remove" autocomplete="off"><input type="hidden" name="_csrf" value="{{.CSRF}}"><div class="field-row mt-4"><label for="confirm-name">Type <strong class="mono">{{.Data.ManagedNode.Name}}</strong> to confirm</label><input class="field" id="confirm-name" name="confirm_name" required spellcheck="false"></div><div class="form-actions"><a href="/servers" class="btn-ui">Cancel</a><button type="submit" class="btn-ui btn-danger-ui">Remove connection</button></div></form>
|
||||
</div></section>
|
||||
{{end}}
|
||||
@@ -0,0 +1,40 @@
|
||||
{{define "content"}}
|
||||
<div class="fleet-summary panel">
|
||||
<div class="fleet-status"><span class="dot {{if eq .Data.ServerHealthy (len .Data.ServerProbes)}}ok{{else}}warn{{end}}"></span><div><strong>{{.Data.ServerHealthy}} / {{len .Data.ServerProbes}} responding</strong><small>Live checks: GET /api/v1/health and GET /api/v1/status on every configured installation</small></div></div>
|
||||
<div class="fleet-stat"><span>MANAGED SERVERS</span><strong>{{len .Data.ServerProbes}}</strong></div>
|
||||
<div class="fleet-stat"><span>TOPOLOGY</span><strong>Operator-defined</strong></div>
|
||||
<div class="fleet-stat"><span>REPLICATION</span><strong>Native DNS transfers</strong></div>
|
||||
</div>
|
||||
<div class="fleet-toolbar">
|
||||
<div><h2>Topology</h2><p class="muted tiny">Primary and Secondary are panel labels. The real DNS role is reported separately per installation.</p></div>
|
||||
<div class="toolbar-end"><a class="btn-ui" href="/servers/compare"><svg class="ico"><use href="{{asset "icons.svg"}}#search"/></svg> Compare zone serials</a><a class="btn-ui btn-primary-ui" href="/servers/new"><svg class="ico"><use href="{{asset "icons.svg"}}#plus"/></svg>Add server</a></div>
|
||||
</div>
|
||||
<div class="topology-layout">
|
||||
<div class="topology-column"><p class="topology-caption">PRIMARY · MANAGEMENT LABEL</p>
|
||||
{{range .Data.ServerProbes}}{{if eq .Node.Role "primary"}}
|
||||
<article class="node-card panel" aria-label="Primary node {{.Node.Name}}"><div class="node-card-top"><span class="node-role primary">PRIMARY</span><span class="node-health"><span class="dot {{if eq .State "healthy"}}ok{{else if eq .State "degraded"}}warn{{else}}danger{{end}}"></span>{{.State}}</span></div>
|
||||
<h3>{{.Node.Name}}</h3><p class="mono node-address">{{.Node.URL}}</p>
|
||||
<div class="node-facts"><div><small>Server version</small><strong>{{if .Status.Version}}{{.Status.Version}}{{else}}Unavailable{{end}}</strong></div><div><small>Actual primary zones</small><strong>{{.Status.Roles.Primary}}</strong></div><div><small>Actual secondary zones</small><strong>{{.Status.Roles.Secondary}}</strong></div></div>
|
||||
{{if .Error}}<p class="node-error">{{.Error}}</p>{{end}}
|
||||
<div class="node-actions"><form action="/servers/select" method="post"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><input type="hidden" name="server_id" value="{{.Node.ID}}"><input type="hidden" name="next" value="/"><button class="btn-ui" type="submit">Manage server</button></form><a class="text-link" href="#server-inventory">Details ↓</a></div></article>
|
||||
{{end}}{{end}}
|
||||
</div>
|
||||
<div class="topology-connector" aria-hidden="true"><span></span><small>AXFR / IXFR*</small><span></span></div>
|
||||
<div class="topology-column"><p class="topology-caption">SECONDARIES · MANAGEMENT LABEL</p>
|
||||
{{range .Data.ServerProbes}}{{if eq .Node.Role "secondary"}}
|
||||
<article class="node-card node-card-secondary panel" aria-label="Secondary node {{.Node.Name}}"><div class="node-card-top"><span class="node-role secondary">SECONDARY</span><span class="node-health"><span class="dot {{if eq .State "healthy"}}ok{{else if eq .State "degraded"}}warn{{else}}danger{{end}}"></span>{{.State}}</span></div>
|
||||
<h3>{{.Node.Name}}</h3><p class="mono node-address">{{.Node.URL}}</p><div class="node-facts"><div><small>Version</small><strong>{{if .Status.Version}}{{.Status.Version}}{{else}}Unavailable{{end}}</strong></div><div><small>Actual secondary zones</small><strong>{{.Status.Roles.Secondary}}</strong></div><div><small>Actual primary zones</small><strong>{{.Status.Roles.Primary}}</strong></div></div>
|
||||
{{if .Error}}<p class="node-error">{{.Error}}</p>{{end}}
|
||||
<div class="node-actions"><form action="/servers/select" method="post"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><input type="hidden" name="server_id" value="{{.Node.ID}}"><input type="hidden" name="next" value="/"><button class="btn-ui" type="submit">Manage server</button></form></div></article>
|
||||
{{end}}{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{range .Data.ServerProbes}}{{if eq .Node.Role "unassigned"}}<section class="node-unassigned panel"><span class="tag muted-tag">UNASSIGNED</span> <strong>{{.Node.Name}}</strong> <span class="muted">{{.State}} · {{.Node.URL}}</span></section>{{end}}{{end}}
|
||||
<p class="topology-disclaimer">* Diagram indicates the intended topology, not a detected transfer connection. EasyDNS primary/secondary zone relationships must be configured on the DNS servers. The UI cannot create secondary zones through REST.</p>
|
||||
<section class="panel mt-panel" id="server-inventory"><div class="panel-head"><div><h2>Managed installations</h2><p>Change local display roles, switch context, or remove a remote connection. These actions do not reconfigure DNS.</p></div></div>
|
||||
<div class="table-scroll"><table class="data-table"><thead><tr><th>SERVER</th><th>API URL</th><th>STATUS</th><th>PRIMARY ZONES*</th><th>SECONDARY ZONES*</th><th>LABEL</th><th class="right">ACTIONS</th></tr></thead><tbody>
|
||||
{{range .Data.ServerProbes}}<tr><td class="entity">{{.Node.Name}}{{if .Node.Local}}<span class="tag muted-tag ms-2">LOCAL</span>{{else}}<span class="tag muted-tag ms-2">REMOTE</span>{{end}}</td><td class="mono muted">{{.Node.URL}}</td><td><span class="dot {{if eq .State "healthy"}}ok{{else if eq .State "degraded"}}warn{{else}}danger{{end}}"></span>{{.State}}</td><td class="mono">{{if eq .State "offline"}}—{{else}}{{.Status.Roles.Primary}}{{end}}</td><td class="mono">{{if eq .State "offline"}}—{{else}}{{.Status.Roles.Secondary}}{{end}}</td><td>{{if or .Node.Managed (and .Node.Local $.LocalRoleConfigured)}}<span class="subtle">{{if eq .Node.Role "primary"}}Primary{{else if eq .Node.Role "secondary"}}Secondary{{else}}Unassigned{{end}}</span>{{else}}<form action="/servers/{{.Node.ID}}/role" method="post" class="role-form"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><label class="sr-only" for="role-{{.Node.ID}}">Label for {{.Node.Name}}</label><select class="field compact-field" id="role-{{.Node.ID}}" name="role"><option value="primary" {{if eq .Node.Role "primary"}}selected{{end}}>Primary</option><option value="secondary" {{if eq .Node.Role "secondary"}}selected{{end}}>Secondary</option><option value="unassigned" {{if eq .Node.Role "unassigned"}}selected{{end}}>Unassigned</option></select><button class="btn-ui btn-small" type="submit">Save</button></form>{{end}}</td><td class="right"><div class="row-actions"><form method="post" action="/servers/select"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><input type="hidden" name="server_id" value="{{.Node.ID}}"><input type="hidden" name="next" value="/"><button type="submit" class="btn-ui btn-small">Open</button></form>{{if and (not .Node.Local) (not .Node.Managed)}}<a href="/servers/{{.Node.ID}}/remove" class="btn-ui btn-small btn-danger-ui">Remove</a>{{end}}</div></td></tr>
|
||||
{{end}}
|
||||
</tbody></table></div></section>
|
||||
<div class="notice-inline mt-panel">* Zone counts are read from each server's actual <span class="mono">/api/v1/status</span> response. An offline node's DNS role cannot be verified. No cluster quorum, leader election, or automated replication is implied.</div>
|
||||
{{end}}
|
||||
@@ -1,4 +1,4 @@
|
||||
{{define "content"}}<section class="panel"><div class="toolbar"><div class="toolbar-title"><h2>Resolver pools</h2><p>Runtime upstream health and forwarding strategy.</p></div><a class="btn-ui btn-primary-ui" href="/upstreams/new"><svg class="ico"><use href="/static/icons.svg#plus"/></svg>Add upstream</a></div>
|
||||
{{define "content"}}<section class="panel"><div class="toolbar"><div class="toolbar-title"><h2>Resolver pools</h2><p>Runtime upstream health and forwarding strategy.</p></div><a class="btn-ui btn-primary-ui" href="/upstreams/new"><svg class="ico"><use href="{{asset "icons.svg"}}#plus"/></svg>Add upstream</a></div>
|
||||
{{range .Data.Upstreams}}<div class="pool-head"><div><h3>{{.Group}}</h3><span class="subtle">Strategy: {{.Strategy}}</span></div><span class="tag blue">{{len .Servers}} servers</span></div><div class="table-scroll"><table class="data-table"><thead><tr><th>ADDRESS</th><th>HEALTH</th><th>QUERIES</th><th>FAILURES</th><th>EWMA RTT</th><th>CIRCUIT</th><th>LAST ERROR</th></tr></thead><tbody>
|
||||
{{range .Servers}}<tr><td class="mono entity">{{.Address}}</td><td><span class="dot {{if .Stats.Healthy}}ok{{else}}warn{{end}}"></span>{{if .Stats.Healthy}}Healthy{{else}}Unavailable{{end}}</td><td class="mono">{{int .Stats.Queries}}</td><td class="mono">{{int .Stats.Failures}}</td><td class="mono">{{if .Stats.EWMARTTMS}}{{float .Stats.EWMARTTMS}} ms{{else}}—{{end}}</td><td class="mono">{{if .Stats.CircuitOpenForMS}}Open{{else}}Closed / unknown{{end}}</td><td class="muted">{{if .Stats.LastError}}{{.Stats.LastError}}{{else}}—{{end}}</td></tr>{{else}}<tr><td class="empty" colspan="7">No servers in this pool.</td></tr>{{end}}
|
||||
</tbody></table></div>{{else}}<div class="empty">No upstream groups returned by EasyDNS.</div>{{end}}</section><div class="notice-inline mt-panel">The API supports adding an upstream address, but does not provide a REST method to edit or remove upstreams or reorder pools.</div>{{end}}
|
||||
@@ -5,5 +5,5 @@
|
||||
{{if eq .Data.Action "import"}}<div class="field-row"><label class="field-label" for="zoneFile">Complete zone file <span class="required">*</span></label><textarea id="zoneFile" class="field mono code-input" name="zone_file" rows="13" spellcheck="false" required placeholder="$TTL 3600 @ IN SOA ns1.example.org. hostmaster.example.org. 1 3600 900 1209600 300 @ IN NS ns1.example.org.">{{selectval .Data.Form "zone_file"}}</textarea><small>Paste original zone file content you own. EasyDNS does not expose zone files for download via REST.</small></div>
|
||||
{{else}}<div class="field-row"><label class="field-label" for="zoneNS">Nameservers <span class="required">*</span></label><textarea id="zoneNS" class="field mono" name="ns" rows="4" placeholder="ns1.example.org. ns2.example.org." required>{{selectval .Data.Form "ns"}}</textarea><small>One FQDN per line; the API generates a minimal SOA/NS zone.</small></div><div class="field-row"><label class="field-label" for="hostmaster">SOA hostmaster</label><input id="hostmaster" class="field mono" name="hostmaster" value="{{selectval .Data.Form "hostmaster"}}" placeholder="hostmaster.example.org."></div>{{end}}
|
||||
<div class="form-columns"><div class="field-row"><label class="field-label" for="transferAcl">Transfer ACL (optional)</label><textarea class="field mono" id="transferAcl" name="transfer_acl" rows="3" placeholder="192.0.2.0/24">{{selectval .Data.Form "transfer_acl"}}</textarea><small>Networks, one per line.</small></div><div class="field-row"><label class="field-label" for="notify">NOTIFY targets (optional)</label><textarea class="field mono" id="notify" name="notify" rows="3" placeholder="192.0.2.20:53">{{selectval .Data.Form "notify"}}</textarea><small>IP:port socket addresses, one per line.</small></div></div>
|
||||
<div class="form-actions"><a href="/zones" class="btn-ui">Cancel</a><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#plus"/></svg>Create primary zone</button></div>
|
||||
<div class="form-actions"><a href="/zones" class="btn-ui">Cancel</a><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#plus"/></svg>Create primary zone</button></div>
|
||||
</form></section><aside class="panel guide"><div class="panel-head"><h2>Creation details</h2></div><div class="panel-body"><p>This is a configuration-changing operation. EasyDNS validates the zone, persists it in the API overlay and reloads the runtime.</p><div class="data-row"><span>Already exists</span><strong>409</strong></div><div class="data-row"><span>Invalid zone file</span><strong>422</strong></div><div class="data-row"><span>Invalid request</span><strong>400</strong></div><div class="notice-inline mt-panel">The nameservers/hostmaster form does not create secondary zones.</div></div></aside></div>{{end}}
|
||||
@@ -22,10 +22,10 @@
|
||||
</div>
|
||||
<div class="section-actions"><a class="btn-ui btn-primary-ui" href="{{.Data.ZoneURL}}/records">View DNS records</a><a class="btn-ui" href="{{.Data.ZoneURL}}/transfers">Transfer history</a><a class="btn-ui" href="{{.Data.ZoneURL}}/operations">Zone operations</a></div>
|
||||
{{else if eq .Data.Tab "records"}}
|
||||
<section class="panel"><div class="toolbar"><form class="toolbar-form" method="get" action="{{.Data.ZoneURL}}/records"><input class="field field-search" name="name" placeholder="Record name begins with..." aria-label="Filter record names" value="{{selectval .Data.Filter "name"}}"><select class="field field-select" aria-label="Record type" name="type"><option value="">All types</option>{{range $type := recordTypes}}<option value="{{$type}}" {{if eq (selectval $.Data.Filter "type") $type}}selected{{end}}>{{$type}}</option>{{end}}</select><button type="submit" class="btn-ui"><svg class="ico"><use href="/static/icons.svg#search"/></svg>Filter</button></form>
|
||||
<div class="toolbar-end"><span class="subtle desktop-only">{{.Data.Pagination.Total}} records</span>{{if .Data.IsPrimary}}<a class="btn-ui btn-primary-ui" href="{{.Data.ZoneURL}}/records/new"><svg class="ico"><use href="/static/icons.svg#plus"/></svg>Add record</a>{{else}}<span class="tag muted-tag">Secondary · read-only</span>{{end}}</div></div>
|
||||
<section class="panel"><div class="toolbar"><form class="toolbar-form" method="get" action="{{.Data.ZoneURL}}/records"><input class="field field-search" name="name" placeholder="Record name begins with..." aria-label="Filter record names" value="{{selectval .Data.Filter "name"}}"><select class="field field-select" aria-label="Record type" name="type"><option value="">All types</option>{{range $type := recordTypes}}<option value="{{$type}}" {{if eq (selectval $.Data.Filter "type") $type}}selected{{end}}>{{$type}}</option>{{end}}</select><button type="submit" class="btn-ui"><svg class="ico"><use href="{{asset "icons.svg"}}#search"/></svg>Filter</button></form>
|
||||
<div class="toolbar-end"><span class="subtle desktop-only">{{.Data.Pagination.Total}} records</span>{{if .Data.IsPrimary}}<a class="btn-ui btn-primary-ui" href="{{.Data.ZoneURL}}/records/new"><svg class="ico"><use href="{{asset "icons.svg"}}#plus"/></svg>Add record</a>{{else}}<span class="tag muted-tag">Secondary · read-only</span>{{end}}</div></div>
|
||||
<div class="table-scroll"><table class="data-table"><thead><tr><th>NAME</th><th>TYPE</th><th>RDATA</th><th>TTL</th>{{if .Data.IsPrimary}}<th class="right">ACTIONS</th>{{end}}</tr></thead><tbody>
|
||||
{{range .Data.Records}}<tr><td class="mono entity">{{.Name}}</td><td><span class="tag green">{{.Type}}</span></td><td class="mono rdata">{{.Data}}</td><td class="mono">{{.TTL}}</td>{{if $.Data.IsPrimary}}<td class="right">{{if ne .Type "SOA"}}<div class="row-actions"><a href="{{$.Data.ZoneURL}}/records/{{.ID}}/edit?page={{$.Data.Pagination.Page}}" class="icon-button" aria-label="Edit record {{.Name}}" title="Edit"><svg class="ico"><use href="/static/icons.svg#edit"/></svg></a><a href="{{$.Data.ZoneURL}}/records/{{.ID}}/delete?page={{$.Data.Pagination.Page}}" class="icon-button danger-hover" aria-label="Delete record {{.Name}}" title="Delete"><svg class="ico"><use href="/static/icons.svg#trash"/></svg></a></div>{{else}}<span class="subtle" title="SOA is managed by zone replacement">Managed</span>{{end}}</td>{{end}}</tr>{{else}}<tr><td class="empty" colspan="5">No records returned for this filter.</td></tr>{{end}}
|
||||
{{range .Data.Records}}<tr><td class="mono entity">{{.Name}}</td><td><span class="tag green">{{.Type}}</span></td><td class="mono rdata">{{.Data}}</td><td class="mono">{{.TTL}}</td>{{if $.Data.IsPrimary}}<td class="right">{{if ne .Type "SOA"}}<div class="row-actions"><a href="{{$.Data.ZoneURL}}/records/{{.ID}}/edit?page={{$.Data.Pagination.Page}}" class="icon-button" aria-label="Edit record {{.Name}}" title="Edit"><svg class="ico"><use href="{{asset "icons.svg"}}#edit"/></svg></a><a href="{{$.Data.ZoneURL}}/records/{{.ID}}/delete?page={{$.Data.Pagination.Page}}" class="icon-button danger-hover" aria-label="Delete record {{.Name}}" title="Delete"><svg class="ico"><use href="{{asset "icons.svg"}}#trash"/></svg></a></div>{{else}}<span class="subtle" title="SOA is managed by zone replacement">Managed</span>{{end}}</td>{{end}}</tr>{{else}}<tr><td class="empty" colspan="5">No records returned for this filter.</td></tr>{{end}}
|
||||
</tbody></table></div><div class="table-footer"><span>{{len .Data.Records}} / {{.Data.Pagination.Total}} records · page {{.Data.Pagination.Page}}</span><div class="pagination-ui">{{if gt .Data.Pagination.Page 1}}<a class="btn-ui btn-small" href="{{.Data.ZoneURL}}/records?page={{dec .Data.Pagination.Page}}&name={{selectval .Data.Filter "name"}}&type={{selectval .Data.Filter "type"}}">Previous</a>{{end}}{{if lt (multiply .Data.Pagination.Page .Data.Pagination.PerPage) .Data.Pagination.Total}}<a class="btn-ui btn-small" href="{{.Data.ZoneURL}}/records?page={{inc .Data.Pagination.Page}}&name={{selectval .Data.Filter "name"}}&type={{selectval .Data.Filter "type"}}">Next</a>{{end}}</div></div></section>
|
||||
<div class="notice-inline mt-panel">Writes are protected with the zone serial ETag. SOA records are managed through whole-zone replacement; secondaries are read-only.</div>
|
||||
{{else if eq .Data.Tab "transfers"}}
|
||||
@@ -34,8 +34,8 @@
|
||||
<section class="panel"><div class="panel-head"><div><h2>DNSSEC status</h2><p>Inspection only. Key lifecycle and signing changes are not exposed through REST.</p></div></div><div class="panel-body">{{if .Data.Zone.DNSSEC}}<div class="code-block"><pre>{{asjson .Data.Zone.DNSSEC}}</pre></div>{{else}}<div class="empty">No DNSSEC status returned for this zone.</div>{{end}}</div></section>
|
||||
{{else if eq .Data.Tab "operations"}}
|
||||
<div class="operations-grid"><section class="panel"><div class="panel-head"><div><h2>Supported zone actions</h2><p>Available operations depend on the zone role and configuration</p></div></div><div class="panel-body">
|
||||
{{if .Data.Zone.IsSecondary}}<form method="post" action="{{.Data.ZoneURL}}/sync" class="operation"><input type="hidden" name="_csrf" value="{{.CSRF}}"><input type="hidden" name="confirm" value="yes"><div><strong>Synchronize secondary</strong><small>Request an immediate refresh from its primary.</small></div><button class="btn-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#refresh"/></svg>Sync now</button></form>{{end}}
|
||||
{{if .Data.Zone.Config.Notify}}<form method="post" action="{{.Data.ZoneURL}}/notify" class="operation"><input type="hidden" name="_csrf" value="{{.CSRF}}"><input type="hidden" name="confirm" value="yes"><div><strong>Send DNS NOTIFY</strong><small>{{len .Data.Zone.Config.Notify}} configured targets · HTTP 202 means accepted, not delivered</small></div><button class="btn-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#bell"/></svg>Send NOTIFY</button></form>{{end}}
|
||||
{{if .Data.Zone.IsSecondary}}<form method="post" action="{{.Data.ZoneURL}}/sync" class="operation"><input type="hidden" name="_csrf" value="{{.CSRF}}"><input type="hidden" name="confirm" value="yes"><div><strong>Synchronize secondary</strong><small>Request an immediate refresh from its primary.</small></div><button class="btn-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#refresh"/></svg>Sync now</button></form>{{end}}
|
||||
{{if .Data.Zone.Config.Notify}}<form method="post" action="{{.Data.ZoneURL}}/notify" class="operation"><input type="hidden" name="_csrf" value="{{.CSRF}}"><input type="hidden" name="confirm" value="yes"><div><strong>Send DNS NOTIFY</strong><small>{{len .Data.Zone.Config.Notify}} configured targets · HTTP 202 means accepted, not delivered</small></div><button class="btn-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#bell"/></svg>Send NOTIFY</button></form>{{end}}
|
||||
{{if .Data.Zone.IsPrimary}}<div class="operation"><div><strong>Replace zone contents</strong><small>Submit a complete operator-provided zone file. No original file download.</small></div><a href="{{.Data.ZoneURL}}/replace" class="btn-ui">Replace zone</a></div>{{end}}
|
||||
<div class="operation"><div><strong>Delete API-created zone</strong><small>Only zones created in the API overlay are deletable; others return HTTP 409.</small></div><a href="{{.Data.ZoneURL}}/delete" class="btn-ui btn-danger-ui">Delete zone</a></div>
|
||||
{{if and (not .Data.Zone.IsSecondary) (not .Data.Zone.IsPrimary)}}<div class="empty">Zone operations require a loaded zone.</div>{{end}}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{{define "content"}}
|
||||
<div class="status-strip panel compact-strip"><div class="strip-cell"><span>TOTAL ZONES (CURRENT FILTER)</span><strong>{{int .Data.Pagination.Total}}</strong></div><div class="strip-cell"><span>ITEMS PER PAGE</span><strong>{{.Data.Pagination.PerPage}}</strong></div><div class="strip-cell"><span>CURRENT PAGE</span><strong>{{.Data.Pagination.Page}}</strong></div><div class="strip-cell"><span>ZONE TYPES</span><strong>Primary · Secondary</strong></div></div>
|
||||
<section class="panel mt-panel"><div class="toolbar">
|
||||
<form action="/zones" method="get" class="toolbar-form"><label class="sr-only" for="searchZones">Search zones</label><input class="field field-search" id="searchZones" name="name" placeholder="Search zones by name" value="{{selectval .Data.Filter "name"}}"><select class="field field-select" name="kind" aria-label="Zone type"><option value="">All types</option><option value="primary" {{if eq (selectval .Data.Filter "kind") "primary"}}selected{{end}}>Primary</option><option value="secondary" {{if eq (selectval .Data.Filter "kind") "secondary"}}selected{{end}}>Secondary</option></select><button class="btn-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#search"/></svg> Search</button></form>
|
||||
<div class="toolbar-end"><a class="btn-ui" href="/zones/import"><svg class="ico"><use href="/static/icons.svg#upload"/></svg> Import zone file</a><a class="btn-ui btn-primary-ui" href="/zones/new"><svg class="ico"><use href="/static/icons.svg#plus"/></svg> Add zone</a></div></div>
|
||||
<form action="/zones" method="get" class="toolbar-form"><label class="sr-only" for="searchZones">Search zones</label><input class="field field-search" id="searchZones" name="name" placeholder="Search zones by name" value="{{selectval .Data.Filter "name"}}"><select class="field field-select" name="kind" aria-label="Zone type"><option value="">All types</option><option value="primary" {{if eq (selectval .Data.Filter "kind") "primary"}}selected{{end}}>Primary</option><option value="secondary" {{if eq (selectval .Data.Filter "kind") "secondary"}}selected{{end}}>Secondary</option></select><button class="btn-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#search"/></svg> Search</button></form>
|
||||
<div class="toolbar-end"><a class="btn-ui" href="/zones/import"><svg class="ico"><use href="{{asset "icons.svg"}}#upload"/></svg> Import zone file</a><a class="btn-ui btn-primary-ui" href="/zones/new"><svg class="ico"><use href="{{asset "icons.svg"}}#plus"/></svg> Add zone</a></div></div>
|
||||
<div class="table-scroll"><table class="data-table"><thead><tr><th>ZONE NAME</th><th>TYPE</th><th>SERIAL</th><th>RECORDS</th><th>STATE</th><th>TRANSFER / SYNC</th><th>LAST SUCCESSFUL SYNC</th><th class="right">ACTION</th></tr></thead><tbody>
|
||||
{{range .Data.Zones}}<tr><td><a class="entity" href="{{zoneurl .Name}}">{{.Name}}</a></td><td><span class="tag {{if .IsSecondary}}blue{{else}}green{{end}}">{{.Kind}}</span></td><td class="mono">{{.SerialText}}</td><td class="mono">{{.Records}}</td><td><span class="dot {{if .Loaded}}{{if .Expired}}danger{{else}}ok{{end}}{{else}}warn{{end}}"></span>{{.StateText}}</td><td>{{if .IsSecondary}}<span class="dot {{statusclass .SyncText}}"></span>{{.SyncText}}{{else}}<span class="subtle">—</span>{{end}}</td><td class="mono subtle">{{if .IsSecondary}}{{.LastSync}}{{else}}—{{end}}</td><td class="right"><a class="btn-ui btn-small" href="{{zoneurl .Name}}">Open <svg class="ico"><use href="/static/icons.svg#arrow-right"/></svg></a></td></tr>{{else}}<tr><td class="empty" colspan="8">No zones match the current filter, or the API is not available.</td></tr>{{end}}
|
||||
{{range .Data.Zones}}<tr><td><a class="entity" href="{{zoneurl .Name}}">{{.Name}}</a></td><td><span class="tag {{if .IsSecondary}}blue{{else}}green{{end}}">{{.Kind}}</span></td><td class="mono">{{.SerialText}}</td><td class="mono">{{.Records}}</td><td><span class="dot {{if .Loaded}}{{if .Expired}}danger{{else}}ok{{end}}{{else}}warn{{end}}"></span>{{.StateText}}</td><td>{{if .IsSecondary}}<span class="dot {{statusclass .SyncText}}"></span>{{.SyncText}}{{else}}<span class="subtle">—</span>{{end}}</td><td class="mono subtle">{{if .IsSecondary}}{{.LastSync}}{{else}}—{{end}}</td><td class="right"><a class="btn-ui btn-small" href="{{zoneurl .Name}}">Open <svg class="ico"><use href="{{asset "icons.svg"}}#arrow-right"/></svg></a></td></tr>{{else}}<tr><td class="empty" colspan="8">No zones match the current filter, or the API is not available.</td></tr>{{end}}
|
||||
</tbody></table></div>
|
||||
<div class="table-footer"><span>Showing {{len .Data.Zones}} of {{int .Data.Pagination.Total}} zones · page {{.Data.Pagination.Page}}</span><div class="pagination-ui"><a class="btn-ui btn-small" href="/zones?page=1&name={{selectval .Data.Filter "name"}}&kind={{selectval .Data.Filter "kind"}}">First</a>{{if gt .Data.Pagination.Page 1}}<a class="btn-ui btn-small" href="/zones?page={{dec .Data.Pagination.Page}}&name={{selectval .Data.Filter "name"}}&kind={{selectval .Data.Filter "kind"}}">Previous</a>{{end}}{{if lt (multiply .Data.Pagination.Page .Data.Pagination.PerPage) .Data.Pagination.Total}}<a class="btn-ui btn-small" href="/zones?page={{inc .Data.Pagination.Page}}&name={{selectval .Data.Filter "name"}}&kind={{selectval .Data.Filter "kind"}}">Next</a>{{end}}</div></div>
|
||||
</section><div class="notice-inline mt-panel">Primary zones can be created through REST. Secondary zone creation and general zone configuration editing are not exposed by EasyDNS.</div>
|
||||
|
||||
Reference in new issue
Block a user