lorca icon indicating copy to clipboard operation
lorca copied to clipboard

Lorca + Nuxt?

Open SGarno opened this issue 5 years ago • 6 comments

I have been working with your webview version and dabbling with react and vuejs. I really like the idea of lorca, as it even further simplifies the moving parts (no cgo). Do you know if there are any show stoppers in getting Lorca and Nuxt to play well?

If you think it is doable, do you have (or could you knock out) a "Hello World" showing how they would interact?

Update: By Nuxt, I am specifically using VueJS + Vuetify. Not that it would matter perhaps, but just in case...

SGarno avatar Dec 05 '18 16:12 SGarno

I had some time to play with this a bit and I do have it now working. Because of the file references in Nuxt output from webpack, the only way to do it cleanly, was to use an http handler function and an embedded server. I was hoping to use the go-bindata assets directly, but it turned out to be going down a rat hole making that work properly.

I still struggle with the whole Lorca vs WebView, however. I prefer WebView in that it packages the browser so I don't have to tell users "must install chrome". But webview being being MSHTML for windows means I can't leverage Vue/Vuetify. They require ES6

Any chance of getting a webview version to work with Chromium instead?

SGarno avatar Dec 20 '18 15:12 SGarno

Hey @BlackConure can you upload it somewhere ? Even if its not working. Would like to see how well it works.

ghost avatar Dec 25 '18 08:12 ghost

@gedw99, I have uploaded just the output assets and my sample go code to https://github.com/BlackConure/webview-nuxt. If you need to generate the assets manually, the readme has the outline.

The same output from nuxt works in lorca, but does not in webview. I have commented out the lorca code, but you can just uncomment it and re-compile.

Let me know if you find something....I would REALLY like to use webview (or something similar)! Right now I am stuck with using Electron 😭

SGarno avatar Dec 25 '18 16:12 SGarno

Well maybe ASCI electron is a decent alternative for you.

Will have a looks at your code

ghost avatar Dec 26 '18 17:12 ghost

ASCI electron??

SGarno avatar Dec 26 '18 17:12 SGarno

I think he meant https://github.com/asticode/go-astilectron

SebastianKristof avatar May 24 '19 18:05 SebastianKristof