]> source.dussan.org Git - nextcloud-server.git/commit
feat(dashboard): implement widget item api v2
authorRichard Steinmetz <richard@steinmetz.cloud>
Thu, 17 Aug 2023 13:09:30 +0000 (15:09 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 22 Aug 2023 08:38:46 +0000 (10:38 +0200)
commit3fd18ce450c62719d12810732d0ef6ac083f8736
treed782ac2e180b216c3d74fc7bbd49960795bb1943
parent2a435e8bd2567d8ca68976de4dec7bc3eea9a853
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 <richard@steinmetz.cloud>
16 files changed:
apps/dashboard/appinfo/routes.php
apps/dashboard/lib/Controller/DashboardApiController.php
apps/dashboard/openapi.json [deleted file]
apps/dashboard/src/DashboardApp.vue
apps/dashboard/src/components/ApiDashboardWidget.vue [new file with mode: 0644]
apps/user_status/lib/Dashboard/UserStatusWidget.php
apps/user_status/src/dashboard.js [deleted file]
apps/user_status/src/views/Dashboard.vue [deleted file]
apps/user_status/tests/Unit/Dashboard/UserStatusWidgetTest.php
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_static.php
lib/public/Dashboard/IAPIWidgetV2.php [new file with mode: 0644]
lib/public/Dashboard/IReloadableWidget.php [new file with mode: 0644]
lib/public/Dashboard/Model/WidgetItem.php
lib/public/Dashboard/Model/WidgetItems.php [new file with mode: 0644]
webpack.modules.js