perf(frontend): split admin bundles and tighten data fetching

Add next/dynamic lazy loading for database, logs, and settings heavy
modules; migrate access-logs and task-executions to React Query; parallelize
login auth-sources with public config; consolidate users table tooltips;
enable lazy image decoding; and replace barrel @/lib/services imports with
direct module paths.
This commit is contained in:
ryan
2026-06-17 12:12:47 +08:00
parent 9550fa6ff3
commit a44043262e
43 changed files with 752 additions and 695 deletions
@@ -292,6 +292,8 @@ export function FileList() {
<img
src={getFileUrl(file.id, "low") ?? undefined}
alt={file.file_name}
loading="lazy"
decoding="async"
className="size-full object-cover"
onError={(e) => {
;(e.currentTarget as HTMLImageElement).style.display = "none"
@@ -408,6 +410,8 @@ export function FileList() {
<img
src={getFileUrl(detailTarget.id, "low") ?? undefined}
alt={detailTarget.file_name}
loading="lazy"
decoding="async"
className="max-h-full max-w-full object-contain rounded-lg shadow-sm"
/>
) : (