mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-01 06:36:38 +08:00
5d6898b633
- 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.
10 lines
360 B
TypeScript
10 lines
360 B
TypeScript
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}`);
|
|
}
|