hiento09 e1e6fddcdf
Move plugins folder from electron to root folder (#366)
* Move plugins folder from electron to root folder

* Add CICD for plugins

* Fix error electron import plugin after change plugin name

* Add remove app cache on CI test pipeline

---------

Co-authored-by: Hien To <>
2023-10-16 19:18:00 +07:00

26 lines
519 B
JavaScript

const si = require("systeminformation");
const getResourcesInfo = async () =>
new Promise(async (resolve) => {
const cpu = await si.cpu();
const mem = await si.mem();
const gpu = await si.graphics();
const response = {
cpu,
mem,
gpu,
};
resolve(response);
});
const getCurrentLoad = async () =>
new Promise(async (resolve) => {
const currentLoad = await si.currentLoad();
resolve(currentLoad);
});
module.exports = {
getResourcesInfo,
getCurrentLoad,
};