mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 00:26:37 +08:00
[优化] 界面优化
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1064,23 +1064,6 @@ export function SettingsPage() {
|
|||||||
/>
|
/>
|
||||||
</ResourceField>
|
</ResourceField>
|
||||||
</AppCard>
|
</AppCard>
|
||||||
<AppCard
|
|
||||||
title="性能页入口"
|
|
||||||
description="OpenResty 连接、缓冲、压缩、缓存以及主配置模板编辑已迁移到侧边栏“性能”页面。"
|
|
||||||
action={
|
|
||||||
<PrimaryButton
|
|
||||||
type="button"
|
|
||||||
onClick={() => window.location.assign('/performance')}
|
|
||||||
>
|
|
||||||
打开性能页
|
|
||||||
</PrimaryButton>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<p className="text-sm leading-6 text-[var(--foreground-secondary)]">
|
|
||||||
设置页保留 Agent、系统、限流和品牌配置;OpenResty
|
|
||||||
相关项已拆分为独立工作台,支持“设置 / 编辑”双 Tab 操作。
|
|
||||||
</p>
|
|
||||||
</AppCard>
|
|
||||||
<AppCard
|
<AppCard
|
||||||
title="Discovery Token 与部署命令"
|
title="Discovery Token 与部署命令"
|
||||||
description="适用于新节点首次接入。可直接复制一键安装命令。"
|
description="适用于新节点首次接入。可直接复制一键安装命令。"
|
||||||
@@ -1527,23 +1510,6 @@ export function SettingsPage() {
|
|||||||
</div>
|
</div>
|
||||||
</AppCard>
|
</AppCard>
|
||||||
</div>
|
</div>
|
||||||
<AppCard
|
|
||||||
title="性能页说明"
|
|
||||||
description="OpenResty 反代缓冲、压缩、缓存和主配置模板编辑已迁移到独立“性能”页面。"
|
|
||||||
action={
|
|
||||||
<PrimaryButton
|
|
||||||
type="button"
|
|
||||||
onClick={() => window.location.assign('/performance')}
|
|
||||||
>
|
|
||||||
前往性能页
|
|
||||||
</PrimaryButton>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<p className="text-sm leading-6 text-[var(--foreground-secondary)]">
|
|
||||||
这样可以把 Agent 运行参数、系统开关与 OpenResty
|
|
||||||
专项配置拆开,减少设置页的混杂信息量。
|
|
||||||
</p>
|
|
||||||
</AppCard>
|
|
||||||
<AppCard
|
<AppCard
|
||||||
title="请求限流设置"
|
title="请求限流设置"
|
||||||
description="按来源 IP 生效,保存后立即影响 Web、API、上传下载及登录注册等敏感接口。时间单位均为秒。"
|
description="按来源 IP 生效,保存后立即影响 Web、API、上传下载及登录注册等敏感接口。时间单位均为秒。"
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ export function DangerButton({
|
|||||||
|
|
||||||
interface ToggleFieldProps {
|
interface ToggleFieldProps {
|
||||||
label: string;
|
label: string;
|
||||||
description: string;
|
description?: string;
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
tooltip?: string;
|
tooltip?: string;
|
||||||
@@ -185,9 +185,11 @@ export function ToggleField({
|
|||||||
<span>{label}</span>
|
<span>{label}</span>
|
||||||
{tooltip ? <FieldTooltip content={tooltip} /> : null}
|
{tooltip ? <FieldTooltip content={tooltip} /> : null}
|
||||||
</span>
|
</span>
|
||||||
<span className="block text-xs leading-5 text-[var(--foreground-secondary)]">
|
{description ? (
|
||||||
{description}
|
<span className="block text-xs leading-5 text-[var(--foreground-secondary)]">
|
||||||
</span>
|
{description}
|
||||||
|
</span>
|
||||||
|
) : null}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user