diff --git a/apps/vben5/apps/app-antd/src/preferences.ts b/apps/vben5/apps/app-antd/src/preferences.ts index 4ee0c5515..94d2a3ca8 100644 --- a/apps/vben5/apps/app-antd/src/preferences.ts +++ b/apps/vben5/apps/app-antd/src/preferences.ts @@ -9,7 +9,15 @@ export const overridesPreferences = defineOverridesPreferences({ // overrides app: { accessMode: 'backend', + defaultHomePath: '/workspace', enableRefreshToken: true, name: import.meta.env.VITE_APP_TITLE, }, + theme: { + mode: 'auto', + radius: '0.25', + }, + widget: { + notification: false, + }, }); diff --git a/apps/vben5/apps/app-antd/src/views/dashboard/workspace/index.vue b/apps/vben5/apps/app-antd/src/views/dashboard/workspace/index.vue index b95d61381..9055b39d8 100644 --- a/apps/vben5/apps/app-antd/src/views/dashboard/workspace/index.vue +++ b/apps/vben5/apps/app-antd/src/views/dashboard/workspace/index.vue @@ -1,266 +1,32 @@ - - - - - 早安, {{ userStore.userInfo?.realName }}, 开始您一天的工作吧! - - 今日晴,20℃ - 32℃! - - - - - - - - - - - - - - - - + + + diff --git a/apps/vben5/packages/@abp/platform/package.json b/apps/vben5/packages/@abp/platform/package.json index fc40d7e15..d91d932ec 100644 --- a/apps/vben5/packages/@abp/platform/package.json +++ b/apps/vben5/packages/@abp/platform/package.json @@ -22,15 +22,19 @@ "dependencies": { "@abp/components": "workspace:*", "@abp/core": "workspace:*", + "@abp/notifications": "workspace:*", "@abp/request": "workspace:*", "@abp/ui": "workspace:*", "@ant-design/icons-vue": "catalog:", + "@vben-core/shadcn-ui": "workspace:*", "@vben/access": "workspace:*", "@vben/common-ui": "workspace:*", "@vben/hooks": "workspace:*", "@vben/icons": "workspace:*", "@vben/layouts": "workspace:*", "@vben/locales": "workspace:*", + "@vben/preferences": "workspace:*", + "@vben/stores": "workspace:*", "@vben/types": "workspace:*", "ant-design-vue": "catalog:", "lodash.clonedeep": "catalog:", diff --git a/apps/vben5/packages/@abp/platform/src/components/index.ts b/apps/vben5/packages/@abp/platform/src/components/index.ts index 1d9a9ddb6..27f62412b 100644 --- a/apps/vben5/packages/@abp/platform/src/components/index.ts +++ b/apps/vben5/packages/@abp/platform/src/components/index.ts @@ -4,3 +4,5 @@ export { default as MenuAllotModal } from './menus/MenuAllotModal.vue'; export { default as MenuTable } from './menus/MenuTable.vue'; export { default as EmailMessageTable } from './messages/email/EmailMessageTable.vue'; export { default as SmsMessageTable } from './messages/sms/SmsMessageTable.vue'; +export { default as Workbench } from './workbench/index.vue'; +export * from './workbench/types'; diff --git a/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchHeader.vue b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchHeader.vue new file mode 100644 index 000000000..54cdd4270 --- /dev/null +++ b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchHeader.vue @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + {{ $t('workbench.header.notifier.title') }} + + {{ + $t('workbench.header.notifier.count', [notifierCount]) + }} + + + + diff --git a/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchQuickNav.vue b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchQuickNav.vue new file mode 100644 index 000000000..9bab0b0b7 --- /dev/null +++ b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchQuickNav.vue @@ -0,0 +1,60 @@ + + + + + + {{ title }} + + + + + + {{ item.displayName }} + + + + + + + diff --git a/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchTodo.vue b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchTodo.vue new file mode 100644 index 000000000..8751f8b79 --- /dev/null +++ b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchTodo.vue @@ -0,0 +1,64 @@ + + + + + + {{ title }} + + + + + + + + + + {{ item.title }} + + + + + + + + {{ item.date }} + + + + + + + diff --git a/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchTrends.vue b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchTrends.vue new file mode 100644 index 000000000..48267cdb4 --- /dev/null +++ b/apps/vben5/packages/@abp/platform/src/components/workbench/components/WorkbenchTrends.vue @@ -0,0 +1,65 @@ + + + + + + {{ title }} + + + + + + + + + + {{ item.title }} + + + + + + + + {{ item.date }} + + + + + + + diff --git a/apps/vben5/packages/@abp/platform/src/components/workbench/index.vue b/apps/vben5/packages/@abp/platform/src/components/workbench/index.vue new file mode 100644 index 000000000..1a3536200 --- /dev/null +++ b/apps/vben5/packages/@abp/platform/src/components/workbench/index.vue @@ -0,0 +1,195 @@ + + + + + + + {{ getWelcomeTitle }} + + 今日晴,20℃ - 32℃! + + + + + $emit('navTo', menu)" + /> + + + + + + + + + + + + + + + + + + diff --git a/apps/vben5/packages/@abp/platform/src/components/workbench/types.ts b/apps/vben5/packages/@abp/platform/src/components/workbench/types.ts new file mode 100644 index 000000000..13dea780f --- /dev/null +++ b/apps/vben5/packages/@abp/platform/src/components/workbench/types.ts @@ -0,0 +1,10 @@ +interface FavoriteMenu { + color?: string; + displayName: string; + icon?: string; + id: string; + isDefault: boolean; + path?: string; +} + +export type { FavoriteMenu };
+ {{ item.title }} +