Remove npm legacy errors, created single source of truth for ESlint. updated analytics url. updated script background (#5498)

* Update ScriptAccordion and ScriptItem components for improved styling

* Add README.md for Proxmox VE Helper-Scripts Frontend

* Remove testing dependencies and related test files from the frontend project

* Update analytics URL in siteConfig to point to community-scripts.org

* Refactor ESLint configuration to have one source of truth and run "npm lint" to apply new changes

* Update lint script in package.json to remove npm

* Add 'next' option to ESLint configuration for improved compatibility

* Update package dependencies and versions in package.json and package-lock.json

* Refactor theme provider import and enhance calendar component for dynamic icon rendering

* rename sidebar, alerts and buttons

* rename description and interfaces files

* rename more files

* change folder name

* Refactor tooltip logic to improve updateable condition handling

* Enhance CommandMenu to prevent duplicate scripts across categories

* Remove test step from frontend CI/CD workflow
This commit is contained in:
Bram Suurd 2025-06-28 00:38:09 +02:00 committed by GitHub
parent d60911a063
commit 0067075ed1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
91 changed files with 8049 additions and 4043 deletions

View file

@ -1,18 +1,18 @@
import { Category } from "./types";
import type { Category } from "./types";
export const fetchCategories = async () => {
export async function fetchCategories() {
const response = await fetch("api/categories");
if (!response.ok) {
throw new Error(`Failed to fetch categories: ${response.statusText}`);
}
const categories: Category[] = await response.json();
return categories;
};
}
export const fetchVersions = async () => {
export async function fetchVersions() {
const response = await fetch(`api/versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}
return response.json();
};
}

View file

@ -1,4 +1,4 @@
import { AlertColors } from "@/config/siteConfig";
import type { AlertColors } from "@/config/site-config";
export type Script = {
name: string;
@ -48,18 +48,18 @@ export type Metadata = {
categories: Category[];
};
export interface Version {
export type Version = {
name: string;
slug: string;
}
};
export interface OperatingSystem {
export type OperatingSystem = {
name: string;
versions: Version[];
}
};
export interface AppVersion {
export type AppVersion = {
name: string;
version: string;
date: Date;
}
};

View file

@ -1,5 +1,7 @@
import { clsx, type ClassValue } from "clsx";
import type { ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
import { clsx } from "clsx";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));