mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Unify PowerShell commands.
This commit is contained in:
parent
7abd92866e
commit
3fdffc6f67
@ -31,9 +31,8 @@
|
||||
<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\PSCoreCommands.ts" />
|
||||
<Content Remove="wwwroot\scripts\Commands\PSCommands.ts" />
|
||||
<Content Remove="wwwroot\scripts\Commands\WebCommands.ts" />
|
||||
<Content Remove="wwwroot\scripts\Commands\WinPSCommands.ts" />
|
||||
<Content Remove="wwwroot\scripts\Console.ts" />
|
||||
<Content Remove="wwwroot\scripts\DataGrid.ts" />
|
||||
<Content Remove="wwwroot\scripts\Enums\RemoteControlMode.ts" />
|
||||
@ -146,10 +145,9 @@
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Chat.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\CommandCompletion.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Commands\BashCommands.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Commands\WinPSCommands.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Commands\CMDCommands.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Commands\WebCommands.ts" />
|
||||
<TypeScriptCompile Include="wwwroot\scripts\Commands\PSCoreCommands.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" />
|
||||
@ -193,9 +191,6 @@
|
||||
<Content Update="wwwroot\images\Remotely_Logo.png">
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
</Content>
|
||||
<Content Update="wwwroot\scripts\Commands\WinPSCommands.js">
|
||||
<DependentUpon>WinPSCommands.ts</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@ -3,8 +3,7 @@ import { Store } from "./Store.js";
|
||||
import { WebCommands } from "./Commands/WebCommands.js";
|
||||
import * as UI from "./UI.js";
|
||||
import { CMDCommands } from "./Commands/CMDCommands.js";
|
||||
import { PSCoreCommands } from "./Commands/PSCoreCommands.js";
|
||||
import { WinPSCommands } from "./Commands/WinPSCommands.js";
|
||||
import { PSCommands } from "./Commands/PSCommands.js";
|
||||
import { BashCommands } from "./Commands/BashCommands.js";
|
||||
export function DisplayCommandCompletions(commands, relevantText) {
|
||||
Store.CommandCompletionTimeout = window.setTimeout(() => {
|
||||
@ -98,10 +97,8 @@ export function GetCommandCompletions(commandText) {
|
||||
commandList = CMDCommands;
|
||||
break;
|
||||
case "PSCore":
|
||||
commandList = PSCoreCommands;
|
||||
break;
|
||||
case "WinPS":
|
||||
commandList = WinPSCommands;
|
||||
commandList = PSCommands;
|
||||
break;
|
||||
case "Bash":
|
||||
commandList = BashCommands;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -6,8 +6,7 @@ import { WebCommands } from "./Commands/WebCommands.js";
|
||||
import { Parameter } from "./Models/Parameter.js";
|
||||
import * as UI from "./UI.js"
|
||||
import { CMDCommands } from "./Commands/CMDCommands.js";
|
||||
import { PSCoreCommands } from "./Commands/PSCoreCommands.js";
|
||||
import { WinPSCommands } from "./Commands/WinPSCommands.js";
|
||||
import { PSCommands } from "./Commands/PSCommands.js";
|
||||
import { BashCommands } from "./Commands/BashCommands.js";
|
||||
|
||||
export function DisplayCommandCompletions(commands: Array<ConsoleCommand>, relevantText: string) {
|
||||
@ -111,10 +110,8 @@ export function GetCommandCompletions(commandText: string): ConsoleCommand[] {
|
||||
commandList = CMDCommands;
|
||||
break;
|
||||
case "PSCore":
|
||||
commandList = PSCoreCommands;
|
||||
break;
|
||||
case "WinPS":
|
||||
commandList = WinPSCommands;
|
||||
commandList = PSCommands;
|
||||
break;
|
||||
case "Bash":
|
||||
commandList = BashCommands;
|
||||
|
||||
@ -12797,5 +12797,5 @@ Write-Error [-CategoryActivity <String>] [-CategoryReason <String>] [-CategoryTa
|
||||
], `Writes a warning message.`, `Write-Warning [-Message] <String> [<CommonParameters>]`, "", (parameters, paramDictionary) => {
|
||||
})
|
||||
];
|
||||
export const PSCoreCommands = commands;
|
||||
//# sourceMappingURL=PSCoreCommands.js.map
|
||||
export const PSCommands = commands;
|
||||
//# sourceMappingURL=PSCommands.js.map
|
||||
1
Server/wwwroot/scripts/Commands/PSCommands.js.map
Normal file
1
Server/wwwroot/scripts/Commands/PSCommands.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -27086,4 +27086,4 @@ new Parameter(`Status`, `Specifies the second line of text in the heading above
|
||||
}
|
||||
)
|
||||
];
|
||||
export const PSCoreCommands = commands;
|
||||
export const PSCommands = commands;
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -3,20 +3,19 @@ import * as UI from "./UI.js";
|
||||
import * as CommandProcessor from "./CommandProcessor.js";
|
||||
import { WebCommands } from "./Commands/WebCommands.js";
|
||||
import { CMDCommands } from "./Commands/CMDCommands.js";
|
||||
import { PSCoreCommands } from "./Commands/PSCoreCommands.js";
|
||||
import { PSCommands } from "./Commands/PSCommands.js";
|
||||
import * as Utilities from "./Utilities.js";
|
||||
import * as DataGrid from "./DataGrid.js";
|
||||
import { Store } from "./Store.js";
|
||||
import { UserSettings } from "./UserSettings.js";
|
||||
import { WinPSCommands } from "./Commands/WinPSCommands.js";
|
||||
import { ApplyInputEventHandlers } from "./InputEventHandlers.js";
|
||||
import { Sound } from "./Sound.js";
|
||||
import * as Console from "./Console.js";
|
||||
var remotely = {
|
||||
Commands: {
|
||||
"Web": WebCommands,
|
||||
"WinPS": WinPSCommands,
|
||||
"PSCore": PSCoreCommands,
|
||||
"WinPS": PSCommands,
|
||||
"PSCore": PSCommands,
|
||||
"CMD": CMDCommands
|
||||
},
|
||||
CommandProcessor: CommandProcessor,
|
||||
|
||||
@ -1 +1 @@
|
||||
{"version":3,"file":"Main.js","sourceRoot":"","sources":["Main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,IAAI,QAAQ,GAAG;IACX,QAAQ,EAAE;QACN,KAAK,EAAE,WAAW;QAClB,OAAO,EAAE,aAAa;QACtB,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,WAAW;KACrB;IACD,gBAAgB,EAAE,gBAAgB;IAClC,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,EAAE,EAAE,EAAE;IACN,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,aAAa;IAC5B,YA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EAAE,EAAE;IACN,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,IAAI;QACA,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;QAC3B,uBAAuB,EAAE,CAAC;QAC1B,aAAa,CAAC,OAAO,EAAE,CAAC;IAC5B,CAAC;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC"}
|
||||
@ -3,12 +3,11 @@ import * as UI from "./UI.js";
|
||||
import * as CommandProcessor from "./CommandProcessor.js";
|
||||
import { WebCommands } from "./Commands/WebCommands.js";
|
||||
import { CMDCommands } from "./Commands/CMDCommands.js";
|
||||
import { PSCoreCommands } from "./Commands/PSCoreCommands.js";
|
||||
import { PSCommands } from "./Commands/PSCommands.js";
|
||||
import * as Utilities from "./Utilities.js";
|
||||
import * as DataGrid from "./DataGrid.js";
|
||||
import { Store } from "./Store.js";
|
||||
import { UserSettings } from "./UserSettings.js";
|
||||
import { WinPSCommands } from "./Commands/WinPSCommands.js";
|
||||
import { ApplyInputEventHandlers } from "./InputEventHandlers.js";
|
||||
import { Sound } from "./Sound.js";
|
||||
import * as Console from "./Console.js";
|
||||
@ -16,8 +15,8 @@ import * as Console from "./Console.js";
|
||||
var remotely = {
|
||||
Commands: {
|
||||
"Web": WebCommands,
|
||||
"WinPS": WinPSCommands,
|
||||
"PSCore": PSCoreCommands,
|
||||
"WinPS": PSCommands,
|
||||
"PSCore": PSCommands,
|
||||
"CMD": CMDCommands
|
||||
},
|
||||
CommandProcessor: CommandProcessor,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user