Optimize performance
Update core Optimize core stability Fix linux tun authority check error Fix some issues
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user