This commit is contained in:
Namhyeon Go 2020-11-06 17:25:17 +09:00
parent b9dd615ec8
commit 253cc80cd3
3 changed files with 28 additions and 9 deletions

View File

@ -41,9 +41,19 @@ var showLocalApplications = function() {
});
}
// Chrome (or General applications)
// todo
// Chrome (demo)
localApplications.push({
name: "Program",
uniqueId: "chrome-10001.exe"
});
localApplications.push({
name: "Program",
uniqueId: "chrome-10002.exe"
});
localApplications.push({
name: "Program",
uniqueId: "chrome-10003.exe"
});
var template = $("#listview_applications .template");
for (var i = 0; i < servers.length; i++) {

View File

@ -33,12 +33,6 @@
<div class="col">
<div class="col width-fit mobile-width-fit"><span class="icon icon-bookmark color-blue"></span></div>
<div class="col width-fill mobile-width-fill">
<span class="float-right">
<span class="ping text">
N/A
</span>
<span class="icon icon-bolt color-yellow"></span>
</span>
<div class="col width-fill mobile-width-fill">
<a class="title fatty" href="#">Repo 1</a>
</div>

View File

@ -50,6 +50,21 @@ exports.getCountByProcessName = function(processName) {
return num;
};
exports.getAvailableProcesses = function() {
var PIDs = [];
var cmd = "tasklist | findstr .exe";
var result = SHELL.exec(cmd);
var lines = result.split(/\r?\n/);
for(var i = 0; i < lines.length; i++) {
var row = lines[i].split(/\s+/);
PIDs.push({
PID: row[1],
name: row[0]
});
}
return PIDs;
};
exports.getCountOfSessions = function() {
return exports.getCountByProcessName("ss-local.exe");
};