From 4660f96d718c7be0c76ad9d1457f50c842f8d744 Mon Sep 17 00:00:00 2001 From: Vincent BENOIT Date: Sun, 27 Nov 2022 17:42:14 +0100 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20de=20la=20page=20infos=20po?= =?UTF-8?q?ur=20l'affichage=20des=20informations=20syst=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/workspace/infos/infos.component.html | 86 ++++++++++++------- src/app/models/info.model.ts | 10 +++ 2 files changed, 67 insertions(+), 29 deletions(-) diff --git a/src/app/components/home/workspace/infos/infos.component.html b/src/app/components/home/workspace/infos/infos.component.html index a1b9624..0871941 100644 --- a/src/app/components/home/workspace/infos/infos.component.html +++ b/src/app/components/home/workspace/infos/infos.component.html @@ -6,32 +6,6 @@
- - - - Module GSM - - - - -
- Fabricant: - {{infos.manufacturer.identification}} -
-
- Modèle: - {{infos.manufacturer.model}} -
-
- Révision matérielle: - {{infos.manufacturer.hardware_rev}} -
-
- Numéro de série: - {{infos.manufacturer.serial_number}} -
-
-
@@ -41,17 +15,71 @@
- Architecture: + Architecture: {{infos.system.arch}}
- Machine: + Machine: {{infos.system.machine}}
- OS: + OS: {{infos.system.os}} {{infos.system.version}}
+
+ Usage CPU: + {{infos.system.cpu_usage}}% +
+
+ Mémoire totale: + {{infos.system.total_mem}} Mo +
+
+ Mémoire disponible: + {{infos.system.avail_mem}} Mo +
+
+ Mémoire utilisée: + {{infos.system.used_mem}} Mo - {{infos.system.percent_used_mem}}% +
+
+ Disque total: + {{infos.system.total_disk}} Mo +
+
+ Disque libre: + {{infos.system.free_disk}} Mo +
+
+ Disque utilisé: + {{infos.system.used_disk}} Mo - {{infos.system.percent_used_disk}}% +
+
+
+ + + + Module GSM + + + + +
+ Fabricant: + {{infos.manufacturer.identification}} +
+
+ Modèle: + {{infos.manufacturer.model}} +
+
+ Révision matérielle: + {{infos.manufacturer.hardware_rev}} +
+
+ Numéro de série: + {{infos.manufacturer.serial_number}} +

Contrôle

diff --git a/src/app/models/info.model.ts b/src/app/models/info.model.ts index fe949d0..c2fa5ab 100644 --- a/src/app/models/info.model.ts +++ b/src/app/models/info.model.ts @@ -3,6 +3,16 @@ export interface System { machine:string; os:string; version:string; + total_cpu:string; + cpu_usage:string; + total_mem:string; + avail_mem:string; + used_mem:string; + percent_used_mem:string; + total_disk:string; + free_disk:string; + used_disk:string; + percent_used_disk:string; } export interface Manufacturer {