UI improvements
This commit is contained in:
@@ -37,20 +37,40 @@ export function osBadge(osRaw = "") {
|
||||
icon: "fa-linux",
|
||||
tone: "pill-unknown",
|
||||
};
|
||||
if (os.includes("windows 11"))
|
||||
return { label: "W11", icon: "fa-brands fa-windows", tone: "pill-win" };
|
||||
if (os.includes("windows 10"))
|
||||
return { label: "W10", icon: "fa-brands fa-windows", tone: "pill-win" };
|
||||
if (os.includes("windows"))
|
||||
return { label: "Windows", icon: "fa-brands fa-windows", tone: "pill-win" };
|
||||
if (os.includes("mac") || os.includes("darwin"))
|
||||
return { label: "macOS", icon: "fa-brands fa-apple", tone: "pill-mac" };
|
||||
if (os.includes("linux mint"))
|
||||
return { label: "Mint", icon: "cv-os-icon cv-os-icon-mint", tone: "pill-mint" };
|
||||
if (os.includes("ubuntu"))
|
||||
return { label: "Ubuntu", icon: "fa-brands fa-linux", tone: "pill-ubuntu" };
|
||||
return { label: "Ubuntu", icon: "fa-brands fa-ubuntu", tone: "pill-ubuntu" };
|
||||
if (os.includes("debian"))
|
||||
return { label: "Debian", icon: "fa-brands fa-linux", tone: "pill-debian" };
|
||||
return { label: "Debian", icon: "fa-brands fa-debian", tone: "pill-debian" };
|
||||
if (os.includes("arch"))
|
||||
return { label: "Arch", icon: "fa-brands fa-linux", tone: "pill-arch" };
|
||||
return { label: "Arch", icon: "cv-os-icon cv-os-icon-arch", tone: "pill-arch" };
|
||||
if (os.includes("kali"))
|
||||
return { label: "Kali", icon: "fa-brands fa-linux", tone: "pill-kali" };
|
||||
if (os.includes("fedora"))
|
||||
return { label: "Fedora", icon: "fa-brands fa-linux", tone: "pill-fedora" };
|
||||
return { label: "Fedora", icon: "fa-brands fa-fedora", tone: "pill-fedora" };
|
||||
if (os.includes("red hat") || os.includes("rhel"))
|
||||
return { label: "RHEL", icon: "fa-brands fa-redhat", tone: "pill-redhat" };
|
||||
if (os.includes("centos"))
|
||||
return { label: "CentOS", icon: "fa-brands fa-centos", tone: "pill-centos" };
|
||||
if (os.includes("suse") || os.includes("opensuse"))
|
||||
return { label: "SUSE", icon: "fa-brands fa-suse", tone: "pill-suse" };
|
||||
if (os.includes("raspbian") || os.includes("raspberry"))
|
||||
return { label: "Raspberry Pi", icon: "fa-brands fa-raspberry-pi", tone: "pill-raspi" };
|
||||
if (os.includes("freebsd"))
|
||||
return { label: "FreeBSD", icon: "fa-brands fa-freebsd", tone: "pill-freebsd" };
|
||||
if (os.includes("alpine"))
|
||||
return { label: "Alpine", icon: "fa-brands fa-linux", tone: "pill-alpine" };
|
||||
if (os.includes("manjaro"))
|
||||
return { label: "Manjaro", icon: "fa-brands fa-linux", tone: "pill-manjaro" };
|
||||
if (os.includes("linux"))
|
||||
return { label: "Linux", icon: "fa-brands fa-linux", tone: "pill-linux" };
|
||||
return base;
|
||||
|
||||
Reference in New Issue
Block a user