update loading status display

This commit is contained in:
oiov
2025-05-07 10:00:09 +08:00
parent 150bb2af7c
commit 49fece0983
12 changed files with 44 additions and 14 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ export default function DashboardRecordsLoading() {
return (
<>
<DashboardHeader heading="DNS Records" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
+2 -1
View File
@@ -5,7 +5,8 @@ export default function DashboardUrlsLoading() {
return (
<>
<DashboardHeader heading="Short Urls" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
+2 -1
View File
@@ -8,7 +8,8 @@ export default function OrdersLoading() {
heading="User Management"
text="List and manage all users."
/>
<Skeleton className="h-full w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
@@ -4,8 +4,12 @@ import { DashboardHeader } from "@/components/dashboard/header";
export default function DashboardRecordsLoading() {
return (
<>
<DashboardHeader heading="DNS Records" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<DashboardHeader
heading="Manage&nbsp;&nbsp;DNS&nbsp;&nbsp;Records"
text="List and manage records."
/>
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
+16 -2
View File
@@ -4,8 +4,22 @@ import { DashboardHeader } from "@/components/dashboard/header";
export default function DashboardRecordsLoading() {
return (
<>
<DashboardHeader heading="Scraping API" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<DashboardHeader
heading="Scraping&nbsp;&nbsp;API&nbsp;&nbsp;Overview"
text="Quickly extract valuable structured website data. It's free and unlimited to use!"
/>
<div className="flex flex-col gap-5">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3 lg:grid-cols-3">
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
</div>
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
</div>
<Skeleton className="h-[400px] w-full rounded-lg" />
</div>
</>
);
}
@@ -200,6 +200,7 @@ const LogsTable = ({ userId, target }) => {
total={Math.ceil(data.total / 20)}
currentPage={page}
setCurrentPage={setPage}
layout="right"
/>
)}
</div>
@@ -5,7 +5,8 @@ export default function DashboardRecordsLoading() {
return (
<>
<DashboardHeader heading="Scraping API" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
@@ -5,7 +5,8 @@ export default function DashboardRecordsLoading() {
return (
<>
<DashboardHeader heading="Scraping API" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
@@ -5,7 +5,8 @@ export default function DashboardRecordsLoading() {
return (
<>
<DashboardHeader heading="Scraping API" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
@@ -5,7 +5,8 @@ export default function DashboardRecordsLoading() {
return (
<>
<DashboardHeader heading="Scraping API" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
+6 -2
View File
@@ -4,8 +4,12 @@ import { DashboardHeader } from "@/components/dashboard/header";
export default function DashboardUrlsLoading() {
return (
<>
<DashboardHeader heading="Short Urls" text="" />
<Skeleton className="h-full w-full rounded-lg" />
<DashboardHeader
heading="Manage&nbsp;Short&nbsp;URLs"
text="List and manage short urls."
/>
<Skeleton className="h-32 w-full rounded-lg" />
<Skeleton className="h-[400px] w-full rounded-lg" />
</>
);
}
+1 -1
View File
File diff suppressed because one or more lines are too long