refactor: rename project from wedding-photo-sharing to PicPeak
- Update Docker image names and network configurations - Rename package.json project names to picpeak-backend/frontend - Update CI/CD configurations (Drone CI and GitHub Actions) - Update documentation and setup scripts - Update application branding in source code - Change default database name to picpeak - Update PM2 ecosystem config 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,29 @@ export interface DashboardStats {
|
||||
totalDownloads: number;
|
||||
viewsTrend: number;
|
||||
downloadsTrend: number;
|
||||
archivedEvents: number;
|
||||
}
|
||||
|
||||
export interface SystemHealth {
|
||||
overall: 'healthy' | 'warning' | 'error';
|
||||
services: {
|
||||
database: 'healthy' | 'warning' | 'error';
|
||||
email: 'healthy' | 'warning' | 'error';
|
||||
storage: 'healthy' | 'warning' | 'error';
|
||||
memory: 'healthy' | 'warning' | 'error';
|
||||
};
|
||||
details: {
|
||||
emailQueue: {
|
||||
pending: number;
|
||||
failed: number;
|
||||
};
|
||||
memory: {
|
||||
total: number;
|
||||
free: number;
|
||||
used: number;
|
||||
percentage: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export interface Activity {
|
||||
@@ -63,6 +86,12 @@ export const adminService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// System health check
|
||||
async getSystemHealth(): Promise<SystemHealth> {
|
||||
const response = await api.get<SystemHealth>('/api/admin/dashboard/health');
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// Format activity message
|
||||
formatActivityMessage(activity: Activity): string {
|
||||
const messages: Record<string, string> = {
|
||||
|
||||
Reference in New Issue
Block a user