Spaces:
Paused
Paused
Download web/src/main.ts from stremio-db/a: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/stremio-db/a/resolve/main/web/src/main.ts
- Command line
-
hf download hf://spaces/stremio-db/a/web/src/main.ts
-
curl -L -o main.ts https://huggingface.co/spaces/stremio-db/a/resolve/main/web/src/main.ts
584 Bytes
| import { createApp } from 'vue' | |
| import { createPinia } from 'pinia' | |
| import { VueQueryPlugin } from '@tanstack/vue-query' | |
| import App from './App.vue' | |
| import router from './router' | |
| import { setOnAuthFailure } from './lib/api' | |
| import './assets/main.css' | |
| const savedTheme = localStorage.getItem('theme') | |
| const isDark = savedTheme ? savedTheme === 'dark' : true | |
| document.documentElement.classList.toggle('dark', isDark) | |
| const app = createApp(App) | |
| app.use(createPinia()) | |
| app.use(router) | |
| setOnAuthFailure(() => router.push({ name: 'login' })) | |
| app.use(VueQueryPlugin) | |
| app.mount('#app') | |