From 04b6add7c678a6535044aa720d001ac063bbee96 Mon Sep 17 00:00:00 2001 From: codetorso Date: Tue, 11 Jun 2024 07:45:21 +0530 Subject: AI code refactored --- apps/web/app/(auth)/signin/page.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'apps/web/app/(auth)') diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index 2f913a75..b84d3c7d 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -21,7 +21,7 @@ async function Signin() {

- Hello, human{" "} + Hello, human

Write, ideate, and learn with all the wisdom of your bookmarks. @@ -40,10 +40,14 @@ async function Signin() { > -- cgit v1.2.3 From a3419085645531cdd389afc05aa27e921ffbfb00 Mon Sep 17 00:00:00 2001 From: codetorso Date: Tue, 11 Jun 2024 17:22:34 +0530 Subject: Adding keyboard shortcuts, responsive design that 99% don't need but still --- apps/web/app/(auth)/signin/page.tsx | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'apps/web/app/(auth)') diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index b84d3c7d..91cad757 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -9,12 +9,12 @@ export const runtime = "edge"; async function Signin() { return (

-
+
SuperMemory logo SuperMemory.ai
@@ -28,7 +28,7 @@ async function Signin() {

{ @@ -40,35 +40,30 @@ async function Signin() { >
-
- By continuing, you agree to the - - {" "} +
+ Terms of Service - {" "} - and - + | + {" "} Privacy Policy
-
+
Ready for your{" "} Second brain? -- cgit v1.2.3 From 5ab5d8f12f800c99152cc44381185b662d45c887 Mon Sep 17 00:00:00 2001 From: Dhravya Date: Tue, 11 Jun 2024 19:14:37 -0500 Subject: minor changes and improvements --- apps/web/app/(auth)/signin/page.tsx | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'apps/web/app/(auth)') diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index 91cad757..ba84a94a 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -11,11 +11,7 @@ async function Signin() {
- SuperMemory logo + SuperMemory logo SuperMemory.ai
@@ -28,7 +24,7 @@ async function Signin() {

{ @@ -40,12 +36,10 @@ async function Signin() { > @@ -55,7 +49,8 @@ async function Signin() {
Terms of Service - | + {" "} + | {" "} Privacy Policy -- cgit v1.2.3 From 4daee14a8254b67152285a4a649f2c306c695a24 Mon Sep 17 00:00:00 2001 From: Dhravya Date: Sun, 16 Jun 2024 00:12:58 -0500 Subject: added way to save content and vectorize them. also refactored code and added a bypass to browser rendering --- apps/web/app/(auth)/auth-buttons.tsx | 2 +- apps/web/app/(auth)/signin/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/web/app/(auth)') diff --git a/apps/web/app/(auth)/auth-buttons.tsx b/apps/web/app/(auth)/auth-buttons.tsx index 0e99213e..5b0ad06e 100644 --- a/apps/web/app/(auth)/auth-buttons.tsx +++ b/apps/web/app/(auth)/auth-buttons.tsx @@ -2,7 +2,7 @@ import { Button } from "@repo/ui/shadcn/button"; import React from "react"; -import { signIn } from "../helpers/server/auth"; +import { signIn } from "../../server/auth"; function SignIn() { return ( diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index ba84a94a..d7bad8da 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -1,7 +1,7 @@ import Image from "next/image"; import Link from "next/link"; import Logo from "@/public/logo.svg"; -import { signIn } from "@/app/helpers/server/auth"; +import { signIn } from "@/server/auth"; import { Google } from "@repo/ui/components/icons"; export const runtime = "edge"; -- cgit v1.2.3 From 51dd5ec9dd35d87c2e93a8e5a64fa963caaa182a Mon Sep 17 00:00:00 2001 From: Dhravya Date: Sun, 23 Jun 2024 20:04:09 -0500 Subject: made and documented the telegram bot (HYPE) --- apps/web/app/(auth)/signin/page.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'apps/web/app/(auth)') diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index d7bad8da..48074bf4 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -6,7 +6,17 @@ import { Google } from "@repo/ui/components/icons"; export const runtime = "edge"; -async function Signin() { +async function Signin({ + searchParams, +}: { + searchParams: Record; +}) { + const searchParamsAsString = Object.keys(searchParams) + .map((key) => { + return `${key}=${searchParams[key]}`; + }) + .join("&"); + return (
@@ -30,7 +40,7 @@ async function Signin() { action={async () => { "use server"; await signIn("google", { - redirectTo: "/home?firstTime=true", + redirectTo: `/home?firstTime=true&${searchParamsAsString}`, }); }} > -- cgit v1.2.3