From bd5e0bf938510f00075e5e285ae522424edefe93 Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 22 Jul 2022 13:45:02 +0800 Subject: [PATCH 1/4] refactor: vue3 index --- yudao-ui-admin-vue3/package.json | 2 +- yudao-ui-admin-vue3/src/locales/en.ts | 5 +- yudao-ui-admin-vue3/src/locales/zh-CN.ts | 5 +- yudao-ui-admin-vue3/src/views/Home/Index.vue | 515 +++++++++------ yudao-ui-admin-vue3/src/views/Home/Index2.vue | 589 ++++++++---------- yudao-ui-admin-vue3/src/views/Home/types.ts | 5 +- 6 files changed, 608 insertions(+), 513 deletions(-) diff --git a/yudao-ui-admin-vue3/package.json b/yudao-ui-admin-vue3/package.json index 8402db3bd..8956dd3a5 100644 --- a/yudao-ui-admin-vue3/package.json +++ b/yudao-ui-admin-vue3/package.json @@ -6,7 +6,7 @@ "private": false, "scripts": { "i": "pnpm install", - "dev": "vite --mode base", + "dev": "vite --mode base --open", "ts:check": "vue-tsc --noEmit", "build:pro": "vite build --mode pro", "build:dev": "vite build --mode dev", diff --git a/yudao-ui-admin-vue3/src/locales/en.ts b/yudao-ui-admin-vue3/src/locales/en.ts index 6d0cff298..b31226dad 100644 --- a/yudao-ui-admin-vue3/src/locales/en.ts +++ b/yudao-ui-admin-vue3/src/locales/en.ts @@ -171,15 +171,16 @@ export default { sunday: 'Sunday' }, workplace: { - goodMorning: 'Good morning', + welcome: 'Hello', happyDay: 'Wish you happy every day!', toady: `It's sunny today`, + notice: 'Announcement', project: 'Project', access: 'Project access', toDo: 'To do', introduction: 'A serious introduction', more: 'More', - shortcutOperation: 'Shortcut operation', + shortcutOperation: 'Quick entry', operation: 'Operation', index: 'Index', personal: 'Personal', diff --git a/yudao-ui-admin-vue3/src/locales/zh-CN.ts b/yudao-ui-admin-vue3/src/locales/zh-CN.ts index 96098d178..9659babc3 100644 --- a/yudao-ui-admin-vue3/src/locales/zh-CN.ts +++ b/yudao-ui-admin-vue3/src/locales/zh-CN.ts @@ -171,15 +171,16 @@ export default { sunday: '周日' }, workplace: { - goodMorning: '早安', + welcome: '你好', happyDay: '祝你开心每一天!', toady: '今日晴', + notice: '通知公告', project: '项目数', access: '项目访问', toDo: '待办', introduction: '一个正经的简介', more: '更多', - shortcutOperation: '快捷操作', + shortcutOperation: '快捷入口', operation: '操作', index: '指数', personal: '个人', diff --git a/yudao-ui-admin-vue3/src/views/Home/Index.vue b/yudao-ui-admin-vue3/src/views/Home/Index.vue index fb5db7dcd..0ddd48ed9 100644 --- a/yudao-ui-admin-vue3/src/views/Home/Index.vue +++ b/yudao-ui-admin-vue3/src/views/Home/Index.vue @@ -1,38 +1,187 @@ - diff --git a/yudao-ui-admin-vue3/src/views/Home/Index2.vue b/yudao-ui-admin-vue3/src/views/Home/Index2.vue index 776845cc7..fb5db7dcd 100644 --- a/yudao-ui-admin-vue3/src/views/Home/Index2.vue +++ b/yudao-ui-admin-vue3/src/views/Home/Index2.vue @@ -1,197 +1,127 @@ + diff --git a/yudao-ui-admin-vue3/src/views/Home/types.ts b/yudao-ui-admin-vue3/src/views/Home/types.ts index 87e71b30b..c4eff1345 100644 --- a/yudao-ui-admin-vue3/src/views/Home/types.ts +++ b/yudao-ui-admin-vue3/src/views/Home/types.ts @@ -12,14 +12,15 @@ export type Project = { time: Date | number | string } -export type Dynamic = { +export type Notice = { keys: string[] time: Date | number | string } -export type Team = { +export type Shortcut = { name: string icon: string + url: string } export type RadarData = { From 7a34197c179ee2e88c7663291e2150d4cb1c4336 Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 22 Jul 2022 14:05:32 +0800 Subject: [PATCH 2/4] style: vue3 index --- yudao-ui-admin-vue3/src/views/Home/Index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/Home/Index.vue b/yudao-ui-admin-vue3/src/views/Home/Index.vue index 0ddd48ed9..ff230d1e9 100644 --- a/yudao-ui-admin-vue3/src/views/Home/Index.vue +++ b/yudao-ui-admin-vue3/src/views/Home/Index.vue @@ -305,7 +305,7 @@ getAllApi() -
+
{{ t('workplace.project') }}
- +