mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 14:16:43 +00:00
feat(web): update shared routes and home page for dashboard
This commit is contained in:
@@ -154,7 +154,10 @@ function checkSymlinkStatus(): { valid: boolean; message: string } {
|
||||
if (validLinks === linkTypes.length) {
|
||||
return { valid: true, message: 'Symlinks active' };
|
||||
} else if (validLinks > 0) {
|
||||
return { valid: false, message: `Symlinks partially configured (${validLinks}/${linkTypes.length})` };
|
||||
return {
|
||||
valid: false,
|
||||
message: `Symlinks partially configured (${validLinks}/${linkTypes.length})`,
|
||||
};
|
||||
}
|
||||
|
||||
return { valid: false, message: 'Symlinks not configured' };
|
||||
|
||||
@@ -117,7 +117,9 @@ export function HomePage() {
|
||||
value={overview?.health ? `${overview.health.passed}/${overview.health.total}` : '-'}
|
||||
icon={Activity}
|
||||
color={
|
||||
overview?.health ? HEALTH_COLORS[overview.health.status as keyof typeof HEALTH_COLORS] : undefined
|
||||
overview?.health
|
||||
? HEALTH_COLORS[overview.health.status as keyof typeof HEALTH_COLORS]
|
||||
: undefined
|
||||
}
|
||||
onClick={() => navigate('/health')}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user