mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +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';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'DNS 账号 - OpenFlare',
|
||||
};
|
||||
|
||||
export default function Page() {
|
||||
return <DnsAccountsPage />;
|
||||
}
|
||||
@@ -68,10 +68,10 @@ export function DnsAccountsPage() {
|
||||
action={
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<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)]"
|
||||
>
|
||||
返回网站
|
||||
返回
|
||||
</Link>
|
||||
<PrimaryButton type="button" onClick={() => setIsCreateOpen(true)}>
|
||||
添加账号
|
||||
|
||||
@@ -718,14 +718,6 @@ type PowListValues = {
|
||||
user_agents: string;
|
||||
};
|
||||
|
||||
const defaultPowList: PowListValues = {
|
||||
ips: '',
|
||||
ip_cidrs: '',
|
||||
paths: '',
|
||||
path_regexes: '',
|
||||
user_agents: '',
|
||||
};
|
||||
|
||||
const powSchema = z
|
||||
.object({
|
||||
pow_enabled: z.boolean(),
|
||||
|
||||
@@ -137,7 +137,7 @@ export function TlsCertificatesPage() {
|
||||
刷新证书
|
||||
</SecondaryButton>
|
||||
<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)]"
|
||||
>
|
||||
DNS 账号
|
||||
|
||||
@@ -42,12 +42,6 @@ export const dashboardNavigation: NavigationItem[] = [
|
||||
label: '性能',
|
||||
icon: 'performance',
|
||||
},
|
||||
{
|
||||
href: '/user',
|
||||
label: '用户',
|
||||
icon: 'user',
|
||||
},
|
||||
|
||||
{
|
||||
href: '/setting',
|
||||
label: '设置',
|
||||
|
||||
Reference in New Issue
Block a user