mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
feat: add Mirror URL modal for device configuration
Some checks are pending
tests / ci (push) Waiting to run
Some checks are pending
tests / ci (push) Waiting to run
This commit is contained in:
parent
a06a0879ff
commit
36e1ad8441
1 changed files with 24 additions and 0 deletions
|
|
@ -368,6 +368,10 @@ new class extends Component {
|
|||
<flux:menu.item icon="arrow-up-circle">Update Firmware</flux:menu.item>
|
||||
</flux:modal.trigger>
|
||||
<flux:menu.item icon="bars-3" href="{{ route('devices.logs', $device) }}" wire:navigate>Show Logs</flux:menu.item>
|
||||
<flux:modal.trigger name="mirror-url">
|
||||
<flux:menu.item icon="link">Mirror URL</flux:menu.item>
|
||||
</flux:modal.trigger>
|
||||
<flux:menu.separator/>
|
||||
<flux:modal.trigger name="delete-device">
|
||||
<flux:menu.item icon="trash" variant="danger">Delete Device</flux:menu.item>
|
||||
</flux:modal.trigger>
|
||||
|
|
@ -498,6 +502,26 @@ new class extends Component {
|
|||
</flux:modal>
|
||||
|
||||
|
||||
<flux:modal name="mirror-url" class="md:w-96">
|
||||
@php
|
||||
$mirrorUrl = url('/mirror/index.html') . '?mac_address=' . urlencode($device->mac_address) . '&api_key=' . urlencode($device->api_key);
|
||||
@endphp
|
||||
|
||||
<div class="space-y-6">
|
||||
<div>
|
||||
<flux:heading size="lg">Mirror WebUI</flux:heading>
|
||||
<flux:subheading>Mirror this device onto older devices with a web browser — Safari is supported back to iOS 9.</flux:subheading>
|
||||
</div>
|
||||
|
||||
<flux:input
|
||||
label="Mirror URL"
|
||||
value="{{$mirrorUrl}}"
|
||||
readonly
|
||||
copyable
|
||||
/>
|
||||
</div>
|
||||
</flux:modal>
|
||||
|
||||
@if(!$device->mirror_device_id)
|
||||
@if($current_image_path)
|
||||
<flux:separator class="mt-6 mb-6" text="Screen"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue