-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated console #18
Comments
This will be integrated using a custom renderer, issue is here: #31 |
Decided that this will not be done by the custom renderer, this functionality is global. Also I think that it should be on the right side (under the preview), since this console is used for preview. |
I'd like to help if possible. Do you already have an idea of how this should this be done? In which context should this console execute? |
@renanpvaz Do you want to take this? I already started playing with it, only got some layout going so far, no functionality. Let me know, so we don't both work on the same feature. 😄 |
@lbogdan oh don't mind me, if you've started it then keep it up. |
+1 Yes please! |
is someone still working on this? If any help needed would love to contribute :) |
@varenya You can find the work so far here https://github.com/lbogdan/codesandbox-client/tree/feature/preview-console, if you want to take a look. |
sure thanks, should I fork this branch repo to contribute? is any help needed :)? |
@CompuIves did you manage to do anything about this? I, for one, was a bit busy with life these last couple of weeks. 😞 |
Ooh, I hope nothing bad! @lbogdan built an implementation, I need to check
it out. I've been a bit busy as well, but I'm going to check and work on it
tomorrow 😃
…On Thu, Oct 26, 2017, 10:53 lbogdan ***@***.***> wrote:
@CompuIves <https://github.com/compuives> did you manage to do anything
about this? I, for one, was a bit busy with life these last couple of
weeks. 😞
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAj1CBrQylxA8yUx-3a-1DGK8FNKh74nks5swEiIgaJpZM4Nyk1t>
.
|
@lbogdan you have used react-console here and it looks to be working what else is pending here? |
Great to hear that it works! There are 2 things pending (I think):
1. Bit of styling, I want to play with this a bit
2. Right now the console executes code in the editor environment. I think
we should execute it in the sandbox environment so you can inspect eg.
window vars. So we should send a postMessage to the sandbox, execute it
there and postMessage back to the console what to show. Are you interesting
in working on this?
…On Thu, Oct 26, 2017, 11:45 Varenya Thyagaraj ***@***.***> wrote:
@lbogdan <https://github.com/lbogdan> you have used react-console here
and it looks to be working what else is pending here?
@CompuIves <https://github.com/compuives> any inputs let me know I can
help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAj1CEZB9RUwAsCv8zQOPC-VsjRYOQbGks5swFTIgaJpZM4Nyk1t>
.
|
No, I just checked he's doing it in Preview/index.js, basically what you just said postMessage and then switching based on the type and logging it on the react-console. |
Oh that's great!! Didn't know @lbogdan already finished that. Then the only
thing left is styling really, I'll can finish that tomorrow then.
…On Thu, Oct 26, 2017, 12:28 Varenya Thyagaraj ***@***.***> wrote:
No, I just checked he's doing it in Preview/index.js, basically what you
just said postMessage and then switching based on the type and logging it
on the react-console.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAj1CHuQRkCZm1EZZ4u0RnpVb5-NLC73ks5swF7lgaJpZM4Nyk1t>
.
|
@CompuIves Unfortunately I didn't, the eval part is not done yet. For this we should also change |
@lbogdan what do you mean by eval? but the flow is as @CompuIves mentioned right i.e. postMessage etc.. |
hmm understood but any ideas how to go abt it? |
You could look at the applicable JSBin code; they do it quite nicely |
yeah, but they don't need to maintain preview context like in this case. And they are not using iframes either. let me see thanks for your inputs. |
Can somebody help me with high-level overview of the project as in how parts are connected so that I can hack on it faster? |
I just deployed the new console with this #266. I'm sorry for the silence @varenya, I already started working on the styling and thought that it would be quicker to quickly move the eval to the sandbox with it. I hope I'm not discouraging you from any further contributions to CodeSandbox. You can join our Discord (https://discord.gg/KE3TbEZ) if you want a quicker answer or to chat about ideas 😄 . |
I just noticed this! Great job on the console @CompuIves |
It's really nice to have the errors printed out there since the computer I'm currently using doesn't have access to the dev tools :( |
It would be great if we could have this console open by default on our codesandboxes, right now it's "click to open" |
A console you can expand from the editor pane, should work both in embed view and editor view.
The text was updated successfully, but these errors were encountered: