Readded prunemate and changed minecraft to use crafty

This commit is contained in:
Shaun Collins
2026-02-03 10:50:09 +00:00
committed by shaun collins
parent 4fae8e4798
commit a58b9b04e2
5 changed files with 49 additions and 14 deletions
+5 -2
View File
@@ -216,7 +216,8 @@
{ ipAddress: "192.168.40.5", port: "81", name: "Nginx Reverse Proxy", description: "Provide site routing", site: "nginx", icon: "fa-solid fa-network-wired" },
{ ipAddress: "192.168.40.5", port: "8080", name: "QBit Torrent", description: "Torrent client", site: "torrent", icon: "fa-solid fa-download" },
{ ipAddress: "192.168.40.5", port: "7676", name: "PruneMate", description: "Clean up Docker data", site: "prune", icon: "fa-solid fa-trash" },
{ ipAddress: "192.168.40.5", port: "60072", name: "Scanopy", description: "Scan and organize your network", site: "scan", icon: "fa-solid fa-satellite-dish" }
{ ipAddress: "192.168.40.5", port: "60072", name: "Scanopy", description: "Scan and organize your network", site: "scan", icon: "fa-solid fa-satellite-dish" },
{ ipAddress: "192.168.40.5", scheme: 'https://', port: "8443", name: "Minecraft", description: "Crafty Minecraft server admin", site: "minecraft", icon: "fa-solid fa-cubes" }
];
const buttonContainer = document.querySelector(".button-container");
@@ -237,7 +238,9 @@
tooltipContainer.className = "tooltip-container";
const link = document.createElement("a");
const url = `http://${site.ipAddress}:${site.port}`;
const defaultScheme = "http://";
let scheme = site.scheme || defaultScheme;
const url = `${scheme}${site.ipAddress}:${site.port}`;
link.href = url;
link.target = "_blank";
link.className = "link-button";