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

vue-render-plugin compatibility #71

Closed
daef opened this issue Apr 18, 2023 · 11 comments
Closed

vue-render-plugin compatibility #71

daef opened this issue Apr 18, 2023 · 11 comments

Comments

@daef
Copy link

daef commented Apr 18, 2023

I've read on https://retejs.org/docs/guides/context-menu#render-context-menu that this plugin doesn't support vue rendering yet. What would have to be done to support vue? I'd really like to use it :)

@Ni55aN
Copy link
Member

Ni55aN commented Apr 18, 2023

do you want to customize it with Vue components?

For now I have other tasks in priority, but I plan to add the appropriate presets to Vue and Angular, but I can’t say exactly when this will happen

@daef
Copy link
Author

daef commented Apr 18, 2023

No, I dont want to customize it, I just want to use the context menu to add nodes to my dataflow :)

@Ni55aN
Copy link
Member

Ni55aN commented Apr 18, 2023

so you can easily do it using the React render plugin along with your main render plugin :)

Check it out:

rete-kit app --next -s vue -v 3 -f "Vue render,Context menu"

This command creates a Vue.js project with the Vue render plugin and a context menu that will use the React render plugin.
The only disadvantage of this approach is the slightly larger bundle size.

@daef
Copy link
Author

daef commented Apr 18, 2023

What is this magic :) The last time I wanted to read up on rete-kit I think I only found a 'under construction' placeholder.

Thanks!

@daef daef closed this as completed Apr 18, 2023
@Ni55aN
Copy link
Member

Ni55aN commented Apr 18, 2023

you gave me an idea for a tweet 😁

image

@daef
Copy link
Author

daef commented May 9, 2023

When I click the link to the docs on twitter I see the content flashing once before it gets replaced with Docs section not found thou :/

@daef
Copy link
Author

daef commented May 9, 2023

image

@Ni55aN
Copy link
Member

Ni55aN commented May 9, 2023

@daef you probably visited the site a few weeks ago and the browser cached outdated PWA data with this issue. You can either wait for the browser to download the new version of the site (it does this silently in the background), or force clear the cache in the DevTools -> Application -> Storage -> Clear site data

@daef
Copy link
Author

daef commented May 9, 2023

This sounds like a really broken design - especially for docs, which are potentially visited semiregulary... Can't this fail more gracefully? I thought this PWA stuff was supposed to make things better.

@Ni55aN
Copy link
Member

Ni55aN commented May 10, 2023

this is powered by @vite-pwa/nuxt. So far I have not delved into its config, maybe there is something to improve this. Or I'll just disable it

@daef
Copy link
Author

daef commented May 10, 2023

I managed to read the contents by mashing Esc before the js kicks in :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants