feat: add GetManPage function and integrate parent process name in ProcessDetail

This commit is contained in:
Jonathan Atta
2026-03-11 17:26:51 +01:00
parent 9ba9b80b8b
commit c2aecae867
6 changed files with 227 additions and 35 deletions

View File

@@ -3,6 +3,8 @@
import {backend} from '../models';
import {context} from '../models';
export function GetManPage(arg1:string):Promise<string>;
export function GetMetrics():Promise<backend.Metrics>;
export function GetProcessDetail(arg1:number):Promise<backend.ProcessDetail>;

View File

@@ -2,6 +2,10 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function GetManPage(arg1) {
return window['go']['main']['App']['GetManPage'](arg1);
}
export function GetMetrics() {
return window['go']['main']['App']['GetMetrics']();
}

View File

@@ -96,6 +96,7 @@ export namespace backend {
username: string;
created_at: number;
parent_pid: number;
parent_name: string;
nice: number;
num_threads: number;
num_fds: number;
@@ -126,6 +127,7 @@ export namespace backend {
this.username = source["username"];
this.created_at = source["created_at"];
this.parent_pid = source["parent_pid"];
this.parent_name = source["parent_name"];
this.nice = source["nice"];
this.num_threads = source["num_threads"];
this.num_fds = source["num_fds"];