mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-10 17:26:38 +08:00
[优化] UI improve
This commit is contained in:
-5
@@ -1,10 +1,5 @@
|
|||||||
import type { Metadata } from 'next';
|
|
||||||
import { DnsAccountsPage } from '@/features/dns-accounts/components/dns-accounts-page';
|
import { DnsAccountsPage } from '@/features/dns-accounts/components/dns-accounts-page';
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: 'DNS 账号 - OpenFlare',
|
|
||||||
};
|
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return <DnsAccountsPage />;
|
return <DnsAccountsPage />;
|
||||||
}
|
}
|
||||||
@@ -68,10 +68,10 @@ export function DnsAccountsPage() {
|
|||||||
action={
|
action={
|
||||||
<div className="flex flex-wrap gap-3">
|
<div className="flex flex-wrap gap-3">
|
||||||
<Link
|
<Link
|
||||||
href="/website"
|
href="/website/certificate"
|
||||||
className="inline-flex min-h-[46px] items-center justify-center rounded-2xl border border-[var(--border-default)] bg-[var(--control-background)] px-4 py-3 text-sm font-medium text-[var(--foreground-primary)] transition hover:bg-[var(--control-background-hover)]"
|
className="inline-flex min-h-[46px] items-center justify-center rounded-2xl border border-[var(--border-default)] bg-[var(--control-background)] px-4 py-3 text-sm font-medium text-[var(--foreground-primary)] transition hover:bg-[var(--control-background-hover)]"
|
||||||
>
|
>
|
||||||
返回网站
|
返回
|
||||||
</Link>
|
</Link>
|
||||||
<PrimaryButton type="button" onClick={() => setIsCreateOpen(true)}>
|
<PrimaryButton type="button" onClick={() => setIsCreateOpen(true)}>
|
||||||
添加账号
|
添加账号
|
||||||
|
|||||||
@@ -718,14 +718,6 @@ type PowListValues = {
|
|||||||
user_agents: string;
|
user_agents: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const defaultPowList: PowListValues = {
|
|
||||||
ips: '',
|
|
||||||
ip_cidrs: '',
|
|
||||||
paths: '',
|
|
||||||
path_regexes: '',
|
|
||||||
user_agents: '',
|
|
||||||
};
|
|
||||||
|
|
||||||
const powSchema = z
|
const powSchema = z
|
||||||
.object({
|
.object({
|
||||||
pow_enabled: z.boolean(),
|
pow_enabled: z.boolean(),
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ export function TlsCertificatesPage() {
|
|||||||
刷新证书
|
刷新证书
|
||||||
</SecondaryButton>
|
</SecondaryButton>
|
||||||
<Link
|
<Link
|
||||||
href="/dns-account"
|
href="/website/dns-account"
|
||||||
className="inline-flex min-h-[46px] items-center justify-center rounded-2xl border border-[var(--border-default)] bg-[var(--control-background)] px-4 py-3 text-sm font-medium text-[var(--foreground-primary)] transition hover:bg-[var(--control-background-hover)]"
|
className="inline-flex min-h-[46px] items-center justify-center rounded-2xl border border-[var(--border-default)] bg-[var(--control-background)] px-4 py-3 text-sm font-medium text-[var(--foreground-primary)] transition hover:bg-[var(--control-background-hover)]"
|
||||||
>
|
>
|
||||||
DNS 账号
|
DNS 账号
|
||||||
|
|||||||
@@ -42,12 +42,6 @@ export const dashboardNavigation: NavigationItem[] = [
|
|||||||
label: '性能',
|
label: '性能',
|
||||||
icon: 'performance',
|
icon: 'performance',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
href: '/user',
|
|
||||||
label: '用户',
|
|
||||||
icon: 'user',
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
href: '/setting',
|
href: '/setting',
|
||||||
label: '设置',
|
label: '设置',
|
||||||
|
|||||||
Reference in New Issue
Block a user