diff --git a/config.json b/config.json index a72d7b6..2463e86 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "port": 3001, "domain": "localhost", - "version": "0.1.0-beta2", + "version": "0.1.0-beta3", "_note": "The key is only used by skyportd to get the images and instances. Not much important or critical data in that.", "key": "skyport_default_key" } diff --git a/views/instance.ejs b/views/instance.ejs index 60a6312..01754b0 100644 --- a/views/instance.ejs +++ b/views/instance.ejs @@ -15,7 +15,7 @@

Manage Instance

-

View, update and manage an instance on the Skyport panel.

+

View, update and manage an instance on the Skyport panel. <%= instance.Node.address %>

-
+
+
+
+
+
IP Address
+
+ + <%= instance.Node.address %>:<%= instance.Primary %> + +
+
+
+ + + +
+
+
+
+
Image
+
+ + <%= instance.Image %> + +
+
+
+ + + + +
+
+
+
+
Disk Usage
+
+ +
+
+
+ + + +
+
+
+
+
@@ -345,5 +393,20 @@ document.getElementById('networkOut').textContent = networkOut; }; + <%- include('components/footer') %> diff --git a/views/instances.ejs b/views/instances.ejs index 84984eb..9d1b0e4 100644 --- a/views/instances.ejs +++ b/views/instances.ejs @@ -88,17 +88,17 @@ document.addEventListener('DOMContentLoaded', function() { const ramUsage = isNaN(ramUsageRaw) ? '0 B' : formatBytes(ramUsageRaw); const ramLimitRaw = stats.memory_stats.limit / 1024; const ramLimit = isNaN(ramLimitRaw) ? '0 B' : formatBytes(ramLimitRaw); - ramUsageElement.textContent = ramUsage + ' RAM USAGE'; + ramUsageElement.textContent = ramUsage + ' RAM Usage'; // Determine status based on RAM usage if (isNaN(ramUsageRaw)) { statusElement.className = 'text-neutral-500'; - statusElement.textContent = 'offline'; + statusElement.textContent = 'Offline'; } else if (ramUsageRaw > 1) { statusBg.classList.remove('bg-neutral-600/20'); statusBg.classList.add('bg-emerald-600/10'); statusElement.className = 'text-emerald-500'; - statusElement.textContent = 'online'; + statusElement.textContent = 'Online'; } // Update CPU usage @@ -107,7 +107,7 @@ document.addEventListener('DOMContentLoaded', function() { const cpuUsagePercent = (cpuDelta && systemCpuDelta && !isNaN(cpuDelta) && !isNaN(systemCpuDelta)) ? ((cpuDelta / systemCpuDelta) * 100).toFixed(2) + '%' : '0%'; - cpuUsageElement.textContent = cpuUsagePercent + ' CPU USAGE'; + cpuUsageElement.textContent = cpuUsagePercent + ' CPU Usage'; }; }); });