Skip to content

Commit 662e77d

Browse files
authored
refactor: update component commands to use new @8bitcn package format across various components (#339)
1 parent eb38c54 commit 662e77d

File tree

53 files changed

+134
-134
lines changed

Some content is hidden

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

53 files changed

+134
-134
lines changed

app/blocks/authentication/authentication.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export default function AuthenticationBlocks() {
1717

1818
<div className="flex flex-col md:flex-row items-center gap-2">
1919
<CopyCommandButton
20-
command="npx shadcn@latest add 8bit-login-form"
21-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-login-form.json`}
20+
command="pnpm dlx shadcn@latest add @8bitcn/login-form"
21+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/login-form"
2222
/>
2323
<OpenInV0Button name="8bit-login-form" className="w-fit" />
2424
</div>
@@ -35,8 +35,8 @@ export default function AuthenticationBlocks() {
3535

3636
<div className="flex flex-col md:flex-row items-center gap-2">
3737
<CopyCommandButton
38-
command="npx shadcn@latest add 8bit-login-page"
39-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-login-page.json`}
38+
command="pnpm dlx shadcn@latest add @8bitcn/login-page"
39+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/login-page"
4040
/>
4141
<OpenInV0Button name="8bit-login-page" className="w-fit" />
4242
</div>
@@ -55,8 +55,8 @@ export default function AuthenticationBlocks() {
5555

5656
<div className="flex flex-col md:flex-row items-center gap-2">
5757
<CopyCommandButton
58-
command="npx shadcn@latest add 8bit-login-form-2"
59-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-login-form-2.json`}
58+
command="pnpm dlx shadcn@latest add @8bitcn/login-form-2"
59+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/login-form-2"
6060
/>
6161
<OpenInV0Button name="8bit-login-form-2" className="w-fit" />
6262
</div>
@@ -74,8 +74,8 @@ export default function AuthenticationBlocks() {
7474

7575
<div className="flex flex-col md:flex-row items-center gap-2">
7676
<CopyCommandButton
77-
command="npx shadcn@latest add 8bit-login-form-with-image"
78-
copyCommand={`pnpm dlx shadcn@ canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-login-form-with-image.json`}
77+
command="pnpm dlx shadcn@latest add @8bitcn/login-form-with-image"
78+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/login-form-with-image"
7979
/>
8080
<OpenInV0Button
8181
name="8bit-login-form-with-image"

app/blocks/calendar/calendar.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export default function CalendarBlocks() {
2828

2929
<div className="flex flex-col md:flex-row items-center gap-2">
3030
<CopyCommandButton
31-
command="npx shadcn@latest add 8bit-calendar"
32-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-calendar.json`}
31+
command="pnpm dlx shadcn@latest add @8bitcn/calendar"
32+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/calendar"
3333
/>
3434
<OpenInV0Button name="8bit-calendar" className="w-fit" />
3535
</div>
@@ -46,8 +46,8 @@ export default function CalendarBlocks() {
4646

4747
<div className="flex flex-col md:flex-row items-center gap-2">
4848
<CopyCommandButton
49-
command="npx shadcn@latest add 8bit-calendar-range"
50-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-calendar-range.json`}
49+
command="pnpm dlx shadcn@latest add @8bitcn/calendar"
50+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/calendar"
5151
/>
5252
<OpenInV0Button name="8bit-calendar-range" className="w-fit" />
5353
</div>
@@ -66,8 +66,8 @@ export default function CalendarBlocks() {
6666

6767
<div className="flex flex-col md:flex-row items-center gap-2">
6868
<CopyCommandButton
69-
command="npx shadcn@latest add 8bit-login-form-2"
70-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-login-form-2.json`}
69+
command="pnpm dlx shadcn@latest add @8bitcn/calendar"
70+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/calendar"
7171
/>
7272
<OpenInV0Button name="8bit-calendar-single" className="w-fit" />
7373
</div>

app/blocks/charts/charts.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default function ChartsBlocks() {
2222

2323
<div className="flex flex-col md:flex-row items-center gap-2">
2424
<CopyCommandButton
25-
command="npx shadcn@latest add 8bit-chart"
26-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-chart.json`}
25+
command="pnpm dlx shadcn@latest add @8bitcn/chart"
26+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/chart"
2727
/>
2828
<OpenInV0Button name="8bit-chart" className="w-fit" />
2929
</div>
@@ -92,8 +92,8 @@ export default function ChartsBlocks() {
9292

9393
<div className="flex flex-col md:flex-row items-center gap-2">
9494
<CopyCommandButton
95-
command="npx shadcn@latest add 8bit-chart-bar"
96-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-chart-bar.json`}
95+
command="pnpm dlx shadcn@latest add @8bitcn/chart-bar"
96+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/chart-bar"
9797
/>
9898
<OpenInV0Button name="8bit-chart-bar" className="w-fit" />
9999
</div>
@@ -162,8 +162,8 @@ export default function ChartsBlocks() {
162162

163163
<div className="flex flex-col md:flex-row items-center gap-2">
164164
<CopyCommandButton
165-
command="npx shadcn@latest add 8bit-chart-area-step"
166-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-chart-area-step.json`}
165+
command="pnpm dlx shadcn@latest add @8bitcn/chart-area-step"
166+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/chart-area-step"
167167
/>
168168
<OpenInV0Button name="8bit-chart-area-step" className="w-fit" />
169169
</div>

app/blocks/gaming/gaming.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default function GamingBlocks() {
2222

2323
<div className="flex flex-col md:flex-row items-center gap-2">
2424
<CopyCommandButton
25-
command="npx shadcn@latest add 8bit-chapter-intro"
26-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-chapter-intro.json`}
25+
command="pnpm dlx shadcn@latest add @8bitcn/chapter-intro"
26+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/chapter-intro"
2727
/>
2828
<OpenInV0Button name="8bit-chapter-intro" className="w-fit" />
2929
</div>
@@ -46,8 +46,8 @@ export default function GamingBlocks() {
4646

4747
<div className="flex flex-col md:flex-row items-center gap-2">
4848
<CopyCommandButton
49-
command="npx shadcn@latest add 8bit-main-menu"
50-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-main-menu.json`}
49+
command="pnpm dlx shadcn@latest add @8bitcn/main-menu"
50+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/main-menu"
5151
/>
5252
<OpenInV0Button name="8bit-main-menu" className="w-fit" />
5353
</div>
@@ -64,8 +64,8 @@ export default function GamingBlocks() {
6464

6565
<div className="flex flex-col md:flex-row items-center gap-2">
6666
<CopyCommandButton
67-
command="npx shadcn@latest add 8bit-difficulty-select"
68-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-difficulty-select.json`}
67+
command="pnpm dlx shadcn@latest add @8bitcn/difficulty-select"
68+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/difficulty-select"
6969
/>
7070
<OpenInV0Button name="8bit-difficulty-select" className="w-fit" />
7171
</div>
@@ -80,8 +80,8 @@ export default function GamingBlocks() {
8080

8181
<div className="flex flex-col md:flex-row items-center gap-2">
8282
<CopyCommandButton
83-
command="npx shadcn@latest add 8bit-dialogue"
84-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-dialogue.json`}
83+
command="pnpm dlx shadcn@latest add @8bitcn/dialogue"
84+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/dialogue"
8585
/>
8686
<OpenInV0Button name="8bit-dialogue" className="w-fit" />
8787
</div>
@@ -113,8 +113,8 @@ export default function GamingBlocks() {
113113

114114
<div className="flex flex-col md:flex-row items-center gap-2">
115115
<CopyCommandButton
116-
command="npx shadcn@latest add 8bit-pause-menu"
117-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-pause-menu.json`}
116+
command="pnpm dlx shadcn@latest add @8bitcn/pause-menu"
117+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/pause-menu"
118118
/>
119119
<OpenInV0Button name="8bit-pause-menu" className="w-fit" />
120120
</div>
@@ -129,8 +129,8 @@ export default function GamingBlocks() {
129129

130130
<div className="flex flex-col md:flex-row items-center gap-2">
131131
<CopyCommandButton
132-
command="npx shadcn@latest add 8bit-game-over"
133-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-game-over.json`}
132+
command="pnpm dlx shadcn@latest add @8bitcn/game-over"
133+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/game-over"
134134
/>
135135
<OpenInV0Button name="8bit-game-over" className="w-fit" />
136136
</div>
@@ -147,8 +147,8 @@ export default function GamingBlocks() {
147147

148148
<div className="flex flex-col md:flex-row items-center gap-2">
149149
<CopyCommandButton
150-
command="npx shadcn@latest add 8bit-audio-settings"
151-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-audio-settings.json`}
150+
command="pnpm dlx shadcn@latest add @8bitcn/audio-settings"
151+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/audio-settings"
152152
/>
153153
<OpenInV0Button name="8bit-audio-settings" className="w-fit" />
154154
</div>
@@ -163,8 +163,8 @@ export default function GamingBlocks() {
163163

164164
<div className="flex flex-col md:flex-row items-center gap-2">
165165
<CopyCommandButton
166-
command="npx shadcn@latest add 8bit-health-bar"
167-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-health-bar.json`}
166+
command="pnpm dlx shadcn@latest add @8bitcn/health-bar"
167+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/health-bar"
168168
/>
169169
<OpenInV0Button name="8bit-health-bar" className="w-fit" />
170170
</div>
@@ -189,8 +189,8 @@ export default function GamingBlocks() {
189189

190190
<div className="flex flex-col md:flex-row items-center gap-2">
191191
<CopyCommandButton
192-
command="npx shadcn@latest add 8bit-mana-bar"
193-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-mana-bar.json`}
192+
command="pnpm dlx shadcn@latest add @8bitcn/mana-bar"
193+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/mana-bar"
194194
/>
195195
<OpenInV0Button name="8bit-mana-bar" className="w-fit" />
196196
</div>

app/docs/components/accordion/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default function AccordionPage() {
2929
<div className="flex flex-col md:flex-row items-center justify-between gap-2">
3030
<h1 className="text-3xl font-bold">Accordion</h1>
3131
<CopyCommandButton
32-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-accordion.json`}
33-
command={"pnpm dlx shadcn@canary add 8bit-accordion"}
32+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/accordion"
33+
command="pnpm dlx shadcn@latest add @8bitcn/accordion"
3434
/>
3535
</div>
3636

app/docs/components/alert-dialog/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export default function AlertDialogPage() {
3535
<div className="flex flex-col md:flex-row items-center justify-between gap-2">
3636
<h1 className="text-3xl font-bold">Alert Dialog</h1>
3737
<CopyCommandButton
38-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-alert-dialog.json`}
39-
command={"pnpm dlx shadcn@canary add 8bit-alert-dialog"}
38+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/alert-dialog"
39+
command="pnpm dlx shadcn@latest add @8bitcn/alert-dialog"
4040
/>
4141
</div>
4242

app/docs/components/alert/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export default function AlertPage() {
2828
<div className="flex flex-col md:flex-row items-center justify-between gap-2">
2929
<h1 className="text-3xl font-bold">Alert</h1>
3030
<CopyCommandButton
31-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-alert.json`}
32-
command={"pnpm dlx shadcn@canary add 8bit-alert"}
31+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/alert"
32+
command="pnpm dlx shadcn@latest add @8bitcn/alert"
3333
/>
3434
</div>
3535

app/docs/components/avatar/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export default function AvatarPage() {
2828
<div className="flex flex-col md:flex-row items-center justify-between gap-2">
2929
<h1 className="text-3xl font-bold">Avatar</h1>
3030
<CopyCommandButton
31-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-avatar.json`}
32-
command={"pnpm dlx shadcn@canary add 8bit-avatar"}
31+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/avatar"
32+
command="pnpm dlx shadcn@latest add @8bitcn/avatar"
3333
/>
3434
</div>
3535

app/docs/components/badge/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default function BadgePage() {
2424
<div className="flex flex-col md:flex-row items-center justify-between gap-2">
2525
<h1 className="text-3xl font-bold">Badge</h1>
2626
<CopyCommandButton
27-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-badge.json`}
28-
command={"pnpm dlx shadcn@canary add 8bit-badge"}
27+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/badge"
28+
command="pnpm dlx shadcn@latest add @8bitcn/badge"
2929
/>
3030
</div>
3131

app/docs/components/breadcrumb/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export default function BreadcrumbPageNext() {
114114
<div className="flex flex-col md:flex-row items-center justify-between gap-2">
115115
<h1 className="text-3xl font-bold">Breadcrumb</h1>
116116
<CopyCommandButton
117-
copyCommand={`pnpm dlx shadcn@canary add ${process.env.NEXT_PUBLIC_BASE_URL}/r/8bit-breadcrumb.json`}
118-
command={"pnpm dlx shadcn@canary add 8bit-breadcrumb"}
117+
copyCommand="pnpm dlx shadcn@latest add @8bitcn/breadcrumb"
118+
command="pnpm dlx shadcn@latest add @8bitcn/breadcrumb"
119119
/>
120120
</div>
121121

0 commit comments

Comments
 (0)