Add a website widget, so a page nobody modelled as a message can hang on a wall

A tile that draws whatever an address serves: no binding, no flow, just an
iframe. Only http(s) loads — a `javascript:` src would run in the app's own
origin, and a dashboard is a document several people can edit.
This commit is contained in:
2026-08-30 18:48:52 +02:00
parent 65c8cc1eb6
commit f10da9545d
6 changed files with 106 additions and 7 deletions
+17 -1
View File
@@ -539,7 +539,23 @@ export function WidgetPanel({
/>
</div>
{widget.type === "markdown" ? (
{widget.type === "embed" ? (
<div className="grid gap-1.5">
<Label className="text-sm font-normal" htmlFor="embed-url">
Address
</Label>
<Input
id="embed-url"
value={str(cfg.url)}
placeholder="https://embed.ventusky.com/?p=49.41;8.93;9"
onChange={(event) => set({ url: event.target.value })}
/>
<p className="text-xs text-muted-foreground">
Any page that allows being framed. Sites that refuse show their
own refusal in the tile.
</p>
</div>
) : widget.type === "markdown" ? (
<div className="grid gap-1.5">
<Label className="text-sm font-normal">Text</Label>
<Input