Spaces:
Sleeping
Sleeping
Download frontend/src/wc3/utils.ts from Vrda/Learn_Pathophysiology: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/Vrda/Learn_Pathophysiology/resolve/main/frontend/src/wc3/utils.ts
- Command line
-
hf download hf://spaces/Vrda/Learn_Pathophysiology/frontend/src/wc3/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/Vrda/Learn_Pathophysiology/resolve/main/frontend/src/wc3/utils.ts
297 Bytes
| import { RACE_KEY } from './consts'; | |
| export function getAssetPath(path: string, theme: RACE_KEY | 'any' = 'any'): string { | |
| return `${ASSETS_PATH}${theme}/${path}`; | |
| } | |
| export function getAssetUrl(path: string, theme?: RACE_KEY | 'any'): string { | |
| return `url(${getAssetPath(path, theme)})`; | |
| } | |