zernonia / vue0

Vue version open source alternative for v0.dev
https://vue0.dev
MIT License
605 stars 60 forks source link

Edit code and save to DB #6

Open zernonia opened 6 months ago

zernonia commented 6 months ago

We can use code-mirror or monaco. (code-mirror might be easier to setup)

cpreston321 commented 6 months ago

Learn.nuxt has implemented this if they wouldn't mind using the code :) -> https://github.com/nuxt/learn.nuxt.com/tree/main

zernonia commented 6 months ago

Thanks @cpreston321 ! Yup I know about Learn.Nuxt using Monaco instance. The more I think about it the more I feel like it's too much trouble and challenges just to make monaco works.

Furthermore, I think editing code allow user to made some minor changes, we don't need the full fledged Monaco feature.