Skip to content

Commit 1d090b5

Browse files
committed
fix: path name and naming
1 parent ce5e398 commit 1d090b5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

apps/site/app/[locale]/download/[...path]/page.tsx renamed to apps/site/app/[locale]/download/archive/[version]/page.tsx

File renamed without changes.

apps/site/components/Downloads/DownloadsTable/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { useTranslations } from 'next-intl';
22
import type { FC } from 'react';
33

44
import Link from '#site/components/Link';
5-
import type { NodeDownloadArtifact } from '#site/types';
5+
import type { DownloadArtifact } from '#site/types';
66
import { OperatingSystemLabel } from '#site/util/download';
77

88
type DownloadsTableProps = {
9-
source: Array<NodeDownloadArtifact>;
9+
source: Array<DownloadArtifact>;
1010
};
1111

1212
const DownloadsTable: FC<DownloadsTableProps> = ({ source }) => {

apps/site/types/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type DownloadDropdownItem<T extends string> = {
3131
compatibility: DownloadCompatibility;
3232
} & Omit<SelectValue<T>, 'label'>;
3333

34-
export type NodeDownloadArtifact = {
34+
export type DownloadArtifact = {
3535
file: string;
3636
kind: DownloadKind;
3737
os: OperatingSystem;

apps/site/util/download/archive.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import semVer from 'semver';
33
import type {
44
DownloadDropdownItem,
55
DownloadKind,
6-
NodeDownloadArtifact,
6+
DownloadArtifact,
77
OperatingSystem,
88
Platform,
99
} from '#site/types';
@@ -50,7 +50,7 @@ const getCompatibleArtifacts = ({
5050
exclude = [],
5151
version,
5252
kind = 'binary',
53-
}: CompatibleArtifactOptions): Array<NodeDownloadArtifact> => {
53+
}: CompatibleArtifactOptions): Array<DownloadArtifact> => {
5454
return Object.entries(platforms).flatMap(([os, items]) => {
5555
if (exclude.includes(os)) return [];
5656

0 commit comments

Comments
 (0)