@page "/device-details/{deviceId?}/{activeTab?}" @attribute [Authorize] @inherits AuthComponentBase @if (string.IsNullOrWhiteSpace(DeviceId)) {

Device ID:

You can also go directly to a device's details by:
  • Right-clicking a device card on the main page while it's collapsed
  • Clicking the "Open in New Tab" button in a device card's header while it's expanded
} else if (Device is null) {

Device not found.

} else if (!DataService.DoesUserHaveAccessToDevice(Device.ID, User)) {

Unauthorized.

} else { Details Remote Logs Script History

Device Details

@if (!string.IsNullOrWhiteSpace(_alertMessage)) { }
@foreach (var setting in Enum.GetValues(typeof(WebRtcSetting))) { }
@foreach (var group in DataService.GetDeviceGroups(Username)) { }
@if (!Device.IsOnline) {
Device must be online to retrieve logs.
} else { @if (_logLines.Any()) {
@foreach (var line in _logLines) { @line }
} else { } }

Script History

@foreach (var scriptResult in _scriptResults) { }
Shell Timestamp User Duration Input Output Error
@scriptResult.Shell @scriptResult.TimeStamp @scriptResult.SenderUserName @scriptResult.RunTime @GetTrimmedText(scriptResult.ScriptInput, 25) @GetTrimmedText(scriptResult.StandardOutput, 25) @GetTrimmedText(scriptResult.ErrorOutput, 25)
}