-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
f9efa94
commit 3362b7d
Showing
19 changed files
with
153 additions
and
47 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 |
---|---|---|
@@ -1,17 +1,51 @@ | ||
import { MainContent } from '@/components'; | ||
import { GithubProvider } from './providers/github/_components'; | ||
import { FigmaProvider } from './providers/figma/_components'; | ||
import { FigmaBanner } from './providers/figma/_components'; | ||
import { | ||
Icons, | ||
Tabs, | ||
TabsContent, | ||
TabsList, | ||
TabsTrigger, | ||
Text, | ||
} from '@ds-project/components'; | ||
|
||
export default function Page() { | ||
return ( | ||
<MainContent | ||
description="Authorize and manage integrations" | ||
title="Integrations" | ||
> | ||
<div className="flex flex-col gap-2"> | ||
<GithubProvider /> | ||
<FigmaProvider /> | ||
</div> | ||
<div className="flex flex-col gap-2"></div> | ||
<Tabs defaultValue="inputs"> | ||
<TabsList> | ||
<TabsTrigger value="inputs">Inputs</TabsTrigger> | ||
<TabsTrigger value="outputs">Outputs</TabsTrigger> | ||
<TabsTrigger value="monitoring">Monitoring</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="inputs"> | ||
<FigmaBanner /> | ||
</TabsContent> | ||
<TabsContent value="outputs"> | ||
<GithubProvider /> | ||
</TabsContent> | ||
<TabsContent value="monitoring"> | ||
<div className=" flex items-center space-x-4 rounded-md border p-4 opacity-50"> | ||
<Icons.DiscordLogoIcon height={54} width={54} /> | ||
<div className="flex-1 space-y-1"> | ||
<Text size="base" weight="medium"> | ||
<h2>Discord</h2> | ||
</Text> | ||
<Text mood="muted" size="sm"> | ||
<p> | ||
Send notifications about changes, releases or issues with your | ||
configuration. | ||
</p> | ||
</Text> | ||
</div> | ||
</div> | ||
</TabsContent> | ||
</Tabs> | ||
</MainContent> | ||
); | ||
} |
29 changes: 29 additions & 0 deletions
29
apps/dashboard/src/app/app/integrations/providers/figma/_components/banner.tsx
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,29 @@ | ||
import { Button, Icons, Text } from '@ds-project/components'; | ||
import Link from 'next/link'; | ||
export function FigmaBanner() { | ||
return ( | ||
<div className=" flex items-center space-x-4 rounded-md border p-4"> | ||
<Icons.FigmaLogoIcon height={54} width={54} /> | ||
<div className="flex-1 space-y-1"> | ||
<Text size="base" weight="medium"> | ||
<h2>Figma</h2> | ||
</Text> | ||
<Text mood="muted" size="sm"> | ||
<p> | ||
Install DS Pro widget in your Figma file to synchronize Figma | ||
Variables | ||
</p> | ||
</Text> | ||
</div> | ||
|
||
<Button asChild> | ||
<Link | ||
href="https://www.figma.com/community/file/1415369860836124974" | ||
target="__blank" | ||
> | ||
<span>Install Widget</span> | ||
</Link> | ||
</Button> | ||
</div> | ||
); | ||
} |
1 change: 1 addition & 0 deletions
1
apps/dashboard/src/app/app/integrations/providers/figma/_components/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './provider'; | ||
export * from './banner'; |
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,7 +1,5 @@ | ||
import { redirect } from 'next/navigation'; | ||
|
||
export default function Home() { | ||
return ( | ||
<main className="flex min-h-screen flex-col items-center justify-between p-24"> | ||
<h1>Home page</h1> | ||
</main> | ||
); | ||
return redirect('/app/integrations'); | ||
} |
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 +1 @@ | ||
export * from './navigation'; | ||
export * from './app-navigation'; |
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
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
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 @@ | ||
export * from './home-navigation'; |
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
import * as React from 'react'; | ||
import { cva } from 'class-variance-authority'; | ||
import type { VariantProps } from 'class-variance-authority'; | ||
|
||
import { cn } from '@/utils'; | ||
|
||
const badgeVariants = cva( | ||
'ds-inline-flex ds-items-center ds-rounded-full ds-border ds-px-2.5 ds-py-0.5 ds-text-xs ds-font-semibold ds-transition-colors focus:ds-outline-none focus:ds-ring-2 focus:ds-ring-ring focus:ds-ring-offset-2', | ||
{ | ||
variants: { | ||
variant: { | ||
default: | ||
'ds-border-transparent ds-bg-primary ds-text-primary-foreground hover:ds-bg-primary/80', | ||
secondary: | ||
'ds-border-transparent ds-bg-secondary ds-text-secondary-foreground hover:ds-bg-secondary/80', | ||
destructive: | ||
'ds-border-transparent ds-bg-destructive ds-text-destructive-foreground hover:ds-bg-destructive/80', | ||
outline: 'ds-text-foreground', | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: 'default', | ||
}, | ||
} | ||
); | ||
|
||
export interface BadgeProps | ||
extends React.HTMLAttributes<HTMLDivElement>, | ||
VariantProps<typeof badgeVariants> {} | ||
|
||
function Badge({ className, variant, ...props }: BadgeProps) { | ||
return ( | ||
<div className={cn(badgeVariants({ variant }), className)} {...props} /> | ||
); | ||
} | ||
|
||
export { Badge, badgeVariants }; |
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 @@ | ||
export * from './badge'; |
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