Skip to content

Commit

Permalink
Rename "nightlies" to "releases"
Browse files Browse the repository at this point in the history
  • Loading branch information
kjarosh authored and torokati44 committed Aug 5, 2024
1 parent 9c9a72b commit 7ccfe2b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/app/downloads/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import classes from "./downloads.module.css";
import React from "react";
import { ExtensionList } from "@/app/downloads/extensions";
import { NightlyList } from "@/app/downloads/nightlies";
import { ReleaseList } from "@/app/downloads/releases";
import Link from "next/link";
import {
desktopLinks,
Expand Down Expand Up @@ -106,7 +106,7 @@ export default async function Page() {
<WebDownload latest={latest} />
<DesktopDownload latest={latest} />

<NightlyList nightlies={nightlies} />
<ReleaseList releases={nightlies} />
</Stack>
</Container>
);
Expand Down
File renamed without changes.
22 changes: 9 additions & 13 deletions src/app/downloads/nightlies.tsx → src/app/downloads/releases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@mantine/core";
import React from "react";
import Link from "next/link";
import classes from "./nightlies.module.css";
import classes from "./releases.module.css";
import {
desktopLinks,
type DownloadLink,
Expand Down Expand Up @@ -51,7 +51,7 @@ function DownloadLink({
);
}

function NightlyRow(release: GithubRelease) {
function ReleaseRow(release: GithubRelease) {
// The nightly prefix is a bit superfluous here
const name = release.name.replace(/^Nightly /, "");
return (
Expand Down Expand Up @@ -86,7 +86,7 @@ function NightlyRow(release: GithubRelease) {
);
}

function NightlyCompactBox(release: GithubRelease) {
function ReleaseCompactBox(release: GithubRelease) {
return (
<>
<Link href={release.url} className={classes.nameAsHeader} target="_blank">
Expand Down Expand Up @@ -114,7 +114,7 @@ function NightlyCompactBox(release: GithubRelease) {
);
}

export function NightlyList({ nightlies }: { nightlies: GithubRelease[] }) {
export function ReleaseList({ releases }: { releases: GithubRelease[] }) {
return (
<Stack>
<Title id="nightly-releases">Nightly Releases</Title>
Expand All @@ -123,11 +123,7 @@ export function NightlyList({ nightlies }: { nightlies: GithubRelease[] }) {
latest Nightly release. These are automatically built every day
(approximately midnight UTC), unless there are no changes on that day.{" "}
Older nightly releases are available on{" "}
<Link
href={githubReleasesUrl}
className={classes.moreNightlies}
target="_blank"
>
<Link href={githubReleasesUrl} target="_blank">
GitHub
</Link>
.
Expand All @@ -148,16 +144,16 @@ export function NightlyList({ nightlies }: { nightlies: GithubRelease[] }) {
</TableTr>
</TableThead>
<TableTbody className={classes.body}>
{nightlies.map((nightly) => (
<NightlyRow key={nightly.id} {...nightly} />
{releases.map((release) => (
<ReleaseRow key={release.id} {...release} />
))}
</TableTbody>
</Table>

<Stack hiddenFrom="sm">
{/*Compact mobile view, because a table is far too wide*/}
{nightlies.map((nightly) => (
<NightlyCompactBox key={nightly.id} {...nightly} />
{releases.map((release) => (
<ReleaseCompactBox key={release.id} {...release} />
))}
</Stack>
</Stack>
Expand Down

0 comments on commit 7ccfe2b

Please sign in to comment.