-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63324ce
commit 3622e05
Showing
40 changed files
with
2,801 additions
and
2,463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CI=false | ||
GENERATE_SOURCEMAP=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"imports":{"netlify:edge":"https://edge.netlify.com/v1/index.ts"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// import axios from 'axios'; | ||
// import { Handler } from "@netlify/functions"; | ||
|
||
exports.handler = async (event) => { | ||
|
||
return { statusCode: 200, body: JSON.stringify('gggdggdg') } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build] | ||
functions = 'functions' | ||
publish = 'build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,19 +41,17 @@ | |
</head> | ||
|
||
<body> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Dropbox-sdk.min.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/ace.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-javascript.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-css.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-html.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/theme-monokai.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-jsx.js" async></script> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/ace.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-javascript.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-css.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-html.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/theme-monokai.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/mode-jsx.js" async></script> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/ext-language_tools.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/worker-html.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/worker-css.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/worker-javascript.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/ext-language_tools.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/worker-html.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/worker-css.js" async></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/worker-javascript.js" async></script> | ||
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify.js" async></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify-css.js" async></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/pages/playground/menu/AddLib.js → src/containers/top-menu/AddLib.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/pages/playground/menu/EditorOptions.js → src/containers/top-menu/EditorOptions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/pages/playground/menu/Tab.js → src/containers/top-menu/Tab.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 16 additions & 9 deletions
25
src/pages/playground/Menu.js → src/containers/top-menu/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { useState, useEffect } from 'react' | ||
import { supabase } from '../util/supabaseClient'; | ||
|
||
export default function useAuth() { | ||
const [authSession, setAuthSession] = useState(null); | ||
|
||
useEffect(() => { | ||
|
||
let authListener = null; | ||
|
||
(async () => { | ||
const token = localStorage.getItem('auth-token'); | ||
const { user, error } = await supabase.auth.api.getUser(token); | ||
if (user) setAuthSession(user) | ||
|
||
authListener = supabase.auth.onAuthStateChange(async (event, session) => { | ||
if (session && session.user_metadata) setAuthSession(session); | ||
}); | ||
})(); | ||
|
||
return () => { | ||
if (authListener && authListener.data) authListener.data.unsubscribe(); | ||
} | ||
}, []); | ||
|
||
return authSession | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.