page title
This commit is contained in:
parent
41f190d5bf
commit
3db4004354
3 changed files with 50 additions and 38 deletions
|
@ -38,8 +38,11 @@ const Page = ({ params }: { params: { slug: string } }) => {
|
||||||
}, [slug]);
|
}, [slug]);
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
document.title = "Mods Change Logs - SVRJS";
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<head>
|
||||||
|
<title>Mods Change Logs - SVRJS</title>
|
||||||
|
</head>
|
||||||
<section className="wrapper container py-24 md:py-28 gap-4 flex flex-col">
|
<section className="wrapper container py-24 md:py-28 gap-4 flex flex-col">
|
||||||
<div className="mb-3">
|
<div className="mb-3">
|
||||||
<Skeleton className="w-[400px] h-[50px] rounded-md" />
|
<Skeleton className="w-[400px] h-[50px] rounded-md" />
|
||||||
|
@ -51,6 +54,7 @@ const Page = ({ params }: { params: { slug: string } }) => {
|
||||||
<Skeleton className="w-[200px] h-[20px] rounded-md" />
|
<Skeleton className="w-[200px] h-[20px] rounded-md" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,11 @@ const LogsPage: React.FC = () => {
|
||||||
const reversedDownloads = [...downloads].reverse();
|
const reversedDownloads = [...downloads].reverse();
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
document.title = "Change Logs - SVRJS";
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<head>
|
||||||
|
<title>Change Logs - SVRJS</title>
|
||||||
|
</head>
|
||||||
<section className="wrapper container py-24 md:py-28 gap-4 flex flex-col">
|
<section className="wrapper container py-24 md:py-28 gap-4 flex flex-col">
|
||||||
<div className="mb-3">
|
<div className="mb-3">
|
||||||
<Skeleton className="w-[400px] h-[50px] rounded-md" />
|
<Skeleton className="w-[400px] h-[50px] rounded-md" />
|
||||||
|
@ -67,6 +70,7 @@ const LogsPage: React.FC = () => {
|
||||||
<Skeleton className="w-[200px] h-[20px] rounded-md" />
|
<Skeleton className="w-[200px] h-[20px] rounded-md" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ const Vulnerabilities = () => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data: Vulnerabilities[] = await response.json();
|
const data: Vulnerabilities[] = await response.json();
|
||||||
setDownloads(data);
|
setDownloads(data);
|
||||||
document.title = "Vulnerabilities - SVRJS";
|
return (document.title = "Vulnerabilities - SVRJS");
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ const Vulnerabilities = () => {
|
||||||
(mod) => mod.vulnerabilities && mod.vulnerabilities.trim() !== ""
|
(mod) => mod.vulnerabilities && mod.vulnerabilities.trim() !== ""
|
||||||
);
|
);
|
||||||
setMods(filteredMods);
|
setMods(filteredMods);
|
||||||
document.title = "Vulnerabilities - SVRJS";
|
return (document.title = "Vulnerabilities - SVRJS");
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
}
|
}
|
||||||
|
@ -86,8 +86,11 @@ const Vulnerabilities = () => {
|
||||||
const reversedMods = [...mods].reverse();
|
const reversedMods = [...mods].reverse();
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
document.title = "Vulnerabilities - SVRJS";
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<head>
|
||||||
|
<title>Vulnerabilities - SVRJS</title>
|
||||||
|
</head>
|
||||||
<section className="wrapper container py-24 md:py-28 gap-4 flex flex-col">
|
<section className="wrapper container py-24 md:py-28 gap-4 flex flex-col">
|
||||||
<div className="mb-3">
|
<div className="mb-3">
|
||||||
<Skeleton className="w-[400px] h-[50px] rounded-md" />
|
<Skeleton className="w-[400px] h-[50px] rounded-md" />
|
||||||
|
@ -99,6 +102,7 @@ const Vulnerabilities = () => {
|
||||||
<Skeleton className="w-[200px] h-[20px] rounded-md" />
|
<Skeleton className="w-[200px] h-[20px] rounded-md" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue