OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
namespace Leantime\Domain\Widgets\Models;
class Widget
{
/** Set transiently by the Widgets service to flag freshly-available widgets in the UI. */
public bool $isNew = false;
/**
* Constructor for creating a new instance of the class.
*
* @param string $id The unique identifier for the widget.
* @param string $name The name of the widget.
* @param string $widgetUrl The URL of the widget.
* @param string $widgetTrigger The trigger for loading the widget (default: "load").
* @param int $gridMinWidth The minimum width of the widget in the grid (default: 1).
* @param int $gridMinHeight The minimum height of the widget in the grid (default: 1).
* @param int $gridX The X position of the widget in the grid (default: 0).
* @param int $gridY The Y position of the widget in the grid (default: 0).
* @param int $gridHeight The height of the widget in the grid (default: 1).
* @param int $gridWidth The width of the widget in the grid (default: 1).
* @param string $widgetLoadingIndicator The loading indicator type for the widget (default: "text").
* @param string $widgetBackground The background type for the widget (default: "default").
* @param bool $alwaysVisible Indicates if the widget is always visible (default: false).
* @return void
*/
public function __construct(
public string $id,
public string $name,
public string $widgetUrl,
public string $description = '',
public string $widgetTrigger = 'load',
public int $gridMinWidth = 1,
public int $gridMinHeight = 1,
public int $gridX = 0,
public int $gridY = 0,
public int $gridHeight = 1,
public int $gridWidth = 1,
public bool $noTitle = false,
public bool $fixed = false,
public string $widgetLoadingIndicator = 'text',
public string $widgetBackground = 'default',
public bool $alwaysVisible = false
) {}
}