forms icon indicating copy to clipboard operation
forms copied to clipboard

refactor(forms): Migrate Forms.vue to Vue 3 Composition API

Open nfebe opened this issue 5 months ago • 2 comments

refactor(forms): Migrate Forms.vue to Vue 3 Composition API

  • Converted component to use Vue 3's Composition API with setup()
  • Removed duplicate function declarations and fixed syntax issues
  • Updated lifecycle hooks to use onMounted/onUnmounted
  • Fixed reactivity using ref and computed
  • Cleaned up event handling and component structure
  • Ensured compatibility with Vue 3 and Nextcloud ecosystem

nfebe avatar Jun 10 '25 17:06 nfebe

Hi @nfebe

really nice, thanks for your efforts! 🎉

Before we merge this, I'd like to merge the other open PRs #2737 and #2748.

Chartman123 avatar Jun 11 '25 07:06 Chartman123

Hi @Chartman123 No worries at all, this is still a very rough draft.

nfebe avatar Jun 11 '25 07:06 nfebe

hi @nfebe

I've also started the migration and used your work as a base. you could also have a look at this branch here: https://github.com/nextcloud/forms/tree/refactor/vue3

Chartman123 avatar Nov 21 '25 18:11 Chartman123

I've also started the migration and used your work as a base. you could also have a look at this branch here: https://github.com/nextcloud/forms/tree/refactor/vue3

Hi @Chartman123 just worked on at least getting this to build on vue 3 and making the creat form thingy work. I will pause and we sync and then decide how to proceed.

nfebe avatar Nov 21 '25 19:11 nfebe

My branch is building, but I still have problems to get the edit view working as we had a .sync there that adds a two way binding for all question props. And inside the QuestionMultiple the same for the options...

Chartman123 avatar Nov 21 '25 19:11 Chartman123