Refactor Plugins and Directives to Provide a Path for Vue3 #10774
Labels
QA/dev-automation
Issues that engineers have written automation around so QA doesn't have look at this
Milestone
Vue 2.x has a number of global APIs and configurations that globally mutate Vue’s behavior. This is no longer an option in Vue 3. Any APIs that globally mutate Vue's behavior in Vue 2 are now moved to the app instance, exposed via
createApp
.This means that patterns currently used to register plugins
Will need to include a install function in Vue 3
We can utilize a similar pattern in our code today to make the migration more straightforward
Refactor Plugins
Plugins Globally Mutating Vue in multiple ways
Candidates for writing an install function
shell/plugins/i18n.js
plugin #10800Plugins Globally Mutating Vue via
Vue.component
Candidates for accepting a vue instance before modifying
shell/plugins/global-formatters.js
shell/plugins/v-select.js
Plugins Globally Mutating Vue via
Vue.use
Candidates for accepting a vue instance before modifying
shell/plugins/codemirror.js
shell/plugins/portal-vue.js
shell/plugins/portal.js
shell/plugins/resize.js
shell/plugins/shortkey.js
shell/plugins/tooltip.js
shell/plugins/vue-js-modal.js
(No Vue 3 implementation. Should be removed)Refactor Directives
Candidates for accepting a vue instance before modifying
shell/plugins/clean-html-directive.js
shell/plugins/clean-tooltip-directive.js
shell/plugins/directives.js
shell/plugins/int-number.js
shell/plugins/positive-int-number.js
shell/plugins/trim-whitespace.js
The text was updated successfully, but these errors were encountered: