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

Feature request: Console instead of html output #27

Open
tormodvm opened this issue Jan 25, 2018 · 8 comments
Open

Feature request: Console instead of html output #27

tormodvm opened this issue Jan 25, 2018 · 8 comments

Comments

@tormodvm
Copy link
Contributor

It would be nice to have another option for the console that would make it full height where the html output normally would be. In short: no html output, only javascript console.

Like this: http://jsbin.com/?html,console

Maybe even automatically if there's a .js file but no .html file in the files array?

@pygy
Copy link
Contributor

pygy commented Jan 25, 2018

👍 for the idea, but not automatically, at least not for existing flems (there are existing flems+mithril samples where I've deleted the HTML tab since I mount the app on the document body.

@porsager
Copy link
Owner

porsager commented Feb 4, 2018

I think that's a really good idea, but as pygy says, shouldn't be toggled automatically. Perhaps toggling it with console: 'primary' in the state object?

I'll try to think about how to toggle it in the interface as well.

@barneycarroll
Copy link

I mostly use flems on mobile where A) this feature would be extremely useful B) the existing UI controls (halt, refresh, results link) are slightly confusing because they look like part of the console panel as opposed to the output. In this context the 'full screen' icon looks like it's referring to the console. I think new icons for standalone results / collapsed results should involve direction (switching axis based on orientation) to indicate one panel over the other…

@porsager
Copy link
Owner

porsager commented Feb 4, 2018

@barneycarroll Do you mean the (halt, refresh, fullscreen) links are confusing now, or that they would be if the console took up the iframe space?

Assuming you mean if the console took up the iframe space, aren't they just as relevant when tied to the console? I'm thinking a layout button could replace the fullscreen icon and contain something like the following.

screen shot 2018-02-04 at 20 54 20

@porsager
Copy link
Owner

porsager commented Feb 4, 2018

For portrait (mobile) it could be something like this?

screen shot 2018-02-04 at 21 01 38

@tormodvm
Copy link
Contributor Author

tormodvm commented Feb 5, 2018

Looks good, porsager.

@CreaturesInUnitards
Copy link

I believe the non-mobile versions should also have a vert/horiz stacking toggle.

@CreaturesInUnitards
Copy link

...and the API just follows naturally 😄

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

5 participants