events/static/js
Padreug 4c8e06a6a9 feat: add event approval workflow with admin UI
Non-admin event submissions now land in a "proposed" queue that LNbits
admins review before the event becomes ticketable and publicly listed.

- m008 adds events.events.status (proposed/approved/rejected); m010 seeds
  an events.settings singleton row with the auto_approve toggle.
- Models: Event/CreateEvent.status, EventsSettings, optional date fields
  with sensible defaults (closing_date defaults to event_end_date which
  defaults to event_start_date), PublicEvent.status surfaces the workflow
  state on the public endpoint.
- crud: get_all/public/pending_events for the admin views; get/update_settings
  for the auto_approve toggle; create_event auto-fills missing date defaults.
- views_api:
  * POST /api/v1/events accepts wallet invoice keys so anyone can submit;
    handler stamps status="proposed" for non-admins when auto_approve is off
  * /public, /all, /pending, /settings (GET+PUT), /{id}/{approve,reject},
    /{id}/tickets endpoints; literal-prefix routes declared before /{event_id}
    so FastAPI matches them correctly
  * Public GET /{event_id} bypasses sold-out / closing-window gates for
    proposed/rejected events and returns the trimmed PublicEvent so the SFC
    can render a "pending approval" banner
  * POST /tickets/{event_id} rejects when event.status != "approved"
- Frontend: index.vue gains an admin Settings card, Pending Approvals list,
  status badge column and approve/reject row actions, plus an All Users'
  Events admin table; index.js gains the data + methods + an isAdmin probe
  via GET /events/all; display.vue shows pending/rejected banners and
  hides the Buy Ticket form unless status === "approved".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 19:31:06 +02:00
..
display.js feat: make events dynamic (#43) 2026-05-04 17:01:53 +02:00
display.vue feat: add event approval workflow with admin UI 2026-05-05 19:31:06 +02:00
index.js feat: add event approval workflow with admin UI 2026-05-05 19:31:06 +02:00
index.vue feat: add event approval workflow with admin UI 2026-05-05 19:31:06 +02:00
register.js feat: register public page saves to localstorage (#48) 2026-05-05 10:45:14 +02:00
register.vue feat: register public page saves to localstorage (#48) 2026-05-05 10:45:14 +02:00
ticket.js feat: make events dynamic (#43) 2026-05-04 17:01:53 +02:00
ticket.vue feat: make events dynamic (#43) 2026-05-04 17:01:53 +02:00