Download src/version.ts from Leon4gr45/termix: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/src/version.ts
- Command line
-
hf download hf://spaces/Leon4gr45/termix/src/version.ts
-
curl -L -o version.ts https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/src/version.ts
492 Bytes
| import packageJson from '../package.json'; | |
| export const APP_VERSION = packageJson.version; | |
| export function injectVersion() { | |
| const versionElements = document.querySelectorAll('#app-version, #app-version-simple'); | |
| versionElements.forEach((element) => { | |
| element.textContent = APP_VERSION; | |
| }); | |
| } | |
| if (typeof document !== 'undefined') { | |
| if (document.readyState === 'loading') { | |
| document.addEventListener('DOMContentLoaded', injectVersion); | |
| } else { | |
| injectVersion(); | |
| } | |
| } | |