Merge branch 'main' of https://github.com/mazeincoding/AppCut
This commit is contained in:
@ -52,8 +52,8 @@ function LoginForm() {
|
||||
try {
|
||||
await signIn.social({
|
||||
provider: "google",
|
||||
callbackURL: "/editor",
|
||||
});
|
||||
router.push("/editor");
|
||||
} catch (error) {
|
||||
setError("Failed to sign in with Google. Please try again.");
|
||||
setIsGoogleLoading(false);
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { db } from "@opencut/db";
|
||||
import { db, eq } from "@opencut/db";
|
||||
import { waitlist } from "@opencut/db/schema";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { nanoid } from "nanoid";
|
||||
import { waitlistRateLimit } from "@/lib/rate-limit";
|
||||
import { z } from "zod";
|
||||
|
@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useRouter } from "next/navigation";
|
||||
import { signUp, signIn } from "@opencut/auth/client";
|
||||
import { signIn, signUp } from "@opencut/auth/client";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Card,
|
||||
|
@ -249,7 +249,7 @@ export function PreviewPanel() {
|
||||
{activeClips.length === 0 ? (
|
||||
<div className="absolute inset-0 flex items-center justify-center text-muted-foreground">
|
||||
{tracks.length === 0
|
||||
? "Drop media to start editing"
|
||||
? "No media added to timeline"
|
||||
: "No clips at current time"}
|
||||
</div>
|
||||
) : (
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,5 @@
|
||||
import { db } from "@opencut/db";
|
||||
import { db, sql } from "@opencut/db";
|
||||
import { waitlist } from "@opencut/db/schema";
|
||||
import { sql } from "drizzle-orm";
|
||||
|
||||
export async function getWaitlistCount() {
|
||||
try {
|
||||
|
@ -16,7 +16,7 @@ export const auth = betterAuth({
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
},
|
||||
socialProviders: {
|
||||
socialProviders: {
|
||||
google: {
|
||||
clientId: process.env.GOOGLE_CLIENT_ID as string,
|
||||
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
|
||||
@ -26,4 +26,4 @@ export const auth = betterAuth({
|
||||
trustedOrigins: ["http://localhost:3000"],
|
||||
});
|
||||
|
||||
export type Auth = typeof auth;
|
||||
export type Auth = typeof auth;
|
||||
|
@ -13,4 +13,7 @@ const client = postgres(process.env.DATABASE_URL);
|
||||
export const db = drizzle(client, { schema });
|
||||
|
||||
// Re-export schema for convenience
|
||||
export * from "./schema";
|
||||
export * from "./schema";
|
||||
|
||||
// Re-export drizzle-orm functions to ensure version consistency
|
||||
export { eq, and, or, not, isNull, isNotNull, inArray, notInArray, exists, notExists, sql } from "drizzle-orm";
|
Reference in New Issue
Block a user