99 lines
1.4 KiB
TypeScript
99 lines
1.4 KiB
TypeScript
|
|
import { QueryClient, VueQueryPlugin } from "@tanstack/vue-query";
|
||
|
|
import { createApp } from "vue";
|
||
|
|
import {
|
||
|
|
Alert,
|
||
|
|
App as AntApp,
|
||
|
|
Avatar,
|
||
|
|
Badge,
|
||
|
|
Button,
|
||
|
|
Card,
|
||
|
|
Checkbox,
|
||
|
|
Col,
|
||
|
|
ConfigProvider,
|
||
|
|
DatePicker,
|
||
|
|
Descriptions,
|
||
|
|
Drawer,
|
||
|
|
Dropdown,
|
||
|
|
Empty,
|
||
|
|
Form,
|
||
|
|
Input,
|
||
|
|
InputNumber,
|
||
|
|
Layout,
|
||
|
|
List,
|
||
|
|
Menu,
|
||
|
|
Modal,
|
||
|
|
Popconfirm,
|
||
|
|
Progress,
|
||
|
|
Radio,
|
||
|
|
Row,
|
||
|
|
Select,
|
||
|
|
Skeleton,
|
||
|
|
Spin,
|
||
|
|
Statistic,
|
||
|
|
Steps,
|
||
|
|
Table,
|
||
|
|
Tabs,
|
||
|
|
Tag,
|
||
|
|
Tooltip,
|
||
|
|
} from "ant-design-vue";
|
||
|
|
|
||
|
|
import App from "./App.vue";
|
||
|
|
import { i18n } from "./i18n";
|
||
|
|
import { router } from "./router";
|
||
|
|
import { pinia } from "./stores/pinia";
|
||
|
|
import "./styles.css";
|
||
|
|
import "ant-design-vue/dist/reset.css";
|
||
|
|
|
||
|
|
const queryClient = new QueryClient({
|
||
|
|
defaultOptions: {
|
||
|
|
queries: {
|
||
|
|
staleTime: 30000,
|
||
|
|
refetchOnWindowFocus: false,
|
||
|
|
retry: false,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
const app = createApp(App);
|
||
|
|
|
||
|
|
[
|
||
|
|
Alert,
|
||
|
|
AntApp,
|
||
|
|
Avatar,
|
||
|
|
Badge,
|
||
|
|
Button,
|
||
|
|
Card,
|
||
|
|
Checkbox,
|
||
|
|
Col,
|
||
|
|
ConfigProvider,
|
||
|
|
DatePicker,
|
||
|
|
Descriptions,
|
||
|
|
Drawer,
|
||
|
|
Dropdown,
|
||
|
|
Empty,
|
||
|
|
Form,
|
||
|
|
Input,
|
||
|
|
InputNumber,
|
||
|
|
Layout,
|
||
|
|
List,
|
||
|
|
Menu,
|
||
|
|
Modal,
|
||
|
|
Popconfirm,
|
||
|
|
Progress,
|
||
|
|
Radio,
|
||
|
|
Row,
|
||
|
|
Select,
|
||
|
|
Skeleton,
|
||
|
|
Spin,
|
||
|
|
Statistic,
|
||
|
|
Steps,
|
||
|
|
Table,
|
||
|
|
Tabs,
|
||
|
|
Tag,
|
||
|
|
Tooltip,
|
||
|
|
].forEach((component) => {
|
||
|
|
app.use(component);
|
||
|
|
});
|
||
|
|
|
||
|
|
app.use(i18n).use(pinia).use(router).use(VueQueryPlugin, { queryClient }).mount("#app");
|