Adds the ability to update node panels to the latest release from the Nodes page: select online, enabled nodes (checkboxes) and trigger their official self-updater, or use the per-row Update action. A node whose reported panel version trails the latest GitHub release is flagged with an 'update available' tag (compared via lib/panel-version, mirroring the Go isNewerVersion). Backend: Remote.UpdatePanel calls the node's existing POST /panel/api/server/updatePanel; NodeService.UpdatePanels fans out over the selected ids, skipping disabled/offline nodes with a per-node reason; exposed as POST /panel/api/nodes/updatePanel (documented in endpoints.ts + openapi.json). The bulk request sends a JSON body, so it sets Content-Type: application/json explicitly — axios defaults POST to form-urlencoded, which made ShouldBindJSON fail with 'invalid character i'. Also reuses the clients-page online cue on the Nodes page: a pulsing green dot plus green label for an online node. The .online-dot style moved to the shared styles/utils.css so both pages load it. Translations for all new node keys added across every language file.
44 lines
955 B
CSS
44 lines
955 B
CSS
.mt-4 { margin-top: 4px; }
|
|
.mt-8 { margin-top: 8px; }
|
|
.mt-10 { margin-top: 10px; }
|
|
.mt-12 { margin-top: 12px; }
|
|
.mt-20 { margin-top: 20px; }
|
|
|
|
.mb-4 { margin-bottom: 4px; }
|
|
.mb-8 { margin-bottom: 8px; }
|
|
.mb-10 { margin-bottom: 10px; }
|
|
.mb-12 { margin-bottom: 12px; }
|
|
|
|
.ml-8 { margin-left: 8px; }
|
|
|
|
.my-8 { margin: 8px 0; }
|
|
.my-10 { margin: 10px 0; }
|
|
|
|
.zero-margin { margin: 0; }
|
|
|
|
.danger-icon {
|
|
margin-left: 8px;
|
|
cursor: pointer;
|
|
color: var(--ant-color-error);
|
|
}
|
|
|
|
.online-dot {
|
|
display: inline-block;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
margin-inline-end: 5px;
|
|
vertical-align: middle;
|
|
background: var(--ant-color-success);
|
|
animation: online-blink 1.1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes online-blink {
|
|
0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.55); }
|
|
50% { opacity: 0.35; box-shadow: 0 0 0 4px rgba(82, 196, 26, 0); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.online-dot { animation: none; }
|
|
}
|