Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Aug 12, 2023
1 parent 3c9f7ca commit 737b65f
Show file tree
Hide file tree
Showing 96 changed files with 190 additions and 190 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "shadcn/ui" }],
"changelog": ["@changesets/changelog-github", { "repo": "luxdefi/ui" }],
"commit": false,
"fixed": [],
"linked": [],
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prerelease-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
comment:
if: |
github.repository_owner == 'shadcn-ui' &&
github.repository_owner == 'luxdefi-ui' &&
${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
name: Write comment to the PR
Expand All @@ -28,7 +28,7 @@ jobs:
for (const artifact of allArtifacts.data.artifacts) {
// Extract the PR number and package version from the artifact name
const match = /^npm-package-shadcn-ui@(.*?)-pr-(\d+)/.exec(artifact.name);
const match = /^npm-package-luxdefi-ui@(.*?)-pr-(\d+)/.exec(artifact.name);
if (match) {
require("fs").appendFileSync(
Expand All @@ -49,7 +49,7 @@ jobs:
A new prerelease is available for testing:
```sh
npx shadcn-ui@${{ env.BETA_PACKAGE_VERSION }}
npx luxdefi-ui@${{ env.BETA_PACKAGE_VERSION }}
```
- name: "Remove the autorelease label once published"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
prerelease:
if: |
github.repository_owner == 'shadcn-ui' &&
github.repository_owner == 'luxdefi' &&
contains(github.event.pull_request.labels.*.name, '🚀 autorelease')
name: Build & Publish a beta release to NPM
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,5 +56,5 @@ jobs:
- name: Upload packaged artifact
uses: actions/upload-artifact@v2
with:
name: npm-package-shadcn-ui@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name
name: npm-package-luxdefi-ui@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name
path: packages/cli/dist/index.js
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
release:
if: ${{ github.repository_owner == 'shadcn-ui' }}
if: ${{ github.repository_owner == 'luxdefi-ui' }}
name: Create a PR for release workflow
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 shadcn
Copyright (c) 2023 Lux Partners Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# shadcn/ui
# @luxdefi/ui

Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. **Use this to build your own component library**.
Accessible and customizable components that you can copy and paste into your DeFi apps.

![hero](apps/www/public/og.jpg)

## Documentation

Visit http://ui.shadcn.com/docs to view the documentation.
Visit http://ui.lux.finance to view the documentation.

## License

Licensed under the [MIT license](https://github.com/shadcn/ui/blob/main/LICENSE.md).
Licensed under the [MIT license](https://github.com/luxdefi/ui/blob/main/LICENSE.md).
2 changes: 1 addition & 1 deletion apps/www/__registry__/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
> Files inside this directory is autogenerated by `./scripts/build-registry.ts`. **Do not edit them manually.** - shadcn
> Files inside this directory is autogenerated by `./scripts/build-registry.ts`. **Do not edit them manually.** - luxdefi
2 changes: 1 addition & 1 deletion apps/www/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function generateMetadata({
title: doc.title,
description: doc.description,
images: [siteConfig.ogImage],
creator: "@shadcn",
creator: "@luxdefi",
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/www/app/examples/cards/components/github-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function DemoGithub() {
<Card>
<CardHeader className="grid grid-cols-[1fr_110px] items-start gap-4 space-y-0">
<div className="space-y-1">
<CardTitle>shadcn/ui</CardTitle>
<CardTitle>luxdefi/ui</CardTitle>
<CardDescription>
Beautifully designed components built with Radix UI and Tailwind
CSS.
Expand Down
4 changes: 2 additions & 2 deletions apps/www/app/examples/dashboard/components/user-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export function UserNav() {
<DropdownMenuTrigger asChild>
<Button variant="ghost" className="relative h-8 w-8 rounded-full">
<Avatar className="h-8 w-8">
<AvatarImage src="/avatars/01.png" alt="@shadcn" />
<AvatarImage src="/avatars/01.png" alt="@luxdefi" />
<AvatarFallback>SC</AvatarFallback>
</Avatar>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end" forceMount>
<DropdownMenuLabel className="font-normal">
<div className="flex flex-col space-y-1">
<p className="text-sm font-medium leading-none">shadcn</p>
<p className="text-sm font-medium leading-none">luxdefi</p>
<p className="text-xs leading-none text-muted-foreground">
[email protected]
</p>
Expand Down
6 changes: 3 additions & 3 deletions apps/www/app/examples/forms/profile-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ type ProfileFormValues = z.infer<typeof profileFormSchema>
const defaultValues: Partial<ProfileFormValues> = {
bio: "I own a computer.",
urls: [
{ value: "https://shadcn.com" },
{ value: "http://twitter.com/shadcn" },
{ value: "https://luxdefi.com" },
{ value: "http://twitter.com/luxdefi" },
],
}

Expand Down Expand Up @@ -95,7 +95,7 @@ export function ProfileForm() {
<FormItem>
<FormLabel>Username</FormLabel>
<FormControl>
<Input placeholder="shadcn" {...field} />
<Input placeholder="luxdefi" {...field} />
</FormControl>
<FormDescription>
This is your public display name. It can be your real name or a
Expand Down
4 changes: 2 additions & 2 deletions apps/www/app/examples/tasks/components/user-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export function UserNav() {
<DropdownMenuTrigger asChild>
<Button variant="ghost" className="relative h-8 w-8 rounded-full">
<Avatar className="h-9 w-9">
<AvatarImage src="/avatars/03.png" alt="@shadcn" />
<AvatarImage src="/avatars/03.png" alt="@luxdefi" />
<AvatarFallback>SC</AvatarFallback>
</Avatar>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end" forceMount>
<DropdownMenuLabel className="font-normal">
<div className="flex flex-col space-y-1">
<p className="text-sm font-medium leading-none">shadcn</p>
<p className="text-sm font-medium leading-none">luxdefi</p>
<p className="text-xs leading-none text-muted-foreground">
[email protected]
</p>
Expand Down
8 changes: 4 additions & 4 deletions apps/www/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export const metadata: Metadata = {
],
authors: [
{
name: "shadcn",
url: "https://shadcn.com",
name: "luxdefi",
url: "https://luxdefi.com",
},
],
creator: "shadcn",
creator: "luxdefi",
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "white" },
{ media: "(prefers-color-scheme: dark)", color: "black" },
Expand All @@ -58,7 +58,7 @@ export const metadata: Metadata = {
title: siteConfig.name,
description: siteConfig.description,
images: [siteConfig.ogImage],
creator: "@shadcn",
creator: "@luxdefi",
},
icons: {
icon: "/favicon.ico",
Expand Down
14 changes: 7 additions & 7 deletions apps/www/components/examples-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@ const examples = [
{
name: "Dashboard",
href: "/examples/dashboard",
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/dashboard",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/dashboard",
},
{
name: "Cards",
href: "/examples/cards",
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/cards",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/cards",
},
{
name: "Tasks",
href: "/examples/tasks",
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/tasks",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/tasks",
},
{
name: "Playground",
href: "/examples/playground",
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/playground",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/playground",
},
{
name: "Forms",
href: "/examples/forms",
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/forms",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/forms",
},
{
name: "Music",
href: "/examples/music",
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/music",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/music",
},
{
name: "Authentication",
href: "/examples/authentication",
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/authentication",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/authentication",
},
]

Expand Down
2 changes: 1 addition & 1 deletion apps/www/components/promo-video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function PromoVideo() {
>
<video autoPlay muted playsInline>
<source
src="https://ui-shadcn.s3.amazonaws.com/ui-promo-hd.mp4"
src="https://"
type="video/mp4"
/>
</video>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/components/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function SiteFooter() {
rel="noreferrer"
className="font-medium underline underline-offset-4"
>
shadcn
luxdefi
</a>
. The source code is available on{" "}
<a
Expand Down
4 changes: 2 additions & 2 deletions apps/www/config/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export const docsConfig: DocsConfig = {
},
{
title: "GitHub",
href: "https://github.com/shadcn/ui",
href: "https://github.com/luxdefi/ui",
external: true,
},
{
title: "Twitter",
href: "https://twitter.com/shadcn",
href: "https://twitter.com/luxdefi",
external: true,
},
],
Expand Down
10 changes: 5 additions & 5 deletions apps/www/config/site.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export const siteConfig = {
name: "shadcn/ui",
url: "https://ui.shadcn.com",
ogImage: "https://ui.shadcn.com/og.jpg",
name: "luxdefi/ui",
url: "https://ui.luxdefi.com",
ogImage: "https://ui.luxdefi.com/og.jpg",
description:
"Beautifully designed components built with Radix UI and Tailwind CSS.",
links: {
twitter: "https://twitter.com/shadcn",
github: "https://github.com/shadcn/ui",
twitter: "https://twitter.com/luxdefi",
github: "https://github.com/luxdefi/ui",
},
}

Expand Down
4 changes: 2 additions & 2 deletions apps/www/content/docs/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Powered by amazing open source projects.

## About

[ui.shadcn.com](https://ui.shadcn.com) is a project by [shadcn](https://shadcn.com).
[ui.luxdefi.com](https://ui.luxdefi.com) is a project by [luxdefi](https://luxdefi.com).

## Credits

Expand All @@ -17,4 +17,4 @@ description: Powered by amazing open source projects.

## License

MIT © [shadcn](https://shadcn.com)
MIT © [luxdefi](https://luxdefi.com)
10 changes: 5 additions & 5 deletions apps/www/content/docs/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ I've been working on a new CLI for the past few weeks. It's a complete rewrite.
### `init`

```bash
npx shadcn-ui@latest init
npx luxdefi-ui@latest init
```

When you run the `init` command, you will be asked a few questions to configure `components.json`:
Expand Down Expand Up @@ -110,7 +110,7 @@ This means you can now use the CLI with any directory structure including `src`
### `add`

```bash
npx shadcn-ui@latest add
npx luxdefi-ui@latest add
```

The `add` command is now much more capable. You can now add UI components but also import more complex components (coming soon).
Expand All @@ -120,7 +120,7 @@ The CLI will automatically resolve all components and dependencies, format them
### `diff` (experimental)

```bash
npx shadcn-ui diff
npx luxdefi-ui diff
```

We're also introducing a new `diff` command to help you keep track of upstream updates.
Expand All @@ -130,7 +130,7 @@ You can use this command to see what has changed in the upstream repository and
Run the `diff` command to get a list of components that have updates available:

```bash
npx shadcn-ui diff
npx luxdefi-ui diff
```

```txt
Expand All @@ -145,7 +145,7 @@ The following components have updates available:
Then run `diff [component]` to see the changes:

```bash
npx shadcn-ui diff alert
npx luxdefi-ui diff alert
```

```diff /pl-12/
Expand Down
Loading

0 comments on commit 737b65f

Please sign in to comment.