This commit is contained in:
Jared 2020-09-08 11:18:33 -07:00 committed by Jared Goodwin
parent ba0785371f
commit cc56974fed
139 changed files with 863 additions and 886 deletions

View File

@ -10,9 +10,9 @@ namespace Remotely.Agent.Services
{
public class ConfigService
{
private static object fileLock = new object();
private static readonly object fileLock = new object();
private ConnectionInfo connectionInfo;
private string debugGuid = "f2b0a595-5ea8-471b-975f-12e70e0f3497";
private readonly string debugGuid = "f2b0a595-5ea8-471b-975f-12e70e0f3497";
private Dictionary<string, string> commandLineArgs;
private Dictionary<string, string> CommandLineArgs

View File

@ -16,9 +16,9 @@ namespace Remotely.Server.API
public class DevicesController : ControllerBase
{
public DevicesController(DataService dataService, UserManager<RemotelyUser> userManager)
public DevicesController(DataService dataService)
{
this.DataService = dataService;
DataService = dataService;
}
private DataService DataService { get; set; }

View File

@ -72,7 +72,7 @@
</div>
<script src="~/scripts/Main.js" type="module"></script>
<script src="~/scripts/Main/Main.js" type="module"></script>
<script>
window.onload = (ev) => {
Remotely.Init();

View File

@ -29,30 +29,30 @@
<Content Remove="wwwroot\scripts\Chat.ts" />
<Content Remove="wwwroot\scripts\CommandCompletion.ts" />
<Content Remove="wwwroot\scripts\CommandProcessor.ts" />
<Content Remove="wwwroot\scripts\Commands\BashCommands.ts" />
<Content Remove="wwwroot\scripts\Commands\CMDCommands.ts" />
<Content Remove="wwwroot\scripts\Commands\PSCommands.ts" />
<Content Remove="wwwroot\scripts\Commands\WebCommands.ts" />
<Content Remove="wwwroot\scripts\Main\Commands\BashCommands.ts" />
<Content Remove="wwwroot\scripts\Main\Commands\CMDCommands.ts" />
<Content Remove="wwwroot\scripts\Main\Commands\PSCommands.ts" />
<Content Remove="wwwroot\scripts\Main\Commands\WebCommands.ts" />
<Content Remove="wwwroot\scripts\Console.ts" />
<Content Remove="wwwroot\scripts\DataGrid.ts" />
<Content Remove="wwwroot\scripts\Enums\RemoteControlMode.ts" />
<Content Remove="wwwroot\scripts\Shared\Enums\RemoteControlMode.ts" />
<Content Remove="wwwroot\scripts\HubConnection.ts" />
<Content Remove="wwwroot\scripts\InputEventHandlers.ts" />
<Content Remove="wwwroot\scripts\Main.ts" />
<Content Remove="wwwroot\scripts\Models\CaptureFrame.ts" />
<Content Remove="wwwroot\scripts\Models\CommandLineParameter.ts" />
<Content Remove="wwwroot\scripts\Models\CommandResult.ts" />
<Content Remove="wwwroot\scripts\Models\ConsoleCommand.ts" />
<Content Remove="wwwroot\scripts\Models\CursorInfo.ts" />
<Content Remove="wwwroot\scripts\Models\Device.ts" />
<Content Remove="wwwroot\scripts\Models\DynamicDtoType.ts" />
<Content Remove="wwwroot\scripts\Models\GenericCommandResult.ts" />
<Content Remove="wwwroot\scripts\Models\IceServerModel.ts" />
<Content Remove="wwwroot\scripts\Models\Parameter.ts" />
<Content Remove="wwwroot\scripts\Models\Point.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\CaptureFrame.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\CommandLineParameter.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\CommandResult.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\ConsoleCommand.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\CursorInfo.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\Device.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\DynamicDtoType.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\GenericCommandResult.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\IceServerModel.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\Parameter.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\Point.ts" />
<Content Remove="wwwroot\scripts\RemoteControl\InputEventHandlers.ts" />
<Content Remove="wwwroot\scripts\RemoteControl\MessageSender.ts" />
<Content Remove="wwwroot\scripts\Models\UserOptions.ts" />
<Content Remove="wwwroot\scripts\Shared\Models\UserOptions.ts" />
<Content Remove="wwwroot\scripts\Pages\ApiTokens.ts" />
<Content Remove="wwwroot\scripts\Pages\IndexNotLoggedIn.ts" />
<Content Remove="wwwroot\scripts\Pages\OrganizationManagement.ts" />
@ -65,9 +65,9 @@
<Content Remove="wwwroot\scripts\RemoteControl\UI.ts" />
<Content Remove="wwwroot\scripts\ResultsParser.ts" />
<Content Remove="wwwroot\scripts\RTC.ts" />
<Content Remove="wwwroot\scripts\Shared\UI.ts" />
<Content Remove="wwwroot\scripts\SocketsRC.ts" />
<Content Remove="wwwroot\scripts\Sound.ts" />
<Content Remove="wwwroot\scripts\Store.ts" />
<Content Remove="wwwroot\scripts\UI.ts" />
<Content Remove="wwwroot\scripts\UserSettings.ts" />
<Content Remove="wwwroot\scripts\Utilities.ts" />
@ -121,15 +121,15 @@
<None Include="wwwroot\lib\signalr\signalr.js.map" />
<None Include="wwwroot\lib\signalr\signalr.min.js" />
<None Include="wwwroot\lib\signalr\signalr.min.js.map" />
<None Include="wwwroot\scripts\Models\CommandResult.ts">
<None Include="wwwroot\scripts\Shared\Models\CommandResult.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</None>
<None Include="wwwroot\scripts\Models\CursorInfo.ts">
<None Include="wwwroot\scripts\Shared\Models\CursorInfo.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</None>
<None Include="wwwroot\scripts\Models\GenericCommandResult.ts">
<None Include="wwwroot\scripts\Shared\Models\GenericCommandResult.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</None>
@ -145,27 +145,27 @@
<TypeScriptCompile Include="wwwroot\lib\%40types\jquery\legacy.d.ts" />
<TypeScriptCompile Include="wwwroot\lib\%40types\jquery\misc.d.ts" />
<TypeScriptCompile Include="wwwroot\lib\%40types\sizzle\index.d.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Chat.ts" />
<TypeScriptCompile Include="wwwroot\scripts\CommandCompletion.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Commands\BashCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Commands\CMDCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Commands\WebCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Commands\PSCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Console.ts" />
<TypeScriptCompile Include="wwwroot\scripts\DataGrid.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Enums\RemoteControlMode.ts" />
<TypeScriptCompile Include="wwwroot\scripts\InputEventHandlers.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main.ts" />
<TypeScriptCompile Include="wwwroot\scripts\CommandProcessor.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Models\CommandLineParameter.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Models\ConsoleCommand.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Models\IceServerModel.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\Chat.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\CommandCompletion.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\Commands\BashCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\Commands\CMDCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\Commands\WebCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\Commands\PSCommands.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\Console.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\DataGrid.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Enums\RemoteControlMode.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\InputEventHandlers.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\Main.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\CommandProcessor.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Models\CommandLineParameter.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Models\ConsoleCommand.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Models\IceServerModel.ts" />
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\InputEventHandlers.ts" />
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\MessageSender.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Models\Point.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Models\UserOptions.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Models\Device.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Models\Parameter.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Models\Point.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Models\UserOptions.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Models\Device.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Models\Parameter.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Pages\ApiTokens.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Pages\IndexNotLoggedIn.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Pages\OrganizationManagement.ts" />
@ -176,14 +176,14 @@
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\RtcSession.ts" />
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\SessionRecorder.ts" />
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\UI.ts" />
<TypeScriptCompile Include="wwwroot\scripts\ResultsParser.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\ResultsParser.ts" />
<TypeScriptCompile Include="wwwroot\scripts\RemoteControl\ViewerHubConnection.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Sound.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Store.ts" />
<TypeScriptCompile Include="wwwroot\scripts\UI.ts" />
<TypeScriptCompile Include="wwwroot\scripts\UserSettings.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Utilities.ts" />
<TypeScriptCompile Include="wwwroot\scripts\HubConnection.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Sound.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\UI.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\UserSettings.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\UI.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Shared\Utilities.ts" />
<TypeScriptCompile Include="wwwroot\scripts\Main\HubConnection.ts" />
</ItemGroup>

View File

@ -213,11 +213,9 @@ namespace Remotely.Server.Services
byte[] fileContents;
using (var stream = file.OpenReadStream())
{
using (var ms = new MemoryStream())
{
await stream.CopyToAsync(ms);
fileContents = ms.ToArray();
}
using var ms = new MemoryStream();
await stream.CopyToAsync(ms);
fileContents = ms.ToArray();
}
var newEntity = RemotelyContext.Add(new SharedFile()
{
@ -260,8 +258,8 @@ namespace Remotely.Server.Services
return false;
}
deviceGroup.PermissionLinks = deviceGroup.PermissionLinks ?? new List<UserDevicePermission>();
user.PermissionLinks = user.PermissionLinks ?? new List<UserDevicePermission>();
deviceGroup.PermissionLinks ??= new List<UserDevicePermission>();
user.PermissionLinks ??= new List<UserDevicePermission>();
if (deviceGroup.PermissionLinks.Any(x => x.UserID == user.Id))
{

View File

@ -1 +0,0 @@
{"version":3,"file":"Chat.js","sourceRoot":"","sources":["Chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAE,UAAkB;IACjE,IAAI,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC7D,IAAI,CAAC,UAAU,EAAE;QACb,IAAI,UAAU,GAAG;;6CAEoB,UAAU;;;;;;;;SAQ9C,CAAC;QACF,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC3C,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACxC,UAAU,CAAC,KAAK,CAAC,KAAK,GAAG,MA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AAc,CAAC,OAAO,GAAG,QAAQ,CAAmB,CAAC;IAC/E,IAAI,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAmB,CAAC;IAEhF,IAAI,YAAY,EAAE;QACd,YAAY,CAAC,SAAS,IAAI;;4CAEU,UAAU;wBAC9B,OAAO;;SAEtB,CAAC;KACL;SACI;QACD,YAAY,CAAC,SAAS,IAAI;;8DAE4B,UAAU;wBAChD,OAAO;;SAEtB,CAAC;KACL;IAED,YAAY,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,cAAc,CAAC,EAAc;IAClC,IAAI,UAAU,GAAG,EAAE,CAAC,aAA+B,CAAC;IACpD,UAAU,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC/F,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;AACrG,CAAC;AAED,SAAS,oBAAoB,CAAC,EAAc;IACxC,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClE,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IACtE,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAC;AAC7E,CAAC"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"version":3,"file":"Main.js","sour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M,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC"}

View File

@ -1,6 +1,6 @@
import * as HubConnection from "./HubConnection.js";
import { DataSource } from "./DataGrid.js";
import { ShowMessage } from "./UI.js";
import { ShowMessage } from "../Shared/UI.js";
export function CreateChatWindow(deviceID, deviceName) {
var chatWindow = document.getElementById("chat-" + deviceID);
if (!chatWindow) {

View File

@ -0,0 +1 @@
{"version":3,"file":"Chat.js","sourceRoot":"","sources":["Chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAE,UAAkB;IACjE,IAAI,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC7D,IAAI,CAAC,UAAU,EAAE;QACb,IAAI,UAAU,GAAG;;6CAEoB,UAAU;;;;;;;;SAQ9C,CAAC;QACF,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC3C,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACxC,UAAU,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;QAChC,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACjC,UAAU,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;QAClD,UAAU,CAAC,SAAS,GAAG,UAAU,CAAC;QAClC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAEtC,UAAU,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE;YAC5C,QAAQ,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,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D,CAAC;AAED,SAAS,cAAc,CAAC,EAAc;IAClC,IAAI,UAAU,GAAG,EAAE,CAAC,aAA+B,CAAC;IACpD,UAAU,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC/F,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;AACrG,CAAC;AAED,SAAS,oBAAoB,CAAC,EAAc;IACxC,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClE,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IACtE,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAC;AAC7E,CAAC"}

View File

@ -1,6 +1,6 @@
import * as HubConnection from "./HubConnection.js";
import { DataSource } from "./DataGrid.js";
import { ShowMessage } from "./UI.js";
import { ShowMessage } from "../Shared/UI.js";
export function CreateChatWindow(deviceID: string, deviceName: string) {
var chatWindow = document.getElementById("chat-" + deviceID);

View File

@ -1,12 +1,18 @@
import { UserSettings } from "./UserSettings.js";
import { Store } from "./Store.js";
import { WebCommands } from "./Commands/WebCommands.js";
import { WebCommands } from "../Main/Commands/WebCommands.js";
import * as UI from "./UI.js";
import { CMDCommands } from "./Commands/CMDCommands.js";
import { PSCommands } from "./Commands/PSCommands.js";
import { BashCommands } from "./Commands/BashCommands.js";
export const CommandCompletionStore = new class {
constructor() {
this.CompletionPosition = -1;
this.InputHistoryPosition = -1;
this.InputHistoryItems = [];
}
};
export function DisplayCommandCompletions(commands, relevantText) {
Store.CommandCompletionTimeout = window.setTimeout(() => {
CommandCompletionStore.CompletionTimeout = window.setTimeout(() => {
commands.forEach(x => {
var commandCompletionItem = document.createElement("div");
commandCompletionItem.classList.add("command-completion-item");
@ -26,11 +32,11 @@ export function DisplayCommandCompletions(commands, relevantText) {
if (commands.length > 0) {
var currentText = UI.ConsoleTextArea.value.toLowerCase();
if (commands.some(x => x.Name.toLowerCase().startsWith(currentText))) {
Store.CommandCompletionPosition = commands.findIndex(x => x.Name.toLowerCase().startsWith(currentText));
CommandCompletionStore.CompletionPosition = commands.findIndex(x => x.Name.toLowerCase().startsWith(currentText));
}
UI.CommandCompletionDiv.classList.remove("hidden");
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
ShowCommandInfo(commands[Store.CommandCompletionPosition]);
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
ShowCommandInfo(commands[CommandCompletionStore.CompletionPosition]);
PositionCommandCompletionWindow();
}
}, Math.min(commands.length, 1000));
@ -61,8 +67,8 @@ export function DisplayParameterCompletions(command, parameters, commandText) {
});
if (!UI.CommandCompletionDiv.classList.contains("hidden") && remainingParams.length > 0) {
SetCommandCompletionPositionToIncompleteParam(parameters);
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
ShowParameterInfo(remainingParams[Store.CommandCompletionPosition]);
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
ShowParameterInfo(remainingParams[CommandCompletionStore.CompletionPosition]);
PositionCommandCompletionWindow();
}
}
@ -83,7 +89,7 @@ export function DisplayCommandShortcuts(shortcutText) {
UI.CommandCompletionDiv.appendChild(commandCompletionItem);
});
if (!UI.CommandCompletionDiv.classList.contains("hidden") && matchingShortcuts.length > 0) {
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
PositionCommandCompletionWindow();
}
}
@ -116,7 +122,7 @@ export function SetCommandCompletionPositionToIncompleteParam(parameters) {
if (typeof lastParam != 'undefined' && lastParam.Value.length == 0) {
for (var i = 0; i < UI.CommandCompletionDiv.children.length; i++) {
if (UI.CommandCompletionDiv.children[i].innerHTML.startsWith(lastParam.Name)) {
Store.CommandCompletionPosition = i;
CommandCompletionStore.CompletionPosition = i;
break;
}
}

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,22 @@
import { UserSettings } from "./UserSettings.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 { ConsoleCommand } from "../Shared/Models/ConsoleCommand.js";
import { CommandLineParameter } from "../Shared/Models/CommandLineParameter.js";
import { WebCommands } from "../Main/Commands/WebCommands.js";
import { Parameter } from "../Shared/Models/Parameter.js";
import * as UI from "./UI.js"
import { CMDCommands } from "./Commands/CMDCommands.js";
import { PSCommands } from "./Commands/PSCommands.js";
import { BashCommands } from "./Commands/BashCommands.js";
export const CommandCompletionStore = new class {
CompletionPosition = -1;
CompletionTimeout: number;
InputHistoryPosition = -1;
InputHistoryItems: Array<string> = [];
}
export function DisplayCommandCompletions(commands: Array<ConsoleCommand>, relevantText: string) {
Store.CommandCompletionTimeout = window.setTimeout(() => {
CommandCompletionStore.CompletionTimeout = window.setTimeout(() => {
commands.forEach(x => {
var commandCompletionItem = document.createElement("div");
commandCompletionItem.classList.add("command-completion-item");
@ -31,11 +37,11 @@ export function DisplayCommandCompletions(commands: Array<ConsoleCommand>, relev
if (commands.length > 0) {
var currentText = UI.ConsoleTextArea.value.toLowerCase();
if (commands.some(x => x.Name.toLowerCase().startsWith(currentText))) {
Store.CommandCompletionPosition = commands.findIndex(x => x.Name.toLowerCase().startsWith(currentText));
CommandCompletionStore.CompletionPosition = commands.findIndex(x => x.Name.toLowerCase().startsWith(currentText));
}
UI.CommandCompletionDiv.classList.remove("hidden");
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
ShowCommandInfo(commands[Store.CommandCompletionPosition]);
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
ShowCommandInfo(commands[CommandCompletionStore.CompletionPosition]);
PositionCommandCompletionWindow();
}
}, Math.min(commands.length, 1000));
@ -70,8 +76,8 @@ export function DisplayParameterCompletions(command: ConsoleCommand, parameters:
});
if (!UI.CommandCompletionDiv.classList.contains("hidden") && remainingParams.length > 0) {
SetCommandCompletionPositionToIncompleteParam(parameters);
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
ShowParameterInfo(remainingParams[Store.CommandCompletionPosition]);
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
ShowParameterInfo(remainingParams[CommandCompletionStore.CompletionPosition]);
PositionCommandCompletionWindow();
}
}
@ -95,7 +101,7 @@ export function DisplayCommandShortcuts(shortcutText: string) {
UI.CommandCompletionDiv.appendChild(commandCompletionItem);
})
if (!UI.CommandCompletionDiv.classList.contains("hidden") && matchingShortcuts.length > 0) {
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
PositionCommandCompletionWindow();
}
}
@ -131,7 +137,7 @@ export function SetCommandCompletionPositionToIncompleteParam(parameters: Comman
if (typeof lastParam != 'undefined' && lastParam.Value.length == 0) {
for (var i = 0; i < UI.CommandCompletionDiv.children.length; i++) {
if (UI.CommandCompletionDiv.children[i].innerHTML.startsWith(lastParam.Name)) {
Store.CommandCompletionPosition = i;
CommandCompletionStore.CompletionPosition = i;
break;
}
}

View File

@ -1,19 +1,18 @@
import { WebCommands } from "./Commands/WebCommands.js";
import { UserSettings } from "./UserSettings.js";
import { Main } from "./Main.js";
import { CommandLineParameter } from "./Models/CommandLineParameter.js";
import { CommandLineParameter } from "../Shared/Models/CommandLineParameter.js";
import * as UI from "./UI.js";
import { Store } from "./Store.js";
import { DisplayCommandShortcuts, DisplayCommandCompletions, DisplayParameterCompletions, GetCommandCompletions } from "./CommandCompletion.js";
import { DisplayCommandShortcuts, DisplayCommandCompletions, DisplayParameterCompletions, GetCommandCompletions, CommandCompletionStore } from "./CommandCompletion.js";
import { Connection } from "./HubConnection.js";
import { AutoSizeTextArea, AddConsoleOutput } from "./Console.js";
export function EvaluateCurrentCommandText() {
AutoSizeTextArea();
window.clearTimeout(Store.CommandCompletionTimeout);
window.clearTimeout(CommandCompletionStore.CompletionTimeout);
UI.CommandCompletionDiv.classList.add("hidden");
UI.CommandInfoDiv.classList.add("hidden");
UI.CommandCompletionDiv.innerHTML = "";
Store.CommandCompletionPosition = 0;
CommandCompletionStore.CompletionPosition = 0;
if (UI.ConsoleTextArea.value.startsWith("/")) {
DisplayCommandShortcuts(UI.ConsoleTextArea.value.slice(1));
return;
@ -84,8 +83,8 @@ export function GetCommandMode() {
/** Processes the command input. */
export function ProcessCommand() {
var commandText = UI.ConsoleTextArea.value.trim();
Store.InputHistoryItems.push(commandText);
Store.InputHistoryPosition = Store.InputHistoryItems.length;
CommandCompletionStore.InputHistoryItems.push(commandText);
CommandCompletionStore.InputHistoryPosition = CommandCompletionStore.InputHistoryItems.length;
UI.ConsoleTextArea.value = "";
var commandMode = UI.CommandModeSelect.value;
switch (commandMode) {

File diff suppressed because one or more lines are too long

View File

@ -1,21 +1,26 @@
import { WebCommands } from "./Commands/WebCommands.js";
import { UserSettings } from "./UserSettings.js";
import { Main } from "./Main.js";
import { CommandLineParameter } from "./Models/CommandLineParameter.js";
import { CommandLineParameter } from "../Shared/Models/CommandLineParameter.js";
import * as UI from "./UI.js";
import { Store } from "./Store.js";
import { DisplayCommandShortcuts, DisplayCommandCompletions, DisplayParameterCompletions, GetCommandCompletions } from "./CommandCompletion.js";
import {
DisplayCommandShortcuts,
DisplayCommandCompletions,
DisplayParameterCompletions,
GetCommandCompletions,
CommandCompletionStore
} from "./CommandCompletion.js";
import { Connection } from "./HubConnection.js";
import { AutoSizeTextArea, AddConsoleOutput } from "./Console.js";
export function EvaluateCurrentCommandText() {
AutoSizeTextArea();
window.clearTimeout(Store.CommandCompletionTimeout);
window.clearTimeout(CommandCompletionStore.CompletionTimeout);
UI.CommandCompletionDiv.classList.add("hidden");
UI.CommandInfoDiv.classList.add("hidden");
UI.CommandCompletionDiv.innerHTML = "";
Store.CommandCompletionPosition = 0;
CommandCompletionStore.CompletionPosition = 0;
if (UI.ConsoleTextArea.value.startsWith("/")) {
DisplayCommandShortcuts(UI.ConsoleTextArea.value.slice(1));
@ -92,8 +97,8 @@ export function GetCommandMode() {
/** Processes the command input. */
export function ProcessCommand() {
var commandText = UI.ConsoleTextArea.value.trim();
Store.InputHistoryItems.push(commandText);
Store.InputHistoryPosition = Store.InputHistoryItems.length;
CommandCompletionStore.InputHistoryItems.push(commandText);
CommandCompletionStore.InputHistoryPosition = CommandCompletionStore.InputHistoryItems.length;
UI.ConsoleTextArea.value = "";
var commandMode = UI.CommandModeSelect.value;
switch (commandMode) {

View File

@ -1,4 +1,4 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js";
var commands = [
new ConsoleCommand('accept', [], 'Accept or Reject jobs to a destination, such as a printer.', '', '', () => { }),
new ConsoleCommand('access', [], 'Check a user\'s RWX permission for a file.', '', '', () => { }),

View File

@ -1,5 +1,5 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js"
import { Parameter } from "../Models/Parameter.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js";
var commands: Array<ConsoleCommand> = [
new ConsoleCommand(

View File

@ -1,5 +1,5 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js";
import { Parameter } from "../Models/Parameter.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js";
import { Parameter } from "../../Shared/Models/Parameter.js";
var commands = [
new ConsoleCommand(`append`, [
new Parameter(`[<Drive>:]<Path>`, `Specifies a drive and directory to append.`, ``),

View File

@ -1,5 +1,5 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js"
import { Parameter } from "../Models/Parameter.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js"
import { Parameter } from "../../Shared/Models/Parameter.js";
var commands: Array<ConsoleCommand> = [
new ConsoleCommand(

View File

@ -1,5 +1,5 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js";
import { Parameter } from "../Models/Parameter.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js";
import { Parameter } from "../../Shared/Models/Parameter.js";
var commands = [
new ConsoleCommand(`Add-BCDataCacheExtension`, [], `See help file for details.`, ``, "", (parameters, paramDictionary) => {
}),

View File

@ -1,5 +1,5 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js"
import { Parameter } from "../Models/Parameter.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js"
import { Parameter } from "../../Shared/Models/Parameter.js";
var commands: Array<ConsoleCommand> = [
new ConsoleCommand(

View File

@ -1,5 +1,5 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js";
import { Parameter } from "../Models/Parameter.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js";
import { Parameter } from "../../Shared/Models/Parameter.js";
import * as UI from "../UI.js";
import * as HubConnection from "../HubConnection.js";
import { Main } from "../Main.js";

View File

@ -1,8 +1,8 @@
import { ConsoleCommand } from "../Models/ConsoleCommand.js"
import { Parameter } from "../Models/Parameter.js";
import { ConsoleCommand } from "../../Shared/Models/ConsoleCommand.js"
import { Parameter } from "../../Shared/Models/Parameter.js";
import * as UI from "../UI.js";
import * as HubConnection from "../HubConnection.js";
import { CommandLineParameter } from "../Models/CommandLineParameter.js";
import { CommandLineParameter } from "../../Shared/Models/CommandLineParameter.js";
import { Main } from "../Main.js";
import * as DataGrid from "../DataGrid.js";
import { AddConsoleHTML, AddConsoleOutput, AddTransferHarness } from "../Console.js";

View File

@ -4,6 +4,7 @@ import { DeviceGrid } from "./UI.js";
import { AddConsoleOutput } from "./Console.js";
import { CreateChatWindow } from "./Chat.js";
import * as HubConnection from "./HubConnection.js";
import { ShowModal } from "../Shared/UI.js";
export const DataSource = new Array();
export const FilterOptions = new class {
constructor() {
@ -135,7 +136,7 @@ export function RefreshGrid() {
var xhr = new XMLHttpRequest();
xhr.open("get", "/API/Devices");
xhr.onerror = () => {
UI.ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
};
xhr.onload = (e) => {
if (xhr.status == 200) {
@ -148,7 +149,7 @@ export function RefreshGrid() {
}
}
else {
UI.ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
}
};
xhr.send();

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,11 @@
import * as UI from "./UI.js";
import { Device } from "./Models/Device.js";
import { Device } from "../Shared/Models/Device.js";
import { Main } from "./Main.js";
import { DeviceGrid } from "./UI.js";
import { AddConsoleOutput } from "./Console.js";
import { CreateChatWindow } from "./Chat.js";
import * as HubConnection from "./HubConnection.js"
import { ShowModal } from "../Shared/UI.js";
export const DataSource: Array<Device> = new Array<Device>();
@ -150,7 +151,7 @@ export function RefreshGrid() {
var xhr = new XMLHttpRequest();
xhr.open("get", "/API/Devices");
xhr.onerror = () => {
UI.ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
};
xhr.onload = (e) => {
if (xhr.status == 200) {
@ -163,7 +164,7 @@ export function RefreshGrid() {
}
}
else {
UI.ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
ShowModal("Request Failure", "Failed to retrieve device data. Please refresh your connection or contact support.");
}
}
xhr.send();

View File

@ -1,10 +1,9 @@
import * as UI from "./UI.js";
import * as DataGrid from "./DataGrid.js";
import { CreateCommandHarness, AddCommandResultsHarness, AddPSCoreResultsHarness, UpdateResultsCount } from "./ResultsParser.js";
import { Store } from "./Store.js";
import { Main } from "./Main.js";
import { AddConsoleOutput, AddConsoleHTML } from "./Console.js";
import { ReceiveChatText } from "./Chat.js";
import { ShowMessage, ShowModal } from "../Shared/UI.js";
export var Connection;
export var ServiceID;
export var Connected;
@ -24,10 +23,8 @@ export function Connect() {
});
this.Connection.closedCallbacks.push((ev) => {
Connected = false;
if (!Store.IsDisconnectExpected) {
UI.ShowModal("Connection Failure", "Your connection was lost. Click Reconnect to start a new session.", `<button type="button" class="btn btn-secondary" onclick="location.reload()">Reconnect</button>`);
AddConsoleOutput("Connection lost.");
}
ShowModal("Connection Failure", "Your connection was lost. Click Reconnect to start a new session.", `<button type="button" class="btn btn-secondary" onclick="location.reload()">Reconnect</button>`);
AddConsoleOutput("Connection lost.");
});
}
;
@ -78,7 +75,7 @@ function applyMessageHandlers(hubConnection) {
AddConsoleOutput(consoleMessage);
}
if (popupMessage) {
UI.ShowMessage(popupMessage);
ShowMessage(popupMessage);
}
});
hubConnection.on("DisplayConsoleHTML", (message) => {

File diff suppressed because one or more lines are too long

View File

@ -1,15 +1,15 @@
import * as UI from "./UI.js";
import * as DataGrid from "./DataGrid.js";
import { Device } from "./Models/Device.js";
import { PSCoreCommandResult } from "./Models/PSCoreCommandResult.js";
import { GenericCommandResult } from "./Models/GenericCommandResult.js";
import { CommandResult } from "./Models/CommandResult.js";
import { Device } from "../Shared/Models/Device.js";
import { PSCoreCommandResult } from "../Shared/Models/PSCoreCommandResult.js";
import { GenericCommandResult } from "../Shared/Models/GenericCommandResult.js";
import { CommandResult } from "../Shared/Models/CommandResult.js";
import { CreateCommandHarness, AddCommandResultsHarness, AddPSCoreResultsHarness, UpdateResultsCount } from "./ResultsParser.js";
import { Store } from "./Store.js";
import { UserOptions } from "./Models/UserOptions.js";
import { UserOptions } from "../Shared/Models/UserOptions.js";
import { Main } from "./Main.js";
import { AddConsoleOutput, AddConsoleHTML } from "./Console.js";
import { ReceiveChatText } from "./Chat.js";
import { ShowMessage, ShowModal } from "../Shared/UI.js";
export var Connection: any;
@ -34,12 +34,10 @@ export function Connect() {
})
this.Connection.closedCallbacks.push((ev) => {
Connected = false;
if (!Store.IsDisconnectExpected) {
UI.ShowModal("Connection Failure",
"Your connection was lost. Click Reconnect to start a new session.",
`<button type="button" class="btn btn-secondary" onclick="location.reload()">Reconnect</button>`);
AddConsoleOutput("Connection lost.");
}
ShowModal("Connection Failure",
"Your connection was lost. Click Reconnect to start a new session.",
`<button type="button" class="btn btn-secondary" onclick="location.reload()">Reconnect</button>`);
AddConsoleOutput("Connection lost.");
});
};
@ -94,7 +92,7 @@ function applyMessageHandlers(hubConnection) {
AddConsoleOutput(consoleMessage);
}
if (popupMessage) {
UI.ShowMessage(popupMessage);
ShowMessage(popupMessage);
}
});
hubConnection.on("DisplayConsoleHTML", (message: string) => {

View File

@ -1,11 +1,11 @@
import { PositionCommandCompletionWindow, HighlightCompletionWindowItem } from "./CommandCompletion.js";
import { PositionCommandCompletionWindow, HighlightCompletionWindowItem, CommandCompletionStore } from "./CommandCompletion.js";
import * as UI from "./UI.js";
import * as CommandProcessor from "./CommandProcessor.js";
import { Store } from "./Store.js";
import * as DataGrid from "./DataGrid.js";
import * as HubConnection from "./HubConnection.js";
import { WebCommands } from "./Commands/WebCommands.js";
import { AddConsoleOutput } from "./Console.js";
import { ShowModal, ShowMessage } from "../Shared/UI.js";
export function ApplyInputEventHandlers() {
keyDownOnWindow();
keyDownOnInputTextArea();
@ -32,31 +32,31 @@ function arrowUpOrDownOnTextArea(e) {
else {
if (!UI.CommandCompletionDiv.classList.contains("hidden")) {
if (e.key.toLowerCase() == "arrowdown") {
if (Store.CommandCompletionPosition < UI.CommandCompletionDiv.children.length - 1) {
Store.CommandCompletionPosition += 1;
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
if (CommandCompletionStore.CompletionPosition < UI.CommandCompletionDiv.children.length - 1) {
CommandCompletionStore.CompletionPosition += 1;
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
UI.CommandCompletionDiv.querySelector(".selected").onfocus(new FocusEvent(""));
}
}
else if (e.key.toLowerCase() == "arrowup") {
if (Store.CommandCompletionPosition > 0) {
Store.CommandCompletionPosition -= 1;
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
if (CommandCompletionStore.CompletionPosition > 0) {
CommandCompletionStore.CompletionPosition -= 1;
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
UI.CommandCompletionDiv.querySelector(".selected").onfocus(new FocusEvent(""));
}
}
}
else {
if (e.key.toLowerCase() == "arrowdown") {
if (Store.InputHistoryPosition < Store.InputHistoryItems.length - 1) {
Store.InputHistoryPosition += 1;
UI.ConsoleTextArea.value = Store.InputHistoryItems[Store.InputHistoryPosition];
if (CommandCompletionStore.InputHistoryPosition < CommandCompletionStore.InputHistoryItems.length - 1) {
CommandCompletionStore.InputHistoryPosition += 1;
UI.ConsoleTextArea.value = CommandCompletionStore.InputHistoryItems[CommandCompletionStore.InputHistoryPosition];
}
}
else if (e.key.toLowerCase() == "arrowup") {
if (Store.InputHistoryPosition > 0) {
Store.InputHistoryPosition -= 1;
UI.ConsoleTextArea.value = Store.InputHistoryItems[Store.InputHistoryPosition];
if (CommandCompletionStore.InputHistoryPosition > 0) {
CommandCompletionStore.InputHistoryPosition -= 1;
UI.ConsoleTextArea.value = CommandCompletionStore.InputHistoryItems[CommandCompletionStore.InputHistoryPosition];
}
}
}
@ -178,7 +178,7 @@ function addAlertHandlers() {
UI.AlertsCount.innerText = String(currentCount);
}
else {
UI.ShowModal("API Error", "There was an error deleting the alert.");
ShowModal("API Error", "There was an error deleting the alert.");
}
};
xhr.send();
@ -194,10 +194,10 @@ function clickStartRemoteControlButton() {
document.getElementById("startRemoteControlButton").addEventListener("click", function (e) {
var selectedDevices = DataGrid.GetSelectedDevices();
if (selectedDevices.length == 0) {
UI.ShowMessage("You must select a device first.");
ShowMessage("You must select a device first.");
}
else if (selectedDevices.length > 1) {
UI.ShowMessage("You must select only one device to control.");
ShowMessage("You must select only one device to control.");
}
else {
WebCommands.find(x => x.Name == "RemoteControl").Execute([]);

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
import { PositionCommandCompletionWindow, HighlightCompletionWindowItem } from "./CommandCompletion.js";
import { PositionCommandCompletionWindow, HighlightCompletionWindowItem, CommandCompletionStore } from "./CommandCompletion.js";
import * as UI from "./UI.js";
import * as CommandProcessor from "./CommandProcessor.js";
import { Store } from "./Store.js";
import * as DataGrid from "./DataGrid.js";
import * as HubConnection from "./HubConnection.js";
import { WebCommands } from "./Commands/WebCommands.js";
import { AddConsoleOutput } from "./Console.js";
import { ShowModal, ShowMessage } from "../Shared/UI.js";
export function ApplyInputEventHandlers() {
@ -36,31 +36,31 @@ function arrowUpOrDownOnTextArea(e: KeyboardEvent) {
else {
if (!UI.CommandCompletionDiv.classList.contains("hidden")) {
if (e.key.toLowerCase() == "arrowdown") {
if (Store.CommandCompletionPosition < UI.CommandCompletionDiv.children.length - 1) {
Store.CommandCompletionPosition += 1;
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
if (CommandCompletionStore.CompletionPosition < UI.CommandCompletionDiv.children.length - 1) {
CommandCompletionStore.CompletionPosition += 1;
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
(UI.CommandCompletionDiv.querySelector(".selected") as HTMLElement).onfocus(new FocusEvent(""));
}
}
else if (e.key.toLowerCase() == "arrowup") {
if (Store.CommandCompletionPosition > 0) {
Store.CommandCompletionPosition -= 1;
HighlightCompletionWindowItem(Store.CommandCompletionPosition);
if (CommandCompletionStore.CompletionPosition > 0) {
CommandCompletionStore.CompletionPosition -= 1;
HighlightCompletionWindowItem(CommandCompletionStore.CompletionPosition);
(UI.CommandCompletionDiv.querySelector(".selected") as HTMLElement).onfocus(new FocusEvent(""));
}
}
}
else {
if (e.key.toLowerCase() == "arrowdown") {
if (Store.InputHistoryPosition < Store.InputHistoryItems.length - 1) {
Store.InputHistoryPosition += 1;
UI.ConsoleTextArea.value = Store.InputHistoryItems[Store.InputHistoryPosition];
if (CommandCompletionStore.InputHistoryPosition < CommandCompletionStore.InputHistoryItems.length - 1) {
CommandCompletionStore.InputHistoryPosition += 1;
UI.ConsoleTextArea.value = CommandCompletionStore.InputHistoryItems[CommandCompletionStore.InputHistoryPosition];
}
}
else if (e.key.toLowerCase() == "arrowup") {
if (Store.InputHistoryPosition > 0) {
Store.InputHistoryPosition -= 1;
UI.ConsoleTextArea.value = Store.InputHistoryItems[Store.InputHistoryPosition];
if (CommandCompletionStore.InputHistoryPosition > 0) {
CommandCompletionStore.InputHistoryPosition -= 1;
UI.ConsoleTextArea.value = CommandCompletionStore.InputHistoryItems[CommandCompletionStore.InputHistoryPosition];
}
}
}
@ -186,7 +186,7 @@ function addAlertHandlers() {
UI.AlertsCount.innerText = String(currentCount);
}
else {
UI.ShowModal("API Error", "There was an error deleting the alert.");
ShowModal("API Error", "There was an error deleting the alert.");
}
};
xhr.send();
@ -203,10 +203,10 @@ function clickStartRemoteControlButton() {
document.getElementById("startRemoteControlButton").addEventListener("click", function (e) {
var selectedDevices = DataGrid.GetSelectedDevices();
if (selectedDevices.length == 0) {
UI.ShowMessage("You must select a device first.");
ShowMessage("You must select a device first.");
}
else if (selectedDevices.length > 1) {
UI.ShowMessage("You must select only one device to control.");
ShowMessage("You must select only one device to control.");
}
else {
WebCommands.find(x => x.Name == "RemoteControl").Execute([]);

View File

@ -4,12 +4,11 @@ import * as CommandProcessor from "./CommandProcessor.js";
import { WebCommands } from "./Commands/WebCommands.js";
import { CMDCommands } from "./Commands/CMDCommands.js";
import { PSCommands } from "./Commands/PSCommands.js";
import * as Utilities from "./Utilities.js";
import * as Utilities from "../Shared/Utilities.js";
import * as DataGrid from "./DataGrid.js";
import { Store } from "./Store.js";
import { UserSettings } from "./UserSettings.js";
import { ApplyInputEventHandlers } from "./InputEventHandlers.js";
import { Sound } from "./Sound.js";
import { Sound } from "../Shared/Sound.js";
import * as Console from "./Console.js";
var remotely = {
Commands: {
@ -26,7 +25,6 @@ var remotely = {
HubConnection: HubConnection,
UserSettings: UserSettings,
Sound: Sound,
Store: Store,
Init()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AC7B,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC"}

View File

@ -4,12 +4,11 @@ import * as CommandProcessor from "./CommandProcessor.js";
import { WebCommands } from "./Commands/WebCommands.js";
import { CMDCommands } from "./Commands/CMDCommands.js";
import { PSCommands } from "./Commands/PSCommands.js";
import * as Utilities from "./Utilities.js";
import * as Utilities from "../Shared/Utilities.js";
import * as DataGrid from "./DataGrid.js";
import { Store } from "./Store.js";
import { UserSettings } from "./UserSettings.js";
import { ApplyInputEventHandlers } from "./InputEventHandlers.js";
import { Sound } from "./Sound.js";
import { Sound } from "../Shared/Sound.js";
import * as Console from "./Console.js";
var remotely = {
@ -27,7 +26,6 @@ var remotely = {
HubConnection: HubConnection,
UserSettings: UserSettings,
Sound: Sound,
Store: Store,
Init() {
UI.ConsoleTextArea.focus();
ApplyInputEventHandlers();

View File

@ -1,6 +1,6 @@
import * as DataGrid from "./DataGrid.js";
import { ConsoleFrame } from "./UI.js";
import { FormatScriptOutput, FormatScriptOutputArray } from "./Utilities.js";
import { FormatScriptOutput, FormatScriptOutputArray } from "../Shared/Utilities.js";
export function CreateCommandHarness(result) {
var collapseClass = result.TargetDeviceIDs.length > 1 ? "collapse" : "collapse show";
var commandHarness = document.createElement("div");

View File

@ -0,0 +1 @@
{"version":3,"file":"ResultsParser.js","sourceRoot":"","sources":["ResultsParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAErF,MAAM,UAAU,oBAAoB,CAAC,MAAqB;IACtD,IAAI,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC;IACrF,IAAI,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,KAA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QAAQ,CAAC,MAAM,GAAG,YAAY,GAAG,GAAG,CAAC,CAAC;IACvH,QAAQ,CAAC,cAAc,CAAC,GAAG,SAAS,YAAY,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC;AAChG,CAAC"}

View File

@ -1,9 +1,9 @@
import { CommandResult } from "./Models/CommandResult.js";
import { PSCoreCommandResult } from "./Models/PSCoreCommandResult.js";
import { CommandResult } from "../Shared/Models/CommandResult.js";
import { PSCoreCommandResult } from "../Shared/Models/PSCoreCommandResult.js";
import * as DataGrid from "./DataGrid.js";
import { GenericCommandResult } from "./Models/GenericCommandResult.js";
import { ConsoleOutputDiv, TabContentWrapper, ConsoleFrame } from "./UI.js";
import { FormatScriptOutput, FormatScriptOutputArray } from "./Utilities.js";
import { GenericCommandResult } from "../Shared/Models/GenericCommandResult.js";
import { ConsoleFrame } from "./UI.js";
import { FormatScriptOutput, FormatScriptOutputArray } from "../Shared/Utilities.js";
export function CreateCommandHarness(result: CommandResult): HTMLDivElement {
var collapseClass = result.TargetDeviceIDs.length > 1 ? "collapse" : "collapse show";

View File

@ -0,0 +1,23 @@
export var CommandCompletionDiv = document.querySelector("#commandCompletionDiv");
export var CommandInfoDiv = document.querySelector("#commandInfoDiv");
export var CommandModeSelect = document.querySelector("#commandModeSelect");
export var ConsoleOutputDiv = document.querySelector("#consoleOutputDiv");
export var ConsoleTextArea = document.querySelector("#consoleTextArea");
export var DeviceGrid = document.querySelector("#deviceGrid");
export var DevicesSelectedCount = document.querySelector("#devicesSelectedSpan");
export var OnlineDevicesCount = document.querySelector("#onlineDevicesSpan");
export var TotalDevicesCount = document.querySelector("#totalDevicesSpan");
export var MeasurementCanvas = document.createElement("canvas");
export var MeasurementContext = MeasurementCanvas.getContext("2d");
export var TabContentWrapper = document.getElementById("tabContentWrapper");
export var ConsoleFrame = document.getElementById("consoleFrame");
export var ConsoleTab = document.getElementById("consoleTab");
export var ConsoleAlert = document.getElementById("consoleAlert");
export var DeviceGroupSelect = document.getElementById("deviceGroupSelect");
export var GridFilter = document.getElementById("gridFilter");
export var AlertsButton = document.getElementById("alertsButton");
export var CloseAlertsButton = document.getElementById("closeAlertsFrameButton");
export var AlertsFrame = document.getElementById("alertsFrame");
export var AlertsCount = document.getElementById("alertsCount");
export var ToastsWrapper = document.getElementById("toastsWrapper");
//# sourceMappingURL=UI.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"UI.js","sourceRoot":"","sources":["UI.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAI,oBAAoB,GAAG,QAAQ,CAAC,aAAa,CAAC,uBAAuB,CAAmB,CAAC;AACpG,MAAM,CAAC,IAAI,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAmB,CAAC;AACxF,MAAM,CAAC,IAAI,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAsB,CAAC;AACjG,MAAM,CAAC,IAAI,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,mBAAmB,CAAmB,CAAC;AAC5F,MAAM,CAAC,IAAI,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAwB,CAAC;AAC/F,MAAM,CAAC,IAAI,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAqB,CAAC;AAClF,MAAM,CAAC,IAAI,oBAAoB,GAAG,QAAQ,CAAC,aAAa,CAAC,sBAAsB,CAAoB,CAAC;AACpG,MAAM,CAAC,IAAI,kBAAkB,GAAG,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAoB,CAAC;AAChG,MAAM,CAAC,IAAI,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAC,mBAAmB,CAAoB,CAAC;AAC9F,MAAM,CAAC,IAAI,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChE,MAAM,CAAC,IAAI,kBAAkB,GAAG,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACnE,MAAM,CAAC,IAAI,iBAAiB,GAAG,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAmB,CAAC;AAC9F,MAAM,CAAC,IAAI,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAmB,CAAC;AACpF,MAAM,CAAC,IAAI,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAsB,CAAC;AACnF,MAAM,CAAC,IAAI,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAsB,CAAC;AACvF,MAAM,CAAC,IAAI,iBAAiB,GAAG,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAsB,CAAC;AACjG,MAAM,CAAC,IAAI,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAqB,CAAC;AAClF,MAAM,CAAC,IAAI,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAsB,CAAC;AACvF,MAAM,CAAC,IAAI,iBAAiB,GAAG,QAAQ,CAAC,cAAc,CAAC,wBAAwB,CAAsB,CAAC;AACtG,MAAM,CAAC,IAAI,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAmB,CAAC;AAClF,MAAM,CAAC,IAAI,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAoB,CAAC;AACnF,MAAM,CAAC,IAAI,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAmB,CAAC"}

View File

@ -0,0 +1,25 @@
import * as Utilities from "../Shared/Utilities.js";
export var CommandCompletionDiv = document.querySelector("#commandCompletionDiv") as HTMLDivElement;
export var CommandInfoDiv = document.querySelector("#commandInfoDiv") as HTMLDivElement;
export var CommandModeSelect = document.querySelector("#commandModeSelect") as HTMLSelectElement;
export var ConsoleOutputDiv = document.querySelector("#consoleOutputDiv") as HTMLDivElement;
export var ConsoleTextArea = document.querySelector("#consoleTextArea") as HTMLTextAreaElement;
export var DeviceGrid = document.querySelector("#deviceGrid") as HTMLTableElement;
export var DevicesSelectedCount = document.querySelector("#devicesSelectedSpan") as HTMLSpanElement;
export var OnlineDevicesCount = document.querySelector("#onlineDevicesSpan") as HTMLSpanElement;
export var TotalDevicesCount = document.querySelector("#totalDevicesSpan") as HTMLSpanElement;
export var MeasurementCanvas = document.createElement("canvas");
export var MeasurementContext = MeasurementCanvas.getContext("2d");
export var TabContentWrapper = document.getElementById("tabContentWrapper") as HTMLDivElement;
export var ConsoleFrame = document.getElementById("consoleFrame") as HTMLDivElement;
export var ConsoleTab = document.getElementById("consoleTab") as HTMLAnchorElement;
export var ConsoleAlert = document.getElementById("consoleAlert") as HTMLAnchorElement;
export var DeviceGroupSelect = document.getElementById("deviceGroupSelect") as HTMLSelectElement;
export var GridFilter = document.getElementById("gridFilter") as HTMLInputElement;
export var AlertsButton = document.getElementById("alertsButton") as HTMLButtonElement;
export var CloseAlertsButton = document.getElementById("closeAlertsFrameButton") as HTMLButtonElement;
export var AlertsFrame = document.getElementById("alertsFrame") as HTMLDivElement;
export var AlertsCount = document.getElementById("alertsCount") as HTMLSpanElement;
export var ToastsWrapper = document.getElementById("toastsWrapper") as HTMLDivElement;

View File

@ -1,4 +1,4 @@
import { ShowModal } from "../UI.js";
import { ShowModal } from "../Shared/UI.js";
document.getElementById("usersHelpButton").addEventListener("click", (ev) => {
ShowModal("Users", `All users for the organization are managed here.<br><br>
Administrators will have access to this management screen as well as all computers.`);

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import { ShowModal, ValidateInput, ShowMessage } from "../UI.js";
import { ShowModal } from "../Shared/UI.js";
document.getElementById("usersHelpButton").addEventListener("click", (ev) => {

View File

@ -1,4 +1,4 @@
import { BinaryDtoType } from "../Enums/BinaryDtoType.js";
import { BinaryDtoType } from "../Shared/Enums/BinaryDtoType.js";
export interface BinaryDto {
DtoType: BinaryDtoType

View File

@ -1,5 +1,6 @@
import { ShowMessage, FileTransferProgress, FileTransferInput, FileTransferNameSpan } from "./UI.js";
import { FileTransferProgress, FileTransferInput, FileTransferNameSpan } from "./UI.js";
import { MainViewer } from "./Main.js";
import { ShowMessage } from "../Shared/UI.js";
export async function UploadFiles(fileList) {
if (!FileTransferProgress.parentElement.hasAttribute("hidden")) {
FileTransferInput.value = null;

View File

@ -1 +1 @@
{"version":3,"file":"FileUploader.js","sourceRoot":"","sources":["FileUploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,QAAkB;IAChD,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;QAC5D,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC;QAC/B,WAAW,CAAC,oCAAoC,CAAC,CAAC;QAClD,OAAO;KACV;IACD,WAAW,CAAC,wBAAwB,CAAC,CAAC;IACtC,oBAAoB,CAAC,KAAK,GAAG,CAAC,CAAC;IAC/B,oBAAoB,CAAC,aAAa,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IAE7D,IAAI;QACA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,oBAAoB,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAClD,IAAI,MAAM,GAAG,MAAM,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;YAC7C,MAAM,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SACrF;QACD,WAAW,CAAC,wBAAwB,CAAC,CAAC;KACzC;IACD,WAAM;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,CAAC;KACzC;IACD,WAAM;QACF,WAAW,CAAC,qBAAqB,CAAC,CAAC;KACtC;IACD,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC;IAC/B,oBAAoB,CAAC,aAAa,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACxE,CAAC"}

View File

@ -1,5 +1,6 @@
import { ShowMessage, FileTransferProgress, FileTransferInput, FileTransferNameSpan } from "./UI.js";
import { FileTransferProgress, FileTransferInput, FileTransferNameSpan } from "./UI.js";
import { MainViewer } from "./Main.js";
import { ShowMessage } from "../Shared/UI.js";
export async function UploadFiles(fileList: FileList) {
if (!FileTransferProgress.parentElement.hasAttribute("hidden")) {

View File

@ -1,9 +1,10 @@
import { AudioButton, ChangeScreenButton, HorizontalBars, ScreenSelectBar, ClipboardTransferButton, ClipboardTransferBar, TypeClipboardButton, ShowMessage, ConnectButton, CtrlAltDelButton, DisconnectButton, FileTransferButton, FileTransferInput, FitToScreenButton, ScreenViewer, BlockInputButton, InviteButton, KeyboardButton, TouchKeyboardTextArea, MenuFrame, MenuButton, QualityButton, QualityBar, QualitySlider, AutoQualityAdjustCheckBox, ScreenViewerWrapper, WindowsSessionSelect, RecordSessionButton, DownloadRecordingButton, VideoScreenViewer, StreamVideoButton } from "./UI.js";
import { Sound } from "../Sound.js";
import { AudioButton, ChangeScreenButton, HorizontalBars, ScreenSelectBar, ClipboardTransferButton, ClipboardTransferBar, TypeClipboardButton, ConnectButton, CtrlAltDelButton, DisconnectButton, FileTransferButton, FileTransferInput, FitToScreenButton, ScreenViewer, BlockInputButton, InviteButton, KeyboardButton, TouchKeyboardTextArea, MenuFrame, MenuButton, QualityButton, QualityBar, QualitySlider, AutoQualityAdjustCheckBox, ScreenViewerWrapper, WindowsSessionSelect, RecordSessionButton, DownloadRecordingButton, VideoScreenViewer, StreamVideoButton } from "./UI.js";
import { Sound } from "../Shared/Sound.js";
import { MainViewer } from "./Main.js";
import { UploadFiles } from "./FileUploader.js";
import { RemoteControlMode } from "../Enums/RemoteControlMode.js";
import { GetDistanceBetween } from "../Utilities.js";
import { RemoteControlMode } from "../Shared/Enums/RemoteControlMode.js";
import { GetDistanceBetween } from "../Shared/Utilities.js";
import { ShowMessage } from "../Shared/UI.js";
var lastPointerMove = Date.now();
var isDragging;
var currentPointerDevice;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
import * as Utilities from "../Utilities.js";
import * as Utilities from "../Shared/Utilities.js";
import { RtcSession } from "./RtcSession.js";
import * as UI from "./UI.js";
import { RemoteControlMode } from "../Enums/RemoteControlMode.js";
import { RemoteControlMode } from "../Shared/Enums/RemoteControlMode.js";
import { ClipboardWatcher } from "./ClipboardWatcher.js";
import { RtcMessageHandler } from "./RtcMessageHandler.js";
import { MessageSender } from "./MessageSender.js";

View File

@ -1 +1 @@
{"version":3,"file":"Main.js","sourceRoot":"","sources":["Main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,IAAI,WAAW,GAAG,SAAS,CAAC,iBAAiB,EAAE,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,gBAAgB,EAAE,IAAI,gBAAg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K,GAAG,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC;YACvE,IAAI,WAAW,CAAC,eAAe,CAAC,EAAE;gBAC9B,EAAE,CAAC,kBAAkB,CAAC,KAAK,GAAG,kBAAkB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;gBAC/E,IAAI,CAAC,eAAe,EAAE,CAAC;aAC1B;SACJ;IACL,CAAC;IACD,eAAe,EAAE,GAAG,EAAE;QAClB,EAAE,CAAC,aAAa,CAAC,QAAQ,GAAG,IAAI,CAAC;QACjC,UAAU,CAAC,QAAQ,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClE,UAAU,CAAC,aAAa,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC;QACvD,UAAU,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC;QAC3C,UAAU,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACzC,EAAE,CAAC,aAAa,CAAC,SAAS,GAAG,+BAA+B,CAAC;IACjE,CAAC;CACJ,CAAA;AAED,MAAM,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC"}

View File

@ -1,7 +1,7 @@
import * as Utilities from "../Utilities.js";
import * as Utilities from "../Shared/Utilities.js";
import { RtcSession } from "./RtcSession.js";
import * as UI from "./UI.js";
import { RemoteControlMode } from "../Enums/RemoteControlMode.js";
import { RemoteControlMode } from "../Shared/Enums/RemoteControlMode.js";
import { ClipboardWatcher } from "./ClipboardWatcher.js";
import { RtcMessageHandler } from "./RtcMessageHandler.js";
import { MessageSender } from "./MessageSender.js";

View File

@ -1,8 +1,8 @@
import { MainViewer } from "./Main.js";
import { CtrlAltDelDto, KeyDownDto, KeyPressDto, KeyUpDto, MouseDownDto, MouseMoveDto, MouseUpDto, MouseWheelDto, QualityChangeDto, SelectScreenDto, TapDto, AutoQualityAdjustDto, ToggleAudioDto, ToggleBlockInputDto, ClipboardTransferDto, FileDto, WindowsSessionsDto, GenericDto, ToggleWebRtcVideoDto } from "./RtcDtos.js";
import { CreateGUID, When } from "../Utilities.js";
import { CreateGUID, When } from "../Shared/Utilities.js";
import { FileTransferProgress } from "./UI.js";
import { BinaryDtoType } from "../Enums/BinaryDtoType.js";
import { BinaryDtoType } from "../Shared/Enums/BinaryDtoType.js";
export class MessageSender {
GetWindowsSessions() {
this.SendToAgent(() => MainViewer.RtcSession.SendDto(new WindowsSessionsDto()), () => MainViewer.ViewerHubConnection.GetWindowsSessions());

File diff suppressed because one or more lines are too long

View File

@ -20,9 +20,9 @@ import {
GenericDto,
ToggleWebRtcVideoDto
} from "./RtcDtos.js";
import { CreateGUID, When } from "../Utilities.js";
import { CreateGUID, When } from "../Shared/Utilities.js";
import { FileTransferProgress } from "./UI.js";
import { BinaryDtoType } from "../Enums/BinaryDtoType.js";
import { BinaryDtoType } from "../Shared/Enums/BinaryDtoType.js";
export class MessageSender {
GetWindowsSessions() {

View File

@ -1,4 +1,4 @@
import { BinaryDtoType } from "../Enums/BinaryDtoType.js";
import { BinaryDtoType } from "../Shared/Enums/BinaryDtoType.js";
export class AutoQualityAdjustDto {
constructor(isOn) {
this.DtoType = BinaryDtoType.AutoQualityAdjust;

View File

@ -1 +1 @@
{"version":3,"file":"RtcDtos.js","sourceRoot":"","sources":["RtcDtos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D,MAAM,OAAO,oBAAoB;IAC7B,YAAY,IAAa;QAKzB,YAAO,GAAkB,aAAa,CAAC,iBAAiB,CAAC;QAJrD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;CAIJ;AAsBD,MAAM,OAAO,oBAAoB;IAC7B,YAAY,IAAY,EAAE,QAAgB;QAO1C,YAAO,GAAkB,aAAa,CAAC,iBAAiB,CAAC;QANrD,IAAI,CAAC,IAAI,GAAG,IAAI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,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CAKJ;AAED,MAAM,OAAO,cAAc;IACvB,YAAY,QAAiB;QAK7B,YAAO,GAAkB,aAAa,CAAC,WAAW,CAAC;QAJ/C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CAIJ;AAED,MAAM,OAAO,mBAAmB;IAC5B,YAAY,QAAiB;QAK7B,YAAO,GAAkB,aAAa,CAAC,gBAAgB,CAAC;QAJpD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CAIJ;AAED,MAAM,OAAO,oBAAoB;IAC7B,YAAY,QAAiB;QAK7B,YAAO,GAAkB,aAAa,CAAC,iBAAiB,CAAC;QAJrD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CAIJ;AAGD,MAAM,OAAO,kBAAkB;IAA/B;QAGI,YAAO,GAAkB,aAAa,CAAC,eAAe,CAAC;IAC3D,CAAC;CAAA;AAED,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,mDAAW,CAAA;IACX,2CAAO,CAAA;AACX,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAED,MAAM,OAAO,cAAc;CAK1B"}

View File

@ -1,7 +1,7 @@
import { BinaryDto } from "./BinaryDto.js";
import { BinaryDtoType } from "../Enums/BinaryDtoType.js";
import { CursorInfo } from "../Models/CursorInfo.js";
import { Point } from "../Models/Point.js";
import { BinaryDtoType } from "../Shared/Enums/BinaryDtoType.js";
import { CursorInfo } from "../Shared/Models/CursorInfo.js";
import { Point } from "../Shared/Models/Point.js";
export class AutoQualityAdjustDto implements BinaryDto {
constructor(isOn: boolean) {

View File

@ -1,8 +1,8 @@
import * as UI from "./UI.js";
import { BinaryDtoType } from "../Enums/BinaryDtoType.js";
import { BinaryDtoType } from "../Shared/Enums/BinaryDtoType.js";
import { MainViewer } from "./Main.js";
import { ShowMessage } from "../UI.js";
import { Sound } from "../Sound.js";
import { ShowMessage } from "../Shared/UI.js";
import { Sound } from "../Shared/Sound.js";
export class RtcMessageHandler {
constructor() {
this.MessagePack = window['MessagePack'];

View File

@ -1 +1 @@
{"version":3,"file":"RtcMessageHandler.js","sourceRoot":"","sources":["RtcMessageHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAapC,MAAM,OAAO,iBAAiB;IAA9B;QACI,gBAAW,GAAQ,MAAM,CAAC,aAAa,CAAC,CAAC;QACzC,yBAAoB,GAAiB,EAAE,CAAC;IAiF5C,CAAC;IAhFG,kBAAkB,CAAC,IAAiB;QAChC,IAAI,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAc,CAAC;QACvD,QAAQ,KAAK,CAAC,OAAO,EAAE;YACnB,KAAK,aAAa,CAAC,WAAW;gBAC1B,IAAI,CAAC,iBAAiB,CAAC,KAAkC,CAAC,CAAC;gBAC3D,MAAM;YACV,KAAK,aAAa,CAAC,YAAY;gBAC3B,IAAI,CAAC,kBAAkB,CAAC,KAAmC,CAAC,CAAC;gBAC7D,MAAM;YACV,KAAK,aAAa,CAAC,aAAa;gBAC5B,IAAI,CAAC,mBAAmB,CAAC,KAAoC,CAAC,CAAC;gBAC/D,MAAM;YACV,KAAK,aAAa,CAAC,YAAY;gBAC3B,IAAI,CAAC,kBAAkB,CAAC,KAAmC,CAAC,CAAC;gBAC7D,MAAM;YACV,KAAK,aAAa,CAAC,WAAW;gBAC1B,IAAI,CAAC,iBAAiB,CAAC,KAAkC,CAAC,CAAC;gBAC3D,MAAM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,YAAY,CAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACrH,CAAC;IACD,iBAAiB,CAAC,cAA8B;QAC5C,QAAQ,CAAC,KAAK,GAAG,GAAG,cAAc,CAAC,WAAW,qBAAqB,CAAC;IACxE,CAAC;IACD,gBAAgB,CAAC,aAA4B;QACzC,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC,cAAc,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAChF,CAAC;IAED,gBAAgB,CAAC,aAA4B;QACzC,EAAE,CAAC,aAAa,CAAC,aAAa,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAChE,CAAC;IAED,qBAAqB,CAAC,kBAAsC;QACxD,EAAE,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACjE,CAAC;CACJ"}

View File

@ -1,9 +1,9 @@
import * as UI from "./UI.js";
import { BinaryDtoType } from "../Enums/BinaryDtoType.js";
import { BinaryDtoType } from "../Shared/Enums/BinaryDtoType.js";
import { BinaryDto } from "./BinaryDto.js";
import { MainViewer } from "./Main.js";
import { ShowMessage } from "../UI.js";
import { Sound } from "../Sound.js";
import { ShowMessage } from "../Shared/UI.js";
import { Sound } from "../Shared/Sound.js";
import {
AudioSampleDto,
CaptureFrameDto,

View File

@ -1,7 +1,7 @@
import * as UI from "./UI.js";
import * as Utilities from "../Utilities.js";
import * as Utilities from "../Shared/Utilities.js";
import { MainViewer } from "./Main.js";
import { IceServerModel } from "../Models/IceServerModel.js";
import { IceServerModel } from "../Shared/Models/IceServerModel.js";
export class RtcSession {
PeerConnection: RTCPeerConnection;

View File

@ -1,5 +1,5 @@
import { MainViewer } from "./Main.js";
import { ConvertUInt8ArrayToBase64 } from "../Utilities.js";
import { ConvertUInt8ArrayToBase64 } from "../Shared/Utilities.js";
import { SessionType } from "./RtcDtos.js";
export var AudioButton = document.getElementById("audioButton");
export var MenuButton = document.getElementById("menuButton");
@ -39,7 +39,6 @@ export var ClipboardTransferButton = document.getElementById("clipboardTransferB
export var TypeClipboardButton = document.getElementById("typeClipboardButton");
export var ConnectionP2PIcon = document.getElementById("connectionP2PIcon");
export var ConnectionRelayedIcon = document.getElementById("connectionRelayedIcon");
export var ToastsWrapper = document.getElementById("toastsWrapper");
export var WindowsSessionSelect = document.getElementById("windowsSessionSelect");
export var RecordSessionButton = document.getElementById("recordSessionButton");
export var DownloadRecordingButton = document.getElementById("downloadRecordingButton");
@ -83,15 +82,6 @@ export function SetScreenSize(width, height) {
ScreenViewer.height = height;
Screen2DContext.clearRect(0, 0, width, height);
}
export function ShowMessage(message) {
var messageDiv = document.createElement("div");
messageDiv.classList.add("toast-message");
messageDiv.innerHTML = message;
ToastsWrapper.appendChild(messageDiv);
window.setTimeout(() => {
messageDiv.remove();
}, 5000);
}
export function UpdateCursor(imageBytes, hotSpotX, hotSpotY, cssOverride) {
var targetElement = GetCurrentViewer();
if (cssOverride) {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
import { MainViewer } from "./Main.js";
import { ConvertUInt8ArrayToBase64 } from "../Utilities.js";
import { ConvertUInt8ArrayToBase64 } from "../Shared/Utilities.js";
import { WindowsSession, SessionType } from "./RtcDtos.js";
export var AudioButton = document.getElementById("audioButton") as HTMLButtonElement;
@ -40,7 +40,6 @@ export var ClipboardTransferButton = document.getElementById("clipboardTransferB
export var TypeClipboardButton = document.getElementById("typeClipboardButton") as HTMLButtonElement;
export var ConnectionP2PIcon = document.getElementById("connectionP2PIcon") as HTMLElement;
export var ConnectionRelayedIcon = document.getElementById("connectionRelayedIcon") as HTMLElement;
export var ToastsWrapper = document.getElementById("toastsWrapper") as HTMLDivElement;
export var WindowsSessionSelect = document.getElementById("windowsSessionSelect") as HTMLSelectElement;
export var RecordSessionButton = document.getElementById("recordSessionButton") as HTMLButtonElement;
export var DownloadRecordingButton = document.getElementById("downloadRecordingButton") as HTMLButtonElement;
@ -97,16 +96,6 @@ export function SetScreenSize(width: number, height: number) {
Screen2DContext.clearRect(0, 0, width, height);
}
export function ShowMessage(message: string) {
var messageDiv = document.createElement("div");
messageDiv.classList.add("toast-message");
messageDiv.innerHTML = message;
ToastsWrapper.appendChild(messageDiv);
window.setTimeout(() => {
messageDiv.remove();
}, 5000);
}
export function UpdateCursor(imageBytes: Uint8Array, hotSpotX: number, hotSpotY: number, cssOverride: string) {
var targetElement = GetCurrentViewer();
@ -165,5 +154,4 @@ export function UpdateWindowsSessions(windowsSessions: Array<WindowsSession>) {
option.title = `${sessionType} Session (ID: ${x.ID} | User: ${x.Username})`;
WindowsSessionSelect.options.add(option);
});
}
}

View File

@ -1,8 +1,8 @@
import * as UI from "./UI.js";
import { MainViewer } from "./Main.js";
import { Sound } from "../Sound.js";
import { ShowMessage } from "../UI.js";
import { RemoteControlMode } from "../Enums/RemoteControlMode.js";
import { Sound } from "../Shared/Sound.js";
import { RemoteControlMode } from "../Shared/Enums/RemoteControlMode.js";
import { ShowMessage } from "../Shared/UI.js";
var signalR = window["signalR"];
export class ViewerHubConnection {
constructor() {
@ -179,24 +179,24 @@ export class ViewerHubConnection {
hubConnection.on("ConnectionFailed", () => {
UI.ConnectButton.removeAttribute("disabled");
UI.StatusMessage.innerHTML = "Connection failed or was denied.";
UI.ShowMessage("Connection failed. Please reconnect.");
ShowMessage("Connection failed. Please reconnect.");
this.Connection.stop();
});
hubConnection.on("ConnectionRequestDenied", () => {
this.Connection.stop();
UI.StatusMessage.innerHTML = "Connection request denied.";
UI.ShowMessage("Connection request denied.");
ShowMessage("Connection request denied.");
});
hubConnection.on("Unauthorized", () => {
UI.ConnectButton.removeAttribute("disabled");
UI.StatusMessage.innerHTML = "Authorization failed.";
UI.ShowMessage("Authorization failed.");
ShowMessage("Authorization failed.");
this.Connection.stop();
});
hubConnection.on("ViewerRemoved", () => {
UI.ConnectButton.removeAttribute("disabled");
UI.StatusMessage.innerHTML = "The session was stopped by your partner.";
UI.ShowMessage("Session ended.");
ShowMessage("Session ended.");
this.Connection.stop();
});
hubConnection.on("SessionIDNotFound", () => {
@ -217,13 +217,13 @@ export class ViewerHubConnection {
this.Connect();
});
hubConnection.on("Reconnecting", () => {
UI.ShowMessage("Reconnecting...");
ShowMessage("Reconnecting...");
});
hubConnection.on("CursorChange", (cursor) => {
UI.UpdateCursor(cursor.ImageBytes, cursor.HotSpot.X, cursor.HotSpot.Y, cursor.CssOverride);
});
hubConnection.on("RequestingScreenCast", () => {
UI.ShowMessage("Requesting remote control...");
ShowMessage("Requesting remote control...");
});
hubConnection.on("ReceiveRtcOffer", async (sdp, iceServers) => {
console.log("Rtc offer SDP received.");
@ -239,7 +239,7 @@ export class ViewerHubConnection {
});
});
hubConnection.on("ShowMessage", (message) => {
UI.ShowMessage(message);
ShowMessage(message);
});
hubConnection.on("WindowsSessions", (windowsSessions) => {
UI.UpdateWindowsSessions(windowsSessions);

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
import * as UI from "./UI.js";
import { MainViewer } from "./Main.js";
import { CursorInfo } from "../Models/CursorInfo.js";
import { Sound } from "../Sound.js";
import { ShowMessage } from "../UI.js";
import { IceServerModel } from "../Models/IceServerModel.js";
import { RemoteControlMode } from "../Enums/RemoteControlMode.js";
import { CursorInfo } from "../Shared/Models/CursorInfo.js";
import { Sound } from "../Shared/Sound.js";
import { IceServerModel } from "../Shared/Models/IceServerModel.js";
import { RemoteControlMode } from "../Shared/Enums/RemoteControlMode.js";
import { WindowsSession } from "./RtcDtos.js";
import { ShowMessage } from "../Shared/UI.js";
var signalR = window["signalR"];
@ -204,24 +204,24 @@ export class ViewerHubConnection {
hubConnection.on("ConnectionFailed", () => {
UI.ConnectButton.removeAttribute("disabled");
UI.StatusMessage.innerHTML = "Connection failed or was denied.";
UI.ShowMessage("Connection failed. Please reconnect.");
ShowMessage("Connection failed. Please reconnect.");
this.Connection.stop();
});
hubConnection.on("ConnectionRequestDenied", () => {
this.Connection.stop();
UI.StatusMessage.innerHTML = "Connection request denied.";
UI.ShowMessage("Connection request denied.");
ShowMessage("Connection request denied.");
});
hubConnection.on("Unauthorized", () => {
UI.ConnectButton.removeAttribute("disabled");
UI.StatusMessage.innerHTML = "Authorization failed.";
UI.ShowMessage("Authorization failed.");
ShowMessage("Authorization failed.");
this.Connection.stop();
});
hubConnection.on("ViewerRemoved", () => {
UI.ConnectButton.removeAttribute("disabled");
UI.StatusMessage.innerHTML = "The session was stopped by your partner.";
UI.ShowMessage("Session ended.");
ShowMessage("Session ended.");
this.Connection.stop();
});
hubConnection.on("SessionIDNotFound", () => {
@ -243,7 +243,7 @@ export class ViewerHubConnection {
});
hubConnection.on("Reconnecting", () => {
UI.ShowMessage("Reconnecting...");
ShowMessage("Reconnecting...");
});
hubConnection.on("CursorChange", (cursor: CursorInfo) => {
@ -251,7 +251,7 @@ export class ViewerHubConnection {
});
hubConnection.on("RequestingScreenCast", () => {
UI.ShowMessage("Requesting remote control...");
ShowMessage("Requesting remote control...");
});
@ -270,7 +270,7 @@ export class ViewerHubConnection {
} as any);
});
hubConnection.on("ShowMessage", (message: string) => {
UI.ShowMessage(message);
ShowMessage(message);
});
hubConnection.on("WindowsSessions", (windowsSessions: Array<WindowsSession>) => {
UI.UpdateWindowsSessions(windowsSessions);

View File

@ -1 +0,0 @@
{"version":3,"file":"ResultsParser.js","sourceRoot":"","sources":["ResultsParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAuC,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,MAAM,UAAU,oBAAoB,CAAC,MAAqB;IACtD,IAAI,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC;IACrF,IAAI,cAAc,GAAG,QAAQ,CAAC,aAAa,CA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