2023-10-22 08:12:00 +00:00
|
|
|
import { createApp } from "vue";
|
|
|
|
import { createPinia } from "pinia";
|
|
|
|
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"]',
|
|
|
|
);
|
2023-10-28 17:27:20 +00:00
|
|
|
// @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-11-20 13:24:45 +00:00
|
|
|
import { getRemote } from "./store/settingsStore";
|
|
|
|
import { initConnections } from "./js/event_sock.js";
|
2023-11-27 01:44:58 +00:00
|
|
|
import { getModemState } from "./js/api";
|
2024-03-03 08:49:21 +00:00
|
|
|
import { loadAudioDevices, loadSerialDevices } from "./js/deviceFormHelper.ts";
|
|
|
|
|
2023-09-02 11:37:03 +00:00
|
|
|
|
2023-11-20 13:24:45 +00:00
|
|
|
getRemote().then(() => {
|
|
|
|
initConnections();
|
2024-03-03 08:49:21 +00:00
|
|
|
loadAudioDevices();
|
|
|
|
loadSerialDevices();
|
2023-11-27 01:44:58 +00:00
|
|
|
getModemState();
|
2023-11-20 13:24:45 +00:00
|
|
|
});
|