From 719fb36d82e89c008e0a09442808b223b2f9b6ab Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 16 Feb 2025 15:38:56 +0100 Subject: [PATCH] update --- web/web/app/changelog/page.tsx | 27 ---------- web/web/app/components/docs-layout.tsx | 8 --- web/web/app/components/ui/button.tsx | 48 ----------------- web/web/app/components/ui/steps.tsx | 35 ------------- web/web/app/globals.css | 60 --------------------- web/web/app/guides/[slug]/page.tsx | 33 ------------ web/web/app/layout.tsx | 31 ----------- web/web/app/page.tsx | 16 ------ web/web/components.json | 17 ------ web/web/next.config.js | 19 ------- web/web/package.json | 15 ------ web/web/styles/globals.css | 60 --------------------- web/web/tailwind.config.js | 72 -------------------------- web/web/tsconfig.json | 29 ----------- 14 files changed, 470 deletions(-) delete mode 100644 web/web/app/changelog/page.tsx delete mode 100644 web/web/app/components/docs-layout.tsx delete mode 100644 web/web/app/components/ui/button.tsx delete mode 100644 web/web/app/components/ui/steps.tsx delete mode 100644 web/web/app/globals.css delete mode 100644 web/web/app/guides/[slug]/page.tsx delete mode 100644 web/web/app/layout.tsx delete mode 100644 web/web/app/page.tsx delete mode 100644 web/web/components.json delete mode 100644 web/web/next.config.js delete mode 100644 web/web/package.json delete mode 100644 web/web/styles/globals.css delete mode 100644 web/web/tailwind.config.js delete mode 100644 web/web/tsconfig.json diff --git a/web/web/app/changelog/page.tsx b/web/web/app/changelog/page.tsx deleted file mode 100644 index f828262..0000000 --- a/web/web/app/changelog/page.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import fs from "fs" -import path from "path" -import { remark } from "remark" -import html from "remark-html" - -async function getChangelog() { - const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md") - try { - const fileContents = fs.readFileSync(changelogPath, "utf8") - const result = await remark().use(html).process(fileContents) - return result.toString() - } catch (error) { - console.error("Error reading changelog file:", error) - return "

Changelog content not found.

" - } -} - -export default async function ChangelogPage() { - const changelogContent = await getChangelog() - - return ( -
-

Changelog

-
-
- ) -} diff --git a/web/web/app/components/docs-layout.tsx b/web/web/app/components/docs-layout.tsx deleted file mode 100644 index 886d7d4..0000000 --- a/web/web/app/components/docs-layout.tsx +++ /dev/null @@ -1,8 +0,0 @@ -"use client" - -import type React from "react" - -export default function DocsLayout({ children }: { children: React.ReactNode }) { - return
{children}
-} - diff --git a/web/web/app/components/ui/button.tsx b/web/web/app/components/ui/button.tsx deleted file mode 100644 index cacb24d..0000000 --- a/web/web/app/components/ui/button.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import * as React from "react" -import { Slot } from "@radix-ui/react-slot" -import { cva, type VariantProps } from "class-variance-authority" - -import { cn } from "@/lib/utils" - -const buttonVariants = cva( - "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", - { - variants: { - variant: { - default: "bg-primary text-primary-foreground hover:bg-primary/90", - destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", - outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground", - secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", - ghost: "hover:bg-accent hover:text-accent-foreground", - link: "text-primary underline-offset-4 hover:underline", - }, - size: { - default: "h-10 px-4 py-2", - sm: "h-9 rounded-md px-3", - lg: "h-11 rounded-md px-8", - icon: "h-10 w-10", - }, - }, - defaultVariants: { - variant: "default", - size: "default", - }, - }, -) - -export interface ButtonProps - extends React.ButtonHTMLAttributes, - VariantProps { - asChild?: boolean -} - -const Button = React.forwardRef( - ({ className, variant, size, asChild = false, ...props }, ref) => { - const Comp = asChild ? Slot : "button" - return - }, -) -Button.displayName = "Button" - -export { Button, buttonVariants } - diff --git a/web/web/app/components/ui/steps.tsx b/web/web/app/components/ui/steps.tsx deleted file mode 100644 index 58c6ae9..0000000 --- a/web/web/app/components/ui/steps.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import React from "react" - -interface StepProps { - title: string - children: React.ReactNode -} - -const Step: React.FC = ({ title, children }) => ( -
-

{title}

- {children} -
-) - -interface StepsProps { - children: React.ReactNode -} - -const Steps: React.FC & { Step: typeof Step } = ({ children }) => ( -
- {React.Children.map(children, (child, index) => ( -
-
- {index + 1} -
-
{child}
-
- ))} -
-) - -Steps.Step = Step - -export { Steps } - diff --git a/web/web/app/globals.css b/web/web/app/globals.css deleted file mode 100644 index 1186f27..0000000 --- a/web/web/app/globals.css +++ /dev/null @@ -1,60 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -@layer base { - :root { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; - --card: 0 0% 100%; - --card-foreground: 240 10% 3.9%; - --popover: 0 0% 100%; - --popover-foreground: 240 10% 3.9%; - --primary: 240 5.9% 10%; - --primary-foreground: 0 0% 98%; - --secondary: 240 4.8% 95.9%; - --secondary-foreground: 240 5.9% 10%; - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - --accent: 240 4.8% 95.9%; - --accent-foreground: 240 5.9% 10%; - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 0 0% 98%; - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - --ring: 240 5.9% 10%; - --radius: 0.5rem; - } - - .dark { - --background: 240 10% 3.9%; - --foreground: 0 0% 98%; - --card: 240 10% 3.9%; - --card-foreground: 0 0% 98%; - --popover: 240 10% 3.9%; - --popover-foreground: 0 0% 98%; - --primary: 0 0% 98%; - --primary-foreground: 240 5.9% 10%; - --secondary: 240 3.7% 15.9%; - --secondary-foreground: 0 0% 98%; - --muted: 240 3.7% 15.9%; - --muted-foreground: 240 5% 64.9%; - --accent: 240 3.7% 15.9%; - --accent-foreground: 0 0% 98%; - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 0% 98%; - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - --ring: 240 4.9% 83.9%; - } -} - -@layer base { - * { - @apply border-border; - } - body { - @apply bg-background text-foreground; - } -} - diff --git a/web/web/app/guides/[slug]/page.tsx b/web/web/app/guides/[slug]/page.tsx deleted file mode 100644 index eebd3ca..0000000 --- a/web/web/app/guides/[slug]/page.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import fs from "fs" -import path from "path" -import { remark } from "remark" -import html from "remark-html" -import DocsLayout from "../../components/docs-layout" - -async function getGuideContent(slug: string) { - const guidePath = path.join(process.cwd(), "..", "guides", `${slug}.md`) - const fileContents = fs.readFileSync(guidePath, "utf8") - - const result = await remark().use(html).process(fileContents) - return result.toString() -} - -export async function generateStaticParams() { - const guideFiles = fs.readdirSync(path.join(process.cwd(), "..", "guides")) - return guideFiles.map((file) => ({ - slug: file.replace(/\.md$/, ""), - })) -} - -export default async function GuidePage({ params }: { params: { slug: string } }) { - const guideContent = await getGuideContent(params.slug) - - return ( - -
-
-
- - ) -} - diff --git a/web/web/app/layout.tsx b/web/web/app/layout.tsx deleted file mode 100644 index 533be42..0000000 --- a/web/web/app/layout.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import "./globals.css" -import { Inter } from "next/font/google" -import type React from "react" -import type { Metadata } from "next" -import Navbar from "@/components/navbar" -import MouseMoveEffect from "@/components/mouse-move-effect" - -const inter = Inter({ subsets: ["latin"] }) - -export const metadata: Metadata = { - title: "ProxMenux - A menu-driven script for Proxmox VE management", - description: - "ProxMenux is a tool designed to execute shell scripts in an organized manner for Proxmox VE management.", -} - -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - - - - -
{children}
- - - ) -} - diff --git a/web/web/app/page.tsx b/web/web/app/page.tsx deleted file mode 100644 index c06b31e..0000000 --- a/web/web/app/page.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import Hero from "@/components/hero" -import Resources from "@/components/resources" -import SupportProject from "@/components/support-project" -import Footer from "@/components/footer" - -export default function Home() { - return ( -
- - - -
- ) -} - diff --git a/web/web/components.json b/web/web/components.json deleted file mode 100644 index 0b4ee63..0000000 --- a/web/web/components.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://ui.shadcn.com/schema.json", - "style": "default", - "rsc": true, - "tsx": true, - "tailwind": { - "config": "tailwind.config.js", - "css": "app/globals.css", - "baseColor": "slate", - "cssVariables": true - }, - "aliases": { - "components": "@/components", - "utils": "@/lib/utils" - } -} - diff --git a/web/web/next.config.js b/web/web/next.config.js deleted file mode 100644 index cc7fd8b..0000000 --- a/web/web/next.config.js +++ /dev/null @@ -1,19 +0,0 @@ -const path = require("path") - -/** @type {import('next').NextConfig} */ -const nextConfig = { - output: "export", - images: { - unoptimized: true, - }, - assetPrefix: "/ProxMenux/", - basePath: "/ProxMenux", - webpack: (config, { isServer }) => { - config.resolve.alias["@guides"] = path.join(__dirname, "..", "guides") - config.resolve.alias["@changelog"] = path.join(__dirname, "..", "CHANGELOG.md") - return config - }, -} - -module.exports = nextConfig - diff --git a/web/web/package.json b/web/web/package.json deleted file mode 100644 index bb6bc12..0000000 --- a/web/web/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "next lint", - "export": "next export" - }, - "dependencies": { - "next": "13.4.7", - "react": "18.2.0", - "react-dom": "18.2.0" - } -} - diff --git a/web/web/styles/globals.css b/web/web/styles/globals.css deleted file mode 100644 index 1186f27..0000000 --- a/web/web/styles/globals.css +++ /dev/null @@ -1,60 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -@layer base { - :root { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; - --card: 0 0% 100%; - --card-foreground: 240 10% 3.9%; - --popover: 0 0% 100%; - --popover-foreground: 240 10% 3.9%; - --primary: 240 5.9% 10%; - --primary-foreground: 0 0% 98%; - --secondary: 240 4.8% 95.9%; - --secondary-foreground: 240 5.9% 10%; - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - --accent: 240 4.8% 95.9%; - --accent-foreground: 240 5.9% 10%; - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 0 0% 98%; - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - --ring: 240 5.9% 10%; - --radius: 0.5rem; - } - - .dark { - --background: 240 10% 3.9%; - --foreground: 0 0% 98%; - --card: 240 10% 3.9%; - --card-foreground: 0 0% 98%; - --popover: 240 10% 3.9%; - --popover-foreground: 0 0% 98%; - --primary: 0 0% 98%; - --primary-foreground: 240 5.9% 10%; - --secondary: 240 3.7% 15.9%; - --secondary-foreground: 0 0% 98%; - --muted: 240 3.7% 15.9%; - --muted-foreground: 240 5% 64.9%; - --accent: 240 3.7% 15.9%; - --accent-foreground: 0 0% 98%; - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 0% 98%; - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - --ring: 240 4.9% 83.9%; - } -} - -@layer base { - * { - @apply border-border; - } - body { - @apply bg-background text-foreground; - } -} - diff --git a/web/web/tailwind.config.js b/web/web/tailwind.config.js deleted file mode 100644 index 2ae83ea..0000000 --- a/web/web/tailwind.config.js +++ /dev/null @@ -1,72 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -module.exports = { - darkMode: ["class"], - content: ["./app/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./pages/**/*.{ts,tsx}"], - theme: { - container: { - center: true, - padding: "2rem", - screens: { - "2xl": "1400px", - }, - }, - extend: { - colors: { - border: "hsl(var(--border))", - input: "hsl(var(--input))", - ring: "hsl(var(--ring))", - background: "hsl(var(--background))", - foreground: "hsl(var(--foreground))", - primary: { - DEFAULT: "hsl(var(--primary))", - foreground: "hsl(var(--primary-foreground))", - }, - secondary: { - DEFAULT: "hsl(var(--secondary))", - foreground: "hsl(var(--secondary-foreground))", - }, - destructive: { - DEFAULT: "hsl(var(--destructive))", - foreground: "hsl(var(--destructive-foreground))", - }, - muted: { - DEFAULT: "hsl(var(--muted))", - foreground: "hsl(var(--muted-foreground))", - }, - accent: { - DEFAULT: "hsl(var(--accent))", - foreground: "hsl(var(--accent-foreground))", - }, - popover: { - DEFAULT: "hsl(var(--popover))", - foreground: "hsl(var(--popover-foreground))", - }, - card: { - DEFAULT: "hsl(var(--card))", - foreground: "hsl(var(--card-foreground))", - }, - }, - borderRadius: { - lg: "var(--radius)", - md: "calc(var(--radius) - 2px)", - sm: "calc(var(--radius) - 4px)", - }, - keyframes: { - "accordion-down": { - from: { height: 0 }, - to: { height: "var(--radix-accordion-content-height)" }, - }, - "accordion-up": { - from: { height: "var(--radix-accordion-content-height)" }, - to: { height: 0 }, - }, - }, - animation: { - "accordion-down": "accordion-down 0.2s ease-out", - "accordion-up": "accordion-up 0.2s ease-out", - }, - }, - }, - plugins: [require("tailwindcss-animate")], -} - diff --git a/web/web/tsconfig.json b/web/web/tsconfig.json deleted file mode 100644 index 364f802..0000000 --- a/web/web/tsconfig.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] -} -