plc_control/web/js
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
..
api.js feat(web): auto-toast on API errors with dismissible notifications 2026-03-24 13:43:57 +08:00
app.js feat(web): add unit and event management views 2026-03-24 10:56:57 +08:00
chart.js fix(chart): restore realtime updates and axes 2026-03-23 12:55:12 +08:00
docs.js refactor(app): split services and web modules 2026-03-23 11:31:38 +08:00
dom.js feat(web): add unit and event management views 2026-03-24 10:56:57 +08:00
equipment.js refactor(control): align point roles and equipment kind 2026-03-24 13:17:53 +08:00
events.js feat(event): stream created events over websocket 2026-03-24 12:28:12 +08:00
index.js refactor(web): split index html into flat fragments 2026-03-23 14:14:19 +08:00
logs.js feat(event): stream created events over websocket 2026-03-24 12:28:12 +08:00
points.js refactor(point): fold binding into edit action 2026-03-23 13:20:03 +08:00
roles.js refactor(control): align point roles and equipment kind 2026-03-24 13:17:53 +08:00
sources.js feat(web): reorganize equipment layout and point flows 2026-03-23 12:49:26 +08:00
state.js feat(web): add unit and event management views 2026-03-24 10:56:57 +08:00
units.js feat(web): add unit and event management views 2026-03-24 10:56:57 +08:00