98ebb12fa1
- Updated RecentArticle interface to include generation_mode. - Modified workspace_service to map generation_mode from database. - Adjusted domain model for RecentArticle to accommodate generation_mode. - Enhanced SQL queries to retrieve generation_mode from generation_tasks. - Created ArticleActionGroup component for article action buttons. - Implemented ArticleGenerateStatus component to display generation status. - Developed ArticlePublishStatus component to show publish status and related platforms. - Introduced ArticleSourceMeta component to display article source information. - Added utility functions for article actions and clipboard content generation.
130 lines
2.0 KiB
TypeScript
130 lines
2.0 KiB
TypeScript
import { createFromIconfontCN } from "@ant-design/icons-vue";
|
|
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,
|
|
Divider,
|
|
Drawer,
|
|
Dropdown,
|
|
Empty,
|
|
Form,
|
|
Input,
|
|
InputNumber,
|
|
Layout,
|
|
List,
|
|
Menu,
|
|
Modal,
|
|
Popconfirm,
|
|
Progress,
|
|
Radio,
|
|
Result,
|
|
Row,
|
|
Select,
|
|
Skeleton,
|
|
Space,
|
|
Spin,
|
|
Statistic,
|
|
Switch,
|
|
Steps,
|
|
Table,
|
|
Tabs,
|
|
Tag,
|
|
Tree,
|
|
TimePicker,
|
|
Tooltip,
|
|
Upload,
|
|
TreeSelect,
|
|
Popover,
|
|
Slider,
|
|
} 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";
|
|
import select from "ant-design-vue/es/select";
|
|
import tree from "ant-design-vue/es/tree";
|
|
|
|
const queryClient = new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
staleTime: 30000,
|
|
refetchOnWindowFocus: false,
|
|
retry: false,
|
|
},
|
|
},
|
|
});
|
|
|
|
const app = createApp(App);
|
|
|
|
const IconFont = createFromIconfontCN({
|
|
// 需要替换为你自己真实项目的 js 地址,才能显示出你的 '#icon-line-global_undo'。
|
|
scriptUrl: "//at.alicdn.com/t/c/font_5154382_922oh81rh1.js",
|
|
});
|
|
app.component("IconFont", IconFont);
|
|
|
|
app.component("ATextarea", Input.TextArea);
|
|
|
|
[
|
|
Alert,
|
|
AntApp,
|
|
Avatar,
|
|
Badge,
|
|
Button,
|
|
Card,
|
|
Checkbox,
|
|
Col,
|
|
ConfigProvider,
|
|
DatePicker,
|
|
Descriptions,
|
|
Divider,
|
|
Drawer,
|
|
Dropdown,
|
|
Empty,
|
|
Form,
|
|
Input,
|
|
InputNumber,
|
|
Layout,
|
|
List,
|
|
Menu,
|
|
Modal,
|
|
Popconfirm,
|
|
Popover,
|
|
Progress,
|
|
Radio,
|
|
Result,
|
|
Row,
|
|
Select,
|
|
Skeleton,
|
|
Space,
|
|
Spin,
|
|
Statistic,
|
|
Switch,
|
|
Slider,
|
|
Steps,
|
|
Table,
|
|
Tabs,
|
|
Tag,
|
|
TimePicker,
|
|
Tooltip,
|
|
Tree,
|
|
TreeSelect,
|
|
Upload,
|
|
].forEach((component) => {
|
|
app.use(component);
|
|
});
|
|
|
|
app.use(i18n).use(pinia).use(router).use(VueQueryPlugin, { queryClient }).mount("#app");
|