Download ARTEX-main/web/src/lib/task-assets.ts from ghostai1/WardenPEN: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/ghostai1/WardenPEN/resolve/main/ARTEX-main/web/src/lib/task-assets.ts
- Command line
-
hf download hf://ghostai1/WardenPEN/ARTEX-main/web/src/lib/task-assets.ts
-
curl -L -o task-assets.ts https://huggingface.co/ghostai1/WardenPEN/resolve/main/ARTEX-main/web/src/lib/task-assets.ts
828 Bytes
| import { t } from "@/i18n"; | |
| import type { NewAssetType } from "@/lib/types"; | |
| const ASSET_TYPE_LABELS: Record<NewAssetType, string> = { | |
| app: t("App"), | |
| endpoint: t("Endpoint"), | |
| ip: "IP", | |
| root_domain: t("Root domain"), | |
| service: t("Service"), | |
| subdomain: t("Subdomain"), | |
| }; | |
| const TASK_ASSET_SOURCE_LABELS: Record<string, string> = { | |
| agent: t("Agent-discovered"), | |
| anchor: t("Blackboard anchor"), | |
| api: t("Assets API"), | |
| company: t("Company association"), | |
| legacy: t("Legacy association"), | |
| manual: t("Manually added"), | |
| system: t("System association"), | |
| task: t("Task initialization"), | |
| }; | |
| export function taskAssetTypeLabel(type: NewAssetType): string { | |
| return ASSET_TYPE_LABELS[type]; | |
| } | |
| export function taskAssetSourceLabel(source: string): string { | |
| return TASK_ASSET_SOURCE_LABELS[source] ?? source; | |
| } | |