bun format

This commit is contained in:
Bram Suurd
2024-08-03 14:48:35 +02:00
parent dabd29e7cb
commit e8f52689e1
8 changed files with 51 additions and 41 deletions

View File

@@ -6,9 +6,9 @@ Reading and following these guidelines will help us make the contribution proces
## Quicklinks ## Quicklinks
* [Getting Started](#getting-started) - [Getting Started](#getting-started)
* [Issues](#issues) - [Issues](#issues)
* [Pull Requests](#pull-requests) - [Pull Requests](#pull-requests)
## Getting Started ## Getting Started

View File

@@ -19,22 +19,28 @@
## 👀 Why even use the Re-design? ## 👀 Why even use the Re-design?
### Overview ### 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. 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 ### Features
- **Script Source Access**: Easily access the source code of each script to review and enhance security. - **Script Source Access**: Easily access the source code of each script to review and enhance security.
- **Redesigned Website**: Improved layout for easier script viewing. - **Redesigned Website**: Improved layout for easier script viewing.
## Getting Started ## Getting Started
### Prerequisites ### Prerequisites
- Proxmox VE installed - Proxmox VE installed
### Contributing ### Contributing
Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) for more information. Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) for more information.
### License ### License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
### Contact ### Contact
For questions or support, please open an issue on GitHub. For questions or support, please open an issue on GitHub.

View File

@@ -15,7 +15,7 @@ export default function LandingPage() {
<h1 className="relative z-20 bg-gradient-to-b from-[#0080C4] to-[#004c75] bg-clip-text py-4 text-center text-4xl font-bold text-transparent sm:text-left sm:text-5xl"> <h1 className="relative z-20 bg-gradient-to-b from-[#0080C4] to-[#004c75] bg-clip-text py-4 text-center text-4xl font-bold text-transparent sm:text-left sm:text-5xl">
Proxmox VE Helper-Scripts Proxmox VE Helper-Scripts
</h1> </h1>
<p className="bg-gradient-to-b from-neutral-200 to-neutral-500 tracking-tight leading-loose bg-clip-text text-center text-xl sm:text-left"> <p className="bg-gradient-to-b from-neutral-200 to-neutral-500 bg-clip-text text-center text-xl leading-loose tracking-tight sm:text-left">
Proxmox VE Scripts for{" "} Proxmox VE Scripts for{" "}
<Typewriter <Typewriter
words={[ words={[

View File

@@ -4,7 +4,7 @@ import React from "react";
export default function Footer() { export default function Footer() {
return ( return (
<div className="supports-backdrop-blur:bg-background/90 mt-auto flex justify-center border-t border-border bg-background/40 py-6 backdrop-blur-lg"> <div className="supports-backdrop-blur:bg-background/90 mt-auto flex justify-center border-t border-border bg-background/40 py-6 backdrop-blur-lg">
<div className="max-w-7xl mx-6 w-full text-sm"> <div className="mx-6 w-full max-w-7xl text-sm">
Build by{" "} Build by{" "}
<Link <Link
href="https://github.com/BramSuurdje" href="https://github.com/BramSuurdje"

View File

@@ -105,8 +105,7 @@ function ScriptItem({
"be careful when copying scripts from the internet. Always remember check the source!", "be careful when copying scripts from the internet. Always remember check the source!",
{ duration: 8000 }, { duration: 8000 },
); );
} }, 500);
, 500);
} else { } else {
amountOfScriptsCopied = (parseInt(amountOfScriptsCopied) + 1).toString(); amountOfScriptsCopied = (parseInt(amountOfScriptsCopied) + 1).toString();
localStorage.setItem("amountOfScriptsCopied", amountOfScriptsCopied); localStorage.setItem("amountOfScriptsCopied", amountOfScriptsCopied);

View File

@@ -25,7 +25,7 @@ export function ModeToggle() {
</Button> </Button>
</DropdownMenuTrigger> </DropdownMenuTrigger>
<DropdownMenuContent align="end"> <DropdownMenuContent align="end">
<span className="text-sm ml-2 font-semibold">Theme</span> <span className="ml-2 text-sm font-semibold">Theme</span>
<DropdownMenuItem onClick={() => setTheme("light")} className="mt-1"> <DropdownMenuItem onClick={() => setTheme("light")} className="mt-1">
<Sun className="mr-2 h-4 w-4" /> <Sun className="mr-2 h-4 w-4" />
Light Light

View File

@@ -65,7 +65,7 @@ const DropdownMenuContent = React.forwardRef<
ref={ref} ref={ref}
sideOffset={sideOffset} sideOffset={sideOffset}
className={cn( className={cn(
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border glass bg-popover/50 p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 glass z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover/50 p-1 text-popover-foreground shadow-md",
className, className,
)} )}
{...props} {...props}

View File

@@ -1,35 +1,40 @@
import { LucideBookOpenCheck, LucideClipboardSignature, LucideGitPullRequestDraft, MessageSquareText } from "lucide-react"; import {
LucideBookOpenCheck,
LucideClipboardSignature,
LucideGitPullRequestDraft,
MessageSquareText,
} from "lucide-react";
import { FaGithub } from "react-icons/fa"; import { FaGithub } from "react-icons/fa";
export const navBarLinks = [ export const navBarLinks = [
{ {
href: "https://github.com/tteck/Proxmox/discussions", href: "https://github.com/tteck/Proxmox/discussions",
event: "Discussions", event: "Discussions",
icon: <MessageSquareText className="mr-2 h-4 w-4" />, icon: <MessageSquareText className="mr-2 h-4 w-4" />,
text: "Discussions", text: "Discussions",
}, },
{ {
href: "https://github.com/tteck/Proxmox/blob/main/.github/CONTRIBUTING.md", href: "https://github.com/tteck/Proxmox/blob/main/.github/CONTRIBUTING.md",
event: "Contributing", event: "Contributing",
icon: <LucideGitPullRequestDraft className="mr-2 h-4 w-4" />, icon: <LucideGitPullRequestDraft className="mr-2 h-4 w-4" />,
text: "Contribute", text: "Contribute",
}, },
{ {
href: "https://github.com/tteck/Proxmox/blob/main/USER_SUBMITTED_GUIDES.md", href: "https://github.com/tteck/Proxmox/blob/main/USER_SUBMITTED_GUIDES.md",
event: "Guides", event: "Guides",
icon: <LucideBookOpenCheck className="mr-2 h-4 w-4" />, icon: <LucideBookOpenCheck className="mr-2 h-4 w-4" />,
text: "Guides", text: "Guides",
}, },
{ {
href: "https://github.com/tteck/Proxmox/blob/main/CHANGELOG.md", href: "https://github.com/tteck/Proxmox/blob/main/CHANGELOG.md",
event: "Change Log", event: "Change Log",
icon: <LucideClipboardSignature className="mr-2 h-4 w-4" />, icon: <LucideClipboardSignature className="mr-2 h-4 w-4" />,
text: "Changelog", text: "Changelog",
}, },
{ {
href: "https://github.com/tteck/Proxmox", href: "https://github.com/tteck/Proxmox",
event: "View on GitHub", event: "View on GitHub",
icon: <FaGithub className="mr-2 h-4 w-4" />, icon: <FaGithub className="mr-2 h-4 w-4" />,
text: "View on Github", text: "View on Github",
}, },
] ];