Ready to implement Virtual Machines management
This commit is contained in:
		@@ -4,6 +4,7 @@ import { AuthRouteWidget } from "./routes/AuthRouteWidget";
 | 
				
			|||||||
import { AsyncWidget } from "./widgets/AsyncWidget";
 | 
					import { AsyncWidget } from "./widgets/AsyncWidget";
 | 
				
			||||||
import { MainMenu } from "./widgets/MainMenu";
 | 
					import { MainMenu } from "./widgets/MainMenu";
 | 
				
			||||||
import { SystemInfoWidget } from "./widgets/SystemInfoWidget";
 | 
					import { SystemInfoWidget } from "./widgets/SystemInfoWidget";
 | 
				
			||||||
 | 
					import { VirtualMachinesWidget } from "./widgets/VirtualMachinesWidget";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const useStyles = makeStyles({
 | 
					const useStyles = makeStyles({
 | 
				
			||||||
  title: typographyStyles.title2,
 | 
					  title: typographyStyles.title2,
 | 
				
			||||||
@@ -39,6 +40,7 @@ function AppInner(): React.ReactElement {
 | 
				
			|||||||
        <span className={styles.title}>VirtWebRemote</span>
 | 
					        <span className={styles.title}>VirtWebRemote</span>
 | 
				
			||||||
        <MainMenu />
 | 
					        <MainMenu />
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					      <VirtualMachinesWidget />
 | 
				
			||||||
      <SystemInfoWidget />
 | 
					      <SystemInfoWidget />
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,7 +58,7 @@ function SystemInfoWidgetInner(): React.ReactElement {
 | 
				
			|||||||
        console.error(e);
 | 
					        console.error(e);
 | 
				
			||||||
        toast("Error", "Failed to refresh system status!", "error");
 | 
					        toast("Error", "Failed to refresh system status!", "error");
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }, 1500);
 | 
					    }, 5000);
 | 
				
			||||||
    return () => clearInterval(interval);
 | 
					    return () => clearInterval(interval);
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								remote_frontend/src/widgets/VirtualMachinesWidget.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								remote_frontend/src/widgets/VirtualMachinesWidget.tsx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					import { SectionContainer } from "./SectionContainer";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export function VirtualMachinesWidget(): React.ReactElement {
 | 
				
			||||||
 | 
					  return <SectionContainer title="Virtual machines">TODO</SectionContainer>;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user