joyride

Jason Whitlark 2023-03-22T16:03:07.414529Z

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.

pez 2023-03-22T16:13:40.915529Z

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

👍 1
borkdude 2023-03-22T16:24:13.254429Z

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

pez 2023-03-22T16:44:17.877639Z

There’s even an example for that. 😀

Jason Whitlark 2023-03-22T19:08:10.107589Z

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.

pez 2023-03-22T19:42:39.699149Z

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

👀 1
borkdude 2023-03-22T20:12:30.897969Z

Curious what you will come up with :)

Jason Whitlark 2023-03-22T20:16:21.861469Z

🙂