FreeDATA/gui/src/main.ts

39 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-10-22 08:12:00 +00:00
import { createApp } from "vue";
import { createPinia } from "pinia";
import { loadSettings } from "./js/settingsHandler";
import "./styles.css";
2023-10-28 13:14:47 +00:00
import { Chart, Filler } from "chart.js";
2023-10-28 13:14:04 +00:00
// Register the Filler plugin globally
Chart.register(Filler);
2023-09-02 11:37:03 +00:00
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-10-22 08:12:00 +00:00
import App from "./App.vue";
const app = createApp(App);
2023-09-11 15:08:56 +00:00
//.mount('#app').$nextTick(() => postMessage({ payload: 'removeLoading' }, '*'))
2023-10-22 08:12:00 +00:00
const pinia = createPinia();
app.mount("#app");
app.use(pinia);
2023-10-28 13:14:04 +00:00
// Import all of Bootstrap's JS
//import * as bootstrap from 'bootstrap'
2023-10-28 13:14:47 +00:00
import * as bootstrap from "bootstrap";
2023-10-28 13:14:04 +00:00
import "bootstrap/dist/css/bootstrap.css";
import "bootstrap-icons/font/bootstrap-icons.css";
2023-10-28 13:14:47 +00:00
const tooltipTriggerList = document.querySelectorAll(
'[data-bs-toggle="tooltip"]',
);
// @ts-expect-error
2023-10-28 13:14:47 +00:00
const tooltipList = [...tooltipTriggerList].map(
(tooltipTriggerEl) => new bootstrap.Tooltip(tooltipTriggerEl),
);
2023-10-28 13:14:04 +00:00
2023-10-22 08:12:00 +00:00
loadSettings();
2023-09-02 11:37:03 +00:00
2023-09-06 12:48:45 +00:00
//import './js/settingsHandler.js'
2023-10-22 08:12:00 +00:00
import "./js/daemon";
import "./js/sock.js";
2023-09-12 15:52:16 +00:00
//import './js/settingsHandler.js'