FreeDATA/gui_vue/src/main.ts

41 lines
750 B
TypeScript
Raw Normal View History

2023-09-05 09:22:00 +00:00
import { createApp, Vue } from 'vue'
import { createPinia } from 'pinia'
2023-09-06 12:48:45 +00:00
import {loadSettings} from './js/settingsHandler'
2023-09-05 09:22:00 +00:00
2023-09-02 11:37:03 +00:00
import './styles.css'
// Import all of Bootstrap's JS
//import * as bootstrap from 'bootstrap'
import 'bootstrap/dist/js/bootstrap.bundle.min.js'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-icons/font/bootstrap-icons.css'
2023-09-05 09:22:00 +00:00
// Import our custom CSS
//import './scss/styles.scss'
2023-09-02 11:37:03 +00:00
2023-09-05 09:22:00 +00:00
import App from './App.vue'
2023-09-11 15:08:56 +00:00
const app = createApp(App)
//.mount('#app').$nextTick(() => postMessage({ payload: 'removeLoading' }, '*'))
2023-09-02 11:37:03 +00:00
2023-09-05 09:22:00 +00:00
const pinia = createPinia()
app.mount('#app')
2023-09-06 12:48:45 +00:00
2023-09-11 15:08:56 +00:00
2023-09-05 09:22:00 +00:00
console.log("init...")
app.use(pinia)
2023-09-06 12:48:45 +00:00
loadSettings()
2023-09-02 11:37:03 +00:00
2023-09-06 12:48:45 +00:00
//import './js/settingsHandler.js'
2023-09-05 09:22:00 +00:00
import './js/daemon.js'
import './js/sock.js'