diff --git a/apps/web-antd/package.json b/apps/web-antd/package.json index 0b46baa..4208e6a 100644 --- a/apps/web-antd/package.json +++ b/apps/web-antd/package.json @@ -27,6 +27,7 @@ }, "dependencies": { "@ant-design/icons-vue": "^7.0.1", + "@vben-core/shadcn-ui": "workspace:*", "@vben/access": "workspace:*", "@vben/common-ui": "workspace:*", "@vben/constants": "workspace:*", diff --git a/apps/web-antd/src/views/person/modules/user-panel.vue b/apps/web-antd/src/views/person/modules/user-panel.vue new file mode 100644 index 0000000..a5276d7 --- /dev/null +++ b/apps/web-antd/src/views/person/modules/user-panel.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/apps/web-antd/src/views/ppt/index.vue b/apps/web-antd/src/views/ppt/index.vue index f83b192..cbb605a 100644 --- a/apps/web-antd/src/views/ppt/index.vue +++ b/apps/web-antd/src/views/ppt/index.vue @@ -1,36 +1,31 @@ diff --git a/apps/web-antd/src/views/ppt/typing.ts b/apps/web-antd/src/views/ppt/typing.ts new file mode 100644 index 0000000..5c252cb --- /dev/null +++ b/apps/web-antd/src/views/ppt/typing.ts @@ -0,0 +1,64 @@ +interface PPTTempItem { + id: string; + name: string; + workflowRunId?: string; + appId?: string; + userId?: string; + taskId?: string; + url?: string; +} + +interface PptHistoryItem { + id: string; + workflowRun: { + id: string; + }; + createdByEndUser: { + id: string; + sessionId: string; + }; +} + +interface Props { + items?: PptHistoryItem[]; + title: string; + loading: boolean; +} + +interface ResultItem { + key: number; + role: 'ai' | 'user'; + content: string; + footer?: any; +} + +interface WorkflowContext { + userId: string; + conversationId: string; + files: unknown[]; + inputs: Record; +} + +interface WorkflowResult { + data: { + outputs: { + result: string; + }; + }; +} + +interface PropsWork { + itemMessage?: ResultItem; + item?: PPTTempItem; + runWorkflow?: (context: WorkflowContext) => Promise; +} + +export type { + PptHistoryItem, + PPTTempItem, + Props, + PropsWork, + ResultItem, + WorkflowContext, + WorkflowResult, +}; diff --git a/apps/web-antd/src/views/spider/components/index.ts b/apps/web-antd/src/views/spider/components/index.ts new file mode 100644 index 0000000..8c74cad --- /dev/null +++ b/apps/web-antd/src/views/spider/components/index.ts @@ -0,0 +1,3 @@ +export { default as SelfWorkView } from './self-work-view.vue'; +export { default as SpiderListView } from './spider-list-view.vue'; +export { default as WorkflowWorkView } from './workflow-work-view.vue'; diff --git a/packages/effects/common-ui/src/ui/spider/spider-work-view.vue b/apps/web-antd/src/views/spider/components/self-work-view.vue similarity index 72% rename from packages/effects/common-ui/src/ui/spider/spider-work-view.vue rename to apps/web-antd/src/views/spider/components/self-work-view.vue index 0aae7fd..8e682d9 100644 --- a/packages/effects/common-ui/src/ui/spider/spider-work-view.vue +++ b/apps/web-antd/src/views/spider/components/self-work-view.vue @@ -1,13 +1,14 @@ + + diff --git a/apps/web-antd/src/views/spider/index.vue b/apps/web-antd/src/views/spider/index.vue index 7b828af..b6a1762 100644 --- a/apps/web-antd/src/views/spider/index.vue +++ b/apps/web-antd/src/views/spider/index.vue @@ -1,7 +1,8 @@ - - diff --git a/packages/effects/common-ui/src/ui/ppt/typing.ts b/packages/effects/common-ui/src/ui/ppt/typing.ts deleted file mode 100644 index e61e5fe..0000000 --- a/packages/effects/common-ui/src/ui/ppt/typing.ts +++ /dev/null @@ -1,22 +0,0 @@ -interface PPTTempItem { - id: string; - name: string; - workflowRunId?: string; - appId?: string; - userId?: string; - taskId?: string; - url?: string; -} - -interface PptHistoryItem { - id: string; - workflowRun: { - id: string; - }; - createdByEndUser: { - id: string; - sessionId: string; - }; -} - -export type { PptHistoryItem, PPTTempItem }; diff --git a/packages/effects/common-ui/src/ui/spider/index.ts b/packages/effects/common-ui/src/ui/spider/index.ts deleted file mode 100644 index 0566302..0000000 --- a/packages/effects/common-ui/src/ui/spider/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as SpiderListView } from './spider-list-view.vue'; -export { default as SpiderWorkView } from './spider-work-view.vue'; -export type * from './typing'; diff --git a/packages/effects/common-ui/src/ui/spider/typing.ts b/packages/effects/common-ui/src/ui/spider/typing.ts deleted file mode 100644 index 8512274..0000000 --- a/packages/effects/common-ui/src/ui/spider/typing.ts +++ /dev/null @@ -1,7 +0,0 @@ -interface SpiderItem { - id: string; - name: string; - url: string; -} - -export type { SpiderItem }; diff --git a/packages/effects/common-ui/src/ui/word/typing.ts b/packages/effects/common-ui/src/ui/word/typing.ts deleted file mode 100644 index 2e66ac8..0000000 --- a/packages/effects/common-ui/src/ui/word/typing.ts +++ /dev/null @@ -1,18 +0,0 @@ -interface WordTempItem { - id: string; - name: string; -} - -interface WordHistoryItem { - name: string; - id: string; - workflowRun: { - id: string; - }; - createdByEndUser: { - id: string; - sessionId: string; - }; -} - -export type { WordHistoryItem, WordTempItem }; diff --git a/packages/effects/common-ui/src/ui/word/word-history-view.vue b/packages/effects/common-ui/src/ui/word/word-history-view.vue deleted file mode 100644 index f13a275..0000000 --- a/packages/effects/common-ui/src/ui/word/word-history-view.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d2220e7..012725a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -598,6 +598,9 @@ importers: '@ant-design/icons-vue': specifier: ^7.0.1 version: 7.0.1(vue@3.5.13(typescript@5.8.3)) + '@vben-core/shadcn-ui': + specifier: workspace:* + version: link:../../packages/@core/ui-kit/shadcn-ui '@vben/access': specifier: workspace:* version: link:../../packages/effects/access @@ -1345,7 +1348,7 @@ importers: specifier: ^1.1.2 version: 1.1.2(ant-design-vue@4.2.6(vue@3.5.13(typescript@5.8.3)))(vue@3.5.13(typescript@5.8.3)) dayjs: - specifier: ^1.11.13 + specifier: 'catalog:' version: 1.11.13 markdown-it: specifier: ^14.1.0