Compare commits

...

2 commits

Author SHA1 Message Date
Benjamin Nussbaum
36e1ad8441 feat: add Mirror URL modal for device configuration
Some checks are pending
tests / ci (push) Waiting to run
2026-01-09 21:11:28 +01:00
Benjamin Nussbaum
a06a0879ff chore: gitignore 2026-01-09 20:23:24 +01:00
3 changed files with 27 additions and 15 deletions

3
.gitignore vendored
View file

@ -29,3 +29,6 @@ yarn-error.log
/.junie/guidelines.md /.junie/guidelines.md
/CLAUDE.md /CLAUDE.md
/.mcp.json /.mcp.json
/.ai
.DS_Store
/boost.json

View file

@ -1,15 +0,0 @@
{
"agents": [
"claude_code",
"copilot",
"cursor",
"phpstorm"
],
"editors": [
"claude_code",
"cursor",
"phpstorm",
"vscode"
],
"guidelines": []
}

View file

@ -368,6 +368,10 @@ new class extends Component {
<flux:menu.item icon="arrow-up-circle">Update Firmware</flux:menu.item> <flux:menu.item icon="arrow-up-circle">Update Firmware</flux:menu.item>
</flux:modal.trigger> </flux:modal.trigger>
<flux:menu.item icon="bars-3" href="{{ route('devices.logs', $device) }}" wire:navigate>Show Logs</flux:menu.item> <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:modal.trigger name="delete-device">
<flux:menu.item icon="trash" variant="danger">Delete Device</flux:menu.item> <flux:menu.item icon="trash" variant="danger">Delete Device</flux:menu.item>
</flux:modal.trigger> </flux:modal.trigger>
@ -498,6 +502,26 @@ new class extends Component {
</flux:modal> </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(!$device->mirror_device_id)
@if($current_image_path) @if($current_image_path)
<flux:separator class="mt-6 mb-6" text="Screen"/> <flux:separator class="mt-6 mb-6" text="Screen"/>