Spaces:
Running
Running
UI v2: analyze manifest, mode radio, target cards, compat matrix, progress/log/download; backward-compatible API
bc2711b verified Download frontend/src/components/targets.ts from 2Btainment/spaceforge: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/frontend/src/components/targets.ts
- Command line
-
hf download hf://spaces/2Btainment/spaceforge/frontend/src/components/targets.ts
-
curl -L -o targets.ts https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/frontend/src/components/targets.ts
1.71 kB
| /** Target card catalogue. Add new targets here; backend /api/analyze decides availability. */ | |
| export const TARGET_META: Record<string, { icon: string; label: string; platform: string }> = { | |
| linux_appimage: { icon: "🐧", label: "Linux AppImage", platform: "x86_64 .AppImage · needs webkit2gtk-4.1 + gtk3" }, | |
| arch_pkgbuild: { icon: "📦", label: "Arch PKGBUILD", platform: "makepkg -si · Arch / CachyOS / Manjaro" }, | |
| windows_portable: { icon: "🪟", label: "Windows Portable", platform: "Not buildable inside the HF Space" }, | |
| firefox_ext: { icon: "🦊", label: "Firefox Extension", platform: ".xpi (unsigned)" }, | |
| chromium_ext: { icon: "🧩", label: "Chrome Extension", platform: "MV3 zip · load unpacked" }, | |
| pwa: { icon: "📱", label: "PWA", platform: "Installable web app zip" }, | |
| html_widget: { icon: "🔲", label: "HTML Widget", platform: "Embeddable iframe widget zip" }, | |
| android: { icon: "🤖", label: "Android", platform: "Capacitor debug APK (unsigned)" }, | |
| tauri: { icon: "🦀", label: "Tauri Project", platform: "Source project zip — build on your machine" }, | |
| mcp: { icon: "🔌", label: "MCP Server / Config", platform: "Cursor / Claude Desktop config or stdio server" }, | |
| }; | |
| export const TARGET_ORDER = Object.keys(TARGET_META); | |
| export const MODES = [ | |
| { id: "local", label: "Local", desc: "Runs on your machine. Project/source output; no live Space needed once built." }, | |
| { id: "hybrid", label: "Hybrid", desc: "Local frontend shell; the app/model still runs on the live HF Space (internet required)." }, | |
| { id: "hosted_wrapper", label: "Hosted Wrapper", desc: "Native shell (window / WebView / config) that loads the live HF Space. Not offline." }, | |
| ] as const; | |