You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- Remove the Admin link from the top navigation bar; /admin remains reachable by direct URL but is no longer discoverable from normal browsing. - Rework /admin to an auth-first flow: on load the page shows only a password input and an Unlock button. On success, the admin controls (submission lock/unlock, auth code reset) are revealed; on failure a clear error message is shown and the page stays locked. Refreshing always resets to locked state (code is in component state only). - Add api::verify_admin_code() — calls POST /api/admin/reset-auth-code with new_code equal to the entered code, making the call idempotent on success (code unchanged) while still returning 403 on mismatch. - Fix pre-existing wasm build breakage in quote.rs: UpdateQuoteInput gained a hidden field in an earlier ticket but quote.rs was never updated. Added hidden: None to the struct literal. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
3 months ago | |
|---|---|---|
| .. | ||
| .claude | 3 months ago | |
| .nbd | 3 months ago | |
| api | 3 months ago | |
| docs | 3 months ago | |
| infra | 3 months ago | |
| src | 3 months ago | |
| tests | 3 months ago | |
| .env.example | 3 months ago | |
| .gitignore | 3 months ago | |
| CLAUDE.md | 3 months ago | |
| Cargo.lock | 3 months ago | |
| Cargo.toml | 3 months ago | |
| README.md | 3 months ago | |
| TODO.md | 3 months ago | |
| Trunk.toml | 3 months ago | |
| _redirects | 3 months ago | |
| build.rs | 3 months ago | |
| index.html | 3 months ago | |
README.md
quotesdb
A quotes web application — browse, submit, and manage memorable quotes.
What
quotesdb is a full-stack web application with:
- A JSON REST API (
apibinary) backed by Cloudflare Workers + D1 (SQLite) - A Yew/Wasm frontend (
uibinary) hosted on Cloudflare Pages - NanoID-identified quotes protected by a 4-word passphrase auth code
How
Single Cargo crate with two binaries sharing common types via src/lib.rs:
api: Axum on Tokio, targeting Cloudflare Workers via workers-rs, SQLx + D1ui: Yew compiled towasm32-unknown-unknownvia Trunk
Run
# Start API server (local dev)
cargo run
# Start UI dev server (requires wasm32 toolchain + trunk)
trunk serve
Test
cargo fmt && cargo check && cargo clippy && cargo test
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.
Disclaimer
This software was written with Claude Code (claude-sonnet-4-6).