Skip to content
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

Closed
CompuIves opened this issue Jun 7, 2017 · 26 comments
Closed

Integrated console #18

CompuIves opened this issue Jun 7, 2017 · 26 comments

Comments

@CompuIves
Copy link
Member

A console you can expand from the editor pane, should work both in embed view and editor view.

screen shot 2017-06-07 at 13 33 53

@CompuIves
Copy link
Member Author

This will be integrated using a custom renderer, issue is here: #31

@CompuIves
Copy link
Member Author

CompuIves commented Sep 27, 2017

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.

@CompuIves CompuIves reopened this Sep 27, 2017
@renanpvaz
Copy link

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?

@lbogdan
Copy link
Contributor

lbogdan commented Oct 4, 2017

@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. 😄

@renanpvaz
Copy link

@lbogdan oh don't mind me, if you've started it then keep it up.

@Hum4n01d
Copy link
Contributor

+1 Yes please!

@varenya
Copy link

varenya commented Oct 26, 2017

is someone still working on this? If any help needed would love to contribute :)

@lbogdan
Copy link
Contributor

lbogdan commented Oct 26, 2017

@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.

@varenya
Copy link

varenya commented Oct 26, 2017

sure thanks, should I fork this branch repo to contribute? is any help needed :)?

@lbogdan
Copy link
Contributor

lbogdan commented Oct 26, 2017

@CompuIves did you manage to do anything about this? I, for one, was a bit busy with life these last couple of weeks. 😞

@CompuIves
Copy link
Member Author

CompuIves commented Oct 26, 2017 via email

@varenya
Copy link

varenya commented Oct 26, 2017

@lbogdan you have used react-console here and it looks to be working what else is pending here?
@CompuIves any inputs let me know I can help.

@CompuIves
Copy link
Member Author

CompuIves commented Oct 26, 2017 via email

@varenya
Copy link

varenya commented Oct 26, 2017

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.

@CompuIves
Copy link
Member Author

CompuIves commented Oct 26, 2017 via email

@lbogdan
Copy link
Contributor

lbogdan commented Oct 26, 2017

@CompuIves Unfortunately I didn't, the eval part is not done yet. For this we should also change react-console, which is currently doing the eval internally. So 2. is still pending.

@varenya
Copy link

varenya commented Oct 26, 2017

@lbogdan what do you mean by eval? but the flow is as @CompuIves mentioned right i.e. postMessage etc..

@lbogdan
Copy link
Contributor

lbogdan commented Oct 26, 2017

I mean when you write something in the console and it evals and displays it:

In this example, it should evaluate it in the sandbox preview context and show href: "http://localhost:3001/".

@varenya
Copy link

varenya commented Oct 26, 2017

hmm understood but any ideas how to go abt it?

@Hum4n01d
Copy link
Contributor

You could look at the applicable JSBin code; they do it quite nicely

@varenya
Copy link

varenya commented Oct 26, 2017

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.

@varenya
Copy link

varenya commented Oct 27, 2017

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?

@CompuIves
Copy link
Member Author

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 😄 .

@Hum4n01d
Copy link
Contributor

I just noticed this! Great job on the console @CompuIves

@Hum4n01d
Copy link
Contributor

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 :(

@IAMtheIAM
Copy link

It would be great if we could have this console open by default on our codesandboxes, right now it's "click to open"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants