chore: update deps
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s

This commit is contained in:
Methapon2001 2025-03-26 11:51:27 +07:00
parent fb23ec5fd4
commit 90589b3daf
34 changed files with 1271 additions and 13939 deletions

View file

@ -1,11 +1,11 @@
import axios, { AxiosInstance } from 'axios';
import { boot } from 'quasar/wrappers';
import { defineBoot } from '#q-app/wrappers';
import { getToken } from 'src/services/keycloak';
import { dialog } from 'stores/utils';
import useLoader from 'stores/loader';
import useFlowStore from 'src/stores/flow';
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$axios: AxiosInstance;
$api: AxiosInstance;
@ -24,10 +24,10 @@ function parseError(
status: number,
body?: { status: number; message: string; code: string },
) {
if (status === 422) return 'invalideData';
if (status === 422) return 'invalidData';
if (body && body.code) return body.code;
return 'errorOccure';
return 'errorOccurred';
}
api.interceptors.request.use(async (config) => {
@ -64,7 +64,7 @@ api.interceptors.response.use(
},
);
export default boot(({ app }) => {
export default defineBoot(({ app }) => {
// for use inside Vue files (Options API) through this.$axios and this.$api
app.config.globalProperties.$axios = axios;

View file

@ -1,4 +1,4 @@
import { boot } from 'quasar/wrappers';
import { defineBoot } from '#q-app/wrappers';
import VueDatePicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';
import GlobalDialog from 'components/GlobalDialog.vue';
@ -6,7 +6,7 @@ import GlobalLoading from 'components/GlobalLoading.vue';
import VueDragscroll from 'vue-dragscroll';
import VueApexCharts from 'vue3-apexcharts';
export default boot(({ app }) => {
export default defineBoot(({ app }) => {
app.component('global-dialog', GlobalDialog);
app.component('global-loading', GlobalLoading);
app.component('VueDatePicker', VueDatePicker);

View file

@ -1,4 +1,4 @@
import { boot } from 'quasar/wrappers';
import { defineBoot } from '#q-app/wrappers';
import { createI18n } from 'vue-i18n';
import messages from 'src/i18n';
@ -21,16 +21,17 @@ declare module 'vue-i18n' {
}
/* eslint-enable @typescript-eslint/no-empty-interface */
export const i18n = createI18n({
locale: 'tha',
export const i18n = createI18n<
{ message: MessageSchema },
MessageLanguages,
false
>({
locale: 'en-US',
legacy: false,
messages: {
'en-US': {},
...messages,
},
messages,
});
export default boot(({ app }) => {
export default defineBoot(({ app }) => {
// Set i18n instance on app
app.use(i18n);
});