diff --git a/README.md b/README.md index d7b8970..e4c8c8e 100644 --- a/README.md +++ b/README.md @@ -2,28 +2,9 @@ Proxmox Helper Scripts -

- User count - License - Contributors -

- -

Redesign of the Proxmox VE Helper Scripts website. optimized for readablity and security

- > [!WARNING] > always check the source code of the scripts before running them. Copying random scripts without understanding what they do can lead to data loss or other security issues. -## 👀 Why even use the Re-design? - -### Overview - -This repository contains a collection of helper scripts for Proxmox VE, designed to enhance and simplify the user experience. The scripts include various functionalities such as easier access to source code for improved security and a redesigned website for better script viewing. - -### Features - -- **Script Source Access**: Easily access the source code of each script to review and enhance security. -- **Redesigned Website**: Improved layout for easier script viewing. - ### Tech Stack - [Next.js](https://nextjs.org/) with Typescript for the frontend - [Tailwind CSS](https://tailwindcss.com/) for styling diff --git a/package.json b/package.json index 672c947..aa06d79 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "author": { "name": "Bram Suurd", - "url": "https://github.com/BramSuurdje" + "url": "https://github.com/community-scripts" }, "type": "module", "scripts": { diff --git a/src/app/page.tsx b/src/app/page.tsx index 4b38907..28781d6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -80,7 +80,7 @@ export default function Page() { + handleCopy(label, String(value))} + className="size-4 cursor-pointer" + /> + ); export default function InterFaces({ item }: { item: Item }) { diff --git a/src/components/CommandMenu.tsx b/src/components/CommandMenu.tsx index e29486f..fedc51b 100644 --- a/src/components/CommandMenu.tsx +++ b/src/components/CommandMenu.tsx @@ -12,6 +12,7 @@ import Image from "next/image"; import { useRouter } from "next/navigation"; import React from "react"; import { Button } from "./ui/button"; +import { DialogTitle } from "./ui/dialog"; const sortCategories = (categories: Category[]): Category[] => { return categories.sort((a: Category, b: Category) => { @@ -84,17 +85,18 @@ export default function CommandMenu() { + Search scripts No scripts found. {links.map((category) => ( {category.expand.items.map((script) => ( { setOpen(false); @@ -106,6 +108,10 @@ export default function CommandMenu() { src={script.logo} unoptimized height={16} + onError={(e) => + ((e.currentTarget as HTMLImageElement).src = + "/logo.png") + } width={16} alt="" className="h-5 w-5" diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index b2e55e1..1cb8f63 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -2,9 +2,9 @@ import Link from "next/link"; export default function Footer() { return ( -
+
-
+
Website build by{" "} {