ui(admin): node changes
This commit is contained in:
parent
7b38f05019
commit
8a24c1a142
11 changed files with 424 additions and 333 deletions
19
resources/scripts/api/admin/nodes/getNodeInformation.ts
Normal file
19
resources/scripts/api/admin/nodes/getNodeInformation.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export interface NodeInformation {
|
||||
version: string;
|
||||
system: {
|
||||
type: string;
|
||||
arch: string;
|
||||
release: string;
|
||||
cpus: number;
|
||||
};
|
||||
}
|
||||
|
||||
export default (id: number): Promise<NodeInformation> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.get(`/api/application/nodes/${id}/information`)
|
||||
.then(({ data }) => resolve(data))
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue