Skip to content

Commit

Permalink
Bug fix when updating tags via grid. Added Linux GUI to downloads page.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed May 10, 2019
1 parent 9f5e25d commit 02ea46d
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 132 deletions.
1 change: 0 additions & 1 deletion Remotely_Desktop.Unix/Remotely_Desktop.Unix.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
<ItemGroup>
<ProjectReference Include="..\Remotely_ScreenCast.Core\Remotely_ScreenCast.Core.csproj" />
<ProjectReference Include="..\Remotely_ScreenCast.Linux\Remotely_ScreenCast.Linux.csproj" />
<ProjectReference Include="..\Remotely_ScreenCast.Win\Remotely_ScreenCast.Win.csproj" />
<ProjectReference Include="..\Remotely_Shared\Remotely_Shared.csproj" />
</ItemGroup>
</Project>
17 changes: 0 additions & 17 deletions Remotely_Desktop.Unix/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
using Remotely_ScreenCast.Core.Utilities;
using Remotely_ScreenCast.Linux.Capture;
using Remotely_ScreenCast.Linux.Input;
using Remotely_ScreenCast.Win.Capture;
using Remotely_ScreenCast.Win.Input;
using Remotely_Shared.Models;
using Remotely_Shared.Services;
using System;
Expand Down Expand Up @@ -157,10 +155,6 @@ public async Task Init()
{
Conductor.SetMessageHandlers(new X11Input());
}
else if (OSUtils.IsWindows)
{
Conductor.SetMessageHandlers(new WinInput());
}

await Conductor.CasterSocket.SendDeviceInfo(Conductor.ServiceID, Environment.MachineName);
await Conductor.CasterSocket.GetSessionID();
Expand Down Expand Up @@ -205,17 +199,6 @@ private void ScreenCastRequested(object sender, ScreenCastRequest screenCastRequ
{
capturer = new X11Capture();
}
else if (OSUtils.IsWindows)
{
if (Conductor.Viewers.Count == 0)
{
capturer = new DXCapture();
}
else
{
capturer = new BitBltCapture();
}
}

await Conductor.CasterSocket.SendCursorChange(new CursorInfo(null, Point.Empty, "default"), new List<string>() { screenCastRequest.ViewerID });
ScreenCaster.BeginScreenCasting(screenCastRequest.ViewerID, screenCastRequest.RequesterName, capturer, Conductor);
Expand Down
2 changes: 1 addition & 1 deletion Remotely_Server/CurrentVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2019.05.03.1003
2019.05.09.2205
10 changes: 5 additions & 5 deletions Remotely_Server/Pages/Clients.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@
Instant desktop sharing with no installation or hassles.
</div>
<div class="col-sm-6">
<h6 class="font-weight-bold">Windows</h6>
<h6 class="font-weight-bold">Windows (32/64-Bit)</h6>
<p>
<strong>Download:</strong>
<br />
<a href="~/Downloads/Remotely_Desktop.exe">Windows Portable EXE</a>
</p>
</div>
@*<div class="col-sm-6">
<h6 class="font-weight-bold">Windows 32-Bit</h6>
<div class="col-sm-6">
<h6 class="font-weight-bold">Linux 64-Bit</h6>
<p>
<strong>Download:</strong>
<br />
<a href="~/Downloads/Remotely_ScreenCast.exe">Windows x86 Portable EXE</a>
<a href="~/Downloads/Remotely_Desktop.Unix.zip">Linux Zipped</a>
</p>
</div>*@
</div>
</div>

<div class="row">
Expand Down
4 changes: 3 additions & 1 deletion Remotely_Server/wwwroot/scripts/Commands/WebCommands.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Remotely_Server/wwwroot/scripts/Commands/WebCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ var commands: Array<ConsoleCommand> = [
parameterDict["tags"] = x.Tags.trim() + separator + parameterDict["tags"]
}
DataGrid.DataSource.find(y => y.ID == x.ID).Tags = parameterDict["tags"];
(document.getElementById(x.ID).querySelector(".device-tag") as HTMLInputElement).value = parameterDict["tags"];
var deviceTagInput = document.getElementById(x.ID).querySelector(".device-tag") as HTMLInputElement;
deviceTagInput.value = parameterDict["tags"];
deviceTagInput.setAttribute("value", parameterDict["tags"]);
BrowserSockets.Connection.invoke("UpdateTags", x.ID, parameterDict["tags"]);
});
}
Expand Down
3 changes: 3 additions & 0 deletions Remotely_Server/wwwroot/scripts/DataGrid.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Remotely_Server/wwwroot/scripts/DataGrid.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Remotely_Server/wwwroot/scripts/DataGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export function AddOrUpdateDevice(device: Device) {
(recordRow.querySelector(".device-tag") as HTMLInputElement).onchange = (ev) => {
var newTag = (ev.currentTarget as HTMLInputElement).value;
DataSource.find(x => x.ID == device.ID).Tags = newTag;
var deviceTagInput = document.getElementById(device.ID).querySelector(".device-tag") as HTMLInputElement;
deviceTagInput.value = newTag;
deviceTagInput.setAttribute("value", newTag);
BrowserSockets.Connection.invoke("UpdateTags", device.ID, newTag);
};
UpdateDeviceCounts();
Expand Down
Loading

0 comments on commit 02ea46d

Please sign in to comment.