- Integrated system info fetching in `SettingsPage` for improved user insights. - Enhanced `SettingsIndexPageClient` with manual backup creation and Jira connection testing features. - Added loading states and auto-dismiss messages for user feedback during actions. - Updated UI to display system info and backup statistics dynamically.
17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
'use server';
|
|
|
|
import { SystemInfoService } from '@/services/system-info';
|
|
|
|
export async function getSystemInfo() {
|
|
try {
|
|
const systemInfo = await SystemInfoService.getSystemInfo();
|
|
return { success: true, data: systemInfo };
|
|
} catch (error) {
|
|
console.error('Error getting system info:', error);
|
|
return {
|
|
success: false,
|
|
error: error instanceof Error ? error.message : 'Failed to get system info'
|
|
};
|
|
}
|
|
}
|