-
-
-
-
-
-
@Model.DefaultPrompt
-
Authentication successful.
-
-
-
-
-
@Model.DefaultPrompt
-
-
-
-
-
-
-
-
-
- Command Mode:
-
-
- Web
- PSCore
- WinPS
- CMD
- Bash
-
-
-
-
- Devices Selected:
-
-
- 0
-
-
-
-
-
- Online Devices:
-
-
- 0
-
-
-
-
- Total Devices:
-
-
- 0
-
-
-
-
-
+
diff --git a/Server/wwwroot/css/site.css b/Server/wwwroot/css/site.css
index c440e02b..837c5294 100644
--- a/Server/wwwroot/css/site.css
+++ b/Server/wwwroot/css/site.css
@@ -66,6 +66,9 @@ h6 {
padding: .5rem;
}
+#tabContentWrapper {
+ overflow: auto;
+}
#gridControlsWrapper {
display: grid;
diff --git a/Server/wwwroot/scripts/DataGrid.ts b/Server/wwwroot/scripts/DataGrid.ts
index 29c7bd75..d1b94e82 100644
--- a/Server/wwwroot/scripts/DataGrid.ts
+++ b/Server/wwwroot/scripts/DataGrid.ts
@@ -6,7 +6,7 @@ import * as BrowserSockets from "./BrowserSockets.js";
import { CreateGUID } from "./Utilities.js";
-export var DataSource: Array
= new Array();
+export const DataSource: Array = new Array();
export function AddOrUpdateDevices(devices: Array) {
devices.forEach(x => {
@@ -103,6 +103,11 @@ export function RefreshGrid() {
xhr.send();
}
export function ToggleSelectAll() {
+ var hiddenRows = DeviceGrid.querySelectorAll(".row-selected.hidden.row-selected");
+ hiddenRows.forEach(x => {
+ x.classList.remove("row-selected");
+ });
+
var currentlySelected = DeviceGrid.querySelectorAll(".row-selected:not(.hidden)");
if (currentlySelected.length > 0) {
currentlySelected.forEach(elem => {
diff --git a/Server/wwwroot/scripts/UI.ts b/Server/wwwroot/scripts/UI.ts
index 451bba28..067b4a3e 100644
--- a/Server/wwwroot/scripts/UI.ts
+++ b/Server/wwwroot/scripts/UI.ts
@@ -1,17 +1,5 @@
-import * as CommandProcessor from "./CommandProcessor.js";
-import { UserSettings} from "./UserSettings.js";
+import { UserSettings} from "./UserSettings.js";
import * as Utilities from "./Utilities.js";
-import { Store } from "./Store.js";
-import { ConsoleCommand } from "./Models/ConsoleCommand.js";
-import { CommandLineParameter } from "./Models/CommandLineParameter.js";
-import { WebCommands } from "./Commands/WebCommands.js";
-import { Parameter } from "./Models/Parameter.js";
-import { PositionCommandCompletionWindow, HighlightCompletionWindowItem } from "./CommandCompletion.js";
-import { PSCoreCommandResult } from "./Models/PSCoreCommandResult.js";
-import { CommandContext } from "./Models/CommandContext.js";
-import * as DataGrid from "./DataGrid.js";
-import { CreateCommandHarness, AddPSCoreResultsHarness, UpdateResultsCount, AddCommandResultsHarness } from "./ResultsParser.js";
-import { GenericCommandResult } from "./Models/GenericCommandResult.js";
import { GetSelectedDevices } from "./DataGrid.js";
@@ -63,7 +51,6 @@ export function AddConsoleHTML(html: string) {
ConsoleFrame.scrollTop = ConsoleFrame.scrollHeight;
}
export function AddTransferHarness(transferID: string, totalDevices:number) {
- GetSelectedDevices()
var transferHarness = document.createElement("div");
transferHarness.id = transferID;
transferHarness.classList.add("command-harness");