hrms-user/src/main.ts

44 lines
954 B
TypeScript
Raw Normal View History

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'
const app = createApp(App);
const pinia = createPinia();
2023-07-07 16:54:53 +07:00
app.use(router);
app.use(pinia);
2023-07-07 16:54:53 +07:00
app.use(Quasar, {
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(
"datepicker",
defineAsyncComponent(() => import("@vuepic/vue-datepicker"))
);
2023-08-08 14:03:12 +07:00
app.component(
"d-table",
defineAsyncComponent(() => import("@/components/TableD.vue"))
);
app.config.globalProperties.$http = http;
2023-08-08 14:03:12 +07:00
app.mount("#app");