Add shareable multi-board links with paper UI and voice notes.
Boards use /b/<uid> with no invite password; restore renamable columns, recordings, and seeded locale notes, with first column locked.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
"""Create an extra Stork board (or use the public Start button).
|
||||
|
||||
Usage:
|
||||
STORK_URL=https://stork.levkin.ca \\
|
||||
STORK_BOARD_TITLE='Dan & Mira' \\
|
||||
.venv/bin/python scripts/create_board.py
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
import httpx
|
||||
|
||||
|
||||
def main() -> int:
|
||||
base = os.environ.get("STORK_URL", "http://127.0.0.1:8094").rstrip("/")
|
||||
title = os.environ.get("STORK_BOARD_TITLE", "").strip() or "Name board"
|
||||
with httpx.Client(base_url=base, timeout=30.0) as client:
|
||||
res = client.post("/api/boards", json={"title": title})
|
||||
res.raise_for_status()
|
||||
data = res.json()
|
||||
print(f"Board: {data['title']} ({data['id']})")
|
||||
print(f"Share URL: {data['url']}")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in New Issue
Block a user