chore: user apikeys

This commit is contained in:
jialin
2024-06-23 15:15:12 +08:00
parent a03a95a3bc
commit ff1cf01edf
24 changed files with 481 additions and 180 deletions
+7
View File
@@ -0,0 +1,7 @@
export const expirationOptions = [
{ label: '7 days', type: 'day', value: 7 },
{ label: '1 month', type: 'month', value: 1 },
{ label: '6 months', type: 'month', value: 6 },
// { label: '1 year', type: 'year', value: 1 },
{ label: 'never', type: 'never', value: -1 }
];
+15
View File
@@ -0,0 +1,15 @@
export interface ListItem {
name: string;
description: string;
id: number;
value: string;
created_at: string;
updated_at: string;
expires_at: string;
}
export interface FormData {
name: string;
description: string;
expires_in: number | null;
}