Skip to content

Commit 0bf788e

Browse files
Chore: Add registry file for Atomic CRM
1 parent d8c131f commit 0bf788e

File tree

180 files changed

+3960
-592
lines changed

Some content is hidden

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

180 files changed

+3960
-592
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ dist/
3333
/lib/
3434
.env
3535
*storybook.log
36-
.claude
36+
.claude
37+
38+
# Shadcn Registry
39+
public/r/

demo/App.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import { CRM } from "@/atomic-crm/root/CRM";
2-
import { authProvider, dataProvider } from "@/atomic-crm/providers/fakerest";
1+
import { CRM } from "@/components/atomic-crm/root/CRM";
2+
import {
3+
authProvider,
4+
dataProvider,
5+
} from "@/components/atomic-crm/providers/fakerest";
36

47
const App = () => (
58
<CRM dataProvider={dataProvider} authProvider={authProvider} />

doc/src/content/docs/developers/customizing.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Developers can customize the Atomic CRM application to suit their business needs
1010
The entry point of the frontend application is the `src/App.tsx` file. By default, this file simply renders the `<CRM>` component, which is the root component of Atomic CRM.
1111

1212
```tsx
13-
import { CRM } from "@/atomic-crm/root/CRM";
13+
import { CRM } from "@/components/atomic-crm/root/CRM";
1414

1515
const App = () => <CRM />;
1616

@@ -22,7 +22,7 @@ export default App;
2222
For instance, the following code snippet shows how to customize the CRM application domain-specific data.
2323

2424
```tsx
25-
import { CRM } from "@/atomic-crm/root/CRM";
25+
import { CRM } from "@/components/atomic-crm/root/CRM";
2626

2727
const App = () => (
2828
<CRM
@@ -80,7 +80,7 @@ The only data sent to the telemetry server is the admin domain (e.g. “example.
8080
You can opt out of telemetry by simply adding `disableTelemetry` to the `<CRM>` component:
8181

8282
```tsx
83-
import { CRM } from "@/atomic-crm/root/CRM";
83+
import { CRM } from "@/components/atomic-crm/root/CRM";
8484

8585
const App = () => <CRM disableTelemetry />;
8686

doc/src/content/docs/developers/data-providers.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ If you want to set up the FakeRest data provider manually, you need to change th
3939

4040
```diff
4141
// in App.tsx
42-
import { CRM } from "@/atomic-crm/root/CRM";
43-
+import { authProvider, dataProvider } from "@/atomic-crm/providers/fakerest";
42+
import { CRM } from "@/components/atomic-crm/root/CRM";
43+
+import { authProvider, dataProvider } from "@/components/atomic-crm/providers/fakerest";
4444

4545
const App = () => (
4646
- <CRM />

doc/src/content/docs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If you need to reset the database, stop the Supabase instance with `npx supabase
8787
The entry point of the application is the `src/App.tsx` file. By default, this file simply renders the `<CRM>` component, which is the root component of Atomic CRM.
8888

8989
```tsx
90-
import { CRM } from "@/atomic-crm/root/CRM";
90+
import { CRM } from "@/components/atomic-crm/root/CRM";
9191

9292
const App = () => <CRM />;
9393

@@ -97,7 +97,7 @@ export default App;
9797
`<CRM>` accepts various props to customize the application domain and look and feel. For instance, the following code snippet shows how to customize the app title, the task types, and deal categories.
9898

9999
```tsx {5-7}
100-
import { CRM } from "@/atomic-crm/root/CRM";
100+
import { CRM } from "@/components/atomic-crm/root/CRM";
101101

102102
const App = () => (
103103
<CRM

makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,6 @@ doc-preview: doc-build
8585

8686
doc-deploy:
8787
@(cd doc && npx gh-pages -d dist -e doc -b gh-pages -m "Deploy docs" --remove doc)
88+
89+
registry-build: ## build the shadcn registry
90+
npm run registry:build

0 commit comments

Comments
 (0)