315c343ed5
ci-pangolin / Lint — shellcheck (push) Successful in 7s
ci-pangolin / OpenAPI Sync Check (push) Successful in 17s
ci-pangolin / Redline Scan — 脱敏 (UI 文案) (push) Successful in 6s
ci-pangolin / Flutter — analyze + test (push) Failing after 14s
ci-pangolin / Portable SQL — 可移植性 (mysql/sqlite) (push) Successful in 5s
ci-pangolin / Codegen Drift — token 生成物未漂移 (push) Successful in 6s
ci-pangolin / Go — build + test (push) Successful in 11s
ci-pangolin / E2E Smoke — L4 进程级端到端 (push) Successful in 14s
ci-pangolin / Go — integration (mysql/redis testcontainers) (push) Failing after 4m3s
ci-pangolin / Golden — 视觉回归 (components + auth) (push) Successful in 14s
① 默认名:DeviceIdentity 改「平台简写(Win/Mac/Linux/iOS/Andr)·主机名」,主机名截
到 8、总长≈12(替代裸主机名,更短)。
② 重命名:新端点 POST /v1/me/devices/{uuid}/rename(Service.RenameDevice 校验归属+
截 64);store.UpdateName;客户端 account_api.renameDevice + provider.rename +
「我的设备」⋯ 菜单加「重命名」+ 输入弹窗;l10n(zh/en)。
③ 版本 1.0.13。
测试:server RenameDevice(归属/空名/404)+ 客户端 rename widget;全量 go/flutter 绿。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
77 lines
3.5 KiB
Dart
77 lines
3.5 KiB
Dart
// pangolin_icons.dart — Lucide 图标映射表
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:lucide_icons/lucide_icons.dart';
|
|
|
|
class PangolinIcons {
|
|
PangolinIcons._();
|
|
|
|
// ── 连接 / 状态 ──
|
|
static const power = LucideIcons.power;
|
|
static const shieldCheck = LucideIcons.shieldCheck;
|
|
static const shield = LucideIcons.shield;
|
|
static const loader = LucideIcons.loader;
|
|
static const zap = LucideIcons.zap;
|
|
static const globe = LucideIcons.globe;
|
|
static const clock = LucideIcons.clock;
|
|
static const playCircle = LucideIcons.playCircle;
|
|
static const wifi = LucideIcons.wifi;
|
|
|
|
// ── 导航 / 操作 ──
|
|
static const settings = LucideIcons.settings;
|
|
static const eye = LucideIcons.eye;
|
|
static const eyeOff = LucideIcons.eyeOff;
|
|
static const user = LucideIcons.user;
|
|
static const search = LucideIcons.search;
|
|
static const check = LucideIcons.check;
|
|
static const checkCircle = LucideIcons.checkCircle;
|
|
static const x = LucideIcons.x;
|
|
static const chevronRight = LucideIcons.chevronRight;
|
|
static const chevronDown = LucideIcons.chevronDown;
|
|
static const arrowLeft = LucideIcons.arrowLeft;
|
|
static const arrowUp = LucideIcons.arrowUp;
|
|
static const arrowDown = LucideIcons.arrowDown;
|
|
static const refreshCw = LucideIcons.refreshCw;
|
|
static const compass = LucideIcons.compass;
|
|
static const barChart = LucideIcons.barChart;
|
|
static const mapPin = LucideIcons.mapPin;
|
|
|
|
// ── 主题 ──
|
|
static const moon = LucideIcons.moon;
|
|
static const sun = LucideIcons.sun;
|
|
|
|
// ── 账户 / 套餐 / 兑换 ──
|
|
static const crown = LucideIcons.crown;
|
|
static const ticket = LucideIcons.ticket;
|
|
static const creditCard = LucideIcons.creditCard;
|
|
static const shoppingBag = LucideIcons.shoppingBag;
|
|
static const mail = LucideIcons.mail;
|
|
static const lock = LucideIcons.lock;
|
|
static const logOut = LucideIcons.logOut;
|
|
static const send = LucideIcons.send;
|
|
static const messageCircle= LucideIcons.messageCircle;
|
|
static const externalLink = LucideIcons.externalLink;
|
|
|
|
// ── 设备 ──
|
|
static const laptop = LucideIcons.laptop;
|
|
static const smartphone = LucideIcons.smartphone;
|
|
static const monitorSmartphone = LucideIcons.smartphone; // 回退
|
|
static const moreVertical = LucideIcons.moreVertical;
|
|
static const trash = LucideIcons.trash2;
|
|
static const alertTriangle= LucideIcons.alertTriangle;
|
|
static const edit = LucideIcons.pencil;
|
|
|
|
static IconData? byName(String name) => _byName[name];
|
|
|
|
static const Map<String, IconData> _byName = {
|
|
'power': power, 'shield-check': shieldCheck, 'shield': shield, 'loader-circle': loader,
|
|
'zap': zap, 'globe': globe, 'settings': settings, 'user': user, 'search': search,
|
|
'check': check, 'check-circle': checkCircle, 'x': x, 'chevron-right': chevronRight,
|
|
'chevron-down': chevronDown, 'arrow-left': arrowLeft, 'arrow-up': arrowUp, 'arrow-down': arrowDown,
|
|
'refresh-cw': refreshCw, 'compass': compass, 'chart-no-axes-column': barChart, 'chart': barChart,
|
|
'map-pin': mapPin, 'moon': moon, 'sun': sun, 'crown': crown, 'ticket': ticket,
|
|
'credit-card': creditCard, 'shopping-bag': shoppingBag, 'mail': mail, 'lock': lock,
|
|
'log-out': logOut, 'send': send, 'message-circle': messageCircle, 'external-link': externalLink,
|
|
'laptop': laptop, 'smartphone': smartphone, 'monitor-smartphone': monitorSmartphone,
|
|
};
|
|
}
|