从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。 Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
554 B
C#
18 lines
554 B
C#
namespace MiGu.Server.Configs;
|
|
|
|
public record CustomWidget(
|
|
string Id, string Name, string SchemaJson, string LayoutJson,
|
|
List<string> BindToScopes);
|
|
|
|
public record CustomWidgetConfig(List<CustomWidget> Items)
|
|
{
|
|
public static CustomWidgetConfig Default() => new(
|
|
Items: new List<CustomWidget>
|
|
{
|
|
new("widget-call-button", "呼叫按钮",
|
|
"{\"fields\":[{\"name\":\"siteId\"}]}",
|
|
"{\"x\":0,\"y\":0,\"w\":2,\"h\":1}",
|
|
new List<string> { "RCSMonitor" })
|
|
});
|
|
}
|