Skip to content

Commit 4f81512

Browse files
committed
commmit
1 parent f69b4f1 commit 4f81512

File tree

464 files changed

+23788
-3034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

464 files changed

+23788
-3034
lines changed

packages/benchmarks/_archived/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ ${reactGrabOutput}`,
5656

5757
await fs.writeFile(outputPath, JSON.stringify(results, null, 2));
5858

59-
for (let batchIndex = 0; batchIndex < allTests.length; batchIndex += BATCH_SIZE) {
59+
for (
60+
let batchIndex = 0;
61+
batchIndex < allTests.length;
62+
batchIndex += BATCH_SIZE
63+
) {
6064
const batch = allTests.slice(batchIndex, batchIndex + BATCH_SIZE);
6165

6266
const batchResults = await Promise.all(

packages/benchmarks/_archived/shadcn-dashboard/.oxlintrc.json

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"plugins": [
4-
"nextjs",
5-
"typescript"
6-
],
3+
"plugins": ["nextjs", "typescript"],
74
"categories": {
85
"correctness": "off"
96
},
107
"env": {
118
"builtin": true
129
},
13-
"ignorePatterns": [
14-
".next/**",
15-
"out/**",
16-
"build/**",
17-
"next-env.d.ts"
18-
],
10+
"ignorePatterns": [".next/**", "out/**", "build/**", "next-env.d.ts"],
1911
"rules": {
2012
"@next/next/google-font-display": "warn",
2113
"@next/next/google-font-preconnect": "warn",
@@ -61,9 +53,7 @@
6153
},
6254
"overrides": [
6355
{
64-
"files": [
65-
"**/*.{js,jsx,mjs,ts,tsx,mts,cts}"
66-
],
56+
"files": ["**/*.{js,jsx,mjs,ts,tsx,mts,cts}"],
6757
"rules": {
6858
"react/display-name": "error",
6959
"react/jsx-key": "error",
@@ -90,12 +80,8 @@
9080
"jsx-a11y/alt-text": [
9181
"warn",
9282
{
93-
"elements": [
94-
"img"
95-
],
96-
"img": [
97-
"Image"
98-
]
83+
"elements": ["img"],
84+
"img": ["Image"]
9985
}
10086
],
10187
"jsx-a11y/aria-props": "warn",
@@ -113,23 +99,14 @@
11399
"sampleRate": "readonly",
114100
"WorkletGlobalScope": "readonly"
115101
},
116-
"plugins": [
117-
"react",
118-
"import",
119-
"jsx-a11y"
120-
],
102+
"plugins": ["react", "import", "jsx-a11y"],
121103
"env": {
122104
"browser": true,
123105
"node": true
124106
}
125107
},
126108
{
127-
"files": [
128-
"**/*.ts",
129-
"**/*.tsx",
130-
"**/*.mts",
131-
"**/*.cts"
132-
],
109+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
133110
"rules": {
134111
"constructor-super": "off",
135112
"no-class-assign": "off",
@@ -151,4 +128,4 @@
151128
}
152129
}
153130
]
154-
}
131+
}

packages/benchmarks/_archived/shadcn-dashboard/app/dashboard/page.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import { AppSidebar } from "@/components/app-sidebar"
2-
import { ChartAreaInteractive } from "@/components/chart-area-interactive"
3-
import { DataTable } from "@/components/data-table"
4-
import { SectionCards } from "@/components/section-cards"
5-
import { SiteHeader } from "@/components/site-header"
6-
import {
7-
SidebarInset,
8-
SidebarProvider,
9-
} from "@/components/ui/sidebar"
1+
import { AppSidebar } from "@/components/app-sidebar";
2+
import { ChartAreaInteractive } from "@/components/chart-area-interactive";
3+
import { DataTable } from "@/components/data-table";
4+
import { SectionCards } from "@/components/section-cards";
5+
import { SiteHeader } from "@/components/site-header";
6+
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
107

11-
import data from "./data.json"
8+
import data from "./data.json";
129

1310
export default function Page() {
1411
return (
@@ -36,5 +33,5 @@ export default function Page() {
3633
</div>
3734
</SidebarInset>
3835
</SidebarProvider>
39-
)
36+
);
4037
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LoginForm } from "@/components/login-form"
1+
import { LoginForm } from "@/components/login-form";
22

33
export default function Page() {
44
return (
@@ -7,5 +7,5 @@ export default function Page() {
77
<LoginForm />
88
</div>
99
</div>
10-
)
10+
);
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { OTPForm } from "@/components/otp-form"
1+
import { OTPForm } from "@/components/otp-form";
22

33
export default function OTPPage() {
44
return (
@@ -7,5 +7,5 @@ export default function OTPPage() {
77
<OTPForm />
88
</div>
99
</div>
10-
)
10+
);
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SignupForm } from "@/components/signup-form"
1+
import { SignupForm } from "@/components/signup-form";
22

33
export default function Page() {
44
return (
@@ -7,5 +7,5 @@ export default function Page() {
77
<SignupForm />
88
</div>
99
</div>
10-
)
10+
);
1111
}

packages/benchmarks/_archived/shadcn-dashboard/components/app-sidebar.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"use client"
1+
"use client";
22

3-
import * as React from "react"
3+
import * as React from "react";
44
import {
55
IconCamera,
66
IconChartBar,
@@ -17,12 +17,12 @@ import {
1717
IconSearch,
1818
IconSettings,
1919
IconUsers,
20-
} from "@tabler/icons-react"
20+
} from "@tabler/icons-react";
2121

22-
import { NavDocuments } from "@/components/nav-documents"
23-
import { NavMain } from "@/components/nav-main"
24-
import { NavSecondary } from "@/components/nav-secondary"
25-
import { NavUser } from "@/components/nav-user"
22+
import { NavDocuments } from "@/components/nav-documents";
23+
import { NavMain } from "@/components/nav-main";
24+
import { NavSecondary } from "@/components/nav-secondary";
25+
import { NavUser } from "@/components/nav-user";
2626
import {
2727
Sidebar,
2828
SidebarContent,
@@ -31,7 +31,7 @@ import {
3131
SidebarMenu,
3232
SidebarMenuButton,
3333
SidebarMenuItem,
34-
} from "@/components/ui/sidebar"
34+
} from "@/components/ui/sidebar";
3535

3636
const data = {
3737
user: {
@@ -148,7 +148,7 @@ const data = {
148148
icon: IconFileWord,
149149
},
150150
],
151-
}
151+
};
152152

153153
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
154154
return (
@@ -177,5 +177,5 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
177177
<NavUser user={data.user} />
178178
</SidebarFooter>
179179
</Sidebar>
180-
)
180+
);
181181
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
"use client"
1+
"use client";
22

3-
import * as React from "react"
3+
import * as React from "react";
44

5-
import { Calendar } from "@/components/ui/calendar"
5+
import { Calendar } from "@/components/ui/calendar";
66

77
export default function Calendar01() {
88
const [date, setDate] = React.useState<Date | undefined>(
9-
new Date(2025, 5, 12)
10-
)
9+
new Date(2025, 5, 12),
10+
);
1111

1212
return (
1313
<Calendar
@@ -17,5 +17,5 @@ export default function Calendar01() {
1717
onSelect={setDate}
1818
className="rounded-lg border shadow-sm"
1919
/>
20-
)
20+
);
2121
}

packages/benchmarks/_archived/shadcn-dashboard/components/chart-area-interactive.tsx

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
1-
"use client"
1+
"use client";
22

3-
import * as React from "react"
4-
import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
3+
import * as React from "react";
4+
import { Area, AreaChart, CartesianGrid, XAxis } from "recharts";
55

6-
import { useIsMobile } from "@/hooks/use-mobile"
6+
import { useIsMobile } from "@/hooks/use-mobile";
77
import {
88
Card,
99
CardAction,
1010
CardContent,
1111
CardDescription,
1212
CardHeader,
1313
CardTitle,
14-
} from "@/components/ui/card"
14+
} from "@/components/ui/card";
1515
import {
1616
ChartConfig,
1717
ChartContainer,
1818
ChartTooltip,
1919
ChartTooltipContent,
20-
} from "@/components/ui/chart"
20+
} from "@/components/ui/chart";
2121
import {
2222
Select,
2323
SelectContent,
2424
SelectItem,
2525
SelectTrigger,
2626
SelectValue,
27-
} from "@/components/ui/select"
28-
import {
29-
ToggleGroup,
30-
ToggleGroupItem,
31-
} from "@/components/ui/toggle-group"
27+
} from "@/components/ui/select";
28+
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
3229

33-
export const description = "An interactive area chart"
30+
export const description = "An interactive area chart";
3431

3532
const chartData = [
3633
{ date: "2024-04-01", desktop: 222, mobile: 150 },
@@ -124,7 +121,7 @@ const chartData = [
124121
{ date: "2024-06-28", desktop: 149, mobile: 200 },
125122
{ date: "2024-06-29", desktop: 103, mobile: 160 },
126123
{ date: "2024-06-30", desktop: 446, mobile: 400 },
127-
]
124+
];
128125

129126
const chartConfig = {
130127
visitors: {
@@ -138,31 +135,31 @@ const chartConfig = {
138135
label: "Mobile",
139136
color: "var(--primary)",
140137
},
141-
} satisfies ChartConfig
138+
} satisfies ChartConfig;
142139

143140
export function ChartAreaInteractive() {
144-
const isMobile = useIsMobile()
145-
const [timeRange, setTimeRange] = React.useState("90d")
141+
const isMobile = useIsMobile();
142+
const [timeRange, setTimeRange] = React.useState("90d");
146143

147144
React.useEffect(() => {
148145
if (isMobile) {
149-
setTimeRange("7d")
146+
setTimeRange("7d");
150147
}
151-
}, [isMobile])
148+
}, [isMobile]);
152149

153150
const filteredData = chartData.filter((item) => {
154-
const date = new Date(item.date)
155-
const referenceDate = new Date("2024-06-30")
156-
let daysToSubtract = 90
151+
const date = new Date(item.date);
152+
const referenceDate = new Date("2024-06-30");
153+
let daysToSubtract = 90;
157154
if (timeRange === "30d") {
158-
daysToSubtract = 30
155+
daysToSubtract = 30;
159156
} else if (timeRange === "7d") {
160-
daysToSubtract = 7
157+
daysToSubtract = 7;
161158
}
162-
const startDate = new Date(referenceDate)
163-
startDate.setDate(startDate.getDate() - daysToSubtract)
164-
return date >= startDate
165-
})
159+
const startDate = new Date(referenceDate);
160+
startDate.setDate(startDate.getDate() - daysToSubtract);
161+
return date >= startDate;
162+
});
166163

167164
return (
168165
<Card className="@container/card">
@@ -248,11 +245,11 @@ export function ChartAreaInteractive() {
248245
tickMargin={8}
249246
minTickGap={32}
250247
tickFormatter={(value) => {
251-
const date = new Date(value)
248+
const date = new Date(value);
252249
return date.toLocaleDateString("en-US", {
253250
month: "short",
254251
day: "numeric",
255-
})
252+
});
256253
}}
257254
/>
258255
<ChartTooltip
@@ -263,7 +260,7 @@ export function ChartAreaInteractive() {
263260
return new Date(value).toLocaleDateString("en-US", {
264261
month: "short",
265262
day: "numeric",
266-
})
263+
});
267264
}}
268265
indicator="dot"
269266
/>
@@ -287,5 +284,5 @@ export function ChartAreaInteractive() {
287284
</ChartContainer>
288285
</CardContent>
289286
</Card>
290-
)
287+
);
291288
}

0 commit comments

Comments
 (0)