Download webui/src/main.jsx from a3216/ds2api: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/a3216/ds2api/resolve/ce5a019598af8a3a8fa70d3880098df3e850ecd7/webui/src/main.jsx
- Command line
-
hf download hf://spaces/a3216/ds2api@ce5a019598af8a3a8fa70d3880098df3e850ecd7/webui/src/main.jsx
-
curl -L -o main.jsx https://huggingface.co/spaces/a3216/ds2api/resolve/ce5a019598af8a3a8fa70d3880098df3e850ecd7/webui/src/main.jsx
536 Bytes
| import React from 'react' | |
| import ReactDOM from 'react-dom/client' | |
| import { BrowserRouter } from 'react-router-dom' | |
| import App from './App.jsx' | |
| import { I18nProvider } from './i18n' | |
| import './styles.css' | |
| const basename = import.meta.env.MODE === 'production' ? '/admin' : '/' | |
| ReactDOM.createRoot(document.getElementById('root')).render( | |
| <React.StrictMode> | |
| <I18nProvider> | |
| <BrowserRouter basename={basename}> | |
| <App /> | |
| </BrowserRouter> | |
| </I18nProvider> | |
| </React.StrictMode>, | |
| ) | |