commit 027847fbacc507ec4d266523d417822b85ba2a3a Author: Stalin S Date: Thu May 21 02:42:03 2026 +0530 Initial commit: ArchStore package manager for Arch Linux diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccb74cf --- /dev/null +++ b/.gitignore @@ -0,0 +1,34 @@ +# Node +node_modules/ +dist/ +.env +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Python +__pycache__/ +*.py[cod] +*$py.class +venv/ +.venv/ +env/ +.env/ +pip-log.txt +pip-delete-this-directory.txt + +# Databases +*.db +*.db-journal +*.db-shm +*.db-wal + +# IDE / System +.vscode/ +.idea/ +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.swp diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..12357d6 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,166 @@ +# CLAUDE.md + +# Project Name +ArchStore + +# Project Description +ArchStore is a lightweight modern package store for Arch Linux. +It combines official pacman repositories and the AUR into one clean interface similar to a Play Store. + +Users can: +- Search packages +- Install packages +- View package details +- Check updates +- Browse categories +- Analyze package security + +--- + +# Goals +- Fast and lightweight +- Modern UI +- Secure package installation +- Unified package ecosystem +- Beginner friendly +- Open source + +--- + +# Core Features + +## Package Search +Search packages from: +- pacman repositories +- AUR repositories + +--- + +## Package Information +Show: +- package name +- description +- maintainer +- dependencies +- version +- popularity +- votes +- package size +- last updated + +--- + +## One Click Install +Install packages using: +- pacman +- paru + +--- + +## Update Center +Show available package updates. + +--- + +## Security Scanner +Analyze PKGBUILD files for: +- dangerous bash commands +- suspicious scripts +- hidden downloads +- obfuscated code +- remote execution attempts + +--- + +# Tech Stack + +## Frontend +- React +- TailwindCSS +- Vite + +## Backend +- Python +- FastAPI + +## Database +- SQLite + +--- + +# APIs + +## AUR RPC +https://aur.archlinux.org/rpc/ + +--- + +# Backend Structure + +backend/ +├── api/ +├── scanner/ +├── services/ +├── database/ +├── main.py + +--- + +# Frontend Structure + +frontend/ +├── src/ +├── components/ +├── pages/ +├── layouts/ +├── services/ + +--- + +# UI Style +- Dark theme +- Minimal interface +- Fast navigation +- Responsive design + +--- + +# Future Features +- AI malware detection +- Verified packages +- Package reviews +- Package screenshots +- Dependency graph +- Flatpak support +- Snap support +- Electron desktop client + +--- + +# Security Rules +- Never execute unknown scripts directly +- Always sanitize shell commands +- Validate package metadata +- Use sandboxed package analysis +- Prevent command injection + +--- + +# Development Commands + +## Backend +uvicorn main:app --reload + +## Frontend +npm run dev + +--- + +# Project Vision +Create the best lightweight package store experience for Arch Linux users. + +--- + +# Maintainer +Aur & Arch 5t4l1n +github:0x5t4l1n diff --git a/SKILLS.md b/SKILLS.md new file mode 100644 index 0000000..74277a2 --- /dev/null +++ b/SKILLS.md @@ -0,0 +1,235 @@ +# SKILLS.md + +# Required Skills for ArchStore + +ArchStore is a lightweight package store for Arch Linux that combines pacman repositories and AUR packages into one modern interface. + +--- + +# Core Skills + +## Linux Skills +- Arch Linux basics +- pacman package manager +- AUR package system +- PKGBUILD understanding +- systemd basics +- terminal usage + +--- + +# Backend Skills + +## Python +Required for: +- API development +- package analysis +- backend services + +Topics: +- FastAPI +- subprocess +- async programming +- REST APIs +- JSON handling + +--- + +## FastAPI +Required for: +- backend API server +- frontend communication + +Topics: +- routes +- API responses +- middleware +- async endpoints + +--- + +# Frontend Skills + +## HTML +Required for: +- page structure + +--- + +## CSS +Required for: +- styling +- responsive design + +--- + +## TailwindCSS +Required for: +- modern UI +- fast styling + +--- + +## JavaScript +Required for: +- dynamic frontend +- API requests + +Topics: +- fetch API +- async/await +- DOM manipulation + +--- + +## React +Required for: +- scalable frontend +- reusable components + +Topics: +- components +- hooks +- routing +- state management + +--- + +# Database Skills + +## SQLite +Required for: +- package cache +- saved metadata + +Topics: +- CRUD operations +- indexing +- schema design + +--- + +# Security Skills + +## Bash Analysis +Required for: +- PKGBUILD scanning +- script analysis + +Topics: +- shell commands +- bash syntax +- command injection detection + +--- + +## Package Security +Required for: +- detecting suspicious packages + +Topics: +- malicious scripts +- obfuscation +- unsafe downloads +- privilege escalation risks + +--- + +# API Skills + +## AUR RPC API +https://aur.archlinux.org/rpc/ + +Required for: +- searching AUR packages +- fetching metadata + +--- + +# DevOps Skills + +## Git +Required for: +- version control + +Topics: +- commits +- branches +- pull requests + +--- + +## Docker +Optional but useful for: +- sandbox builds +- isolated package analysis + +--- + +# UI/UX Skills + +Required for: +- modern package store experience + +Topics: +- dark themes +- responsive layouts +- minimal UI +- accessibility + +--- + +# Recommended Learning Order + +1. Arch Linux basics +2. pacman and AUR +3. Python +4. FastAPI +5. HTML/CSS +6. JavaScript +7. React +8. TailwindCSS +9. Security scanning +10. Advanced package analysis + +--- + +# Nice-to-Have Skills + +- Electron +- Rust +- Go +- Redis +- PostgreSQL +- AI/ML +- Malware analysis + +--- + +# Development Tools + +## Editors +- VS Code + +## API Testing +- Postman +- curl + +## Browser Dev Tools +- Firefox Developer Tools + +--- + +# Future Advanced Skills + +- AI package risk analysis +- dependency graph visualization +- reproducible builds +- package signing verification +- CVE integration +- container sandboxing + +--- + +# Final Goal +Build a modern lightweight Play Store experience for Arch Linux users. diff --git a/backend/api/__init__.py b/backend/api/__init__.py new file mode 100644 index 0000000..13d9d22 --- /dev/null +++ b/backend/api/__init__.py @@ -0,0 +1 @@ +# api package diff --git a/backend/api/routes/__init__.py b/backend/api/routes/__init__.py new file mode 100644 index 0000000..ce353f5 --- /dev/null +++ b/backend/api/routes/__init__.py @@ -0,0 +1 @@ +# api.routes package diff --git a/backend/api/routes/categories.py b/backend/api/routes/categories.py new file mode 100644 index 0000000..b524e83 --- /dev/null +++ b/backend/api/routes/categories.py @@ -0,0 +1,33 @@ +""" +Categories API routes for ArchStore. +Handles package category browsing. +""" + +from fastapi import APIRouter, HTTPException +from services import package_service + +router = APIRouter(prefix="/api/categories", tags=["categories"]) + + +@router.get("") +async def list_categories(): + """Get all available package categories.""" + try: + categories = await package_service.get_categories() + return {"results": categories, "count": len(categories)} + except Exception as e: + raise HTTPException(status_code=500, detail=f"Failed to get categories: {str(e)}") + + +@router.get("/{name}") +async def get_category_packages(name: str): + """Get packages in a specific category.""" + try: + packages = await package_service.get_category_packages(name) + if not packages and name not in [c["name"] for c in await package_service.get_categories()]: + raise HTTPException(status_code=404, detail=f"Category '{name}' not found") + return {"category": name, "results": packages, "count": len(packages)} + except HTTPException: + raise + except Exception as e: + raise HTTPException(status_code=500, detail=f"Failed to get category: {str(e)}") diff --git a/backend/api/routes/packages.py b/backend/api/routes/packages.py new file mode 100644 index 0000000..52a3e19 --- /dev/null +++ b/backend/api/routes/packages.py @@ -0,0 +1,109 @@ +""" +Package API routes for ArchStore. +Handles search, info, install, and remove endpoints. +""" + +from fastapi import APIRouter, HTTPException, Query +from services import package_service, aur_service +from scanner.security import scan_pkgbuild +from utils.sanitize import sanitize_package_name, sanitize_search_query + +router = APIRouter(prefix="/api/packages", tags=["packages"]) + + +@router.get("/search") +async def search_packages( + q: str = Query(..., min_length=1, max_length=128, description="Search query"), + source: str = Query("all", description="Source filter: all, pacman, aur"), +): + """Search packages across pacman and AUR.""" + try: + query = sanitize_search_query(q) + results = await package_service.search_packages(query, source) + return {"results": results, "count": len(results), "query": query, "source": source} + except ValueError as e: + raise HTTPException(status_code=400, detail=str(e)) + except Exception as e: + raise HTTPException(status_code=500, detail=f"Search failed: {str(e)}") + + +@router.get("/installed") +async def list_installed(): + """List all installed packages.""" + try: + packages = await package_service.list_installed() + return {"results": packages, "count": len(packages)} + except Exception as e: + raise HTTPException(status_code=500, detail=f"Failed to list packages: {str(e)}") + + +@router.get("/{name}") +async def get_package_info(name: str): + """Get detailed info about a specific package.""" + try: + name = sanitize_package_name(name) + info = await package_service.get_package_info(name) + if not info: + raise HTTPException(status_code=404, detail=f"Package '{name}' not found") + return info + except ValueError as e: + raise HTTPException(status_code=400, detail=str(e)) + except HTTPException: + raise + except Exception as e: + raise HTTPException(status_code=500, detail=f"Failed to get package info: {str(e)}") + + +@router.get("/{name}/scan") +async def scan_package(name: str): + """Scan an AUR package's PKGBUILD for security issues.""" + try: + name = sanitize_package_name(name) + pkgbuild = await aur_service.get_pkgbuild(name) + if not pkgbuild: + return { + "package_name": name, + "risk_score": 0, + "findings": [], + "scanned": False, + "risk_level": "unknown", + "message": "PKGBUILD not found (may be a pacman package)", + } + result = scan_pkgbuild(name, pkgbuild) + return result.to_dict() + except ValueError as e: + raise HTTPException(status_code=400, detail=str(e)) + + +@router.post("/{name}/install") +async def install_package(name: str): + """Install a package.""" + try: + name = sanitize_package_name(name) + result = await package_service.install_package(name) + if not result["success"]: + raise HTTPException(status_code=500, detail=result["message"]) + return result + except ValueError as e: + raise HTTPException(status_code=400, detail=str(e)) + except HTTPException: + raise + except Exception as e: + raise HTTPException(status_code=500, detail=f"Install failed: {str(e)}") + + +@router.post("/{name}/remove") +async def remove_package(name: str): + """Remove an installed package.""" + try: + name = sanitize_package_name(name) + result = await package_service.remove_package(name) + if not result["success"]: + raise HTTPException(status_code=500, detail=result["message"]) + return result + except ValueError as e: + raise HTTPException(status_code=400, detail=str(e)) + except HTTPException: + raise + except Exception as e: + raise HTTPException(status_code=500, detail=f"Remove failed: {str(e)}") diff --git a/backend/api/routes/updates.py b/backend/api/routes/updates.py new file mode 100644 index 0000000..0a11b6f --- /dev/null +++ b/backend/api/routes/updates.py @@ -0,0 +1,53 @@ +""" +Updates API routes for ArchStore. +Handles update checking and applying updates. +""" + +from fastapi import APIRouter, HTTPException +from services import package_service + +router = APIRouter(prefix="/api/updates", tags=["updates"]) + + +@router.get("/check") +async def check_updates(): + """Check for available package updates (pacman + AUR).""" + try: + updates = await package_service.check_updates() + return { + "results": updates, + "count": len(updates), + "pacman_count": sum(1 for u in updates if u["source"] == "pacman"), + "aur_count": sum(1 for u in updates if u["source"] == "aur"), + } + except Exception as e: + raise HTTPException(status_code=500, detail=f"Update check failed: {str(e)}") + + +@router.post("/apply") +async def apply_updates(): + """Apply all available updates. This is a long-running operation.""" + try: + import asyncio + from utils.sanitize import sanitize_package_name + + async def _run_command(cmd, timeout=600): + proc = await asyncio.create_subprocess_exec( + *cmd, + stdout=asyncio.subprocess.PIPE, + stderr=asyncio.subprocess.PIPE, + ) + stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=timeout) + return stdout.decode(), stderr.decode(), proc.returncode + + # Run system update via yay (handles both pacman and AUR) + stdout, stderr, code = await _run_command( + ["yay", "-Syu", "--noconfirm"], timeout=600 + ) + + return { + "success": code == 0, + "message": stdout if code == 0 else stderr, + } + except Exception as e: + raise HTTPException(status_code=500, detail=f"Update failed: {str(e)}") diff --git a/backend/database/__init__.py b/backend/database/__init__.py new file mode 100644 index 0000000..d7ddcee --- /dev/null +++ b/backend/database/__init__.py @@ -0,0 +1 @@ +# database package diff --git a/backend/database/db.py b/backend/database/db.py new file mode 100644 index 0000000..5203cf6 --- /dev/null +++ b/backend/database/db.py @@ -0,0 +1,141 @@ +""" +SQLite database manager for ArchStore. +Handles connection lifecycle, schema creation, and cache operations. +""" + +import aiosqlite +import os +import time +import json +from typing import Optional + +DB_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "archstore.db") +CACHE_TTL = 900 # 15 minutes in seconds + + +class Database: + """Async SQLite database manager.""" + + def __init__(self, db_path: str = DB_PATH): + self.db_path = db_path + self._db: Optional[aiosqlite.Connection] = None + + async def connect(self): + """Open database connection and create tables.""" + self._db = await aiosqlite.connect(self.db_path) + self._db.row_factory = aiosqlite.Row + await self._db.execute("PRAGMA journal_mode=WAL") + await self._create_tables() + + async def close(self): + """Close database connection.""" + if self._db: + await self._db.close() + self._db = None + + async def _create_tables(self): + """Create required tables if they don't exist.""" + await self._db.executescript(""" + CREATE TABLE IF NOT EXISTS search_cache ( + query TEXT NOT NULL, + source TEXT NOT NULL, + results TEXT NOT NULL, + created_at REAL NOT NULL, + PRIMARY KEY (query, source) + ); + + CREATE TABLE IF NOT EXISTS package_cache ( + name TEXT PRIMARY KEY, + data TEXT NOT NULL, + created_at REAL NOT NULL + ); + + CREATE TABLE IF NOT EXISTS settings ( + key TEXT PRIMARY KEY, + value TEXT NOT NULL + ); + + CREATE INDEX IF NOT EXISTS idx_search_cache_time + ON search_cache(created_at); + + CREATE INDEX IF NOT EXISTS idx_package_cache_time + ON package_cache(created_at); + """) + await self._db.commit() + + async def get_cached_search(self, query: str, source: str) -> Optional[list]: + """Get cached search results if still fresh.""" + cursor = await self._db.execute( + "SELECT results, created_at FROM search_cache WHERE query = ? AND source = ?", + (query, source) + ) + row = await cursor.fetchone() + if row and (time.time() - row["created_at"]) < CACHE_TTL: + return json.loads(row["results"]) + return None + + async def set_cached_search(self, query: str, source: str, results: list): + """Cache search results.""" + await self._db.execute( + """INSERT OR REPLACE INTO search_cache (query, source, results, created_at) + VALUES (?, ?, ?, ?)""", + (query, source, json.dumps(results), time.time()) + ) + await self._db.commit() + + async def get_cached_package(self, name: str) -> Optional[dict]: + """Get cached package info if still fresh.""" + cursor = await self._db.execute( + "SELECT data, created_at FROM package_cache WHERE name = ?", + (name,) + ) + row = await cursor.fetchone() + if row and (time.time() - row["created_at"]) < CACHE_TTL: + return json.loads(row["data"]) + return None + + async def set_cached_package(self, name: str, data: dict): + """Cache package info.""" + await self._db.execute( + """INSERT OR REPLACE INTO package_cache (name, data, created_at) + VALUES (?, ?, ?)""", + (name, json.dumps(data), time.time()) + ) + await self._db.commit() + + async def get_setting(self, key: str, default: str = "") -> str: + """Get a setting value.""" + cursor = await self._db.execute( + "SELECT value FROM settings WHERE key = ?", (key,) + ) + row = await cursor.fetchone() + return row["value"] if row else default + + async def set_setting(self, key: str, value: str): + """Set a setting value.""" + await self._db.execute( + "INSERT OR REPLACE INTO settings (key, value) VALUES (?, ?)", + (key, value) + ) + await self._db.commit() + + async def clear_cache(self): + """Clear all cached data.""" + await self._db.execute("DELETE FROM search_cache") + await self._db.execute("DELETE FROM package_cache") + await self._db.commit() + + async def cleanup_expired(self): + """Remove expired cache entries.""" + cutoff = time.time() - CACHE_TTL + await self._db.execute( + "DELETE FROM search_cache WHERE created_at < ?", (cutoff,) + ) + await self._db.execute( + "DELETE FROM package_cache WHERE created_at < ?", (cutoff,) + ) + await self._db.commit() + + +# Global database instance +db = Database() diff --git a/backend/main.py b/backend/main.py new file mode 100644 index 0000000..ed88465 --- /dev/null +++ b/backend/main.py @@ -0,0 +1,82 @@ +""" +ArchStore Backend — Main Application +A lightweight package store API for Arch Linux. +""" + +import sys +import os + +# Add backend directory to path for imports +sys.path.insert(0, os.path.dirname(__file__)) + +from contextlib import asynccontextmanager +from fastapi import FastAPI +from fastapi.middleware.cors import CORSMiddleware +from database.db import db +from api.routes import packages, updates, categories + + +@asynccontextmanager +async def lifespan(app: FastAPI): + """Application lifecycle: startup and shutdown.""" + # Startup + await db.connect() + print("✓ Database connected") + print("✓ ArchStore backend ready") + yield + # Shutdown + await db.close() + print("✗ Database disconnected") + + +app = FastAPI( + title="ArchStore API", + description="A lightweight package store API for Arch Linux combining pacman and AUR.", + version="1.0.0", + lifespan=lifespan, +) + +# CORS — allow frontend dev server +app.add_middleware( + CORSMiddleware, + allow_origins=[ + "http://localhost:5173", + "http://127.0.0.1:5173", + "http://localhost:3000", + ], + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], +) + +# Mount route modules +app.include_router(packages.router) +app.include_router(updates.router) +app.include_router(categories.router) + + +@app.get("/") +async def root(): + """Health check endpoint.""" + return { + "name": "ArchStore API", + "version": "1.0.0", + "status": "running", + } + + +@app.get("/api/health") +async def health(): + """Detailed health check.""" + return { + "status": "healthy", + "database": "connected", + "version": "1.0.0", + } + + +@app.post("/api/cache/clear") +async def clear_cache(): + """Clear all cached data.""" + await db.clear_cache() + return {"status": "ok", "message": "Cache cleared"} diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 0000000..b2a6749 --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,5 @@ +fastapi==0.115.12 +uvicorn[standard]==0.34.3 +httpx==0.28.1 +aiosqlite==0.21.0 +pydantic==2.11.3 diff --git a/backend/scanner/__init__.py b/backend/scanner/__init__.py new file mode 100644 index 0000000..e02ec28 --- /dev/null +++ b/backend/scanner/__init__.py @@ -0,0 +1 @@ +# scanner package diff --git a/backend/scanner/security.py b/backend/scanner/security.py new file mode 100644 index 0000000..d5211b9 --- /dev/null +++ b/backend/scanner/security.py @@ -0,0 +1,175 @@ +""" +PKGBUILD Security Scanner for ArchStore. +Analyzes PKGBUILD files for suspicious or dangerous patterns. +""" + +import re +from dataclasses import dataclass, field + +@dataclass +class ScanFinding: + """A single security finding.""" + severity: str # "critical", "warning", "info" + category: str + description: str + line_number: int = 0 + line_content: str = "" + + +@dataclass +class ScanResult: + """Complete scan result.""" + package_name: str + risk_score: int = 0 # 0-100 + findings: list = field(default_factory=list) + scanned: bool = False + + def to_dict(self) -> dict: + return { + "package_name": self.package_name, + "risk_score": self.risk_score, + "findings": [ + { + "severity": f.severity, + "category": f.category, + "description": f.description, + "line_number": f.line_number, + "line_content": f.line_content, + } + for f in self.findings + ], + "scanned": self.scanned, + "risk_level": _risk_level(self.risk_score), + } + + +def _risk_level(score: int) -> str: + if score >= 70: + return "critical" + elif score >= 40: + return "warning" + elif score >= 10: + return "low" + return "safe" + + +# --- Pattern Definitions --- + +CRITICAL_PATTERNS = [ + (r'curl\s+.*\|\s*(ba)?sh', "Remote code execution via curl pipe to shell"), + (r'wget\s+.*\|\s*(ba)?sh', "Remote code execution via wget pipe to shell"), + (r'curl\s+.*\|\s*python', "Remote code execution via curl pipe to python"), + (r'eval\s*\$\(', "Dynamic code evaluation with command substitution"), + (r'base64\s+(-d|--decode)', "Base64 decoding (possible obfuscation)"), + (r'\\x[0-9a-fA-F]{2}', "Hex-encoded characters (possible obfuscation)"), + (r'rm\s+-rf\s+(/\s|/\*|/home|/etc|/usr|/var)', "Dangerous recursive deletion of system paths"), + (r'chmod\s+[0-7]*777', "Setting world-writable permissions"), + (r'chmod\s+\+s', "Setting SUID/SGID bit"), + (r'/dev/tcp/', "Direct TCP socket access"), + (r'nc\s+-[el]', "Netcat listener (possible backdoor)"), + (r'mkfifo.*\|.*sh', "Named pipe shell redirect (possible backdoor)"), +] + +WARNING_PATTERNS = [ + (r'curl\s+', "Network request using curl"), + (r'wget\s+', "Network request using wget"), + (r'git\s+clone', "Git clone operation"), + (r'pip\s+install', "Python pip install (may bypass pacman)"), + (r'npm\s+install\s+-g', "Global npm install"), + (r'sudo\s+', "Sudo usage in PKGBUILD"), + (r'systemctl\s+(enable|start)', "Enabling/starting services"), + (r'dd\s+if=', "Direct disk write with dd"), + (r'mkfs\.', "Filesystem formatting command"), + (r'eval\s+', "Use of eval"), + (r'exec\s+', "Use of exec"), +] + +INFO_PATTERNS = [ + (r'source=\(', "Source file declarations"), + (r'makedepends=', "Build dependencies declared"), + (r'depends=', "Runtime dependencies declared"), + (r'sha256sums=|sha512sums=|md5sums=', "Checksum verification present"), + (r'check\(\)', "Check function present (good practice)"), +] + + +def scan_pkgbuild(package_name: str, content: str) -> ScanResult: + """ + Scan a PKGBUILD file for security issues. + Returns a ScanResult with findings and risk score. + """ + result = ScanResult(package_name=package_name, scanned=True) + + if not content or not content.strip(): + result.findings.append(ScanFinding( + severity="warning", + category="empty", + description="PKGBUILD is empty or could not be retrieved", + )) + result.risk_score = 20 + return result + + lines = content.split("\n") + + for i, line in enumerate(lines, 1): + stripped = line.strip() + # Skip comments + if stripped.startswith("#"): + continue + + # Check critical patterns + for pattern, description in CRITICAL_PATTERNS: + if re.search(pattern, stripped, re.IGNORECASE): + result.findings.append(ScanFinding( + severity="critical", + category="dangerous_command", + description=description, + line_number=i, + line_content=stripped[:200], + )) + result.risk_score += 25 + + # Check warning patterns + for pattern, description in WARNING_PATTERNS: + if re.search(pattern, stripped, re.IGNORECASE): + result.findings.append(ScanFinding( + severity="warning", + category="suspicious_command", + description=description, + line_number=i, + line_content=stripped[:200], + )) + result.risk_score += 5 + + # Check info patterns + for pattern, description in INFO_PATTERNS: + if re.search(pattern, stripped, re.IGNORECASE): + result.findings.append(ScanFinding( + severity="info", + category="metadata", + description=description, + line_number=i, + line_content=stripped[:200], + )) + + # Check for missing checksums (security concern) + if not re.search(r'(sha256sums|sha512sums|b2sums)=', content): + result.findings.append(ScanFinding( + severity="warning", + category="missing_verification", + description="No strong checksum verification (sha256/sha512/b2) found", + )) + result.risk_score += 10 + + # Check for missing check() function + if "check()" not in content: + result.findings.append(ScanFinding( + severity="info", + category="best_practice", + description="No check() function defined (testing not enforced)", + )) + + # Cap score at 100 + result.risk_score = min(100, result.risk_score) + + return result diff --git a/backend/services/__init__.py b/backend/services/__init__.py new file mode 100644 index 0000000..0274469 --- /dev/null +++ b/backend/services/__init__.py @@ -0,0 +1 @@ +# services package diff --git a/backend/services/aur_service.py b/backend/services/aur_service.py new file mode 100644 index 0000000..bcb2dbb --- /dev/null +++ b/backend/services/aur_service.py @@ -0,0 +1,164 @@ +""" +AUR RPC API service for ArchStore. +Handles all interactions with the Arch User Repository via the official RPC API +and yay for installations. +""" + +import asyncio +import httpx +from typing import Optional +from utils.sanitize import sanitize_package_name, sanitize_search_query + +AUR_RPC_BASE = "https://aur.archlinux.org/rpc/v5" +AUR_PACKAGE_URL = "https://aur.archlinux.org/packages" + + +async def _run_command(cmd: list[str], timeout: int = 30) -> tuple[str, str, int]: + """Run a shell command safely.""" + try: + proc = await asyncio.create_subprocess_exec( + *cmd, + stdout=asyncio.subprocess.PIPE, + stderr=asyncio.subprocess.PIPE, + ) + stdout, stderr = await asyncio.wait_for( + proc.communicate(), timeout=timeout + ) + return ( + stdout.decode("utf-8", errors="replace"), + stderr.decode("utf-8", errors="replace"), + proc.returncode, + ) + except asyncio.TimeoutError: + proc.kill() + return "", "Command timed out", -1 + except Exception as e: + return "", str(e), -1 + + +async def search_packages(query: str) -> list[dict]: + """Search AUR packages using the RPC API.""" + query = sanitize_search_query(query) + + async with httpx.AsyncClient(timeout=15) as client: + try: + response = await client.get( + f"{AUR_RPC_BASE}/search/{query}", + params={"by": "name-desc"}, + ) + response.raise_for_status() + data = response.json() + + if data.get("type") != "search": + return [] + + packages = [] + for pkg in data.get("results", []): + packages.append(_normalize_aur_package(pkg)) + + # Sort by popularity descending + packages.sort(key=lambda p: p.get("popularity", 0), reverse=True) + return packages[:100] # Limit results + + except (httpx.HTTPError, Exception): + return [] + + +async def get_package_info(name: str) -> Optional[dict]: + """Get detailed info about an AUR package.""" + name = sanitize_package_name(name) + + async with httpx.AsyncClient(timeout=10) as client: + try: + response = await client.get( + f"{AUR_RPC_BASE}/info", + params={"arg[]": name}, + ) + response.raise_for_status() + data = response.json() + + results = data.get("results", []) + if not results: + return None + + pkg = _normalize_aur_package(results[0]) + + # Check if installed + _, _, code = await _run_command(["pacman", "-Q", name], timeout=5) + pkg["installed"] = code == 0 + + return pkg + + except (httpx.HTTPError, Exception): + return None + + +async def install_package(name: str) -> dict: + """Install an AUR package using yay.""" + name = sanitize_package_name(name) + stdout, stderr, code = await _run_command( + ["yay", "-S", "--noconfirm", name], timeout=600 + ) + return { + "success": code == 0, + "message": stdout if code == 0 else stderr, + "package": name, + } + + +async def check_updates() -> list[dict]: + """Check for AUR package updates.""" + stdout, _, code = await _run_command( + ["yay", "-Qua"], timeout=30 + ) + if code != 0: + return [] + + updates = [] + for line in stdout.strip().split("\n"): + if line.strip(): + parts = line.split() + if len(parts) >= 4: + updates.append({ + "name": parts[0], + "current_version": parts[1], + "new_version": parts[3], + "source": "aur", + }) + return updates + + +async def get_pkgbuild(name: str) -> Optional[str]: + """Fetch the PKGBUILD content for an AUR package.""" + name = sanitize_package_name(name) + + async with httpx.AsyncClient(timeout=15) as client: + try: + url = f"https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h={name}" + response = await client.get(url) + if response.status_code == 200: + return response.text + return None + except httpx.HTTPError: + return None + + +def _normalize_aur_package(pkg: dict) -> dict: + """Convert AUR RPC response to our standard package format.""" + return { + "name": pkg.get("Name", ""), + "version": pkg.get("Version", ""), + "description": pkg.get("Description", ""), + "maintainer": pkg.get("Maintainer", "Orphaned"), + "url": pkg.get("URL", ""), + "votes": pkg.get("NumVotes", 0), + "popularity": pkg.get("Popularity", 0), + "out_of_date": pkg.get("OutOfDate") is not None, + "first_submitted": pkg.get("FirstSubmitted", 0), + "last_modified": pkg.get("LastModified", 0), + "source": "aur", + "repository": "aur", + "aur_url": f"{AUR_PACKAGE_URL}/{pkg.get('Name', '')}", + "package_base": pkg.get("PackageBase", ""), + "installed": False, + } diff --git a/backend/services/package_service.py b/backend/services/package_service.py new file mode 100644 index 0000000..9ce39af --- /dev/null +++ b/backend/services/package_service.py @@ -0,0 +1,228 @@ +""" +Unified package service for ArchStore. +Merges pacman and AUR results, handles deduplication and ranking. +""" + +import asyncio +from typing import Optional +from services import pacman_service, aur_service +from database.db import db +from utils.sanitize import sanitize_search_query, sanitize_package_name, validate_source_filter + + +# Category definitions — maps friendly names to pacman groups +CATEGORIES = { + "Development": { + "icon": "code", + "description": "Programming tools, compilers, and IDEs", + "groups": ["base-devel"], + "keywords": ["gcc", "git", "python", "nodejs", "rust", "go", "vim", "neovim", "code"], + }, + "System": { + "icon": "monitor", + "description": "Core system utilities and tools", + "groups": ["base", "sys-utils"], + "keywords": ["systemd", "kernel", "grub", "filesystem", "coreutils"], + }, + "Network": { + "icon": "wifi", + "description": "Networking tools, browsers, and servers", + "groups": ["network"], + "keywords": ["firefox", "chromium", "curl", "wget", "nginx", "ssh"], + }, + "Multimedia": { + "icon": "music", + "description": "Audio, video, and image tools", + "groups": ["multimedia"], + "keywords": ["vlc", "mpv", "ffmpeg", "gimp", "audacity", "obs"], + }, + "Games": { + "icon": "gamepad-2", + "description": "Games and gaming tools", + "groups": ["games"], + "keywords": ["steam", "lutris", "wine", "gamemode"], + }, + "Desktop": { + "icon": "layout-dashboard", + "description": "Desktop environments and window managers", + "groups": ["gnome", "kde-applications", "xfce4"], + "keywords": ["gnome", "kde", "xfce", "i3", "sway", "hyprland"], + }, + "Fonts": { + "icon": "type", + "description": "Fonts and typography", + "groups": ["fonts"], + "keywords": ["ttf", "otf", "nerd-fonts", "noto"], + }, + "Security": { + "icon": "shield", + "description": "Security and privacy tools", + "groups": [], + "keywords": ["firewall", "gpg", "openssl", "wireguard", "tor"], + }, +} + + +async def search_packages(query: str, source: str = "all") -> list[dict]: + """ + Search packages from pacman, AUR, or both. + Results are deduplicated, merged, and ranked. + """ + query = sanitize_search_query(query) + source = validate_source_filter(source) + + # Check cache first + cached = await db.get_cached_search(query, source) + if cached: + return cached + + results = [] + + if source in ("all", "pacman"): + pacman_task = pacman_service.search_packages(query) + else: + pacman_task = asyncio.coroutine(lambda: [])() + + if source in ("all", "aur"): + aur_task = aur_service.search_packages(query) + else: + aur_task = asyncio.coroutine(lambda: [])() + + # Run both searches concurrently + if source == "all": + pacman_results, aur_results = await asyncio.gather( + pacman_service.search_packages(query), + aur_service.search_packages(query), + return_exceptions=True, + ) + if isinstance(pacman_results, Exception): + pacman_results = [] + if isinstance(aur_results, Exception): + aur_results = [] + results = _merge_results(pacman_results, aur_results) + elif source == "pacman": + results = await pacman_service.search_packages(query) + elif source == "aur": + results = await aur_service.search_packages(query) + + # Cache results + await db.set_cached_search(query, source, results) + + return results + + +async def get_package_info(name: str) -> Optional[dict]: + """Get detailed package info, trying pacman first then AUR.""" + name = sanitize_package_name(name) + + # Check cache + cached = await db.get_cached_package(name) + if cached: + return cached + + # Try pacman first + info = await pacman_service.get_package_info(name) + if not info: + # Try AUR + info = await aur_service.get_package_info(name) + if not info: + # Check if installed locally + info = await pacman_service.get_installed_info(name) + + if info: + await db.set_cached_package(name, info) + + return info + + +async def install_package(name: str) -> dict: + """Install a package, auto-detecting source.""" + name = sanitize_package_name(name) + + # Try pacman first + info = await pacman_service.get_package_info(name) + if info: + return await pacman_service.install_package(name) + + # Fall back to AUR via yay + return await aur_service.install_package(name) + + +async def remove_package(name: str) -> dict: + """Remove an installed package.""" + name = sanitize_package_name(name) + return await pacman_service.remove_package(name) + + +async def list_installed() -> list[dict]: + """List all installed packages.""" + return await pacman_service.list_installed() + + +async def check_updates() -> list[dict]: + """Check for all available updates (pacman + AUR).""" + pacman_updates, aur_updates = await asyncio.gather( + pacman_service.check_updates(), + aur_service.check_updates(), + return_exceptions=True, + ) + if isinstance(pacman_updates, Exception): + pacman_updates = [] + if isinstance(aur_updates, Exception): + aur_updates = [] + + return pacman_updates + aur_updates + + +async def get_categories() -> list[dict]: + """Get list of package categories.""" + return [ + {"name": name, **data} + for name, data in CATEGORIES.items() + ] + + +async def get_category_packages(category: str) -> list[dict]: + """Get packages for a specific category using search.""" + cat = CATEGORIES.get(category) + if not cat: + return [] + + # Search using category keywords + all_results = [] + for keyword in cat.get("keywords", [])[:5]: + try: + results = await search_packages(keyword, "all") + all_results.extend(results) + except Exception: + continue + + # Deduplicate by name + seen = set() + unique = [] + for pkg in all_results: + if pkg["name"] not in seen: + seen.add(pkg["name"]) + unique.append(pkg) + + return unique[:50] + + +def _merge_results(pacman: list[dict], aur: list[dict]) -> list[dict]: + """Merge and deduplicate pacman + AUR results.""" + seen = {} + + # Pacman results take priority + for pkg in pacman: + seen[pkg["name"]] = pkg + + # Add AUR results if not already from pacman + for pkg in aur: + if pkg["name"] not in seen: + seen[pkg["name"]] = pkg + + # Sort: installed first, then by name + results = list(seen.values()) + results.sort(key=lambda p: (not p.get("installed", False), p.get("name", ""))) + + return results diff --git a/backend/services/pacman_service.py b/backend/services/pacman_service.py new file mode 100644 index 0000000..8474323 --- /dev/null +++ b/backend/services/pacman_service.py @@ -0,0 +1,246 @@ +""" +Pacman service for ArchStore. +Handles all interactions with the pacman package manager via subprocess. +""" + +import asyncio +import re +from typing import Optional +from utils.sanitize import sanitize_package_name + + +async def _run_command(cmd: list[str], timeout: int = 30) -> tuple[str, str, int]: + """ + Run a shell command safely using argument list (no shell=True). + Returns (stdout, stderr, returncode). + """ + try: + proc = await asyncio.create_subprocess_exec( + *cmd, + stdout=asyncio.subprocess.PIPE, + stderr=asyncio.subprocess.PIPE, + ) + stdout, stderr = await asyncio.wait_for( + proc.communicate(), timeout=timeout + ) + return ( + stdout.decode("utf-8", errors="replace"), + stderr.decode("utf-8", errors="replace"), + proc.returncode, + ) + except asyncio.TimeoutError: + proc.kill() + return "", "Command timed out", -1 + except Exception as e: + return "", str(e), -1 + + +def _parse_search_results(output: str) -> list[dict]: + """Parse pacman -Ss output into structured results.""" + packages = [] + lines = output.strip().split("\n") + i = 0 + while i < len(lines): + line = lines[i] + # Match: repo/name version [installed] or repo/name version + match = re.match( + r'^(\S+)/(\S+)\s+(\S+)(?:\s+\[installed(?::?\s*(\S+))?\])?\s*$', + line + ) + if match: + repo = match.group(1) + name = match.group(2) + version = match.group(3) + installed = match.group(4) is not None or "[installed" in line + description = "" + if i + 1 < len(lines) and lines[i + 1].startswith(" "): + description = lines[i + 1].strip() + i += 1 + packages.append({ + "name": name, + "version": version, + "description": description, + "repository": repo, + "source": "pacman", + "installed": installed, + }) + i += 1 + return packages + + +def _parse_package_info(output: str) -> dict: + """Parse pacman -Si or -Qi output into a dict.""" + info = {} + current_key = None + current_value = [] + + for line in output.split("\n"): + if ":" in line and not line.startswith(" "): + if current_key: + info[current_key] = " ".join(current_value).strip() + parts = line.split(":", 1) + current_key = parts[0].strip().lower().replace(" ", "_") + current_value = [parts[1].strip()] if len(parts) > 1 else [] + elif line.startswith(" ") and current_key: + current_value.append(line.strip()) + + if current_key: + info[current_key] = " ".join(current_value).strip() + + return info + + +async def search_packages(query: str) -> list[dict]: + """Search pacman repositories.""" + stdout, stderr, code = await _run_command( + ["pacman", "-Ss", query], timeout=15 + ) + if code != 0: + return [] + return _parse_search_results(stdout) + + +async def get_package_info(name: str) -> Optional[dict]: + """Get detailed info about a package from sync db.""" + name = sanitize_package_name(name) + + # Try sync database first + stdout, stderr, code = await _run_command( + ["pacman", "-Si", name], timeout=10 + ) + if code == 0: + info = _parse_package_info(stdout) + info["source"] = "pacman" + info["installed"] = await is_installed(name) + return info + + return None + + +async def get_installed_info(name: str) -> Optional[dict]: + """Get info about an installed package.""" + name = sanitize_package_name(name) + stdout, stderr, code = await _run_command( + ["pacman", "-Qi", name], timeout=10 + ) + if code == 0: + info = _parse_package_info(stdout) + info["source"] = "pacman" + info["installed"] = True + return info + return None + + +async def is_installed(name: str) -> bool: + """Check if a package is installed.""" + name = sanitize_package_name(name) + _, _, code = await _run_command(["pacman", "-Q", name], timeout=5) + return code == 0 + + +async def list_installed() -> list[dict]: + """List all explicitly installed packages.""" + stdout, _, code = await _run_command( + ["pacman", "-Qe"], timeout=15 + ) + if code != 0: + return [] + + packages = [] + for line in stdout.strip().split("\n"): + if line.strip(): + parts = line.split() + if len(parts) >= 2: + packages.append({ + "name": parts[0], + "version": parts[1], + "source": "pacman", + "installed": True, + }) + return packages + + +async def check_updates() -> list[dict]: + """Check for available updates using checkupdates.""" + stdout, _, code = await _run_command( + ["checkupdates"], timeout=60 + ) + # checkupdates returns 2 if no updates, 0 if updates available + if code not in (0,): + return [] + + updates = [] + for line in stdout.strip().split("\n"): + if line.strip(): + parts = line.split() + if len(parts) >= 4: + updates.append({ + "name": parts[0], + "current_version": parts[1], + "new_version": parts[3], + "source": "pacman", + }) + return updates + + +async def install_package(name: str) -> dict: + """Install a package using pacman (requires pkexec).""" + name = sanitize_package_name(name) + stdout, stderr, code = await _run_command( + ["pkexec", "pacman", "-S", "--noconfirm", name], timeout=300 + ) + return { + "success": code == 0, + "message": stdout if code == 0 else stderr, + "package": name, + } + + +async def remove_package(name: str) -> dict: + """Remove a package using pacman (requires pkexec).""" + name = sanitize_package_name(name) + stdout, stderr, code = await _run_command( + ["pkexec", "pacman", "-R", "--noconfirm", name], timeout=120 + ) + return { + "success": code == 0, + "message": stdout if code == 0 else stderr, + "package": name, + } + + +async def get_package_groups() -> list[str]: + """Get list of all package groups.""" + stdout, _, code = await _run_command( + ["pacman", "-Sg"], timeout=10 + ) + if code != 0: + return [] + + groups = set() + for line in stdout.strip().split("\n"): + if line.strip(): + groups.add(line.strip().split()[0]) + return sorted(groups) + + +async def get_group_packages(group: str) -> list[dict]: + """Get packages in a specific group.""" + stdout, _, code = await _run_command( + ["pacman", "-Sg", group], timeout=10 + ) + if code != 0: + return [] + + packages = [] + for line in stdout.strip().split("\n"): + parts = line.strip().split() + if len(parts) >= 2: + is_inst = await is_installed(parts[1]) + packages.append({ + "name": parts[1], + "source": "pacman", + "installed": is_inst, + "group": parts[0], + }) + return packages diff --git a/backend/utils/__init__.py b/backend/utils/__init__.py new file mode 100644 index 0000000..db3e327 --- /dev/null +++ b/backend/utils/__init__.py @@ -0,0 +1 @@ +# utils package diff --git a/backend/utils/sanitize.py b/backend/utils/sanitize.py new file mode 100644 index 0000000..9987982 --- /dev/null +++ b/backend/utils/sanitize.py @@ -0,0 +1,69 @@ +""" +Sanitization utilities for ArchStore. +Prevents command injection and validates all user-supplied input +before it reaches any shell command. +""" + +import re + +# Strict whitelist: only allow valid package name characters +# Arch package names: lowercase letters, digits, @, ., _, +, - +PACKAGE_NAME_PATTERN = re.compile(r'^[a-zA-Z0-9@._+\-]+$') + +# Maximum lengths +MAX_PACKAGE_NAME_LENGTH = 256 +MAX_SEARCH_QUERY_LENGTH = 128 + + +def sanitize_package_name(name: str) -> str: + """ + Validate and sanitize a package name. + Raises ValueError if the name contains invalid characters. + """ + if not name or not isinstance(name, str): + raise ValueError("Package name cannot be empty") + + name = name.strip() + + if len(name) > MAX_PACKAGE_NAME_LENGTH: + raise ValueError(f"Package name too long (max {MAX_PACKAGE_NAME_LENGTH} chars)") + + if not PACKAGE_NAME_PATTERN.match(name): + raise ValueError( + f"Invalid package name '{name}'. " + "Only letters, digits, @, ., _, +, - are allowed." + ) + + return name + + +def sanitize_search_query(query: str) -> str: + """ + Validate and sanitize a search query. + More permissive than package names but still safe. + """ + if not query or not isinstance(query, str): + raise ValueError("Search query cannot be empty") + + query = query.strip() + + if len(query) > MAX_SEARCH_QUERY_LENGTH: + raise ValueError(f"Search query too long (max {MAX_SEARCH_QUERY_LENGTH} chars)") + + # Remove any shell metacharacters + dangerous_chars = set(';&|`$(){}[]!#~\\<>"\'\n\r\t') + sanitized = ''.join(c for c in query if c not in dangerous_chars) + + if not sanitized: + raise ValueError("Search query contains only invalid characters") + + return sanitized + + +def validate_source_filter(source: str) -> str: + """Validate the source filter parameter.""" + allowed = {"all", "pacman", "aur"} + source = source.strip().lower() + if source not in allowed: + raise ValueError(f"Invalid source filter '{source}'. Allowed: {', '.join(allowed)}") + return source diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..4286309 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,65 @@ +# ArchStore — Arch Linux Package Store + +A modern lightweight package manager client for Arch Linux that combines official `pacman` repositories and the Arch User Repository (AUR) into one clean, elegant Play Store-like interface. + +## Main Features + +- **Unified Search**: Search packages across pacman repositories and the AUR simultaneously. +- **Detailed Package Sheets**: View descriptions, maintainers, votes, popularity, and installed statuses. +- **PKGBUILD Security Scanner**: Analyzes PKGBUILD script manifests for suspicious scripts, remote code execution (curl/wget to sh), command injection, and other threats. +- **System Updates Check**: Checks for updates from both pacman sync databases and the AUR. +- **Category Browsing**: Explore applications by genre (Development, System, Networks, Multimedia, Games, etc.). +- **Local SQLite Caching**: Fast indexing and pagination for package queries with a 15-minute Time-to-Live (TTL). + +--- + +## Technical Architecture + +### Backend (FastAPI + SQLite) +- Safe execution of system tools (`pacman`, `yay`) utilizing `asyncio.subprocess` exec arrays (no `shell=True`) to completely eliminate command injection vectors. +- Whitelist-based package name and search query sanitization. +- Lightweight SQLite storage cache with auto-expiration. + +### Frontend (React + Vite + TailwindCSS v4) +- Responsive dark-mode UI inspired by Arch Linux. +- Fixed sidebar layout collapsing on smaller device widths. +- Shimmer skeleton loaders, micro-animations, and staggered grids. + +--- + +## Installation & Setup + +### Prerequisites +Make sure you have `python`, `node`, `npm`, and an AUR helper (like `yay`) installed. + +### 1. Backend Setup +Create a virtual environment, activate it, and install Python dependencies: +```bash +cd backend +python3 -m venv venv +source venv/bin/activate +pip install -r requirements.txt +``` + +Start the development API server: +```bash +uvicorn main:app --reload --port 8000 +``` +The backend API will run on `http://localhost:8000`. + +### 2. Frontend Setup +Navigate to the frontend folder, install npm modules, and run the development server: +```bash +cd frontend +npm install +npm run dev +``` +The frontend application will start on `http://localhost:5173`. Any calls to `/api` will be proxied to the backend automatically. + +--- + +## Security Policy + +1. **Command Sanitization**: Strict whitelist of `^[a-zA-Z0-9@._+-]+$` for all package names passed to shell processes. +2. **Untrusted Scripts Isolation**: Build and PKGBUILD script generation is handled strictly through the pacman package manager database structures and standard AUR helpers (`yay`), bypassing manual root exec calls. +3. **No Sudo Privilege Escalation without Prompt**: Installation requests call `pkexec` (standard Polkit helper) to prompt user dynamically, or run in the user's home space for user-run AUR installs. diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..a36934d --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,16 @@ +# React + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs) +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js new file mode 100644 index 0000000..ea36dd3 --- /dev/null +++ b/frontend/eslint.config.js @@ -0,0 +1,21 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{js,jsx}'], + extends: [ + js.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + globals: globals.browser, + parserOptions: { ecmaFeatures: { jsx: true } }, + }, + }, +]) diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..b1e2ce3 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,18 @@ + + + + + + + + + ArchStore — Arch Linux Package Store + + + + + +
+ + + diff --git a/frontend/package-lock.json b/frontend/package-lock.json new file mode 100644 index 0000000..3c4b214 --- /dev/null +++ b/frontend/package-lock.json @@ -0,0 +1,2867 @@ +{ + "name": "frontend", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "frontend", + "version": "0.0.0", + "dependencies": { + "lucide-react": "^1.16.0", + "react": "^19.2.6", + "react-dom": "^19.2.6", + "react-router-dom": "^7.15.1" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@tailwindcss/vite": "^4.3.0", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.1", + "eslint": "^10.3.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "tailwindcss": "^4.3.0", + "vite": "^8.0.12" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz", + "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.6.0.tgz", + "integrity": "sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz", + "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.130.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.130.0.tgz", + "integrity": "sha512-ibD2usx9JRu7f5pu2tMKMI4cpA4NgXJQoYRP4pQ7Pxmn1l6k/53qWtQWZayhYy3X4QZkt90Ot+mJEaeXouio6Q==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.1.tgz", + "integrity": "sha512-fJI3I0r3C3Oj/zdBCpaCmBRZYf07xpaq4yCfDDoSFm+beWNzbIl26puW8RraUdugoJw/95zerNOn6jasAhzSmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.1.tgz", + "integrity": "sha512-cKnAhWEsV7TPcA/5EAteDp6KcJZBQ2G+BqE7zayMMi7kMvwRsbv7WT9aOnn0WNl4SKEIf43vjS31iUPu80nzXg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.1.tgz", + "integrity": "sha512-YKrVwQjIRBPo+5G/u03wGjbdy4q7pyzCe93DK9VJ7zkVmeg8LJ7GbgsiHWdR4xSoe4CAXRD7Bcjgbtr64bkXNg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.1.tgz", + "integrity": "sha512-z/oBsREo46SsFqBwYtFe0kpJeBijAT48O/WXLI4suiCLBkr03RTtTJMCzSdDd2znlh8VJizL09XVkQgk8IZonw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.1.tgz", + "integrity": "sha512-ik8q7GM11zxvYxFc2PeDcT6TBvhCQMaUxfph/M5l9sKuTs/Sjg3L+Byw0F7w0ZVLBZmx30P+gG0ECzzN+MFcmQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.1.tgz", + "integrity": "sha512-QoSx2EkyrrdZ6kcyE8stqZ62t0Yra8Fs5ia9lOxJrh6TMQJK7gQKmscdTHf7pOXKREKrVwOtJcQG3qVSfc866A==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.1.tgz", + "integrity": "sha512-uwNwFpwKeNiZawfAWBgg0VIztPTV3ihhh1vV334h9ivnNLorxnQMU6Fz8wG1Zb4Qh9LC1/MkcyT3YlDXG3Rsgg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.1.tgz", + "integrity": "sha512-zY1bul7OWr7DFBiJ++wofXvnr8B45ce3QsQUhKrIhXsygAh7bTkwyeM1bi1a2g5C/yC/N8TZyGDEoMfm/l9mpg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.1.tgz", + "integrity": "sha512-0frlsT/f4Ft6I7SMESTKnF3cZsdicQn1dCMkF/jT9wDLE+gGoiQfv1nmT9e+s7s/fekvvy6tZM2jHvI2tkbJDQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.1.tgz", + "integrity": "sha512-XABVmGp9Tg0WspTVvwduTc4fpqy6JnAUrSQe6OuyqD/03nI7r0O9OWUkMIwFrjKAIqolvqoA4ZrJppgwE0Gxmw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.1.tgz", + "integrity": "sha512-bV4fzswuzVcKD90o/VM6QqKxnxlDq0g2BISDLNVmxrnhpv1DDbyPhCIjYfvzYLV+MvkKKnQt2Q6AO86SEBULUQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.1.tgz", + "integrity": "sha512-/Mh0Zhq3OP7fVs0kcQHZP6lZEthMGTaSf8UBQYSFEZDWGXXlEC+nJ6EqenaK2t4LBXMe3A+K/G2BVXXdtOr4PQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.1.tgz", + "integrity": "sha512-+1xc9X45l8ufsBAm6Gjvx2qDRIY9lTVt0cgWNcJ+1gdhXvkbxePA60yRTwSTuXL09CMhyJmjpV7E3NoyxbqFQQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.10.0", + "@emnapi/runtime": "1.10.0", + "@napi-rs/wasm-runtime": "^1.1.4" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.1.tgz", + "integrity": "sha512-1D+UqZdfnuR+Jy1GgMJwi85bD40H21uNmOPRWQhw4oRSuolZ/B5rixZ45DK2KXOTCvmVCecauWgEhbw8bI7tOw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.1.tgz", + "integrity": "sha512-INAycaWuhlOK3wk4mRHGsdgwYWmd9cChdPdE9bwWmy6rn9VqVNYNFGhOdXrofXUxwHIncSiPNb8tNm8knDVIeQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz", + "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.21.0", + "jiti": "^2.6.1", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz", + "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-x64": "4.3.0", + "@tailwindcss/oxide-freebsd-x64": "4.3.0", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.0", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-x64-musl": "4.3.0", + "@tailwindcss/oxide-wasm32-wasi": "4.3.0", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz", + "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz", + "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz", + "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz", + "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz", + "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz", + "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz", + "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz", + "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz", + "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz", + "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.10.0", + "@emnapi/runtime": "^1.10.0", + "@emnapi/wasi-threads": "^1.2.1", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz", + "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz", + "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz", + "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.0", + "@tailwindcss/oxide": "4.3.0", + "tailwindcss": "4.3.0" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", + "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.2.15", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz", + "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.2.tgz", + "integrity": "sha512-DlSMqo4WhThw4vB8Mpn0Woe9J+Jfq1geJ61AKW0QEgLzGMNwtIMdxbDUzLxcun8W7NbJO0e2Jg/Nxm3cCSVzzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.31", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.31.tgz", + "integrity": "sha512-MujYO3eP72uvmSE0i4wltsodRfIpZATP3jvzRNRGGxgzId7aVocVJJV3nf01qnzzKFGxQVC9bpWxl5cjxTr/7Q==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001793", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz", + "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.360", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.360.tgz", + "integrity": "sha512-GkcBt6YYAw9SxFWn+xVar4cLVGlXVuswwtRLBozi2zp0GjXs4ZnOrqV4zbXzg35n7w81hCkyJNYicgXlVHAmBA==", + "dev": true, + "license": "ISC" + }, + "node_modules/enhanced-resolve": { + "version": "5.21.6", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.6.tgz", + "integrity": "sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.0.tgz", + "integrity": "sha512-loXy6bWOoP3EP6JA7jo6p5jMpBJmHmsNZM5SFRHLdh1MGOPurMnNBj4ZlAbaqUAaQWbCr7jHV4P7gzAyryZWkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.6.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", + "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz", + "integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": "^9 || ^10" + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz", + "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lucide-react": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.16.0.tgz", + "integrity": "sha512-dYwyPzb4MEKpGUmNYk3WKWPnMrHs3FKM+q94kAnJrcDIqqn1hq2xY8scaS2ovsOCM5D51ey2gaRG3PBb1vgoYQ==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.44", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.44.tgz", + "integrity": "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/react": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz", + "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz", + "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.6" + } + }, + "node_modules/react-router": { + "version": "7.15.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.15.1.tgz", + "integrity": "sha512-R8rl9HhgikFYoPJymnUtPXWbnDb3oget6lQnfIoupbt61aT9aOhRkDsY2XRhZRyX1Z/8a5sL74fXmFNm3NRK5A==", + "license": "MIT", + "dependencies": { + "cookie": "^1.0.1", + "set-cookie-parser": "^2.6.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/react-router-dom": { + "version": "7.15.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.15.1.tgz", + "integrity": "sha512-AzF62gjY6U9rkMq4RfP/r2EVtQ7DMfNMjyOp/flLTCrtRylLiK4wT4pSq6O8rOXZ2eXdZYJPEYe+ifomiv+Igg==", + "license": "MIT", + "dependencies": { + "react-router": "7.15.1" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + } + }, + "node_modules/rolldown": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.1.tgz", + "integrity": "sha512-X0KQHljNnEkWNqqiz9zJrGunh1B0HgOxLXvnFpCOcadzcy5qohZ3tqMEUg00vncoRovXuK3ZqCT9KnnKzoInFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.130.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.1", + "@rolldown/binding-darwin-arm64": "1.0.1", + "@rolldown/binding-darwin-x64": "1.0.1", + "@rolldown/binding-freebsd-x64": "1.0.1", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.1", + "@rolldown/binding-linux-arm64-gnu": "1.0.1", + "@rolldown/binding-linux-arm64-musl": "1.0.1", + "@rolldown/binding-linux-ppc64-gnu": "1.0.1", + "@rolldown/binding-linux-s390x-gnu": "1.0.1", + "@rolldown/binding-linux-x64-gnu": "1.0.1", + "@rolldown/binding-linux-x64-musl": "1.0.1", + "@rolldown/binding-openharmony-arm64": "1.0.1", + "@rolldown/binding-wasm32-wasi": "1.0.1", + "@rolldown/binding-win32-arm64-msvc": "1.0.1", + "@rolldown/binding-win32-x64-msvc": "1.0.1" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/set-cookie-parser": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", + "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", + "license": "MIT" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tailwindcss": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz", + "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vite": { + "version": "8.0.13", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.13.tgz", + "integrity": "sha512-MFtjBYgzmSxmgA4RAfjIyXWpGe1oALnjgUTzzV7QLx/TKxCzjtMH6Fd9/eVK+5Fg1qNoz5VAwsmMs/NofrmJvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.14", + "rolldown": "1.0.1", + "tinyglobby": "^0.2.16" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.1.18", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..dcbb2a0 --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,31 @@ +{ + "name": "frontend", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "lucide-react": "^1.16.0", + "react": "^19.2.6", + "react-dom": "^19.2.6", + "react-router-dom": "^7.15.1" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@tailwindcss/vite": "^4.3.0", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.1", + "eslint": "^10.3.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "tailwindcss": "^4.3.0", + "vite": "^8.0.12" + } +} diff --git a/frontend/public/favicon.svg b/frontend/public/favicon.svg new file mode 100644 index 0000000..91f2ab8 --- /dev/null +++ b/frontend/public/favicon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/public/icons.svg b/frontend/public/icons.svg new file mode 100644 index 0000000..e952219 --- /dev/null +++ b/frontend/public/icons.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/App.css b/frontend/src/App.css new file mode 100644 index 0000000..f90339d --- /dev/null +++ b/frontend/src/App.css @@ -0,0 +1,184 @@ +.counter { + font-size: 16px; + padding: 5px 10px; + border-radius: 5px; + color: var(--accent); + background: var(--accent-bg); + border: 2px solid transparent; + transition: border-color 0.3s; + margin-bottom: 24px; + + &:hover { + border-color: var(--accent-border); + } + &:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; + } +} + +.hero { + position: relative; + + .base, + .framework, + .vite { + inset-inline: 0; + margin: 0 auto; + } + + .base { + width: 170px; + position: relative; + z-index: 0; + } + + .framework, + .vite { + position: absolute; + } + + .framework { + z-index: 1; + top: 34px; + height: 28px; + transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg) + scale(1.4); + } + + .vite { + z-index: 0; + top: 107px; + height: 26px; + width: auto; + transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg) + scale(0.8); + } +} + +#center { + display: flex; + flex-direction: column; + gap: 25px; + place-content: center; + place-items: center; + flex-grow: 1; + + @media (max-width: 1024px) { + padding: 32px 20px 24px; + gap: 18px; + } +} + +#next-steps { + display: flex; + border-top: 1px solid var(--border); + text-align: left; + + & > div { + flex: 1 1 0; + padding: 32px; + @media (max-width: 1024px) { + padding: 24px 20px; + } + } + + .icon { + margin-bottom: 16px; + width: 22px; + height: 22px; + } + + @media (max-width: 1024px) { + flex-direction: column; + text-align: center; + } +} + +#docs { + border-right: 1px solid var(--border); + + @media (max-width: 1024px) { + border-right: none; + border-bottom: 1px solid var(--border); + } +} + +#next-steps ul { + list-style: none; + padding: 0; + display: flex; + gap: 8px; + margin: 32px 0 0; + + .logo { + height: 18px; + } + + a { + color: var(--text-h); + font-size: 16px; + border-radius: 6px; + background: var(--social-bg); + display: flex; + padding: 6px 12px; + align-items: center; + gap: 8px; + text-decoration: none; + transition: box-shadow 0.3s; + + &:hover { + box-shadow: var(--shadow); + } + .button-icon { + height: 18px; + width: 18px; + } + } + + @media (max-width: 1024px) { + margin-top: 20px; + flex-wrap: wrap; + justify-content: center; + + li { + flex: 1 1 calc(50% - 8px); + } + + a { + width: 100%; + justify-content: center; + box-sizing: border-box; + } + } +} + +#spacer { + height: 88px; + border-top: 1px solid var(--border); + @media (max-width: 1024px) { + height: 48px; + } +} + +.ticks { + position: relative; + width: 100%; + + &::before, + &::after { + content: ''; + position: absolute; + top: -4.5px; + border: 5px solid transparent; + } + + &::before { + left: 0; + border-left-color: var(--border); + } + &::after { + right: 0; + border-right-color: var(--border); + } +} diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx new file mode 100644 index 0000000..9efe29f --- /dev/null +++ b/frontend/src/App.jsx @@ -0,0 +1,28 @@ +import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; +import MainLayout from './layouts/MainLayout'; +import Home from './pages/Home'; +import Search from './pages/Search'; +import Installed from './pages/Installed'; +import Updates from './pages/Updates'; +import Categories from './pages/Categories'; +import Settings from './pages/Settings'; +import PackageView from './pages/PackageView'; + +export default function App() { + return ( + + + }> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + + ); +} diff --git a/frontend/src/api/client.js b/frontend/src/api/client.js new file mode 100644 index 0000000..f9fd11f --- /dev/null +++ b/frontend/src/api/client.js @@ -0,0 +1,72 @@ +/** + * ArchStore API Client + * Handles all communication with the FastAPI backend. + */ + +const BASE_URL = '/api'; + +async function request(endpoint, options = {}) { + const url = `${BASE_URL}${endpoint}`; + const config = { + headers: { 'Content-Type': 'application/json' }, + ...options, + }; + + try { + const response = await fetch(url, config); + if (!response.ok) { + const error = await response.json().catch(() => ({ detail: response.statusText })); + throw new Error(error.detail || `Request failed: ${response.status}`); + } + return await response.json(); + } catch (error) { + if (error.message === 'Failed to fetch') { + throw new Error('Cannot connect to ArchStore backend. Is the server running?'); + } + throw error; + } +} + +export const api = { + // Package operations + searchPackages: (query, source = 'all') => + request(`/packages/search?q=${encodeURIComponent(query)}&source=${source}`), + + getPackageInfo: (name) => + request(`/packages/${encodeURIComponent(name)}`), + + scanPackage: (name) => + request(`/packages/${encodeURIComponent(name)}/scan`), + + installPackage: (name) => + request(`/packages/${encodeURIComponent(name)}/install`, { method: 'POST' }), + + removePackage: (name) => + request(`/packages/${encodeURIComponent(name)}/remove`, { method: 'POST' }), + + listInstalled: () => + request('/packages/installed'), + + // Updates + checkUpdates: () => + request('/updates/check'), + + applyUpdates: () => + request('/updates/apply', { method: 'POST' }), + + // Categories + listCategories: () => + request('/categories'), + + getCategoryPackages: (name) => + request(`/categories/${encodeURIComponent(name)}`), + + // System + clearCache: () => + request('/cache/clear', { method: 'POST' }), + + healthCheck: () => + request('/health'), +}; + +export default api; diff --git a/frontend/src/assets/hero.png b/frontend/src/assets/hero.png new file mode 100644 index 0000000..02251f4 Binary files /dev/null and b/frontend/src/assets/hero.png differ diff --git a/frontend/src/assets/react.svg b/frontend/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/frontend/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/assets/vite.svg b/frontend/src/assets/vite.svg new file mode 100644 index 0000000..5101b67 --- /dev/null +++ b/frontend/src/assets/vite.svg @@ -0,0 +1 @@ +Vite diff --git a/frontend/src/components/LoadingSpinner.jsx b/frontend/src/components/LoadingSpinner.jsx new file mode 100644 index 0000000..94a48c5 --- /dev/null +++ b/frontend/src/components/LoadingSpinner.jsx @@ -0,0 +1,9 @@ +export default function LoadingSpinner({ size = 'md', text = '' }) { + const px = { sm: 20, md: 28, lg: 40 }[size] || 28; + return ( +
+
+ {text &&

{text}

} +
+ ); +} diff --git a/frontend/src/components/PackageCard.jsx b/frontend/src/components/PackageCard.jsx new file mode 100644 index 0000000..a52a519 --- /dev/null +++ b/frontend/src/components/PackageCard.jsx @@ -0,0 +1,64 @@ +import { useNavigate } from 'react-router-dom'; +import { CheckCircle, AlertTriangle, Star, ArrowDownToLine } from 'lucide-react'; + +export default function PackageCard({ pkg }) { + const navigate = useNavigate(); + + const sourceBadge = pkg.source === 'aur' ? 'badge-aur' : 'badge-pacman'; + const sourceLabel = pkg.source === 'aur' ? 'AUR' : (pkg.repository || 'pacman'); + + return ( +
navigate(`/package/${pkg.name}`)} + role="button" + tabIndex={0} + onKeyDown={(e) => e.key === 'Enter' && navigate(`/package/${pkg.name}`)} + > + {/* Top row: name + badge */} +
+
+
+

+ {pkg.name} +

+ {pkg.installed && } + {pkg.out_of_date && } +
+ + {pkg.version || '—'} + +
+ {sourceLabel} +
+ + {/* Description */} +

+ {pkg.description || 'No description available'} +

+ + {/* Footer */} +
+
+ {pkg.votes !== undefined && ( + + {pkg.votes} + + )} + {pkg.popularity > 0 && ( + {pkg.popularity.toFixed(2)} + )} +
+ {pkg.installed ? ( + Installed + ) : ( + + Get + + )} +
+
+ ); +} diff --git a/frontend/src/components/PackageGrid.jsx b/frontend/src/components/PackageGrid.jsx new file mode 100644 index 0000000..a28fc90 --- /dev/null +++ b/frontend/src/components/PackageGrid.jsx @@ -0,0 +1,47 @@ +import PackageCard from './PackageCard'; +import { PackageOpen } from 'lucide-react'; + +export default function PackageGrid({ packages, loading }) { + if (loading) { + return ( +
+ {Array.from({ length: 6 }).map((_, i) => ( +
+
+
+
+
+
+
+
+
+
+
+
+
+ ))} +
+ ); + } + + if (!packages || packages.length === 0) { + return ( +
+
+ +
+

No packages found

+

Try adjusting your search or filters

+
+ ); + } + + return ( +
+ {packages.map((pkg) => ( + + ))} +
+ ); +} diff --git a/frontend/src/components/SearchBar.jsx b/frontend/src/components/SearchBar.jsx new file mode 100644 index 0000000..7a088d1 --- /dev/null +++ b/frontend/src/components/SearchBar.jsx @@ -0,0 +1,32 @@ +import { useState, useCallback } from 'react'; +import { Search } from 'lucide-react'; + +export default function SearchBar({ onSearch, initialQuery = '' }) { + const [query, setQuery] = useState(initialQuery); + + const handleSubmit = useCallback((e) => { + e.preventDefault(); + if (query.trim()) onSearch(query); + }, [query, onSearch]); + + return ( +
+ + setQuery(e.target.value)} + autoComplete="off" + spellCheck="false" + /> + + ); +} diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx new file mode 100644 index 0000000..5f1ce86 --- /dev/null +++ b/frontend/src/components/Sidebar.jsx @@ -0,0 +1,92 @@ +import { NavLink } from 'react-router-dom'; +import { + Home, Search, Package, RefreshCw, Grid3X3, Settings, X +} from 'lucide-react'; +import { useState, useEffect } from 'react'; +import api from '../api/client'; + +const navItems = [ + { path: '/', icon: Home, label: 'Home' }, + { path: '/search', icon: Search, label: 'Search' }, + { path: '/installed', icon: Package, label: 'Installed' }, + { path: '/updates', icon: RefreshCw, label: 'Updates' }, + { path: '/categories', icon: Grid3X3, label: 'Categories' }, + { path: '/settings', icon: Settings, label: 'Settings' }, +]; + +export default function Sidebar({ isOpen, onClose }) { + const [updateCount, setUpdateCount] = useState(0); + + useEffect(() => { + api.checkUpdates() + .then(data => setUpdateCount(data.count || 0)) + .catch(() => {}); + }, []); + + return ( + + ); +} diff --git a/frontend/src/index.css b/frontend/src/index.css new file mode 100644 index 0000000..af33980 --- /dev/null +++ b/frontend/src/index.css @@ -0,0 +1,543 @@ +@import "tailwindcss"; + +/* ═══════════════════════════════════════════════ + ArchStore — Premium Design System + Dark & Light theme with CSS custom properties + ═══════════════════════════════════════════════ */ + +/* ── Dark Mode (Default) ─────────────────────── */ +:root { + --bg-base: #07090f; + --bg-primary: #0c1018; + --bg-secondary: #111827; + --bg-tertiary: #1a2235; + --bg-card: #111827; + --bg-card-hover: #162036; + --bg-elevated: #1e293b; + --bg-input: #0f172a; + --bg-sidebar: rgba(11, 15, 25, 0.92); + --bg-overlay: rgba(0, 0, 0, 0.6); + + --border-primary: #1e293b; + --border-secondary: #334155; + + --text-primary: #f1f5f9; + --text-secondary: #94a3b8; + --text-tertiary: #64748b; + --text-inverse: #0f172a; + + --accent-h: 199; + --accent-s: 89%; + --accent-l: 48%; + --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); + --accent-hover: hsl(var(--accent-h), var(--accent-s), 56%); + --accent-muted: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12); + --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2); + + --green: #22c55e; + --green-muted: rgba(34, 197, 94, 0.12); + --amber: #f59e0b; + --amber-muted: rgba(245, 158, 11, 0.12); + --red: #ef4444; + --red-muted: rgba(239, 68, 68, 0.1); + --blue: #3b82f6; + --blue-muted: rgba(59, 130, 246, 0.12); + --violet: #8b5cf6; + + --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3); + --shadow-md: 0 4px 20px -4px rgba(0, 0, 0, 0.4); + --shadow-lg: 0 12px 40px -8px rgba(0, 0, 0, 0.5); + --shadow-glow: 0 0 30px -5px var(--accent-glow); + + --radius-sm: 8px; + --radius-md: 12px; + --radius-lg: 16px; + --radius-xl: 24px; + --radius-full: 9999px; + + --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1); + --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1); + --transition-spring: 350ms cubic-bezier(0.16, 1, 0.3, 1); +} + +/* ── Light Mode ──────────────────────────────── */ +.light { + --bg-base: #f8fafc; + --bg-primary: #f1f5f9; + --bg-secondary: #ffffff; + --bg-tertiary: #f8fafc; + --bg-card: #ffffff; + --bg-card-hover: #f8fafc; + --bg-elevated: #ffffff; + --bg-input: #f1f5f9; + --bg-sidebar: rgba(255, 255, 255, 0.92); + --bg-overlay: rgba(15, 23, 42, 0.3); + + --border-primary: #e2e8f0; + --border-secondary: #cbd5e1; + + --text-primary: #0f172a; + --text-secondary: #475569; + --text-tertiary: #94a3b8; + --text-inverse: #f1f5f9; + + --accent: hsl(var(--accent-h), var(--accent-s), 42%); + --accent-hover: hsl(var(--accent-h), var(--accent-s), 35%); + --accent-muted: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08); + --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1); + + --green-muted: rgba(34, 197, 94, 0.08); + --amber-muted: rgba(245, 158, 11, 0.08); + --red-muted: rgba(239, 68, 68, 0.06); + --blue-muted: rgba(59, 130, 246, 0.08); + + --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04); + --shadow-md: 0 4px 20px -4px rgba(15, 23, 42, 0.06); + --shadow-lg: 0 12px 40px -8px rgba(15, 23, 42, 0.08); + --shadow-glow: 0 0 30px -5px var(--accent-glow); +} + +/* ── Tailwind v4 Theme Tokens ────────────────── */ +@theme { + --color-bg-base: var(--bg-base); + --color-bg-primary: var(--bg-primary); + --color-bg-secondary: var(--bg-secondary); + --color-bg-tertiary: var(--bg-tertiary); + --color-bg-card: var(--bg-card); + --color-bg-card-hover: var(--bg-card-hover); + --color-bg-elevated: var(--bg-elevated); + --color-bg-input: var(--bg-input); + --color-bg-sidebar: var(--bg-sidebar); + --color-bg-overlay: var(--bg-overlay); + + --color-border-primary: var(--border-primary); + --color-border-secondary: var(--border-secondary); + + --color-text-primary: var(--text-primary); + --color-text-secondary: var(--text-secondary); + --color-text-tertiary: var(--text-tertiary); + --color-text-inverse: var(--text-inverse); + + --color-accent: var(--accent); + --color-accent-hover: var(--accent-hover); + --color-accent-muted: var(--accent-muted); + --color-accent-glow: var(--accent-glow); + + --color-green: var(--green); + --color-green-muted: var(--green-muted); + --color-amber: var(--amber); + --color-amber-muted: var(--amber-muted); + --color-red: var(--red); + --color-red-muted: var(--red-muted); + --color-blue: var(--blue); + --color-blue-muted: var(--blue-muted); + --color-violet: var(--violet); + + --font-sans: var(--font-sans); +} + +/* ═══════════════════════════════════════════════ + Global Resets + ═══════════════════════════════════════════════ */ + +*, *::before, *::after { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html { + scroll-behavior: smooth; + -webkit-text-size-adjust: 100%; +} + +body { + font-family: var(--font-sans); + background-color: var(--bg-base); + color: var(--text-primary); + line-height: 1.6; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + transition: background-color var(--transition-normal), color var(--transition-normal); +} + +/* Scrollbar */ +::-webkit-scrollbar { width: 6px; height: 6px; } +::-webkit-scrollbar-track { background: transparent; } +::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: var(--radius-full); } +::-webkit-scrollbar-thumb:hover { background: var(--border-secondary); } + +/* ═══════════════════════════════════════════════ + Animations + ═══════════════════════════════════════════════ */ + +@keyframes fadeIn { + from { opacity: 0; transform: translateY(8px); } + to { opacity: 1; transform: translateY(0); } +} +@keyframes slideUp { + from { opacity: 0; transform: translateY(20px); } + to { opacity: 1; transform: translateY(0); } +} +@keyframes shimmer { + 0% { background-position: -200% 0; } + 100% { background-position: 200% 0; } +} +@keyframes spin { to { transform: rotate(360deg); } } +@keyframes pulse-ring { + 0% { transform: scale(0.9); opacity: 0.5; } + 100% { transform: scale(1.3); opacity: 0; } +} +@keyframes float { + 0%, 100% { transform: translateY(0); } + 50% { transform: translateY(-6px); } +} + +.animate-fade-in { animation: fadeIn 0.3s ease-out both; } +.animate-slide-up { animation: slideUp 0.4s ease-out both; } + +.stagger > * { animation: fadeIn 0.35s ease-out both; } +.stagger > *:nth-child(1) { animation-delay: 30ms; } +.stagger > *:nth-child(2) { animation-delay: 60ms; } +.stagger > *:nth-child(3) { animation-delay: 90ms; } +.stagger > *:nth-child(4) { animation-delay: 120ms; } +.stagger > *:nth-child(5) { animation-delay: 150ms; } +.stagger > *:nth-child(6) { animation-delay: 180ms; } +.stagger > *:nth-child(7) { animation-delay: 210ms; } +.stagger > *:nth-child(8) { animation-delay: 240ms; } +.stagger > *:nth-child(n+9) { animation-delay: 270ms; } + +/* ═══════════════════════════════════════════════ + Layout Structure + ═══════════════════════════════════════════════ */ + +.app-layout { + display: flex; + min-height: 100vh; + background: var(--bg-base); +} + +.sidebar { + position: fixed; + left: 0; + top: 0; + bottom: 0; + width: 272px; + z-index: 50; + display: flex; + flex-direction: column; + padding: 28px 20px; + overflow-y: auto; + background: var(--bg-sidebar); + backdrop-filter: blur(24px) saturate(1.4); + -webkit-backdrop-filter: blur(24px) saturate(1.4); + border-right: 1px solid var(--border-primary); + transition: transform var(--transition-spring), background var(--transition-normal); +} + +.main-content { + margin-left: 272px; + flex: 1; + min-height: 100vh; + padding: 36px 48px; + transition: margin-left var(--transition-spring); +} + +@media (max-width: 1024px) { + .sidebar { + transform: translateX(-100%); + } + .sidebar.open { + transform: translateX(0); + } + .main-content { + margin-left: 0; + padding: 24px 20px; + } +} + +/* ═══════════════════════════════════════════════ + Nav Items + ═══════════════════════════════════════════════ */ + +.nav-link { + display: flex; + align-items: center; + gap: 14px; + padding: 11px 16px; + border-radius: var(--radius-md); + color: var(--text-secondary); + text-decoration: none; + font-size: 0.9rem; + font-weight: 500; + transition: all var(--transition-fast); + position: relative; +} +.nav-link:hover { + background: var(--accent-muted); + color: var(--text-primary); +} +.nav-link.active { + background: var(--accent-muted); + color: var(--accent); + font-weight: 600; +} +.nav-link.active::before { + content: ''; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + width: 3px; + height: 20px; + background: var(--accent); + border-radius: 0 var(--radius-full) var(--radius-full) 0; +} + +/* ═══════════════════════════════════════════════ + Card System + ═══════════════════════════════════════════════ */ + +.card { + background: var(--bg-card); + border: 1px solid var(--border-primary); + border-radius: var(--radius-lg); + box-shadow: var(--shadow-sm); + transition: transform var(--transition-spring), + box-shadow var(--transition-spring), + background var(--transition-normal), + border-color var(--transition-fast); +} +.card-interactive { + cursor: pointer; +} +.card-interactive:hover { + transform: translateY(-4px); + box-shadow: var(--shadow-lg); + border-color: var(--border-secondary); +} + +/* ═══════════════════════════════════════════════ + Badges + ═══════════════════════════════════════════════ */ + +.badge { + display: inline-flex; + align-items: center; + gap: 4px; + padding: 3px 10px; + border-radius: var(--radius-full); + font-size: 0.68rem; + font-weight: 700; + letter-spacing: 0.04em; + text-transform: uppercase; +} +.badge-pacman { + background: var(--accent-muted); + color: var(--accent); +} +.badge-aur { + background: var(--amber-muted); + color: var(--amber); +} +.badge-installed { + background: var(--green-muted); + color: var(--green); +} + +/* ═══════════════════════════════════════════════ + Buttons + ═══════════════════════════════════════════════ */ + +.btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 8px; + padding: 10px 22px; + border-radius: var(--radius-md); + font-size: 0.85rem; + font-weight: 600; + font-family: var(--font-sans); + cursor: pointer; + border: none; + transition: all var(--transition-fast); + white-space: nowrap; +} +.btn:disabled { + opacity: 0.5; + cursor: not-allowed; + transform: none !important; + box-shadow: none !important; +} + +.btn-primary { + background: var(--accent); + color: white; + box-shadow: 0 2px 12px var(--accent-glow); +} +.btn-primary:hover:not(:disabled) { + background: var(--accent-hover); + transform: translateY(-1px); + box-shadow: 0 4px 20px var(--accent-glow); +} + +.btn-secondary { + background: var(--bg-secondary); + color: var(--text-primary); + border: 1px solid var(--border-primary); +} +.btn-secondary:hover:not(:disabled) { + border-color: var(--border-secondary); + background: var(--bg-tertiary); +} + +.btn-danger { + background: var(--red-muted); + color: var(--red); + border: 1px solid rgba(239, 68, 68, 0.2); +} +.btn-danger:hover:not(:disabled) { + background: rgba(239, 68, 68, 0.15); + border-color: rgba(239, 68, 68, 0.4); +} + +.btn-ghost { + background: transparent; + color: var(--text-secondary); + padding: 8px 14px; +} +.btn-ghost:hover:not(:disabled) { + background: var(--bg-tertiary); + color: var(--text-primary); +} + +/* ═══════════════════════════════════════════════ + Inputs + ═══════════════════════════════════════════════ */ + +.input { + width: 100%; + padding: 11px 16px; + background: var(--bg-input); + border: 1px solid var(--border-primary); + border-radius: var(--radius-md); + color: var(--text-primary); + font-family: var(--font-sans); + font-size: 0.9rem; + outline: none; + transition: all var(--transition-fast); +} +.input::placeholder { color: var(--text-tertiary); } +.input:focus { + border-color: var(--accent); + box-shadow: 0 0 0 3px var(--accent-glow); +} + +/* ═══════════════════════════════════════════════ + Typography + ═══════════════════════════════════════════════ */ + +.page-title { + font-size: 1.75rem; + font-weight: 800; + letter-spacing: -0.03em; + color: var(--text-primary); + line-height: 1.2; +} + +.page-subtitle { + font-size: 0.95rem; + color: var(--text-secondary); + margin-top: 4px; +} + +/* ═══════════════════════════════════════════════ + Grids + ═══════════════════════════════════════════════ */ + +.pkg-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); + gap: 20px; +} +@media (max-width: 720px) { + .pkg-grid { grid-template-columns: 1fr; } +} + +.cat-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); + gap: 16px; +} + +/* ═══════════════════════════════════════════════ + Utility Components + ═══════════════════════════════════════════════ */ + +.shimmer { + background: linear-gradient(90deg, + var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%); + background-size: 200% 100%; + animation: shimmer 1.5s infinite; + border-radius: var(--radius-md); +} + +.spinner { + width: 28px; height: 28px; + border: 3px solid var(--border-primary); + border-top-color: var(--accent); + border-radius: 50%; + animation: spin 0.7s linear infinite; +} + +.divider { + height: 1px; + background: var(--border-primary); + border: none; +} + +/* ═══════════════════════════════════════════════ + Theme Toggle + ═══════════════════════════════════════════════ */ + +.theme-toggle { + position: relative; + width: 40px; + height: 40px; + border-radius: var(--radius-md); + background: var(--bg-secondary); + border: 1px solid var(--border-primary); + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + color: var(--text-secondary); + transition: all var(--transition-fast); +} +.theme-toggle:hover { + border-color: var(--border-secondary); + color: var(--text-primary); + background: var(--bg-tertiary); +} + +/* ═══════════════════════════════════════════════ + Decorative + ═══════════════════════════════════════════════ */ + +.gradient-text { + background: linear-gradient(135deg, var(--accent), var(--violet)); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; +} + +.glow-ring { + position: absolute; + border-radius: 50%; + background: var(--accent); + opacity: 0.06; + filter: blur(60px); + pointer-events: none; +} diff --git a/frontend/src/layouts/MainLayout.jsx b/frontend/src/layouts/MainLayout.jsx new file mode 100644 index 0000000..75e11d2 --- /dev/null +++ b/frontend/src/layouts/MainLayout.jsx @@ -0,0 +1,80 @@ +import { useState, useEffect } from 'react'; +import { Outlet, useNavigate } from 'react-router-dom'; +import Sidebar from '../components/Sidebar'; +import SearchBar from '../components/SearchBar'; +import { Menu, X, Sun, Moon } from 'lucide-react'; + +export default function MainLayout() { + const [sidebarOpen, setSidebarOpen] = useState(false); + const [theme, setTheme] = useState(() => localStorage.getItem('archstore-theme') || 'dark'); + const navigate = useNavigate(); + + useEffect(() => { + const root = document.documentElement; + if (theme === 'light') { + root.classList.add('light'); + } else { + root.classList.remove('light'); + } + localStorage.setItem('archstore-theme', theme); + }, [theme]); + + const toggleTheme = () => setTheme(t => t === 'dark' ? 'light' : 'dark'); + + const handleSearch = (query) => { + if (query.trim()) { + navigate(`/search?q=${encodeURIComponent(query.trim())}`); + setSidebarOpen(false); + } + }; + + return ( +
+ {/* Mobile overlay */} + {sidebarOpen && ( +
setSidebarOpen(false)} + /> + )} + + setSidebarOpen(false)} /> + +
+ {/* ── Top Bar ── */} +
+ {/* Mobile menu */} + + + {/* Search */} +
+ +
+ + {/* Theme toggle */} + +
+ + {/* ── Page ── */} +
+ +
+
+
+ ); +} diff --git a/frontend/src/main.jsx b/frontend/src/main.jsx new file mode 100644 index 0000000..b9a1a6d --- /dev/null +++ b/frontend/src/main.jsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import './index.css' +import App from './App.jsx' + +createRoot(document.getElementById('root')).render( + + + , +) diff --git a/frontend/src/pages/Categories.jsx b/frontend/src/pages/Categories.jsx new file mode 100644 index 0000000..eedbd5a --- /dev/null +++ b/frontend/src/pages/Categories.jsx @@ -0,0 +1,117 @@ +import { useState, useEffect } from 'react'; +import { useParams, useNavigate } from 'react-router-dom'; +import api from '../api/client'; +import PackageGrid from '../components/PackageGrid'; +import { + Code, Monitor, Wifi, Music, Gamepad2, LayoutDashboard, Type, ShieldCheck, + ArrowLeft, Package +} from 'lucide-react'; + +const catMeta = { + Development: { icon: Code, color: '#3b82f6', bg: 'rgba(59,130,246,0.1)' }, + System: { icon: Monitor, color: '#64748b', bg: 'rgba(100,116,139,0.1)' }, + Network: { icon: Wifi, color: '#10b981', bg: 'rgba(16,185,129,0.1)' }, + Multimedia: { icon: Music, color: '#a855f7', bg: 'rgba(168,85,247,0.1)' }, + Games: { icon: Gamepad2, color: '#ef4444', bg: 'rgba(239,68,68,0.1)' }, + Desktop: { icon: LayoutDashboard, color: '#6366f1', bg: 'rgba(99,102,241,0.1)' }, + Fonts: { icon: Type, color: '#f59e0b', bg: 'rgba(245,158,11,0.1)' }, + Security: { icon: ShieldCheck, color: '#06b6d4', bg: 'rgba(6,182,212,0.1)' }, +}; + +export default function Categories() { + const { categoryName } = useParams(); + const navigate = useNavigate(); + const [categories, setCategories] = useState([]); + const [packages, setPackages] = useState([]); + const [loading, setLoading] = useState(true); + const [error, setError] = useState(null); + + useEffect(() => { + if (categoryName) loadPkgs(categoryName); + else loadCats(); + }, [categoryName]); + + async function loadCats() { + setLoading(true); setError(null); + try { const d = await api.listCategories(); setCategories(d.results || []); } + catch (e) { setError(e.message); } + finally { setLoading(false); } + } + + async function loadPkgs(name) { + setLoading(true); setError(null); + try { const d = await api.getCategoryPackages(name); setPackages(d.results || []); } + catch (e) { setError(e.message); } + finally { setLoading(false); } + } + + if (categoryName) { + const meta = catMeta[categoryName] || { icon: Package, color: 'var(--accent)', bg: 'var(--accent-muted)' }; + const Icon = meta.icon; + return ( +
+ +
+
+ +
+
+

{categoryName}

+

Browse popular {categoryName.toLowerCase()} packages

+
+
+ {error &&
{error}
} + +
+ ); + } + + return ( +
+
+

Categories

+

Explore software by type

+
+ + {error &&
{error}
} + + {loading ? ( +
+ {Array.from({ length: 8 }).map((_, i) => ( +
+
+
+
+
+ ))} +
+ ) : ( +
+ {categories.map((cat) => { + const meta = catMeta[cat.name] || { icon: Package, color: 'var(--accent)', bg: 'var(--accent-muted)' }; + const Icon = meta.icon; + return ( +
navigate(`/categories/${cat.name}`)}> +
+ +
+

+ {cat.name} +

+

+ {cat.description || 'Explore packages'} +

+
+ ); + })} +
+ )} +
+ ); +} diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx new file mode 100644 index 0000000..090188e --- /dev/null +++ b/frontend/src/pages/Home.jsx @@ -0,0 +1,164 @@ +import { useState, useEffect } from 'react'; +import { useNavigate } from 'react-router-dom'; +import { + Search, TrendingUp, Package, ArrowRight, Sparkles, Shield, + Code, Monitor, Wifi, Music, Gamepad2, LayoutDashboard, Type, ShieldCheck +} from 'lucide-react'; +import api from '../api/client'; +import PackageGrid from '../components/PackageGrid'; + +const catMeta = { + Development: { icon: Code, color: '#3b82f6', bg: 'rgba(59,130,246,0.1)' }, + System: { icon: Monitor, color: '#64748b', bg: 'rgba(100,116,139,0.1)' }, + Network: { icon: Wifi, color: '#10b981', bg: 'rgba(16,185,129,0.1)' }, + Multimedia: { icon: Music, color: '#a855f7', bg: 'rgba(168,85,247,0.1)' }, + Games: { icon: Gamepad2, color: '#ef4444', bg: 'rgba(239,68,68,0.1)' }, + Desktop: { icon: LayoutDashboard, color: '#6366f1', bg: 'rgba(99,102,241,0.1)' }, + Fonts: { icon: Type, color: '#f59e0b', bg: 'rgba(245,158,11,0.1)' }, + Security: { icon: ShieldCheck, color: '#06b6d4', bg: 'rgba(6,182,212,0.1)' }, +}; + +export default function Home() { + const navigate = useNavigate(); + const [query, setQuery] = useState(''); + const [featured, setFeatured] = useState([]); + const [categories, setCategories] = useState([]); + const [loading, setLoading] = useState(true); + + useEffect(() => { loadData(); }, []); + + async function loadData() { + setLoading(true); + try { + const [catRes, featRes] = await Promise.allSettled([ + api.listCategories(), + api.searchPackages('firefox chromium vlc', 'all'), + ]); + if (catRes.status === 'fulfilled') setCategories(catRes.value.results || []); + if (featRes.status === 'fulfilled') setFeatured((featRes.value.results || []).slice(0, 6)); + } catch { /* silent */ } + finally { setLoading(false); } + } + + const handleSearch = (e) => { + e.preventDefault(); + if (query.trim()) navigate(`/search?q=${encodeURIComponent(query.trim())}`); + }; + + return ( +
+ {/* ════════════════ Hero ════════════════ */} +
+ {/* Decorative blobs */} +
+
+ +
+
+ + + Welcome to ArchStore + +
+ +

+ Discover packages for{' '} + Arch Linux +

+ +

+ Browse, install, and manage software from official pacman repositories + and the AUR — all in one beautiful interface. +

+ +
+
+ + setQuery(e.target.value)} + /> +
+ +
+
+
+ + {/* ════════════════ Stats ════════════════ */} +
+ {[ + { icon: Package, label: 'Pacman Repos', value: 'Official', color: 'var(--accent)' }, + { icon: TrendingUp, label: 'AUR Packages', value: '80,000+', color: 'var(--amber)' }, + { icon: Shield, label: 'Security Scan', value: 'Built-in', color: 'var(--green)' }, + { icon: Sparkles, label: 'Updates', value: 'Real-time', color: 'var(--violet)' }, + ].map(({ icon: Icon, label, value, color }) => ( +
+ +

{value}

+

{label}

+
+ ))} +
+ + {/* ════════════════ Categories ════════════════ */} +
+
+

Browse Categories

+ +
+ +
+ {(categories.length > 0 ? categories : Object.keys(catMeta).map(n => ({ name: n }))).map((cat) => { + const meta = catMeta[cat.name] || { icon: Package, color: 'var(--accent)', bg: 'var(--accent-muted)' }; + const Icon = meta.icon; + return ( +
navigate(`/categories/${cat.name}`)}> +
+ +
+

{cat.name}

+

+ {cat.description || 'Explore packages'} +

+
+ ); + })} +
+
+ + {/* ════════════════ Featured ════════════════ */} + {featured.length > 0 && ( +
+
+

Popular Packages

+ +
+ +
+ )} +
+ ); +} diff --git a/frontend/src/pages/Installed.jsx b/frontend/src/pages/Installed.jsx new file mode 100644 index 0000000..ce8def7 --- /dev/null +++ b/frontend/src/pages/Installed.jsx @@ -0,0 +1,71 @@ +import { useState, useEffect } from 'react'; +import api from '../api/client'; +import PackageGrid from '../components/PackageGrid'; +import { RefreshCw, Search } from 'lucide-react'; + +export default function Installed() { + const [packages, setPackages] = useState([]); + const [filtered, setFiltered] = useState([]); + const [loading, setLoading] = useState(true); + const [filter, setFilter] = useState(''); + const [error, setError] = useState(null); + + useEffect(() => { load(); }, []); + + useEffect(() => { + if (!filter.trim()) { setFiltered(packages); return; } + const q = filter.toLowerCase(); + setFiltered(packages.filter(p => + p.name.toLowerCase().includes(q) || (p.description && p.description.toLowerCase().includes(q)) + )); + }, [filter, packages]); + + async function load() { + setLoading(true); setError(null); + try { + const data = await api.listInstalled(); + setPackages(data.results || []); + } catch (err) { setError(err.message); } + finally { setLoading(false); } + } + + return ( +
+
+
+

Installed Packages

+

+ {packages.length > 0 ? `${packages.length} packages installed on your system` : 'Loading installed packages...'} +

+
+ +
+ + {error && ( +
+ {error} +
+ )} + + {!loading && packages.length > 0 && ( +
+ + setFilter(e.target.value)} + /> +
+ )} + + +
+ ); +} diff --git a/frontend/src/pages/PackageView.jsx b/frontend/src/pages/PackageView.jsx new file mode 100644 index 0000000..734667d --- /dev/null +++ b/frontend/src/pages/PackageView.jsx @@ -0,0 +1,291 @@ +import { useState, useEffect } from 'react'; +import { useParams, useNavigate } from 'react-router-dom'; +import api from '../api/client'; +import LoadingSpinner from '../components/LoadingSpinner'; +import { + ArrowLeft, Globe, ExternalLink, Download, Trash2, + ShieldCheck, ShieldAlert, Shield, User, Clock, Package, AlertTriangle +} from 'lucide-react'; + +export default function PackageView() { + const { packageName } = useParams(); + const navigate = useNavigate(); + const [pkg, setPkg] = useState(null); + const [scan, setScan] = useState(null); + const [loading, setLoading] = useState(true); + const [scanning, setScanning] = useState(false); + const [acting, setActing] = useState(false); + const [log, setLog] = useState(''); + const [error, setError] = useState(null); + + useEffect(() => { load(); }, [packageName]); + + async function load() { + setLoading(true); setError(null); + try { + const d = await api.getPackageInfo(packageName); + setPkg(d); + if (d.source === 'aur') doScan(d.name); + } catch (e) { setError(e.message); } + finally { setLoading(false); } + } + + async function doScan(name) { + setScanning(true); + try { setScan(await api.scanPackage(name)); } + catch { /* silent */ } + finally { setScanning(false); } + } + + async function install() { + setActing(true); setLog('Installing...\n'); setError(null); + try { + const r = await api.installPackage(pkg.name); + if (r.success) { setLog(p => p + '\n✓ Installed!\n' + r.message); setPkg(await api.getPackageInfo(pkg.name)); } + else setError('Installation failed: ' + r.message); + } catch (e) { setError(e.message); } + finally { setActing(false); } + } + + async function remove() { + if (!confirm(`Remove ${pkg.name}?`)) return; + setActing(true); setLog('Removing...\n'); setError(null); + try { + const r = await api.removePackage(pkg.name); + if (r.success) { setLog(p => p + '\n✓ Removed!\n' + r.message); setPkg(await api.getPackageInfo(pkg.name)); } + else setError('Removal failed: ' + r.message); + } catch (e) { setError(e.message); } + finally { setActing(false); } + } + + if (loading) return ; + + if (error && !pkg) { + return ( +
+ +
+

Package not found

+

{error}

+
+
+ ); + } + + const riskColor = !scan?.scanned ? 'var(--text-tertiary)' + : scan.risk_score >= 70 ? 'var(--red)' + : scan.risk_score >= 40 ? 'var(--amber)' + : 'var(--green)'; + + return ( +
+ + + {error && ( +
+ {error} +
+ )} + + {acting && ( +
+
+
+ Working... +
+
+            {log}
+          
+
+ )} + + {/* ═══ Main Info Card ═══ */} +
+
+ {/* Left */} +
+
+

+ {pkg.name} +

+ + {pkg.source === 'aur' ? 'AUR' : (pkg.repository || 'pacman')} + + {pkg.installed && Installed} + {pkg.out_of_date && ( + + Out of Date + + )} +
+ +

+ {pkg.description || 'No description available.'} +

+ + {/* Meta grid */} +
+ + {pkg.source === 'aur' ? ( + <> + + + + + ) : ( + <> + + + + )} +
+
+ + {/* Right — Actions */} +
+ {pkg.installed ? ( + + ) : ( + + )} + {pkg.url && ( + + Website + + )} +
+
+
+ + {/* ═══ Security Scan (AUR only) ═══ */} + {pkg.source === 'aur' && ( +
+

+ + Security Scan +

+ + {scanning ? ( + + ) : scan?.scanned ? ( +
+ {/* Score bar */} +
+
+ {scan.risk_score >= 70 ? + : scan.risk_score >= 40 ? + : } +
+

+ {scan.risk_level} +

+

PKGBUILD analysis

+
+
+
+ {scan.risk_score} + /100 +
+
+ + {/* Findings */} + {scan.findings.filter(f => f.severity !== 'info').length > 0 ? ( +
+ {scan.findings.filter(f => f.severity !== 'info').map((f, i) => ( +
+
+ {f.severity} + {f.line_number > 0 && L{f.line_number}} +
+

{f.description}

+ {f.line_content && ( +
+                          {f.line_content}
+                        
+ )} +
+ ))} +
+ ) : ( +
+ No security issues detected. Safe to install. +
+ )} +
+ ) : ( +

+ Scan not available for this package. +

+ )} +
+ )} + + {/* ═══ Metadata ═══ */} +
+
+

+ Metadata +

+
+ {pkg.maintainer && } + {pkg.last_modified > 0 && } + {pkg.first_submitted > 0 && } + {pkg.package_base && } +
+
+ +
+

+ Dependencies +

+
+ + + Dependencies are automatically resolved by pacman/yay during installation. + +
+
+
+
+ ); +} + +/* ── Helper components ── */ +function MetaBox({ label, value, mono, color, span }) { + return ( +
+

{label}

+

{value}

+
+ ); +} + +function MetaRow({ label, value }) { + return ( +
+ {label} + {value} +
+ ); +} diff --git a/frontend/src/pages/Search.jsx b/frontend/src/pages/Search.jsx new file mode 100644 index 0000000..e2553cc --- /dev/null +++ b/frontend/src/pages/Search.jsx @@ -0,0 +1,97 @@ +import { useState, useEffect } from 'react'; +import { useSearchParams } from 'react-router-dom'; +import api from '../api/client'; +import PackageGrid from '../components/PackageGrid'; +import { Filter, Search } from 'lucide-react'; + +export default function SearchPage() { + const [searchParams] = useSearchParams(); + const query = searchParams.get('q') || ''; + const [results, setResults] = useState([]); + const [loading, setLoading] = useState(false); + const [source, setSource] = useState('all'); + const [error, setError] = useState(null); + + useEffect(() => { + if (query.trim()) performSearch(query, source); + else setResults([]); + }, [query, source]); + + async function performSearch(q, s) { + setLoading(true); + setError(null); + try { + const data = await api.searchPackages(q, s); + setResults(data.results || []); + } catch (err) { + setError(err.message); + setResults([]); + } finally { + setLoading(false); + } + } + + const tabs = [ + { id: 'all', label: 'All' }, + { id: 'pacman', label: 'Official' }, + { id: 'aur', label: 'AUR' }, + ]; + + return ( +
+ {/* Header */} +
+

Search Results

+

+ {query ? <>Showing results for "{query}" : 'Enter a query to search packages'} +

+
+ + {query && ( +
+ {/* Source tabs */} +
+ {tabs.map((tab) => ( + + ))} +
+ +
+ + {results.length} package{results.length !== 1 ? 's' : ''} +
+
+ )} + + {error && ( +
+ {error} +
+ )} + + {query ? ( + + ) : ( +
+
+ +
+

Start searching

+

Type a package name or keyword above

+
+ )} +
+ ); +} diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx new file mode 100644 index 0000000..b1b6de4 --- /dev/null +++ b/frontend/src/pages/Settings.jsx @@ -0,0 +1,123 @@ +import { useState, useEffect } from 'react'; +import api from '../api/client'; +import { Database, Cpu, Heart, CheckCircle2, AlertCircle } from 'lucide-react'; + +export default function Settings() { + const [clearing, setClearing] = useState(false); + const [health, setHealth] = useState(null); + const [checking, setChecking] = useState(false); + const [msg, setMsg] = useState(null); + + useEffect(() => { checkHealth(); }, []); + + async function checkHealth() { + setChecking(true); + try { setHealth(await api.healthCheck()); } + catch (e) { setHealth({ status: 'offline', error: e.message }); } + finally { setChecking(false); } + } + + async function clearCache() { + setClearing(true); setMsg(null); + try { + await api.clearCache(); + setMsg({ ok: true, text: 'Cache cleared successfully' }); + } catch (e) { setMsg({ ok: false, text: e.message }); } + finally { setClearing(false); } + } + + return ( +
+
+

Settings

+

Configure ArchStore preferences

+
+ + {msg && ( +
+ + {msg.text} +
+ )} + +
+ {/* AUR Helper */} +
+

+ + AUR Helper +

+

+ The helper used to build and install AUR packages. +

+
+ {['yay', 'paru'].map((t) => ( +
+ {t} + {t === 'yay' && Active} +
+ ))} +
+
+ + {/* Cache */} +
+

+ + Cache +

+

+ Search results and metadata are cached locally for 15 minutes. +

+ +
+ + {/* Health */} +
+

+ + Backend Status +

+
+ FastAPI Server + {health ? ( + health.status === 'healthy' ? ( + + Online + + ) : ( + + Offline + + ) + ) : ( + {checking ? 'Checking...' : 'Unknown'} + )} +
+
+ + {/* Footer */} +
+ + Made with for Arch Linux + + ArchStore v1.0.0 +
+
+
+ ); +} diff --git a/frontend/src/pages/Updates.jsx b/frontend/src/pages/Updates.jsx new file mode 100644 index 0000000..b3f3c7a --- /dev/null +++ b/frontend/src/pages/Updates.jsx @@ -0,0 +1,125 @@ +import { useState, useEffect } from 'react'; +import api from '../api/client'; +import LoadingSpinner from '../components/LoadingSpinner'; +import { RefreshCw, ArrowUpCircle, Info, CheckCircle2 } from 'lucide-react'; + +export default function Updates() { + const [updates, setUpdates] = useState([]); + const [loading, setLoading] = useState(true); + const [updating, setUpdating] = useState(false); + const [log, setLog] = useState(''); + const [error, setError] = useState(null); + + useEffect(() => { check(); }, []); + + async function check() { + setLoading(true); setError(null); + try { const d = await api.checkUpdates(); setUpdates(d.results || []); } + catch (e) { setError(e.message); } + finally { setLoading(false); } + } + + async function handleUpdate() { + if (!confirm('Run a full system upgrade (yay -Syu)?')) return; + setUpdating(true); setError(null); + setLog('Starting system upgrade...\n'); + try { + const r = await api.applyUpdates(); + if (r.success) { setLog(p => p + '\n✓ Upgrade complete!\n' + r.message); setUpdates([]); } + else setError('Upgrade failed: ' + r.message); + } catch (e) { setError(e.message); } + finally { setUpdating(false); } + } + + return ( +
+
+
+

System Updates

+

Keep your system and AUR packages current

+
+
+ + {updates.length > 0 && ( + + )} +
+
+ + {error && ( +
+ {error} +
+ )} + + {updating && ( +
+

+ + Upgrading... +

+
+            {log}
+          
+
+ )} + + {loading ? ( + + ) : updates.length === 0 ? ( +
+
+ +
+

All up to date

+

No updates available right now

+
+ ) : ( +
+
+ +
+

{updates.length} update{updates.length !== 1 ? 's' : ''} available

+

System administrator privileges required to install.

+
+
+ +
+ {updates.map((u, i) => ( +
e.currentTarget.style.background = 'var(--bg-card-hover)'} + onMouseLeave={(e) => e.currentTarget.style.background = 'transparent'} + > +
+
+ {u.name} + + {u.source === 'aur' ? 'AUR' : 'pacman'} + +
+
+ {u.current_version} + + {u.new_version} +
+
+
+ ))} +
+
+ )} +
+ ); +} diff --git a/frontend/vite.config.js b/frontend/vite.config.js new file mode 100644 index 0000000..2cad495 --- /dev/null +++ b/frontend/vite.config.js @@ -0,0 +1,19 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' +import tailwindcss from '@tailwindcss/vite' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [ + react(), + tailwindcss(), + ], + server: { + proxy: { + '/api': { + target: 'http://localhost:8000', + changeOrigin: true, + }, + }, + }, +})