-
Notifications
You must be signed in to change notification settings - Fork 19
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
63 changed files
with
1,868 additions
and
791 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "default", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.cjs", | ||
"css": "src/styles/shadcn.css", | ||
"baseColor": "slate", | ||
"cssVariables": true | ||
}, | ||
"aliases": { | ||
"utils": "lib/utils", | ||
"components": "components" | ||
} | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,16 +1,8 @@ | ||
import { ComponentPropsWithRef } from "react"; | ||
import { twMerge } from "tailwind-merge"; | ||
import { Button } from "./ui/button"; | ||
|
||
type Props = ComponentPropsWithRef<"button">; | ||
|
||
export function DashboardButton({ className, ...props }: Props) { | ||
return ( | ||
<button | ||
className={twMerge( | ||
"rounded-md bg-accent-background px-3 py-0.5 text-accent-foreground transition-colors duration-200 ease-in-out hover:bg-accent-background-hover disabled:opacity-60", | ||
className | ||
)} | ||
{...props} | ||
/> | ||
); | ||
return <Button {...props} />; | ||
} |
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 |
---|---|---|
@@ -1,17 +1,5 @@ | ||
import { Mail, Code, HelpCircle, Book, Video } from "lucide-react"; | ||
import { CodeSnippetModalButton } from "./CodeSnippetModalButton"; | ||
import { | ||
DropdownMenu, | ||
DropdownMenuContent, | ||
DropdownMenuItem, | ||
DropdownMenuTrigger, | ||
} from "./DropdownMenu"; | ||
import { IconButton } from "./IconButton"; | ||
import Link from "next/link"; | ||
import { DOCS_URL } from "@tryabby/core"; | ||
import { useTracking } from "lib/tracking"; | ||
import { FaDiscord } from "react-icons/fa"; | ||
import { DISCORD_INVITE_URL } from "./Footer"; | ||
import { CodeSnippetModalButton } from "./CodeSnippetModalButton"; | ||
|
||
type Props = { | ||
title: string; | ||
|
@@ -23,46 +11,6 @@ export function DashboardHeader({ title }: Props) { | |
<div className="mb-4 flex items-center justify-between"> | ||
<h1 className="text-3xl font-bold">{title}</h1> | ||
<div className="flex space-x-2"> | ||
<DropdownMenu> | ||
<DropdownMenuTrigger> | ||
<IconButton | ||
as="div" | ||
// all other events are prevented by radix :( | ||
onPointerDown={() => { | ||
trackEvent("Dashboard Help Clicked"); | ||
}} | ||
icon={<HelpCircle />} | ||
title="" | ||
/> | ||
</DropdownMenuTrigger> | ||
<DropdownMenuContent side="bottom" align="end"> | ||
<DropdownMenuItem disabled>Need help?</DropdownMenuItem> | ||
<Link href={DOCS_URL}> | ||
<DropdownMenuItem> | ||
<Book className="mr-2 h-4 w-4" /> | ||
Documentation | ||
</DropdownMenuItem> | ||
</Link> | ||
<Link href="mailto:[email protected]"> | ||
<DropdownMenuItem> | ||
<Mail className="mr-2 h-4 w-4" /> | ||
Send a Mail | ||
</DropdownMenuItem> | ||
</Link> | ||
<Link href="https://cal.com/tim-raderschad/abby-help"> | ||
<DropdownMenuItem> | ||
<Video className="mr-2 h-4 w-4" /> | ||
Book a free Call | ||
</DropdownMenuItem> | ||
</Link> | ||
<Link href={DISCORD_INVITE_URL}> | ||
<DropdownMenuItem> | ||
<FaDiscord className="mr-2 h-4 w-4" /> | ||
Join our Discord | ||
</DropdownMenuItem> | ||
</Link> | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
<CodeSnippetModalButton /> | ||
</div> | ||
</div> | ||
|
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
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
Oops, something went wrong.
76c4f89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
abby-opensource – ./apps/web
abby-opensource.vercel.app
abby-opensource-dynabase.vercel.app
abby-opensource-git-main-dynabase.vercel.app
preview.tryabby.com
76c4f89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
abby-docs – ./apps/docs
abby-docs-dynabase.vercel.app
abby-docs-git-main-dynabase.vercel.app
abby-docs.vercel.app
docs.tryabby.dev
docs.tryabby.com