mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 07:00:37 +02:00
An iPhone can't run Python or ssh, but the Frame can. The app (ios/, SwiftUI) connects with its own SSH key (Citadel), copies the server and helpers to ~/.cache/frame-control/<version> on the Frame once per version, starts ui/server.py there with FRAME_LOCAL=1 on the Frame's 127.0.0.1, and shows the page through an SSH tunnel. The server exits when the phone disconnects. Server: FRAME_LOCAL=1 puts ui/local-bin on PATH, whose ssh stand-in runs each `ssh frame COMMAND` locally (and serves as rsync's transport), so desktop and phone share one code path. Android display goes through podman exec there, as the Frame has no adb. FRAME_UI_KEY replaces the fixed X-Frame-UI value with a per-session key. Power actions take the Developer Mode password via sudo -S. --port 0 now prints the port it took. Page: a bottom tab bar and safe areas on phones, Play buttons visible on touch screens, saving through the share sheet, SSH/SFTP/Steam Link/remote desktop opening in their iOS apps, and a password dialog for power. App: pairing with the Developer Mode password once (never stored) or with a key the user adds; host key pinned on first use; plain-language connection errors with quiet retries; frame-control://install links; alerts and confirms. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
31 lines
1.4 KiB
XML
31 lines
1.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
|
|
<defs>
|
|
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|
<stop offset="0" stop-color="#1a9fff"/>
|
|
<stop offset="1" stop-color="#6f42c1"/>
|
|
</linearGradient>
|
|
<linearGradient id="visor" x1="0" y1="0" x2="0" y2="1">
|
|
<stop offset="0" stop-color="#ffffff"/>
|
|
<stop offset="1" stop-color="#dfe8f5"/>
|
|
</linearGradient>
|
|
<clipPath id="tile"><rect x="100" y="100" width="824" height="824" rx="185"/></clipPath>
|
|
<mask id="nose">
|
|
<rect width="1024" height="1024" fill="#fff"/>
|
|
<ellipse cx="512" cy="690" rx="78" ry="96" fill="#000"/>
|
|
</mask>
|
|
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
|
|
<feDropShadow dx="0" dy="18" stdDeviation="22" flood-color="#0b1020" flood-opacity=".35"/>
|
|
</filter>
|
|
</defs>
|
|
<rect width="1024" height="1024" fill="url(#bg)"/>
|
|
<g transform="translate(512 512) scale(1.2427) translate(-512 -512)">
|
|
<g filter="url(#shadow)">
|
|
<rect x="222" y="350" width="580" height="320" rx="130" fill="url(#visor)" mask="url(#nose)"/>
|
|
</g>
|
|
<rect x="300" y="430" width="160" height="124" rx="50" fill="#13233a"/>
|
|
<rect x="564" y="430" width="160" height="124" rx="50" fill="#13233a"/>
|
|
<rect x="320" y="448" width="56" height="30" rx="15" fill="#66c0f4" opacity=".9"/>
|
|
<rect x="584" y="448" width="56" height="30" rx="15" fill="#66c0f4" opacity=".9"/>
|
|
</g>
|
|
</svg>
|