From c0ec0221e27b93bcafb4bc799962c510f7e26da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Tue, 30 Sep 2025 12:39:40 +0300 Subject: [PATCH] commit for check working component --- web/html/servers.html | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/web/html/servers.html b/web/html/servers.html index 30354731..df7f982a 100644 --- a/web/html/servers.html +++ b/web/html/servers.html @@ -89,7 +89,24 @@ const app = new Vue({ el: '#app', data: { - servers: [], + servers: [ + { + id: 1, + name: 'Server 1', + address: '127.0.0.1', + port: 8080, + apiKey: '1234567890', + enable: true + }, + { + id: 2, + name: 'Server 2', + address: 'example.com', + port: 8081, + apiKey: '0987654321', + enable: false + } + ], modal: { title: '', server: { @@ -102,15 +119,6 @@ } }, methods: { - loadServers() { - axios.get('{{.base_path}}server/list') - .then(response => { - this.servers = response.data.obj; - }) - .catch(error => { - alert(error.response.data.msg); - }); - }, showAddModal() { this.modal.title = 'Add Server'; this.modal.server = { @@ -163,3 +171,4 @@ {{template "footer" .}} +