Download web/src/main.js from jimlv/ssh: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/main.js
- Command line
-
hf download hf://spaces/jimlv/ssh/web/src/main.js
-
curl -L -o main.js https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/main.js
838 Bytes
| import { createApp } from 'vue' | |
| import { createPinia } from 'pinia' | |
| import useStore from '@store/index' | |
| import router from './router' | |
| import tools from './plugins/tools' | |
| import elementPlugins from './plugins/element' | |
| import globalComponents from './plugins/components' | |
| import axios from '@/utils/axios' | |
| import api from './api' | |
| import App from './app.vue' | |
| import './assets/scss/reset.scss' | |
| import './assets/scss/global.scss' | |
| import './assets/scss/mobile.scss' | |
| const app = createApp(App) | |
| elementPlugins(app) | |
| globalComponents(app) | |
| app.use(createPinia()) | |
| app.use(router) | |
| const isDev = import.meta.env.DEV | |
| app.config.globalProperties.$isDev = isDev | |
| app.config.globalProperties.$api = api | |
| app.config.globalProperties.$tools = tools | |
| app.config.globalProperties.$http = axios | |
| app.config.globalProperties.$store = useStore() | |
| app.mount('#app') | |