From 8c60b5277e58e37b83c90a838960cb3f6d4d3700 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Tue, 7 Oct 2025 18:12:56 +0100 Subject: [PATCH] Update frontend: HostDetail, Hosts, and osIcons --- frontend/src/utils/osIcons.jsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/osIcons.jsx b/frontend/src/utils/osIcons.jsx index 66410fd..1bc6b42 100644 --- a/frontend/src/utils/osIcons.jsx +++ b/frontend/src/utils/osIcons.jsx @@ -24,7 +24,16 @@ export const getOSIcon = (osType) => { // Linux distributions with authentic react-icons if (os.includes("ubuntu")) return SiUbuntu; if (os.includes("debian")) return SiDebian; - if (os.includes("centos") || os.includes("rhel") || os.includes("red hat")) + if ( + os.includes("centos") || + os.includes("rhel") || + os.includes("red hat") || + os.includes("almalinux") || + os.includes("rocky") || + os === "ol" || + os.includes("oraclelinux") || + os.includes("oracle linux") + ) return SiCentos; if (os.includes("fedora")) return SiFedora; if (os.includes("arch")) return SiArchlinux; @@ -72,6 +81,10 @@ export const getOSDisplayName = (osType) => { if (os.includes("ubuntu")) return "Ubuntu"; if (os.includes("debian")) return "Debian"; if (os.includes("centos")) return "CentOS"; + if (os.includes("almalinux")) return "AlmaLinux"; + if (os.includes("rocky")) return "Rocky Linux"; + if (os === "ol" || os.includes("oraclelinux") || os.includes("oracle linux")) + return "Oracle Linux"; if (os.includes("rhel") || os.includes("red hat")) return "Red Hat Enterprise Linux"; if (os.includes("fedora")) return "Fedora";