Download src/main.tsx from mozolla/telev: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/mozolla/telev/resolve/main/src/main.tsx
- Command line
-
hf download hf://spaces/mozolla/telev/src/main.tsx
-
curl -L -o main.tsx https://huggingface.co/spaces/mozolla/telev/resolve/main/src/main.tsx
648 Bytes
| import { StrictMode } from "react"; | |
| import { createRoot } from "react-dom/client"; | |
| import "./index.css"; | |
| import App from "./App"; | |
| import { ErrorBoundary } from "./components/ErrorBoundary"; | |
| import { EncodeSettingsPage } from "./components/EncodeSettingsPage"; | |
| function Root() { | |
| const encodeConfigKey = new URLSearchParams(window.location.search).get("encodeConfig"); | |
| if (encodeConfigKey) { | |
| return <EncodeSettingsPage configKey={encodeConfigKey} />; | |
| } | |
| return <App />; | |
| } | |
| createRoot(document.getElementById("root")!).render( | |
| <StrictMode> | |
| <ErrorBoundary> | |
| <Root /> | |
| </ErrorBoundary> | |
| </StrictMode> | |
| ); | |