Merge branch 'main' of github.com:BramSuurdje/ProxmoxVE

This commit is contained in:
Bram Suurd 2024-11-06 21:58:40 +01:00
commit 463cd4cd22
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export default function DefaultSettings({ item }: { item: Script }) {
(method) => method.type === "alpine", (method) => method.type === "alpine",
); );
const convertMBtoGB = (value: number) => { const getDisplayValueFromRAM = (ram: number) => {
if (value >= 1024) { if (value >= 1024) {
return (value / 1024).toFixed(0) + "GB"; return (value / 1024).toFixed(0) + "GB";
} }

View File

@ -3,7 +3,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { basePath } from "@/config/siteConfig"; import { basePath } from "@/config/siteConfig";
import { Script } from "@/lib/types"; import { Script } from "@/lib/types";
const generateInstallCommand = (script?: string) => { const getInstallCommand = (scriptPath?: string) => {
return `bash -c "$(wget -qLO - https://github.com/community-scripts/${basePath}/raw/main/${script})"`; return `bash -c "$(wget -qLO - https://github.com/community-scripts/${basePath}/raw/main/${script})"`;
} }