Spaces:
Paused
Paused
Download scripts/patch_admin.ps1 from Kraft102/widgettdc-api: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/spaces/Kraft102/widgettdc-api/resolve/main/scripts/patch_admin.ps1
- Command line
-
hf download hf://spaces/Kraft102/widgettdc-api/scripts/patch_admin.ps1
-
curl -L -o patch_admin.ps1 https://huggingface.co/spaces/Kraft102/widgettdc-api/resolve/main/scripts/patch_admin.ps1
804 Bytes
| # DEPRECATED: Legacy patch script for widget-board | |
| # This script was used to patch WidgeTDC_Pro.tsx in the old widget-board frontend. | |
| # The widget-board has been replaced with matrix-frontend which has a different structure. | |
| # This script is kept for historical reference only. | |
| Write-Warning "This script is deprecated. The widget-board frontend has been replaced with matrix-frontend." | |
| Write-Warning "The file 'apps/matrix-frontend/WidgeTDC_Pro.tsx' does not exist in the new structure." | |
| exit 1 | |
| # Original patch code (preserved for reference): | |
| # Patch for WidgeTDC_Pro.tsx | |
| # Line 219-220: Add admin conditional | |
| # Line 305: Add closing paren | |
| # Find exact content and replace | |
| # $file = "apps/matrix-frontend/WidgeTDC_Pro.tsx" | |
| # $content = Get-Content $file -Raw | |
| # ... (rest of the original patch code) | |