Skip to content

Commit

Permalink
Feat: Add SDk and api for it and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
brrock committed Nov 16, 2024
1 parent 664b453 commit 6b7d8a5
Show file tree
Hide file tree
Showing 39 changed files with 2,500 additions and 458 deletions.
13 changes: 0 additions & 13 deletions apps/web/app/(admin)/admin/page.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions apps/web/app/(admin)/layout.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions apps/web/app/(auth)/sign-in/[[...sign-in]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModeToggle } from "@/components/theme-toggle";
import { Button } from "@/components/ui/button";
import { ModeToggle } from "ui/components/theme-toggle";
import {Button} from "ui/components/ui/button";
import { SignIn } from "@clerk/nextjs";
import { House } from "lucide-react";
import Link from "next/link";
Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/(auth)/sign-up/[[...sign-up]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModeToggle } from "@/components/theme-toggle";
import { Button } from "@/components/ui/button";
import { ModeToggle } from "ui/components/theme-toggle";
import { Button } from "ui/components/ui/button";
import { SignUp } from "@clerk/nextjs";
import { House } from "lucide-react";
import Link from "next/link";
Expand Down
3 changes: 1 addition & 2 deletions apps/web/app/(root)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { SignedIn, SignedOut, UserButton } from "@clerk/nextjs";
import SignedDevSignUp from "ui/components/signed-out/dev";
import { SignedOutfooter } from "ui/components/signed-out/footer";
import Hero from "ui/components/signed-out/hero";
import SignedOutMobileNav from "ui/components/signed-out/mobile-nav";
import SignedOutNav from "ui/components/signed-out/nav";
import { SignedIn, SignedOut, UserButton } from "@clerk/nextjs";
import React from "react";

const Home = () => {
return (
Expand Down
20 changes: 0 additions & 20 deletions apps/web/app/api/isadmin/route.ts

This file was deleted.

13 changes: 0 additions & 13 deletions apps/web/app/api/user/route.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/components/signed-out/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ const Hero = () => {
);
};

export default Hero;
export default Hero;
4 changes: 2 additions & 2 deletions apps/web/components/theme-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import * as React from "react";
import { Moon, Sun } from "lucide-react";
import { useTheme } from "next-themes";

import { Button } from "@/components/ui/button";
import { Button } from "./ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
} from "./ui/dropdown-menu";

export function ModeToggle() {
const { setTheme } = useTheme();
Expand Down
8 changes: 6 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
"dev": "NODE_ENV=development tsup --watch",
"build": "NODE_ENV=production tsup"
},
"dependencies": {
"dependencies": {
"@clerk/backend": "^1.16.0",
"clerk-auth-middleware": "workspace:*",
"database": "workspace:*",
"glob": "^11.0.0",
"hono": "^4.6.8",
"ioredis": "^5.4.1",
"prisma": "^5.21.1",
"tsx": "^4.19.2"
"tsx": "^4.19.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^22.8.7",
Expand Down
2 changes: 2 additions & 0 deletions packages/api/src/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { default as playerdata } from './playerdata';
export { default as test } from './test';
export { default as user } from './user';
export { default as userdata } from './userdata';
Loading

0 comments on commit 6b7d8a5

Please sign in to comment.