diff --git a/web/app/docs/about/code-of-conduct/page.tsx b/web/app/docs/about/code-of-conduct/page.tsx index e949ef5..cbe96b1 100644 --- a/web/app/docs/about/code-of-conduct/page.tsx +++ b/web/app/docs/about/code-of-conduct/page.tsx @@ -6,7 +6,6 @@ import * as gfm from "remark-gfm" import dynamic from "next/dynamic" import React from "react" import parse from "html-react-parser" -import Footer from "@/components/footer" const CopyableCode = dynamic(() => import("@/components/CopyableCode"), { ssr: false }) @@ -14,23 +13,23 @@ async function getCodeOfConductContent() { try { const codeOfConductPath = path.join(process.cwd(), "..", "CODE_OF_CONDUCT.md") - if (!fs.existsSync(codeOfConductPath)) { - console.error("❌ Archivo CODE_OF_CONDUCT.md no encontrado.") - return "

Error: No se encontró el archivo CODE_OF_CONDUCT.md

" - } - - const fileContents = fs.readFileSync(codeOfConductPath, "utf8") - - const result = await remark() - .use(gfm.default || gfm) - .use(html) - .process(fileContents) - - return result.toString() - } catch (error) { - console.error("❌ Error al leer el archivo CODE_OF_CONDUCT.md", error) - return "

Error: No se pudo cargar el contenido del Código de Conducta.

" + if (!fs.existsSync(codeOfConductPath)) { + console.error("CODE_OF_CONDUCT.md file not found."); + return "

Error: CODE_OF_CONDUCT.md file not found.

"; } + + const fileContents = fs.readFileSync(codeOfConductPath, "utf8"); + + const result = await remark() + .use(gfm.default || gfm) + .use(html) + .process(fileContents); + + return result.toString(); + } catch (error) { + console.error("Error reading the CODE_OF_CONDUCT.md file", error); + return "

Error: Unable to load the Code of Conduct content.

"; + } } function cleanInlineCode(content: string) { @@ -61,10 +60,8 @@ export default async function CodeOfConductPage() { return (
-

Code of Conduct

{parsedContent}
-
) } \ No newline at end of file diff --git a/web/app/docs/about/faq/page.tsx b/web/app/docs/about/faq/page.tsx index f4f3bac..20b295b 100644 --- a/web/app/docs/about/faq/page.tsx +++ b/web/app/docs/about/faq/page.tsx @@ -43,15 +43,19 @@ export default function FaqPage() {

Frequently Asked Questions (FAQ)

- {/* 1️⃣ What is ProxMenux? */} + {/* 1️⃣ What is ProxMenux? */}

What is ProxMenux, and what is it used for?

- ProxMenux is an interactive menu-driven tool designed to make Proxmox VE accessible to - all users, regardless of their technical experience. It allows users to execute commands and manage Proxmox VE - without requiring advanced Linux knowledge. + ProxMenux is an interactive menu-driven tool designed to make Proxmox VE more accessible + to all users, regardless of their technical experience. It simplifies command execution, allowing users to perform + actions on their system without requiring advanced Linux knowledge. +

+

+ For less experienced users, ProxMenux provides an intuitive way to run commands through a structured + menu interface, reducing the need for manual terminal input.

Proxmox VE is widely used for: @@ -84,73 +88,68 @@ export default function FaqPage() { {/* 3️⃣ Compatibility */} -

- - Is ProxMenux compatible with all Proxmox versions? -

+

3️⃣ Is ProxMenux compatible with all Proxmox versions?

No, ProxMenux is only compatible with Proxmox VE 8 and later versions.

{/* 4️⃣ Customization */} -

- - Can I customize ProxMenux? -

+

4️⃣ Can I customize ProxMenux?

- The core scripts cannot be modified directly as they are hosted on GitHub, but you can personalize the - console logo using the FastFetch tool in the Post-Install options. + The core scripts cannot be modified directly as they are hosted on GitHub, but you can personalize + the console logo using the FastFetch tool in the Post-Install options.

{/* 5️⃣ Updates */} -

- - How do I update ProxMenux? -

+

5️⃣ How do I update ProxMenux?

- When a new version is available, ProxMenux will automatically detect it upon launch and ask if you want to update. - The update process will replace utility files and configurations. + When a new version is available, ProxMenux will automatically detect it upon launch and ask + if you want to update. The update process will replace utility files and configurations.

{/* 6️⃣ Reporting Issues */} -

- - Where can I report issues? -

+

6️⃣ Where can I report issues?

If you encounter bugs or errors, report them in the{" "} - - Issues section - . + Issues section.

{/* 7️⃣ Contributing */} -

- - Can I contribute to ProxMenux? -

+

7️⃣ Can I contribute to ProxMenux?

Yes! ProxMenux is an open-source project, and contributions are welcome. You can share ideas or discuss improvements in the{" "} - - Discussions section - . + Discussions section. Make sure to check the{" "} - - Code of Conduct & Best Practices - . + Code of Conduct & Best Practices.

- {/* 8️⃣ System Modifications */} -

- - Does ProxMenux modify critical system files? -

+ {/* 8️⃣ Modifying System Files */} +

8️⃣ Does ProxMenux modify critical system files?

No, ProxMenux does not modify critical Proxmox system files. - It only installs dependencies and downloads its scripts into{" "} - /usr/local/share/proxmenux/. + It installs dependencies (whiptail, curl, jq, Python3), sets up a virtual environment for translations, and downloads its scripts into + /usr/local/share/proxmenux/ and the executable menu into /usr/local/bin/. + It does not interfere with Proxmox's core operations. +

+ + {/* 9️⃣ Production Use */} +

9️⃣ Is it safe to use ProxMenux in production?

+

+ Yes, ProxMenux is safe for production. + Since it does not modify core Proxmox files, it can be used in production environments. + However, it is always recommended to test it in a controlled environment first. +

+ + {/* 🔟 Uninstallation */} +

🔟 How do I uninstall ProxMenux?

+

+ You can uninstall ProxMenux from the **Settings menu** using the **Uninstall ProxMenux** option. + Detailed steps can be found in the{" "} + + Uninstall Guide + .

); -} +} \ No newline at end of file diff --git a/web/app/docs/external-repositories/page.tsx b/web/app/docs/external-repositories/page.tsx index e313d3d..12346a0 100644 --- a/web/app/docs/external-repositories/page.tsx +++ b/web/app/docs/external-repositories/page.tsx @@ -52,12 +52,12 @@ export default function ExternalRepositoriesPage() { {/* Introduction */}

ProxMenux integrates with selected external repositories to provide alternative scripts for - various functionalities. These scripts come from **trusted sources** and serve as additional + various functionalities. These scripts come from trusted sources and serve as additional options in some menu sections.

- When an external script is available as an alternative, **ProxMenux will clearly indicate that it - originates from an external repository and specify which one.** + When an external script is available as an alternative, ProxMenux will clearly indicate that it + originates from an external repository and specify which one.

{/* 1️⃣ Example of External Repository */} @@ -88,11 +88,11 @@ export default function ExternalRepositoriesPage() { {/* 3️⃣ Reporting Issues with External Scripts */}

- If you encounter an issue with an external script, **please report it directly to the original - repository** instead of opening an issue in the ProxMenux repository. + If you encounter an issue with an external script, please report it directly to the original + repository instead of opening an issue in the ProxMenux repository.

- **ProxMenux does not modify external scripts**; it simply provides a link to the original source. + ProxMenux does not modify external scripts; it simply provides a link to the original source. Therefore, any problems related to functionality should be reported to the respective developers.