Skip to content

Commit 4e0db76

Browse files
committed
rename standardJsonSchemaProps to jsonSourceProps for clarity
1 parent b1c00fa commit 4e0db76

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

website/src/routes/_benchmarks/json-schema/_conversion/-constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export const jsonSchemaDirectionProps = {
3333
},
3434
} satisfies Pick<PageFilterChipsProps<JsonSchemaDirection>, "title" | "labels" | "options">;
3535

36-
/** How the library supports the Standard JSON Schema interface. */
37-
export const standardJsonSchemaProps = {
36+
/** How the library supports JSON schema */
37+
export const jsonSourceProps = {
3838
title: "Standard JSON Schema",
3939
options: jsonSourceSchema.options,
4040
labels: {

website/src/routes/_benchmarks/json-schema/_conversion/to-json/-components/matrix/card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getPkgUrl } from "#src/routes/_benchmarks/-query.ts";
66
import {
77
jsonSchemaDirectionProps,
88
jsonSchemaTargetProps,
9-
standardJsonSchemaProps,
9+
jsonSourceProps,
1010
} from "#src/routes/_benchmarks/json-schema/_conversion/-constants";
1111
import { List, ListItem, ListItemContent } from "#src/shared/components/list";
1212
import { useNpmSite } from "#src/shared/components/prefs/context.tsx";
@@ -51,7 +51,7 @@ export function SupportMatrixCard({
5151
<dt>Source</dt>
5252
<dd>
5353
{typeof source === "string" ? (
54-
standardJsonSchemaProps.labels[source].label
54+
jsonSourceProps.labels[source].label
5555
) : (
5656
<a
5757
{...trackedLinkProps(getPkgUrl(source.package, npmSite))}
@@ -68,7 +68,7 @@ export function SupportMatrixCard({
6868
<dt>Standard JSON Schema</dt>
6969
<dd>
7070
{typeof standardJsonSchema === "string" ? (
71-
standardJsonSchemaProps.labels[standardJsonSchema].label
71+
jsonSourceProps.labels[standardJsonSchema].label
7272
) : (
7373
<a
7474
{...trackedLinkProps(getPkgUrl(standardJsonSchema.package, npmSite))}

website/src/routes/_benchmarks/json-schema/_conversion/to-json/-components/matrix/table.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
jsonSchemaDirectionProps,
77
jsonSchemaTargetProps,
88
} from "#src/routes/_benchmarks/json-schema/_conversion/-constants";
9-
import { standardJsonSchemaProps } from "#src/routes/_benchmarks/json-schema/_conversion/-constants";
9+
import { jsonSourceProps } from "#src/routes/_benchmarks/json-schema/_conversion/-constants";
1010
import { PackageSource } from "#src/routes/_benchmarks/json-schema/_conversion/to-json/-components/matrix/source.tsx";
1111

1212
import { MatrixCheckbox } from "./checkbox";
@@ -66,13 +66,12 @@ export function MatrixTable({ matrix }: MatrixTableProps) {
6666
<td>
6767
<code className="language-text">{version}</code>
6868
</td>
69-
<td>{standardJsonSchemaProps.labels[sourceType].label}</td>
69+
<td>{jsonSourceProps.labels[sourceType].label}</td>
7070
<td className="action">
7171
{typeof source === "object" && <PackageSource package={source.package} />}
7272
</td>
7373
<td>
74-
{!!standardJsonSchemaType &&
75-
standardJsonSchemaProps.labels[standardJsonSchemaType].label}
74+
{!!standardJsonSchemaType && jsonSourceProps.labels[standardJsonSchemaType].label}
7675
</td>
7776
<td className="action">
7877
{typeof standardJsonSchema === "object" && (

website/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { minifyTypeProps } from "#src/routes/_benchmarks/download/-constants";
2424
import { speedPresets } from "#src/routes/_benchmarks/download/-speed";
2525
import {
2626
jsonSchemaDirectionProps,
27-
standardJsonSchemaProps,
27+
jsonSourceProps,
2828
jsonSchemaTargetProps,
2929
} from "#src/routes/_benchmarks/json-schema/_conversion/-constants";
3030
import { admonitionDefaults } from "#src/shared/components/admonition/constants";
@@ -86,7 +86,7 @@ const config = defineConfig({
8686
stringFormatProps,
8787
jsonSchemaTargetProps,
8888
jsonSchemaDirectionProps,
89-
standardJsonSchemaProps,
89+
jsonSourceProps,
9090
].flatMap((props) => Object.values(props.labels).map((label) => label.icon)),
9191
...[speedPresets, admonitionDefaults, themeLabels, styleLabels].flatMap((map) =>
9292
Object.values(map).map((value) => value.icon),

0 commit comments

Comments
 (0)