flems icon indicating copy to clipboard operation
flems copied to clipboard

Feature request: Console instead of html output

Open tormodvm opened this issue 7 years ago • 8 comments

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?

tormodvm avatar Jan 25 '18 11:01 tormodvm

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

pygy avatar Jan 25 '18 16:01 pygy

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.

porsager avatar Feb 04 '18 12:02 porsager

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…

barneycarroll avatar Feb 04 '18 14:02 barneycarroll

@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 avatar Feb 04 '18 19:02 porsager

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

screen shot 2018-02-04 at 21 01 38

porsager avatar Feb 04 '18 20:02 porsager

Looks good, porsager.

tormodvm avatar Feb 05 '18 19:02 tormodvm

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

CreaturesInUnitards avatar May 04 '18 14:05 CreaturesInUnitards

...and the API just follows naturally 😄

CreaturesInUnitards avatar May 04 '18 14:05 CreaturesInUnitards