Dashboard Widget

Location: lib/Dashboard/

Files:

  • DailyVersesWidget.php

  • DailyversesWidget.php

Responsibilities:

  • Register the widget with Nextcloud

  • Provide metadata (title, icon, JS file)

  • Load dashboardDailyverses.js

  • Render the widget client-side

Widget flow:

  1. Nextcloud loads the widget.

  2. JavaScript fetches the verse from VerseController.

  3. The widget displays the verse, reference, and link.