]> 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 06:36:53 +0000 (08:36 +0200)
commit6982597b6a6d319dacfbe3bee2edd2a39b3d6d68
tree9a3cfc98c5ce08542e204ef37365491fa0a0404e
parent82835eaa4623180c41dad927b0ac1db1ed449362
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>
17 files changed:
apps/dashboard/appinfo/routes.php
apps/dashboard/lib/Controller/DashboardApiController.php
apps/dashboard/lib/ResponseDefinitions.php
apps/dashboard/openapi.json
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