Fork me on GitHub
#joyride
<
2023-03-22
>
Jason Whitlark16:03:07

If I wanted to (from joyride) open some sort of view to display code before and after some transformation, and offer accept/reject or more options, would a webview be the way to do that? I’m familiar with the quickpicker, which seems too limited for this, but not much else, so I don’t know if there’s something that would fit better.

pez16:03:40

Among the options available to Joyride scripts, I think a web view is the way to do it.

👍 2
borkdude16:03:13

Note that you can also use scittle + reagent + re-frame in a webview :)

pez16:03:17

There’s even an example for that. 😀

Jason Whitlark19:03:10

Yea, I was reading through that one again, and the vscode webview docs. A few questions that would save me a bunch of time, if they are easy to answer: • Are there any other cljs webview examples you can point me at? I can translate the vscode examples, but my js->cljs is slooooow. • I’m specifically looking for message handling stuff. • And getState/setState • Is it possible/fairly easy to put a webview all in one file, basically hiccup? Kinda seems like it might be possible with virtual documents, but… If I get a chance to work on this stuff more, I’ll write up a doc for joyride/webviews. It’s always the zero->one that’s the hardest.

pez19:03:39

Portal might be good to take a look at. And Clover.

👀 2
borkdude20:03:30

Curious what you will come up with :)