Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/dashboard/app/(app)/apis/client.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client";
import { EmptyPlaceholder } from "@/components/dashboard/empty-placeholder";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { Separator } from "@/components/ui/separator";
import { PostHogIdentify } from "@/providers/PostHogProvider";
import { useUser } from "@clerk/nextjs";
import { Button } from "@unkey/ui";
import { BookOpen, Code, Search } from "lucide-react";
import Link from "next/link";
import { useEffect, useState } from "react";
Expand Down Expand Up @@ -84,10 +84,10 @@ export function ApiList({ apis }: { apis: ApiWithKeys }) {
You haven't created any APIs yet. Create one to get started.
</EmptyPlaceholder.Description>
<div className="flex flex-col items-center justify-center gap-2 md:flex-row">
<CreateApiButton key="createApi" className="" />
<CreateApiButton key="createApi" />
<Link href="/docs" target="_blank">
<Button variant="secondary" className="w-full items-center gap-2 ">
<BookOpen className="h-4 w-4 md:h-5 md:w-5" />
<Button>
<BookOpen />
Read the docs
</Button>
</Link>
Expand Down
7 changes: 4 additions & 3 deletions apps/dashboard/app/(app)/apis/create-api-button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";
import { revalidate } from "@/app/actions";
import { Loading } from "@/components/dashboard/loading";
import { Button } from "@/components/ui/button";
import { Dialog, DialogContent, DialogFooter, DialogTrigger } from "@/components/ui/dialog";
import {
Form,
Expand All @@ -16,6 +15,7 @@ import { Input } from "@/components/ui/input";
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { zodResolver } from "@hookform/resolvers/zod";
import { Button } from "@unkey/ui";
import { Plus } from "lucide-react";
import { useRouter } from "next/navigation";
import type React from "react";
Expand Down Expand Up @@ -51,8 +51,8 @@ export const CreateApiButton = ({ ...rest }: React.ButtonHTMLAttributes<HTMLButt
<>
<Dialog>
<DialogTrigger asChild>
<Button className="flex-row items-center gap-1 font-semibold " {...rest}>
<Plus size={18} className="w-4 h-4 " />
<Button variant="primary" {...rest}>
<Plus />
Create New API
</Button>
</DialogTrigger>
Expand Down Expand Up @@ -82,6 +82,7 @@ export const CreateApiButton = ({ ...rest }: React.ButtonHTMLAttributes<HTMLButt

<DialogFooter className="flex-row justify-end gap-2 pt-4 ">
<Button
variant="primary"
disabled={create.isLoading || !form.formState.isValid}
className="mt-4 "
type="submit"
Expand Down
17 changes: 4 additions & 13 deletions apps/dashboard/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,15 @@ import { PHProvider, PostHogPageview } from "@/providers/PostHogProvider";
import "@/styles/tailwind/tailwind.css";
import { ClerkProvider } from "@clerk/nextjs";
import "@unkey/ui/css";

import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import localFont from "next/font/local";
import type React from "react";
import { Suspense } from "react";
import { ReactQueryProvider } from "./react-query-provider";
import { ThemeProvider } from "./theme-provider";

const inter = Inter({
subsets: ["latin"],
variable: "--font-inter",
});

const pangea = localFont({
src: "../public/fonts/PangeaAfrikanTrial-Medium.woff2",
variable: "--font-pangea",
});

export const metadata = {
metadataBase: new URL("https://unkey.dev"),
title: "Open Source API Authentication",
Expand Down Expand Up @@ -60,7 +51,7 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en" className={[inter.variable, pangea.variable].join(" ")}>
<html lang="en" className={`${GeistSans.variable} ${GeistMono.variable}`}>
<Suspense>
<PostHogPageview />
</Suspense>
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"export-to-csv": "^1.4.0",
"framer-motion": "11.0.23",
"free-email-domains": "^1.2.13",
"geist": "^1.3.1",
"github-slugger": "^2.0.0",
"input-otp": "1.2.4",
"lucide-react": "^0.378.0",
Expand Down
Binary file not shown.
Binary file removed apps/dashboard/styles/Satoshi-Bold.ttf
Binary file not shown.
Binary file removed apps/dashboard/styles/fonts/CalSans-SemiBold.ttf
Binary file not shown.
Binary file not shown.
Binary file removed apps/dashboard/styles/fonts/Mona-Sans.var.woff2
Binary file not shown.
150 changes: 0 additions & 150 deletions apps/dashboard/styles/tailwind/base.css

This file was deleted.

3 changes: 0 additions & 3 deletions apps/dashboard/styles/tailwind/components.css

This file was deleted.

Loading