2024-05-09 18:32:57 +07:00
|
|
|
import { createApp, defineAsyncComponent } from "vue";
|
|
|
|
|
import App from "./App.vue";
|
|
|
|
|
import router from "./router";
|
|
|
|
|
import { Dialog, Notify, Quasar } from "quasar";
|
|
|
|
|
import th from "quasar/lang/th";
|
|
|
|
|
import quasarUserOptions from "./quasar-user-options";
|
|
|
|
|
import { createPinia } from "pinia";
|
|
|
|
|
import "@vuepic/vue-datepicker/dist/main.css";
|
|
|
|
|
|
|
|
|
|
import "quasar/src/css/index.sass";
|
|
|
|
|
import http from "./plugins/http";
|
2023-09-29 15:20:38 +07:00
|
|
|
// import OpenLayersMap from "vue3-openlayers";
|
2023-07-07 16:54:53 +07:00
|
|
|
|
|
|
|
|
// import './assets/main.css'
|
|
|
|
|
|
2024-05-09 18:32:57 +07:00
|
|
|
const app = createApp(App);
|
|
|
|
|
const pinia = createPinia();
|
2023-07-07 16:54:53 +07:00
|
|
|
|
2024-05-09 18:32:57 +07:00
|
|
|
app.use(router);
|
|
|
|
|
app.use(pinia);
|
2023-07-07 16:54:53 +07:00
|
|
|
|
|
|
|
|
app.use(Quasar, {
|
2024-05-09 18:32:57 +07:00
|
|
|
plugins: {
|
|
|
|
|
Notify,
|
|
|
|
|
Dialog,
|
|
|
|
|
},
|
|
|
|
|
lang: th,
|
|
|
|
|
});
|
2023-09-29 15:20:38 +07:00
|
|
|
// app.use(OpenLayersMap /* options */);
|
2023-07-07 16:54:53 +07:00
|
|
|
|
2023-07-21 16:34:06 +07:00
|
|
|
app.component(
|
2024-05-09 18:32:57 +07:00
|
|
|
"datepicker",
|
|
|
|
|
defineAsyncComponent(() => import("@vuepic/vue-datepicker"))
|
|
|
|
|
);
|
2023-08-08 14:03:12 +07:00
|
|
|
|
2024-05-09 18:32:57 +07:00
|
|
|
app.component(
|
|
|
|
|
"d-table",
|
|
|
|
|
defineAsyncComponent(() => import("@/components/TableD.vue"))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
app.config.globalProperties.$http = http;
|
2023-08-08 14:03:12 +07:00
|
|
|
|
2024-05-09 18:32:57 +07:00
|
|
|
app.mount("#app");
|