From f72fa7e5d1a550deaea89f619cf81dd6ec55cc7d Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 18 Feb 2025 11:08:04 +0100 Subject: [PATCH] update --- web/app/docs/installation/page.tsx | 27 ++++++++++++++------------- web/components/CopyableCode.tsx | 29 ++++++++++++++++++++--------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/web/app/docs/installation/page.tsx b/web/app/docs/installation/page.tsx index e245d04..f4c2778 100644 --- a/web/app/docs/installation/page.tsx +++ b/web/app/docs/installation/page.tsx @@ -6,23 +6,24 @@ export default function InstallationPage() { const installationCode = `bash -c "$(wget -qLO - https://raw.githubusercontent.com/MacRimi/ProxMenux/main/install_proxmenux.sh)"` return ( -
-

Installing ProxMenux

+
+

Installing ProxMenux

-

Installation

-

To install ProxMenux, simply run the following command in your Proxmox server terminal:

- +

Installation

+

To install ProxMenux, simply run the following command in your Proxmox server terminal:

+
+ +
-

How to Use

-

+

How to Use

+

Once installed, launch ProxMenux by running:

- -
-
-
-
-

Troubleshooting

+
+ +
+ +

Troubleshooting

If you encounter any issues during installation or usage, please check the{" "} diff --git a/web/components/CopyableCode.tsx b/web/components/CopyableCode.tsx index 9a931e5..74f940d 100644 --- a/web/components/CopyableCode.tsx +++ b/web/components/CopyableCode.tsx @@ -1,19 +1,24 @@ + + "use client" import type React from "react" import { useState } from "react" import { Copy, Check } from "lucide-react" +import { cn } from "@/lib/utils" interface CopyableCodeProps { code: string + language?: string + className?: string } -const CopyableCode: React.FC = ({ code }) => { +const CopyableCode: React.FC = ({ code, language, className }) => { const [isCopied, setIsCopied] = useState(false) const copyToClipboard = async () => { try { - await navigator.clipboard.writeText(code) + await navigator.clipboard.writeText(decodeURIComponent(code)) setIsCopied(true) setTimeout(() => setIsCopied(false), 2000) } catch (err) { @@ -22,16 +27,23 @@ const CopyableCode: React.FC = ({ code }) => { } return ( -