Updated the SSL detail dialog in SSLCertificatesTable.tsx to display data based on the ssl DB structure, including fields like collectionId, collectionName, and other properties from the PocketBase API response.

This commit is contained in:
Tola Leng
2025-05-16 22:13:03 +08:00
parent eafc4c33ab
commit c7fd7f4fbe
+32 -12
View File
@@ -1,14 +1,34 @@
export interface SSLCertificate {
id: string;
domain: string;
issuer: string;
expiration_date: string;
status: string;
last_notified: string;
warning_threshold: number;
expiry_threshold: number;
notification_channel: string;
created: string;
updated: string;
}
id: string;
domain: string;
issued_to: string;
issuer_o: string;
status: string;
cert_sans?: string;
cert_alg?: string;
serial_number?: number | string;
valid_from: string;
valid_till: string;
validity_days: number;
days_left: number;
valid_days_to_expire?: number;
warning_threshold: number;
expiry_threshold: number;
notification_channel: string;
last_notified?: string;
created?: string;
updated?: string;
// New fields based on the provided structure
collectionId?: string;
collectionName?: string;
resolved_ip?: string;
issuer_cn?: string;
}
export interface AddSSLCertificateDto {
domain: string;
warning_threshold: number;
expiry_threshold: number;
notification_channel: string;
}