-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1163 from daslyfe/cross_orgin_check
containerize/seperate out boolean checks for repl types/Repl logic into bespoke components.
- Loading branch information
Showing
7 changed files
with
306 additions
and
303 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
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,25 @@ | ||
import Loader from '@src/repl/components/Loader'; | ||
import { Code } from '@src/repl/components/Code'; | ||
import BigPlayButton from '@src/repl/components/BigPlayButton'; | ||
import UserFacingErrorMessage from '@src/repl/components/UserFacingErrorMessage'; | ||
import { Header } from './Header'; | ||
|
||
// type Props = { | ||
// context: replcontext, | ||
// } | ||
|
||
export default function EmbeddedReplEditor(Props) { | ||
const { context } = Props; | ||
const { pending, started, handleTogglePlay, containerRef, editorRef, error, init } = context; | ||
return ( | ||
<div className="h-full flex flex-col relative"> | ||
<Loader active={pending} /> | ||
<Header context={context} embedded={true} /> | ||
<BigPlayButton started={started} handleTogglePlay={handleTogglePlay} /> | ||
<div className="grow flex relative overflow-hidden"> | ||
<Code containerRef={containerRef} editorRef={editorRef} init={init} /> | ||
</div> | ||
<UserFacingErrorMessage error={error} /> | ||
</div> | ||
); | ||
} |
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.