plc_control/web
caoqianming 49a4afa4a4 feat(web): auto-toast on API errors with dismissible notifications
Add showToast() utility in api.js and a matching toast stylesheet.
apiFetch now automatically shows a toast for any 400+ response before
re-throwing, so callers can still .catch() for additional handling.

Toasts stack at the bottom-right, auto-dismiss after 4s, and support
error/warning/success/info levels via a left-border colour accent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 13:43:57 +08:00
..
html refactor(control): align point roles and equipment kind 2026-03-24 13:17:53 +08:00
js feat(web): auto-toast on API errors with dismissible notifications 2026-03-24 13:43:57 +08:00
index.html refactor(web): split index html into flat fragments 2026-03-23 14:14:19 +08:00
styles.css feat(web): auto-toast on API errors with dismissible notifications 2026-03-24 13:43:57 +08:00