merge: 控制面联调 M6 [tsk_nuoKSM4Vt-zK]

# Conflicts:
#	.gitignore
#	client/lib/widgets/home_shell.dart
#	client/lib/widgets/server_tile.dart
#	client/pubspec.yaml
This commit is contained in:
wangjia
2026-06-13 17:32:26 +08:00
9 changed files with 1049 additions and 46 deletions
+19
View File
@@ -7,6 +7,25 @@ import '../pangolin_theme.dart';
import 'country_code.dart';
import 'pangolin_icons.dart';
class ServerInfo {
const ServerInfo({
required this.code,
required this.name,
required this.sub,
required this.ping,
this.nodeId = '',
});
final String code, name, sub;
final int ping;
/// 控制面节点 ID,对应 POST /v1/nodes/:nodeId/connect 路径参数。
/// 留空时降级为使用 [code] 小写值(仅限 mock 联调)。
final String nodeId;
String get effectiveNodeId => nodeId.isEmpty ? code.toLowerCase() : nodeId;
}
class ServerTile extends StatelessWidget {
const ServerTile({
super.key,