Milestone 5: canvas for access
The hub now serves a React canvas (web/, embedded at build time): grant by dragging a vault onto a person, revoke by pulling a ribbon until it snaps with an 8 s Undo the hub honours before anything reaches devices, invites (including vaults dropped on invitees), device rename and removal, Float/Dock, and panels with a button for every gesture. Sign-in without passwords (SPEC §8): `lunesync open` one-time link or a pairing code typed on the hub; 30-day HttpOnly session cookie plus an X-Lune header on every canvas request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
13
hub/build.rs
Normal file
13
hub/build.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
// The canvas is built from web/ (npm run build) and embedded. Without a build, embed a page that says so.
|
||||
fn main() {
|
||||
let dist = std::path::Path::new("../web/dist");
|
||||
if !dist.join("index.html").exists() {
|
||||
std::fs::create_dir_all(dist).unwrap();
|
||||
std::fs::write(
|
||||
dist.join("index.html"),
|
||||
"<!doctype html><title>Lune</title><p>The canvas isn't built yet: run <code>npm run build</code> in <code>web/</code>, then rebuild the hub.</p>",
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
println!("cargo:rerun-if-changed=../web/dist");
|
||||
}
|
||||
Reference in New Issue
Block a user