remove conflicting docs pages, reverse order of downloads
This commit is contained in:
parent
685b8cb52a
commit
7c2d8ceba3
3 changed files with 51 additions and 55 deletions
|
@ -1,7 +1,9 @@
|
||||||
import React from "react";
|
import Sidebar from '@/components/shared/Sidebar';
|
||||||
|
|
||||||
const Docs = () => {
|
export default function Page() {
|
||||||
return <div>Docs</div>;
|
return (
|
||||||
};
|
<>
|
||||||
|
<Sidebar />
|
||||||
export default Docs;
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from '@/components/ui/button';
|
||||||
import {
|
import {
|
||||||
Table,
|
Table,
|
||||||
TableBody,
|
TableBody,
|
||||||
|
@ -8,38 +8,38 @@ import {
|
||||||
TableHead,
|
TableHead,
|
||||||
TableHeader,
|
TableHeader,
|
||||||
TableRow,
|
TableRow,
|
||||||
} from "@/components/ui/table";
|
} from '@/components/ui/table';
|
||||||
import { Download } from "lucide-react";
|
import { Download } from 'lucide-react';
|
||||||
import Link from "next/link";
|
import Link from 'next/link';
|
||||||
|
|
||||||
const downloads = [
|
const downloads = [
|
||||||
{
|
{
|
||||||
date: "2024-06-01",
|
date: '2024-06-01',
|
||||||
fileName: "SVRJS_v1.0.0.zip",
|
fileName: 'SVRJS_v1.0.0.zip',
|
||||||
version: "1.0.0",
|
version: '1.0.0',
|
||||||
fileSize: "15MB",
|
fileSize: '15MB',
|
||||||
downloadLink: "/downloads/SVRJS_v1.0.0.zip",
|
downloadLink: '/downloads/SVRJS_v1.0.0.zip',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
date: "2024-06-10",
|
date: '2024-06-10',
|
||||||
fileName: "SVRJS_v1.1.0.zip",
|
fileName: 'SVRJS_v1.1.0.zip',
|
||||||
version: "1.1.0",
|
version: '1.1.0',
|
||||||
fileSize: "18MB",
|
fileSize: '18MB',
|
||||||
downloadLink: "/downloads/SVRJS_v1.1.0.zip",
|
downloadLink: '/downloads/SVRJS_v1.1.0.zip',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
date: "2024-06-15",
|
date: '2024-06-15',
|
||||||
fileName: "SVRJS_v1.2.0.zip",
|
fileName: 'SVRJS_v1.2.0.zip',
|
||||||
version: "1.2.0",
|
version: '1.2.0',
|
||||||
fileSize: "20MB",
|
fileSize: '20MB',
|
||||||
downloadLink: "/downloads/SVRJS_v1.2.0.zip",
|
downloadLink: '/downloads/SVRJS_v1.2.0.zip',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
date: "2024-06-20",
|
date: '2024-06-20',
|
||||||
fileName: "SVRJS_v1.3.0.zip",
|
fileName: 'SVRJS_v1.3.0.zip',
|
||||||
version: "1.3.0",
|
version: '1.3.0',
|
||||||
fileSize: "22MB",
|
fileSize: '22MB',
|
||||||
downloadLink: "/downloads/SVRJS_v1.3.0.zip",
|
downloadLink: '/downloads/SVRJS_v1.3.0.zip',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -67,7 +67,10 @@ const DownloadPage = () => {
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{downloads.map((download) => (
|
{downloads
|
||||||
|
.slice()
|
||||||
|
.reverse()
|
||||||
|
.map((download) => (
|
||||||
<TableRow key={download.fileName}>
|
<TableRow key={download.fileName}>
|
||||||
<TableCell className="font-medium">{download.date}</TableCell>
|
<TableCell className="font-medium">{download.date}</TableCell>
|
||||||
<TableCell>{download.fileName}</TableCell>
|
<TableCell>{download.fileName}</TableCell>
|
||||||
|
@ -75,7 +78,7 @@ const DownloadPage = () => {
|
||||||
<TableCell className="text-left">{download.fileSize}</TableCell>
|
<TableCell className="text-left">{download.fileSize}</TableCell>
|
||||||
<TableCell className="flex items-center justify-end">
|
<TableCell className="flex items-center justify-end">
|
||||||
<Link href={download.downloadLink}>
|
<Link href={download.downloadLink}>
|
||||||
<Button variant={"ghost"} className="">
|
<Button variant={'ghost'} className="">
|
||||||
<Download className="w-4 h-4 mr-2" />
|
<Download className="w-4 h-4 mr-2" />
|
||||||
Download
|
Download
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
import Sidebar from '@/components/shared/Sidebar';
|
|
||||||
|
|
||||||
export default function Page() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<Sidebar />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in a new issue