Skip to content

Commit 48f6869

Browse files
authored
Merge pull request #442 from Merit-Systems/rfs/components-regsitry
Component registry integration
2 parents c49cd1d + 0040ba5 commit 48f6869

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

packages/sdk/component-registry/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const geistMono = Geist_Mono({
1515
});
1616

1717
export const metadata: Metadata = {
18-
title: 'Create Next App',
19-
description: 'Generated by create next app',
18+
title: 'Echo Components',
19+
description: 'Echo Components Registry',
2020
};
2121

2222
export default function RootLayout({

packages/sdk/component-registry/components/package-manager-tabs.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,28 @@ import { Button } from '@/registry/echo/ui/echo-button';
44
import { useState } from 'react';
55
import { CopyCommand } from './copy-command';
66

7-
const REGISTRY_HOMEPAGE =
8-
process.env.NEXT_PUBLIC_VERCEL_URL || 'http://localhost:3000';
7+
const REGISTRY_HOMEPAGE = 'https://www.echo-components.com/';
98

109
const PACKAGE_MANAGERS = [
1110
{
1211
id: 'pnpm',
1312
label: 'pnpm',
14-
command: `pnpm dlx shadcn@latest add https://${REGISTRY_HOMEPAGE}/`,
13+
command: `pnpm dlx shadcn@latest add ${REGISTRY_HOMEPAGE}/r/`,
1514
},
1615
{
1716
id: 'npm',
1817
label: 'npm',
19-
command: `npx shadcn@latest add https://${REGISTRY_HOMEPAGE}/`,
18+
command: `npx shadcn@latest add ${REGISTRY_HOMEPAGE}/r/`,
2019
},
2120
{
2221
id: 'yarn',
2322
label: 'yarn',
24-
command: `yarn dlx shadcn@latest add https://${REGISTRY_HOMEPAGE}/`,
23+
command: `yarn dlx shadcn@latest add ${REGISTRY_HOMEPAGE}/r/`,
2524
},
2625
{
2726
id: 'bun',
2827
label: 'bun',
29-
command: `bunx shadcn@latest add https://${REGISTRY_HOMEPAGE}/`,
28+
command: `bunx shadcn@latest add ${REGISTRY_HOMEPAGE}/r/`,
3029
},
3130
] as const;
3231

packages/sdk/component-registry/registry.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"title": "Echo Account (React)",
1010
"description": "React variant of Echo Account",
1111
"registryDependencies": ["popover", "skeleton", "avatar"],
12+
"dependencies": ["autonumeric"],
1213
"files": [
1314
{
1415
"path": "registry/echo/blocks/echo-account-button/echo-account-react.tsx",
@@ -61,6 +62,7 @@
6162
"title": "Echo Account (Next)",
6263
"description": "Next.js variant of Echo Account",
6364
"registryDependencies": ["popover", "skeleton", "avatar"],
65+
"dependencies": ["autonumeric"],
6466
"files": [
6567
{
6668
"path": "registry/echo/blocks/echo-account-button/echo-account-next.tsx",

0 commit comments

Comments
 (0)