Optimize dashboard performance

Fix some issues
This commit is contained in:
chen08209
2025-03-09 01:58:46 +08:00
parent 2aae00cf68
commit de9c5ba9cc
19 changed files with 631 additions and 176 deletions

View File

@@ -273,6 +273,17 @@ class GeoXUrl with _$GeoXUrl {
}
}
@freezed
class ClashConfigSnippet with _$ClashConfigSnippet {
const factory ClashConfigSnippet({
@Default([]) @JsonKey(name: "proxy-groups") List<ProxyGroup> proxyGroups,
@Default([]) List<String> rule,
}) = _ClashConfigSnippet;
factory ClashConfigSnippet.fromJson(Map<String, Object?> json) =>
_$ClashConfigSnippetFromJson(json);
}
@freezed
class ClashConfig with _$ClashConfig {
const factory ClashConfig({
@@ -301,7 +312,7 @@ class ClashConfig with _$ClashConfig {
@JsonKey(name: "geodata-loader")
GeodataLoader geodataLoader,
@Default([]) @JsonKey(name: "proxy-groups") List<ProxyGroup> proxyGroups,
@Default([]) List<String> rules,
@Default([]) List<String> rule,
@JsonKey(name: "global-ua") String? globalUa,
@Default(ExternalControllerStatus.close)
@JsonKey(name: "external-controller")