4dc4127252
三端布局(mobile/tablet/desktop): - core/responsive/form_factor.dart 形态判定 + shell/ 分发器(home_shell→desktop/mobile) - desktop_shell 对照 ui_kits/desktop/dapp.jsx: 侧栏204·6项 + 套餐卡 + 顶栏(标题/状态/主题切换) + 连接页居中单列 - 新增组件 nav_sidebar / plan_badge_card / content_top_bar / bottom_tab_bar - 新增一级页 contact_page / settings_page; navigation_provider(NavView) - 删除旧 widgets/home_shell.dart(逻辑迁入 shell/) macOS 桌面端: - 窗口默认 920×600 + 最小 720×560(MainFlutterWindow.swift) - app 图标替换为穿山甲(AppIcon.appiconset 全套, 由 app-icon.svg 渲染) 其余(本会话): - Phase2 接线: auth_api/token_store/auth_provider/vpn_bridge_provider + 真实 connection/nodes - lucide_icons 兼容补丁(packages/lucide_icons_patched) 修复 IconData final 报错 - 测试修复: connect_passthrough(UTF-8) / harness / golden @Skip - l10n 新增 settingsTitle Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
154 lines
3.9 KiB
Dart
154 lines
3.9 KiB
Dart
// app_text.dart — 文案契约(l10n 资源层)
|
|
//
|
|
// 产品任一时刻只显示中文【或】英文(设计铁律 §6 单语言显示),由
|
|
// `localeProvider` 段控切换。所有界面文案必须经此处取用,禁止在组件内
|
|
// 写死中/英字面量。zh / en 两份资源分别在 strings_zh.dart / strings_en.dart。
|
|
//
|
|
// 红线词约束(设计铁律 §13):资源文件不得出现 VPN / 翻墙 / 科学上网 /
|
|
// 突破封锁 / 自由穿越 / Go anywhere。CI `ci/scan-redline.sh` 对本目录做扫描。
|
|
//
|
|
// 注意:这是手写资源(非 flutter gen-l10n 代码生成),保证离线可编译;
|
|
// 接口形态与 .arb 一致,后续可平滑迁移到官方 l10n 工具链。
|
|
|
|
/// 受支持语言。单显——任一时刻只渲染其一。
|
|
enum AppLang { zh, en }
|
|
|
|
/// 全部界面文案的抽象契约。zh / en 各实现一份。
|
|
abstract class AppText {
|
|
const AppText();
|
|
|
|
AppLang get lang;
|
|
|
|
// ── 品牌 / 连接状态 ──
|
|
String get brand;
|
|
String get online;
|
|
String get offline;
|
|
String get capOff;
|
|
String get capConnecting;
|
|
String get capOn;
|
|
String get connectNow; // 连接键 off 态圆内文字
|
|
String get secure; // 连接键圆内「已加密」
|
|
|
|
// ── 底部 / 侧栏导航 ──
|
|
String get tabConnect;
|
|
String get tabServers;
|
|
String get tabStats;
|
|
String get tabMe;
|
|
|
|
// ── 连接页 ──
|
|
String get currentNode;
|
|
String get download;
|
|
String get upload;
|
|
String get latency;
|
|
|
|
// ── 免费额度卡 ──
|
|
String get quotaToday;
|
|
String get minutes;
|
|
String get quotaFree;
|
|
String get watchAd;
|
|
String get adUnlocked;
|
|
|
|
// ── 节点页 ──
|
|
String get chooseNode;
|
|
String get searchPh;
|
|
String get smartSelect;
|
|
String get smartSub;
|
|
String get recommended;
|
|
|
|
// ── 统计页 ──
|
|
String get statsTitle;
|
|
String get trafficMonth;
|
|
String get avgPing;
|
|
String get durMonth;
|
|
String get weekTraffic;
|
|
List<String> get days7;
|
|
|
|
// ── 账户页 ──
|
|
String get meTitle;
|
|
String get proMember;
|
|
String get freePlanName;
|
|
String get expires;
|
|
String get upgradeBtn;
|
|
String get accInfoTitle;
|
|
String get accEmail;
|
|
String get accPassword;
|
|
String get accChange;
|
|
String get myDevices;
|
|
String get devicesSub;
|
|
String get thisDevice;
|
|
String get remove;
|
|
String get redeemEntry;
|
|
String get contactEntry;
|
|
String get signOut;
|
|
String get language;
|
|
String get darkAppearance;
|
|
String get stateOn;
|
|
String get followLight;
|
|
String get protocol;
|
|
String get settingsTitle;
|
|
|
|
// ── 套餐选择 ──
|
|
String get choosePlan;
|
|
String get freePlan;
|
|
String get proPlan;
|
|
String get teamPlan;
|
|
String get perMonth;
|
|
String get current;
|
|
String get upgrade;
|
|
String get choose;
|
|
String get mostPopular;
|
|
List<String> get featsFree;
|
|
List<String> get featsPro;
|
|
List<String> get featsTeam;
|
|
|
|
// ── 兑换 & 购买 ──
|
|
String get redeemTitle;
|
|
String get redeemCodeTitle;
|
|
String get redeemPh;
|
|
String get redeemBtn;
|
|
String get redeemOk;
|
|
String get buyTitle;
|
|
String get buySub;
|
|
String get chStore;
|
|
String get chEmail;
|
|
|
|
// ── 联系我们 ──
|
|
String get contactTitle;
|
|
String get contactIntro;
|
|
String get contactEmail;
|
|
String get contactStore;
|
|
String get contactHoursTitle;
|
|
String get contactHours;
|
|
|
|
// ── 登录 / 注册 ──
|
|
String get authTagline;
|
|
String get tabLogin;
|
|
String get tabRegister;
|
|
String get emailLabel;
|
|
String get emailPh;
|
|
String get pwLabel;
|
|
String get pwPh;
|
|
String get setPwPh;
|
|
String get codeLabel;
|
|
String codeSentTo(String email);
|
|
String get sendCode;
|
|
String get resend;
|
|
String get doLogin;
|
|
String get doNext;
|
|
String get doCreate;
|
|
String get forgotPw;
|
|
String get tos;
|
|
|
|
// ── 首次引导 ──
|
|
String get obSkip;
|
|
String get obNext;
|
|
String get obAllow;
|
|
String get obStart;
|
|
String get ob1Title;
|
|
String get ob1Sub;
|
|
String get ob2Title;
|
|
String get ob2Sub;
|
|
String get ob3Title;
|
|
String get ob3Sub;
|
|
}
|