moved most api stuff to web-api and built out a better monitoring solution for web-app
This commit is contained in:
parent
fbff428e90
commit
da1c52a841
45 changed files with 2986 additions and 312 deletions
|
|
@ -10,7 +10,17 @@ export function Layout() {
|
|||
// Determine title from current route
|
||||
const getTitle = () => {
|
||||
const path = location.pathname.replace('/', '');
|
||||
if (!path || path === 'dashboard') {return 'Dashboard';}
|
||||
if (!path || path === 'dashboard') return 'Dashboard';
|
||||
|
||||
// Handle nested routes
|
||||
if (path.includes('/')) {
|
||||
const parts = path.split('/');
|
||||
// For system routes, show the sub-page name
|
||||
if (parts[0] === 'system' && parts[1]) {
|
||||
return parts[1].charAt(0).toUpperCase() + parts[1].slice(1);
|
||||
}
|
||||
}
|
||||
|
||||
return path.charAt(0).toUpperCase() + path.slice(1);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue