From 6982597b6a6d319dacfbe3bee2edd2a39b3d6d68 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Thu, 17 Aug 2023 15:09:30 +0200 Subject: feat(dashboard): implement widget item api v2 This API enables the dashboard to render all widgets from the API data alone without having apps to provide their own bundles. This saves a lot of traffic and execution time as a lot less javascript has to be parsed on the frontend. Signed-off-by: Richard Steinmetz --- apps/dashboard/src/DashboardApp.vue | 106 +++++++++++++--- .../src/components/ApiDashboardWidget.vue | 140 +++++++++++++++++++++ 2 files changed, 232 insertions(+), 14 deletions(-) create mode 100644 apps/dashboard/src/components/ApiDashboardWidget.vue (limited to 'apps/dashboard/src') diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index 993340dae36..7a7b56da266 100644 --- a/apps/dashboard/src/DashboardApp.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -14,21 +14,44 @@ v-bind="{swapThreshold: 0.30, delay: 500, delayOnTouchOnly: true, touchStartThreshold: 3}" handle=".panel--header" @end="saveLayout"> -
-
-

-

- {{ t('dashboard', '"{title} icon"', { title: panels[panelId].title }) }} +