Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Jun 10, 2025

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 nfebe force-pushed the refactor/migrate-2-vue3 branch 4 times, most recently from 1cd6f58 to c8fe715 Compare June 10, 2025 19:30
@Chartman123
Copy link
Collaborator

Hi @nfebe

really nice, thanks for your efforts! 🎉

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

@nfebe
Copy link
Contributor Author

nfebe commented Jun 11, 2025

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

@nfebe nfebe force-pushed the refactor/migrate-2-vue3 branch from c8fe715 to 79be8b7 Compare November 21, 2025 18:17
- Upgrade Vue 2.7 to Vue 3.5 and Vue Router 3 to 4
- Upgrade @nextcloud/vue to 9.3.0 and @nextcloud/dialogs to 7.1.0
- Migrate Forms.vue to Composition API with setup()
- Migrate all entry points to use createApp()
- Update template syntax (.sync to v-model:)
- Update build configuration for Vue 3

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the refactor/migrate-2-vue3 branch from 79be8b7 to 37e7f05 Compare November 21, 2025 18:20
@Chartman123
Copy link
Collaborator

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

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe
Copy link
Contributor Author

nfebe commented Nov 21, 2025

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.

@Chartman123
Copy link
Collaborator

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...

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

Successfully merging this pull request may close these issues.

3 participants