feat: label editor

This commit is contained in:
2025-10-16 15:38:22 +02:00
parent 55cc8c8d8c
commit bf19071cc4
5 changed files with 744 additions and 3 deletions

View File

@@ -120,6 +120,22 @@ class ApiClient {
}
});
}
async getNodeLabels(ip) {
return this.request(`/api/node/status/${encodeURIComponent(ip)}`, { method: 'GET' });
}
async setNodeLabels(ip, labels) {
return this.request('/api/proxy-call', {
method: 'POST',
body: {
ip: ip,
method: 'POST',
uri: '/api/node/config',
params: [{ name: 'labels', value: JSON.stringify(labels) }]
}
});
}
}
// Global API client instance