From d585938df0fa6e59a7efa2015de285457cd06c4c Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 17 Jul 2025 17:29:45 +0200 Subject: [PATCH 1/2] Reintroduced News feed widget in admin dashboard. --- frontend/src/api/admin.js | 3 ++ .../admin/dashboard/NewsFeedWidget.vue | 52 +++++++++++++++++++ frontend/src/views/DashboardView.vue | 27 ++++------ modoboa/core/api/v2/serializers.py | 7 +++ modoboa/core/api/v2/tests.py | 39 ++++++++++++++ modoboa/core/api/v2/urls.py | 5 ++ modoboa/core/api/v2/views.py | 33 +++++++++++- modoboa/lib/permissions.py | 7 +++ 8 files changed, 155 insertions(+), 18 deletions(-) create mode 100644 frontend/src/components/admin/dashboard/NewsFeedWidget.vue diff --git a/frontend/src/api/admin.js b/frontend/src/api/admin.js index ff2b7b860..901753702 100644 --- a/frontend/src/api/admin.js +++ b/frontend/src/api/admin.js @@ -7,4 +7,7 @@ export default { getNotifications() { return repository.get('/admin/notifications/') }, + getNewsFeed() { + return repository.get('/admin/news_feed/') + }, } diff --git a/frontend/src/components/admin/dashboard/NewsFeedWidget.vue b/frontend/src/components/admin/dashboard/NewsFeedWidget.vue new file mode 100644 index 000000000..4fc85bbf2 --- /dev/null +++ b/frontend/src/components/admin/dashboard/NewsFeedWidget.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/frontend/src/views/DashboardView.vue b/frontend/src/views/DashboardView.vue index a49f60dfa..1ebb1642d 100644 --- a/frontend/src/views/DashboardView.vue +++ b/frontend/src/views/DashboardView.vue @@ -2,25 +2,18 @@ {{ $gettext('Welcome to Modoboa') }} - -

{{ $gettext('This page is still under construction.') }}

-

- {{ - $gettext( - "It will present a summary of your Modoboa server's status and some useful information about the product." - ) - }} -

-

- Your feedback would be really appreciated, you can use - Github discussions - to share your ideas and/or comments. -

-
+ + + + + + + +