Optimize performance

Update core

Optimize core stability

Fix linux tun authority check error

Fix some issues
This commit is contained in:
chen08209
2025-02-09 18:39:38 +08:00
parent 96328f66e9
commit 4e679f776e
138 changed files with 13013 additions and 8723 deletions

View File

@@ -34,7 +34,24 @@ const desktopPlatforms = [
SupportPlatform.Windows,
];
enum GroupType { Selector, URLTest, Fallback, LoadBalance, Relay }
enum GroupType {
Selector,
URLTest,
Fallback,
LoadBalance,
Relay;
static GroupType parseProfileType(String type) {
return switch (type) {
"url-test" => URLTest,
"select" => Selector,
"fallback" => Fallback,
"load-balance" => LoadBalance,
"relay" => Relay,
String() => throw UnimplementedError(),
};
}
}
enum GroupName { GLOBAL, Proxy, Auto, Fallback }
@@ -45,7 +62,7 @@ extension GroupTypeExtension on GroupType {
)
.toList();
bool get isURLTestOrFallback {
bool get isComputedSelected {
return [GroupType.URLTest, GroupType.Fallback].contains(this);
}
@@ -138,6 +155,13 @@ enum DnsMode {
hosts
}
enum ExternalControllerStatus {
@JsonValue("")
close,
@JsonValue("127.0.0.1:9090")
open
}
enum KeyboardModifier {
alt([
PhysicalKeyboardKey.altLeft,
@@ -238,6 +262,7 @@ enum ActionMethod {
stopListener,
getCountryCode,
getMemory,
getProfile,
///Android,
setFdMap,
@@ -270,7 +295,11 @@ enum DebounceTag {
handleWill,
updateDelay,
vpnTip,
autoLaunch
autoLaunch,
renderPause,
updatePageIndex,
pageChange,
proxiesTabChange,
}
enum DashboardWidget {
@@ -341,3 +370,19 @@ enum DashboardWidget {
return dashboardWidgets[index];
}
}
enum GeodataLoader {
standard,
memconservative,
}
enum PageLabel {
dashboard,
proxies,
profiles,
tools,
logs,
requests,
resources,
connections,
}