Skip to content

Commit 6d3c249

Browse files
authored
feat: full-features of dashboard widgets (#7496)
#### What type of PR is this? /area ui /kind feature /milestone 2.21.x #### What this PR does / why we need it: Previously, although the Console dashboard was designed from the beginning to support extensions and persistent configuration, this had not yet been implemented. This PR implements a more powerful dashboard configuration, including features: 1. Support for persisting configuration data to the currently logged-in user. 2. Support for configuring different dashboards for different device sizes (responsive support). 3. Support for extending dashboard widgets through plugins. 4. More UX/UI optimizations docs: halo-dev/docs#500 Test plugin: [plugin-widgets-test-1.0.11.jar.zip](https://github.com/user-attachments/files/20623916/plugin-widgets-test-1.0.11.jar.zip) <img width="1663" alt="image" src="https://github.com/user-attachments/assets/cc4d78f2-25ab-4772-b43f-b16a813bcdc0" /> <img width="1662" alt="image" src="https://github.com/user-attachments/assets/e8ba8ca8-2ae9-4736-800f-6c0f062434a3" /> #### Which issue(s) this PR fixes: Fixes #6358 Fixes #6666 Fixes #2883 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 重构 Console 端仪表盘,支持响应式布局、持久化配置,支持通过插件扩展小部件。 ```
1 parent 54fad8d commit 6d3c249

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2717
-750
lines changed

ui/console-src/modules/contents/comments/module.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ import { IconMessage } from "@halo-dev/components";
33
import { definePlugin } from "@halo-dev/console-shared";
44
import { markRaw } from "vue";
55
import CommentList from "./CommentList.vue";
6-
import CommentStatsWidget from "./widgets/CommentStatsWidget.vue";
76

87
export default definePlugin({
9-
components: {
10-
CommentStatsWidget,
11-
},
128
routes: [
139
{
1410
path: "/comments",

ui/console-src/modules/contents/comments/widgets/CommentStatsWidget.vue

Lines changed: 0 additions & 28 deletions
This file was deleted.

ui/console-src/modules/contents/pages/module.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ import DeletedSinglePageList from "./DeletedSinglePageList.vue";
66
import SinglePageEditor from "./SinglePageEditor.vue";
77
import SinglePageList from "./SinglePageList.vue";
88
import SinglePageSnapshots from "./SinglePageSnapshots.vue";
9-
import SinglePageStatsWidget from "./widgets/SinglePageStatsWidget.vue";
109

1110
export default definePlugin({
12-
components: {
13-
SinglePageStatsWidget,
14-
},
1511
routes: [
1612
{
1713
path: "/single-pages",

ui/console-src/modules/contents/pages/widgets/SinglePageStatsWidget.vue

Lines changed: 0 additions & 43 deletions
This file was deleted.

ui/console-src/modules/contents/posts/module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,8 @@ import PostList from "./PostList.vue";
99
import PostSnapshots from "./PostSnapshots.vue";
1010
import CategoryList from "./categories/CategoryList.vue";
1111
import TagList from "./tags/TagList.vue";
12-
import PostStatsWidget from "./widgets/PostStatsWidget.vue";
13-
import RecentPublishedWidget from "./widgets/RecentPublishedWidget.vue";
1412

1513
export default definePlugin({
16-
components: {
17-
PostStatsWidget,
18-
RecentPublishedWidget,
19-
},
2014
routes: [
2115
{
2216
path: "/posts",

ui/console-src/modules/contents/posts/widgets/PostStatsWidget.vue

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)