mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-03 06:18:55 +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) {
|
if (validLinks === linkTypes.length) {
|
||||||
return { valid: true, message: 'Symlinks active' };
|
return { valid: true, message: 'Symlinks active' };
|
||||||
} else if (validLinks > 0) {
|
} 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' };
|
return { valid: false, message: 'Symlinks not configured' };
|
||||||
|
|||||||
@@ -117,7 +117,9 @@ export function HomePage() {
|
|||||||
value={overview?.health ? `${overview.health.passed}/${overview.health.total}` : '-'}
|
value={overview?.health ? `${overview.health.passed}/${overview.health.total}` : '-'}
|
||||||
icon={Activity}
|
icon={Activity}
|
||||||
color={
|
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')}
|
onClick={() => navigate('/health')}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user