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
* [Getting Started](#getting-started)
* [Issues](#issues)
* [Pull Requests](#pull-requests)
- [Getting Started](#getting-started)
- [Issues](#issues)
- [Pull Requests](#pull-requests)
## Getting Started

View File

@@ -19,22 +19,28 @@
## 👀 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.
## Getting Started
### Prerequisites
- Proxmox VE installed
### Contributing
Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) for more information.
### License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
### Contact
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">
Proxmox VE Helper-Scripts
</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{" "}
<Typewriter
words={[

View File

@@ -4,7 +4,7 @@ import React from "react";
export default function Footer() {
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="max-w-7xl mx-6 w-full text-sm">
<div className="mx-6 w-full max-w-7xl text-sm">
Build by{" "}
<Link
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!",
{ duration: 8000 },
);
}
, 500);
}, 500);
} else {
amountOfScriptsCopied = (parseInt(amountOfScriptsCopied) + 1).toString();
localStorage.setItem("amountOfScriptsCopied", amountOfScriptsCopied);

View File

@@ -25,7 +25,7 @@ export function ModeToggle() {
</Button>
</DropdownMenuTrigger>
<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">
<Sun className="mr-2 h-4 w-4" />
Light

View File

@@ -65,7 +65,7 @@ const DropdownMenuContent = React.forwardRef<
ref={ref}
sideOffset={sideOffset}
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,
)}
{...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";
export const navBarLinks = [
{
href: "https://github.com/tteck/Proxmox/discussions",
event: "Discussions",
icon: <MessageSquareText className="mr-2 h-4 w-4" />,
text: "Discussions",
},
{
href: "https://github.com/tteck/Proxmox/blob/main/.github/CONTRIBUTING.md",
event: "Contributing",
icon: <LucideGitPullRequestDraft className="mr-2 h-4 w-4" />,
text: "Contribute",
},
{
href: "https://github.com/tteck/Proxmox/blob/main/USER_SUBMITTED_GUIDES.md",
event: "Guides",
icon: <LucideBookOpenCheck className="mr-2 h-4 w-4" />,
text: "Guides",
},
{
href: "https://github.com/tteck/Proxmox/blob/main/CHANGELOG.md",
event: "Change Log",
icon: <LucideClipboardSignature className="mr-2 h-4 w-4" />,
text: "Changelog",
},
{
href: "https://github.com/tteck/Proxmox",
event: "View on GitHub",
icon: <FaGithub className="mr-2 h-4 w-4" />,
text: "View on Github",
},
]
{
href: "https://github.com/tteck/Proxmox/discussions",
event: "Discussions",
icon: <MessageSquareText className="mr-2 h-4 w-4" />,
text: "Discussions",
},
{
href: "https://github.com/tteck/Proxmox/blob/main/.github/CONTRIBUTING.md",
event: "Contributing",
icon: <LucideGitPullRequestDraft className="mr-2 h-4 w-4" />,
text: "Contribute",
},
{
href: "https://github.com/tteck/Proxmox/blob/main/USER_SUBMITTED_GUIDES.md",
event: "Guides",
icon: <LucideBookOpenCheck className="mr-2 h-4 w-4" />,
text: "Guides",
},
{
href: "https://github.com/tteck/Proxmox/blob/main/CHANGELOG.md",
event: "Change Log",
icon: <LucideClipboardSignature className="mr-2 h-4 w-4" />,
text: "Changelog",
},
{
href: "https://github.com/tteck/Proxmox",
event: "View on GitHub",
icon: <FaGithub className="mr-2 h-4 w-4" />,
text: "View on Github",
},
];