mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-04 15:06: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:
@@ -0,0 +1,9 @@
|
||||
import { apiRequest } from '@/lib/api/client';
|
||||
|
||||
import type { ApplyLogItem } from '@/features/apply-logs/types';
|
||||
|
||||
export function getApplyLogs(nodeId?: string) {
|
||||
const normalizedNodeId = nodeId?.trim();
|
||||
const query = normalizedNodeId ? `?node_id=${encodeURIComponent(normalizedNodeId)}` : '';
|
||||
return apiRequest<ApplyLogItem[]>(`/apply-logs/${query}`);
|
||||
}
|
||||
Reference in New Issue
Block a user