mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-04 23:16:37 +08:00
feat: add managed domains and TLS certificates management features
- Implemented ApplyLogItem interface for logging purposes. - Created API functions for managing domains including CRUD operations. - Developed ManagedDomainsPage component for domain management UI with form handling and state management. - Defined ManagedDomainItem and related types for domain data structure. - Added API functions for managing TLS certificates including creation, deletion, and file import. - Built TlsCertificatesPage component for certificate management with manual and file import options. - Introduced types for TLS certificate items and mutation payloads.
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import { ModulePageSkeleton } from '@/features/shared/components/module-page-skeleton';
|
||||
|
||||
export default function ApplyLogsPage() {
|
||||
return (
|
||||
<ModulePageSkeleton
|
||||
title='应用记录'
|
||||
description='阶段 3 将在此接入过滤器、结果状态可视化与分页详情。'
|
||||
/>
|
||||
);
|
||||
}
|
||||
import { ApplyLogsPage as ApplyLogsFeaturePage } from '@/features/apply-logs/components/apply-logs-page';
|
||||
|
||||
export default function ApplyLogsPage() {
|
||||
return <ApplyLogsFeaturePage />;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { ModulePageSkeleton } from '@/features/shared/components/module-page-skeleton';
|
||||
|
||||
export default function ManagedDomainsPage() {
|
||||
return (
|
||||
<ModulePageSkeleton
|
||||
title='域名管理'
|
||||
description='阶段 3 将在此接入域名列表、证书绑定状态与启用切换。'
|
||||
/>
|
||||
);
|
||||
}
|
||||
import { ManagedDomainsPage as ManagedDomainsFeaturePage } from '@/features/managed-domains/components/managed-domains-page';
|
||||
|
||||
export default function ManagedDomainsPage() {
|
||||
return <ManagedDomainsFeaturePage />;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { ModulePageSkeleton } from '@/features/shared/components/module-page-skeleton';
|
||||
|
||||
export default function TlsCertificatesPage() {
|
||||
return (
|
||||
<ModulePageSkeleton
|
||||
title='TLS 证书'
|
||||
description='阶段 3 将在此接入证书上传、导入与有效期展示。'
|
||||
/>
|
||||
);
|
||||
}
|
||||
import { TlsCertificatesPage as TlsCertificatesFeaturePage } from '@/features/tls-certificates/components/tls-certificates-page';
|
||||
|
||||
export default function TlsCertificatesPage() {
|
||||
return <TlsCertificatesFeaturePage />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { LegacyRouteRedirect } from '@/features/shared/components/legacy-route-redirect';
|
||||
|
||||
export default function LegacyApplyLogRoute() {
|
||||
return <LegacyRouteRedirect href='/apply-logs' />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { LegacyRouteRedirect } from '@/features/shared/components/legacy-route-redirect';
|
||||
|
||||
export default function LegacyManagedDomainRoute() {
|
||||
return <LegacyRouteRedirect href='/managed-domains' />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { LegacyRouteRedirect } from '@/features/shared/components/legacy-route-redirect';
|
||||
|
||||
export default function LegacyTlsCertificateRoute() {
|
||||
return <LegacyRouteRedirect href='/tls-certificates' />;
|
||||
}
|
||||
Reference in New Issue
Block a user