Migrate Toc.vue to Vue 3 Composition API with TypeScript

kestra-io/kestra • PR #13113
✅ Merged

Migrated the ui/src/components/plugins/Toc.vue component from the Vue 2 Options API (JavaScript) to the Vue 3 Composition API using <script setup lang="ts">.

Changes include:

  • Converting data, computed properties, methods, and watchers to Composition API (ref, computed, watch, nextTick)
  • Using defineProps and defineEmits with full TypeScript generics
  • Adding explicit interfaces for Plugin and PluginElement
  • Retaining the existing template and behavior with no UI or functional changes
View Pull Request → ← Back to Contributions