added explicit classes for widgets (#3170)

This commit is contained in:
Kevin Papst
2022-02-22 21:15:19 +01:00
committed by GitHub
parent 3d3ae97af4
commit c8b47d1033
30 changed files with 1187 additions and 94 deletions

View File

@@ -11,6 +11,12 @@ namespace App\Widget;
interface WidgetInterface
{
public const COLOR_TODAY = 'green';
public const COLOR_WEEK = 'blue';
public const COLOR_MONTH = 'purple';
public const COLOR_YEAR = 'yellow';
public const COLOR_TOTAL = 'red';
/**
* Returns a unique ID for this widget.
*