feat: 限速状态可视化 - 订阅详情 Sheet 顶部展示实时限速状态
- typings.d.ts 新增 UserSubscribeDetail.effective_speed/is_throttled/throttle_rule 字段 - SubscriptionDetail Sheet 打开时拉取订阅详情,顶部展示 SpeedLimitCard - 被降速时显示警告样式 + 实际速率 + 划掉原始速率 + 触发规则说明 Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -27,7 +27,7 @@ const FormSchema = z.object({
|
||||
enable_balance_notify: z.boolean(),
|
||||
enable_login_notify: z.boolean(),
|
||||
enable_subscribe_notify: z.boolean(),
|
||||
enable_trade_notify: z.boolean(),
|
||||
// enable_trade_notify: z.boolean(),
|
||||
});
|
||||
|
||||
export default function NotifySettings() {
|
||||
@@ -39,7 +39,7 @@ export default function NotifySettings() {
|
||||
enable_balance_notify: user?.enable_balance_notify ?? false,
|
||||
enable_login_notify: user?.enable_login_notify ?? false,
|
||||
enable_subscribe_notify: user?.enable_subscribe_notify ?? false,
|
||||
enable_trade_notify: user?.enable_trade_notify ?? false,
|
||||
// enable_trade_notify: user?.enable_trade_notify ?? false,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -80,10 +80,10 @@ export default function NotifySettings() {
|
||||
name: "enable_subscribe_notify",
|
||||
label: t("notify.subscribe", "Subscribe"),
|
||||
},
|
||||
{
|
||||
name: "enable_trade_notify",
|
||||
label: t("notify.finance", "Finance"),
|
||||
},
|
||||
// {
|
||||
// name: "enable_trade_notify",
|
||||
// label: t("notify.finance", "Finance"),
|
||||
// },
|
||||
].map(({ name, label }) => (
|
||||
<FormField
|
||||
control={form.control}
|
||||
|
||||
Reference in New Issue
Block a user