syncova-ticket/scripts/install-park.ps1
Weapie 9c561cb574
All checks were successful
Tests und Docker-Image / Tests und Frontend-Build (push) Successful in 2m8s
Tests und Docker-Image / Leeres Produktionsimage bauen und veröffentlichen (push) Successful in 4m28s
Add Syncova Ticket with tested Gitea image publishing and persistent Compose deployment
2026-11-03 17:04:00 +01:00

19 lines
943 B
PowerShell

$ErrorActionPreference = 'Stop'
$seen = @{}
$items = [System.Collections.Generic.List[object]]::new()
function Fetch-Item([string]$name) {
if ($seen.ContainsKey($name)) { return }
$seen[$name] = $true
$item = Invoke-RestMethod "https://park-ui.com/registry/react/$name.json"
foreach ($dep in $item.registryDependencies) { Fetch-Item $dep }
$items.Add($item)
foreach ($file in $item.files) {
$base = if ($file.type -eq 'registry:ui') { 'src/components/ui' } elseif ($file.type -eq 'registry:recipe') { 'src/theme/recipes' } else { 'src/theme' }
$dest = Join-Path $base $file.path
New-Item -ItemType Directory -Force (Split-Path $dest) | Out-Null
[System.IO.File]::WriteAllText((Join-Path (Get-Location) $dest), $file.content)
}
}
foreach ($name in @('__init','violet','neutral','button','input','textarea','badge','dialog')) { Fetch-Item $name }
$items | ConvertTo-Json -Depth 100 | Set-Content park-registry.json