Spaces:
Running on Zero
Running on Zero
Download tower/ui/web/src/main.jsx from Crypt0Maniac/control-tower: direct link, hf CLI and curl.
- Browser
- Download file 675 Bytes
-
https://huggingface.co/spaces/Crypt0Maniac/control-tower/resolve/main/tower/ui/web/src/main.jsx
- Command line
-
hf download hf://spaces/Crypt0Maniac/control-tower/tower/ui/web/src/main.jsx
-
curl -L -o main.jsx https://huggingface.co/spaces/Crypt0Maniac/control-tower/resolve/main/tower/ui/web/src/main.jsx
675 Bytes
| import { StrictMode } from "react"; | |
| import { createRoot } from "react-dom/client"; | |
| import "./styles.css"; | |
| import App from "./App.jsx"; | |
| import { DataProvider } from "./lib/data.jsx"; | |
| import { UiProvider } from "./lib/ui.jsx"; | |
| import { Redraw, SettingsProvider } from "./lib/settings.jsx"; | |
| // The app decides where a page opens (the top), not the browser. | |
| if ("scrollRestoration" in history) history.scrollRestoration = "manual"; | |
| createRoot(document.getElementById("root")).render( | |
| <StrictMode> | |
| <SettingsProvider> | |
| <UiProvider> | |
| <DataProvider> | |
| <Redraw><App /></Redraw> | |
| </DataProvider> | |
| </UiProvider> | |
| </SettingsProvider> | |
| </StrictMode>, | |
| ); | |