diff --git a/config.json b/config.json index 4bd7233..5b3f34f 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "id": "chatelet", - "version": "0.3.0", + "version": "0.1.0", "name": "Chatelet", "repo": "https://git.atitlan.io/aiolabs/chatelet", "short_description": "Nostr-native room rentals (Airbnb-style) for LNbits", diff --git a/models.py b/models.py index 6fd20a8..8a239e3 100644 --- a/models.py +++ b/models.py @@ -17,7 +17,6 @@ Design notes carried into the field definitions: arbiter of "is this range open" — Nostr events are requests, not locks. """ -import json from datetime import datetime, timezone from enum import Enum @@ -195,17 +194,6 @@ class Block(BaseModel): # --------------------------------------------------------------------------- -def public_room_dict(room: Room) -> dict: - """A Room as public JSON for guests — strips operator-private fields: the - wallet id, and the check-in instructions (address/gate code, delivered only - in the encrypted post-payment DM). Shared by the HTTP and Nostr-RPC guest - doors so neither can leak them.""" - d = json.loads(room.json()) - d.pop("wallet", None) - d.pop("checkin_instructions", None) - return d - - class AvailabilityQuery(BaseModel): room_id: str check_in: str # YYYY-MM-DD inclusive diff --git a/static/js/index.js b/static/js/index.js index e1867de..e586d16 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -1,247 +1,15 @@ -// Chatelet operator admin — LNbits page shell (Vue 3 + Quasar 2 UMD, no build). -// Gotchas honored: no self-closing tags in the template, `${ }` interpolation, -// `:style` bindings for typography. See workspace CLAUDE.md. - -const API = '/chatelet/api/v1' - +// Chatelet operator admin page — placeholder. +// Quasar 2 + Vue 3 as UMD globals (no build step). Remember: no +// self-closing tags in UMD templates, and use :style bindings (not