feat: add Card and Progress components, utility functions, and improve styles
- Introduced Card component with CardHeader, CardTitle, and CardContent subcomponents for better UI structure. - Added Progress component to visually represent progress with customizable thresholds. - Created utility function `cn` for conditional class names using clsx and tailwind-merge. - Updated styles to integrate Tailwind CSS and improved base styles for better consistency. - Configured Tailwind CSS for dark mode and extended theme with custom fonts and animations. - Added TypeScript configuration for better type safety and module resolution. - Enhanced Vite configuration with path aliasing for cleaner imports. - Updated Wails backend definitions to include new process detail and GPU process info structures.
This commit is contained in:
4
frontend/wailsjs/go/main/App.d.ts
vendored
4
frontend/wailsjs/go/main/App.d.ts
vendored
@@ -5,6 +5,10 @@ import {context} from '../models';
|
||||
|
||||
export function GetMetrics():Promise<backend.Metrics>;
|
||||
|
||||
export function GetProcessDetail(arg1:number):Promise<backend.ProcessDetail>;
|
||||
|
||||
export function Greet(arg1:string):Promise<string>;
|
||||
|
||||
export function InitBackend(arg1:context.Context):Promise<void>;
|
||||
|
||||
export function KillProcess(arg1:number,arg2:boolean):Promise<void>;
|
||||
|
||||
@@ -6,6 +6,10 @@ export function GetMetrics() {
|
||||
return window['go']['main']['App']['GetMetrics']();
|
||||
}
|
||||
|
||||
export function GetProcessDetail(arg1) {
|
||||
return window['go']['main']['App']['GetProcessDetail'](arg1);
|
||||
}
|
||||
|
||||
export function Greet(arg1) {
|
||||
return window['go']['main']['App']['Greet'](arg1);
|
||||
}
|
||||
@@ -13,3 +17,7 @@ export function Greet(arg1) {
|
||||
export function InitBackend(arg1) {
|
||||
return window['go']['main']['App']['InitBackend'](arg1);
|
||||
}
|
||||
|
||||
export function KillProcess(arg1, arg2) {
|
||||
return window['go']['main']['App']['KillProcess'](arg1, arg2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user