File tree Expand file tree Collapse file tree 4 files changed +12
-129
lines changed
Expand file tree Collapse file tree 4 files changed +12
-129
lines changed Original file line number Diff line number Diff line change 55
66# Mandatory next-auth URL for localhost
77NEXTAUTH_URL = http://app.localhost:3000
8-
8+
99# ## PRODUCTION & DEVELOPMENT VARIABLES
1010# These variables need to be set for local development and when deployed on Vercel
1111
@@ -18,16 +18,17 @@ POSTGRES_PRISMA_URL=
1818# Vercel Blob Storage for image uploads – get one here: https://vercel.com/docs/storage/blob/quickstart
1919BLOB_READ_WRITE_TOKEN =
2020
21- # GitHub OAuth for auth & login – get one here: https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
22- GITHUB_ID =
23- GITHUB_SECRET =
24-
25- # Secret key for NextAuth (generate one here: https://generate-secret.vercel.app/32)
21+ # GitHub OAuth secrets for auth & login – generate these here: https://github-client-generator.vercel.app/
2622NEXTAUTH_SECRET =
23+ AUTH_GITHUB_ID =
24+ AUTH_GITHUB_SECRET =
2725
28- # https://vercel.com/account/tokens
26+ # Vercel authentication token that can be found here: https://vercel.com/account/tokens
2927AUTH_BEARER_TOKEN =
30- # https://vercel.com/<org>/<project>/settings
28+ # Vercel Project ID that can be found here: https://vercel.com/<org>/<project>/settings
3129PROJECT_ID_VERCEL =
32- # https://vercel.com/teams/<org>/settings
30+ # Vercel Team ID that can be found here: https://vercel.com/teams/<org>/settings
3331TEAM_ID_VERCEL =
32+
33+ # OpenAI API key for AI text generation – get one here: https://platform.openai.com/account/api-keys
34+ OPENAI_API_KEY =
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99} from "lucide-react" ;
1010
1111import { NodeSelector } from "./node-selector" ;
12- import { ColorSelector } from "./color-selector" ;
1312import clsx from "clsx" ;
1413
1514export interface BubbleMenuItem {
@@ -68,13 +67,11 @@ export const EditorBubbleMenu: FC<EditorBubbleMenuProps> = (props) => {
6867 moveTransition : "transform 0.15s ease-out" ,
6968 onHidden : ( ) => {
7069 setIsNodeSelectorOpen ( false ) ;
71- setIsColorSelectorOpen ( false ) ;
7270 } ,
7371 } ,
7472 } ;
7573
7674 const [ isNodeSelectorOpen , setIsNodeSelectorOpen ] = useState ( false ) ;
77- const [ isColorSelectorOpen , setIsColorSelectorOpen ] = useState ( false ) ;
7875
7976 return (
8077 < BubbleMenu
@@ -86,7 +83,6 @@ export const EditorBubbleMenu: FC<EditorBubbleMenuProps> = (props) => {
8683 isOpen = { isNodeSelectorOpen }
8784 setIsOpen = { ( ) => {
8885 setIsNodeSelectorOpen ( ! isNodeSelectorOpen ) ;
89- setIsColorSelectorOpen ( false ) ;
9086 } }
9187 />
9288
@@ -103,14 +99,6 @@ export const EditorBubbleMenu: FC<EditorBubbleMenuProps> = (props) => {
10399 />
104100 </ button >
105101 ) ) }
106- < ColorSelector
107- editor = { props . editor }
108- isOpen = { isColorSelectorOpen }
109- setIsOpen = { ( ) => {
110- setIsColorSelectorOpen ( ! isColorSelectorOpen ) ;
111- setIsNodeSelectorOpen ( false ) ;
112- } }
113- />
114102 </ BubbleMenu >
115103 ) ;
116104} ;
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const VERCEL_DEPLOYMENT = !!process.env.VERCEL_URL;
88export const authOptions : NextAuthOptions = {
99 providers : [
1010 GitHubProvider ( {
11- clientId : process . env . GITHUB_ID as string ,
12- clientSecret : process . env . GITHUB_SECRET as string ,
11+ clientId : process . env . AUTH_GITHUB_ID as string ,
12+ clientSecret : process . env . AUTH_GITHUB_SECRET as string ,
1313 profile ( profile ) {
1414 return {
1515 id : profile . id . toString ( ) ,
You can’t perform that action at this time.
0 commit comments