-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
260 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Deploy Shadcn Registry | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_REGISTRY_PROJECT_ID }} | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- apps/registry/** | ||
|
||
jobs: | ||
Deploy-Production: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Setup node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
|
||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Pull Vercel Environment Information | ||
working-directory: apps/registry | ||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build Project Artifacts | ||
working-directory: apps/registry | ||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Deploy Project Artifacts to Vercel | ||
working-directory: apps/registry | ||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ out/ | |
# production | ||
build | ||
dist | ||
apps/docs/public/b/ | ||
apps/shadcn-registry/dist/ | ||
generated | ||
|
||
# turbo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "assistant-ui", | ||
"type": "registry:component", | ||
"registryDependencies": [], | ||
"tailwind": { | ||
"config": { | ||
"plugins": [ | ||
"require(\"tailwindcss-animate\")", | ||
"require(\"@assistant-ui/react/tailwindcss\")({ shadcn: true })" | ||
] | ||
} | ||
}, | ||
"dependencies": [ | ||
"tailwindcss-animate", | ||
"@assistant-ui/react" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "chat/quick-start", | ||
"type": "registry:block", | ||
"files": [ | ||
{ | ||
"content": "\"use client\";\n\nimport { useEdgeRuntime, Thread } from \"@assistant-ui/react\";\n\nexport const MyAssistant = () => {\n const runtime = useEdgeRuntime({\n api: \"/api/chat\",\n });\n\n return <Thread runtime={runtime} />;\n};\n", | ||
"type": "registry:component", | ||
"path": "components/assistant-ui/thread.tsx" | ||
} | ||
], | ||
"registryDependencies": [ | ||
"https://assistant-ui.com/r/assistant-ui", | ||
"https://assistant-ui.com/r/markdown", | ||
"https://assistant-ui.com/r/edge-backend" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "edge-backend", | ||
"type": "registry:block", | ||
"files": [ | ||
{ | ||
"content": "import { openai } from \"@ai-sdk/openai\";\nimport { getEdgeRuntimeResponse } from \"@assistant-ui/react/edge\";\n\nexport const maxDuration = 30;\n\nexport const POST = async (request: Request) => {\n const requestData = await request.json();\n\n return getEdgeRuntimeResponse({\n options: {\n model: openai(\"gpt-4o\"),\n },\n requestData,\n abortSignal: request.signal,\n });\n};\n", | ||
"type": "registry:page", | ||
"path": "routes/api/chat/route.ts" | ||
} | ||
], | ||
"registryDependencies": [ | ||
"https://assistant-ui.com/r/assistant-ui" | ||
], | ||
"dependencies": [ | ||
"@ai-sdk/openai" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "markdown", | ||
"type": "registry:component", | ||
"registryDependencies": [ | ||
"https://assistant-ui.com/r/assistant-ui" | ||
], | ||
"tailwind": { | ||
"config": { | ||
"plugins": [ | ||
"require(\"@assistant-ui/react-markdown/tailwindcss\")" | ||
] | ||
} | ||
}, | ||
"dependencies": [ | ||
"@assistant-ui/react-markdown" | ||
] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.vercel |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use client"; | ||
|
||
import { useEdgeRuntime, Thread } from "@assistant-ui/react"; | ||
import { makeMarkdownText } from "@assistant-ui/react-markdown"; | ||
|
||
const MarkdownText = makeMarkdownText(); | ||
|
||
export const MyAssistant = () => { | ||
const runtime = useEdgeRuntime({ | ||
api: "/api/chat", | ||
}); | ||
|
||
return ( | ||
<Thread | ||
runtime={runtime} | ||
assistantMessage={{ components: { Text: MarkdownText } }} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...shadcn-registry/scripts/build-registry.ts → apps/registry/scripts/build-registry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"rewrites": [ | ||
{ | ||
"source": "/:name", | ||
"destination": "/:name.json" | ||
} | ||
], | ||
"outputDirectory": "dist" | ||
} |
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/shadcn-registry/registry/components/assistant-ui/thread.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.