Skip to content

Commit 3efdf22

Browse files
authored
Merge pull request #104 from marmelab/shadcn
Replace react admin with shadcn admin kit
2 parents 7cea1a8 + a1756d7 commit 3efdf22

File tree

486 files changed

+34915
-32208
lines changed

Some content is hidden

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

486 files changed

+34915
-32208
lines changed

.eslintrc.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,47 @@ permissions:
1313
contents: write
1414

1515
jobs:
16-
deploy:
17-
name: 🚀 Deploy
16+
deploy-demo:
17+
name: 🚀 Deploy (demo)
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
21+
env:
22+
VITE_IS_DEMO: true
23+
VITE_INBOUND_EMAIL: ${{ vars.VITE_INBOUND_EMAIL }}
24+
PRODUCTION_REMOTE: https://git:${{ secrets.DEPLOY_TOKEN || secrets.GITHUB_TOKEN }}@github.com/${{ vars.DEMO_DEPLOY_REPOSITORY }}
25+
26+
steps:
27+
- name: 📥 Checkout repo
28+
uses: actions/checkout@v4
29+
30+
- name: ⚙️ Setup node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 22
34+
cache: npm
35+
36+
- name: ⚙️ Setup git
37+
run: |
38+
echo Deploying to pages to ${{ vars.DEMO_DEPLOY_REPOSITORY }}
39+
git remote set-url origin https://git:${{ secrets.DEPLOY_TOKEN || secrets.GITHUB_TOKEN }}@github.com/${{ vars.DEMO_DEPLOY_REPOSITORY }}
40+
git remote add production $PRODUCTION_REMOTE
41+
git config --global user.email [email protected]
42+
git config --global user.name github-actions-bot
43+
44+
- name: 📥 Download deps
45+
run: npm install
46+
47+
- name: 🔨 Build
48+
run: npm run build:demo
49+
50+
- name: 📡 Deploy GitHub pages
51+
run: npx gh-pages --remote production -d dist -b ${{ vars.DEPLOY_BRANCH || 'gh-pages' }}
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN || secrets.GITHUB_TOKEN }}
54+
55+
deploy-supabase:
56+
name: 🚀 Deploy (supabase)
1857
runs-on: ubuntu-latest
1958
timeout-minutes: 10
2059

@@ -27,7 +66,7 @@ jobs:
2766
IS_SUPABASE_CONFIGURED: ${{ secrets.SUPABASE_ACCESS_TOKEN && secrets.SUPABASE_DB_PASSWORD && secrets.SUPABASE_PROJECT_ID && secrets.SUPABASE_URL && secrets.SUPABASE_ANON_KEY }}
2867
VITE_IS_DEMO: ${{ vars.VITE_IS_DEMO }}
2968
VITE_INBOUND_EMAIL: ${{ vars.VITE_INBOUND_EMAIL }}
30-
PRODUCTION_REMOTE: https://git:${{ secrets.DEPLOY_TOKEN || secrets.GITHUB_TOKEN }}@github.com/${{ vars.DEPLOY_REPOSITORY || github.repository }}
69+
PRODUCTION_REMOTE: https://git:${{ secrets.DEPLOY_TOKEN || secrets.GITHUB_TOKEN }}@github.com/${{ vars.DEPLOY_REPOSITORY }}
3170
POSTMARK_WEBHOOK_USER: ${{secrets.POSTMARK_WEBHOOK_USER}}
3271
POSTMARK_WEBHOOK_PASSWORD: ${{secrets.POSTMARK_WEBHOOK_PASSWORD}}
3372
POSTMARK_WEBHOOK_AUTHORIZED_IPS: ${{secrets.POSTMARK_WEBHOOK_AUTHORIZED_IPS}}
@@ -39,13 +78,13 @@ jobs:
3978
- name: ⚙️ Setup node
4079
uses: actions/setup-node@v4
4180
with:
42-
node-version: 20
81+
node-version: 22
4382
cache: npm
4483

4584
- name: ⚙️ Setup git
4685
run: |
47-
echo Deploying to pages to $PRODUCTION_REMOTE
48-
git remote set-url origin https://git:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}
86+
echo Deploying to pages to ${{ vars.DEPLOY_REPOSITORY }}
87+
git remote set-url origin https://git:${{ secrets.DEPLOY_TOKEN || secrets.GITHUB_TOKEN }}@github.com/${{ vars.DEPLOY_REPOSITORY }}
4988
git remote add production $PRODUCTION_REMOTE
5089
git config --global user.email [email protected]
5190
git config --global user.name github-actions-bot
@@ -58,7 +97,7 @@ jobs:
5897

5998
- name: 🔨 Build
6099
run: npm run build
61-
100+
62101
- if: ${{ env.IS_SUPABASE_CONFIGURED }}
63102
name: 🔗 Supabase Link
64103
run: npx supabase link --project-ref $SUPABASE_PROJECT_ID

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

3+
# editors
4+
.idea/
5+
*.iml
6+
.vscode/
7+
38
# dependencies
49
/node_modules
510

@@ -25,6 +30,6 @@ supabase/.branches
2530
supabase/.temp
2631

2732
dist/
28-
lib/
33+
/lib/
2934
.env
30-
*storybook.log
35+
*storybook.log

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v22

.prettierrc.mjs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
export default {
2-
arrowParens: 'avoid',
3-
bracketSpacing: true,
4-
bracketSameLine: false,
5-
jsxSingleQuote: false,
6-
printWidth: 80,
7-
quoteProps: 'as-needed',
8-
rangeStart: 0,
9-
rangeEnd: Infinity,
10-
semi: true,
11-
singleQuote: true,
12-
tabWidth: 4,
13-
trailingComma: 'es5',
14-
useTabs: false,
15-
};
1+
export default {};

.storybook/main.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

.storybook/preview-head.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

.storybook/preview.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Atomic CRM
22

3-
A full-featured CRM built with React, react-admin, and Supabase.
3+
A full-featured CRM built with React, shadcn-admin-kit, and Supabase.
44

5-
https://user-images.githubusercontent.com/99944/116970434-4a926480-acb8-11eb-8ce2-0602c680e45e.mp4
5+
https://github.com/user-attachments/assets/0d7554b5-49ef-41c6-bcc9-a76214fc5c99
66

7-
Atomic CRM is free and open-source. You can test it online at https://marmelab.com/react-admin-crm.
7+
Atomic CRM is free and open-source. You can test it online at https://marmelab.com/atomic-crm-demo.
88

99
## Features
1010

@@ -24,7 +24,7 @@ Atomic CRM is free and open-source. You can test it online at https://marmelab.c
2424
To run this project locally, you will need the following tools installed on your computer:
2525

2626
- Make
27-
- Node 20 LTS
27+
- Node 22 LTS
2828
- Docker (required by Supabase)
2929

3030
Fork the [`marmelab/atomic-crm`](https://github.com/marmelab/atomic-crm) repository to your user/organization, then clone it locally:

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/index.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

0 commit comments

Comments
 (0)