Skip to content

Resolve "Documentation: Frontend list of do's and don'ts"

Filipa Lacerda requested to merge 31552-documentation-dos-and-donts into master

What does this MR do?

Adds numbered list to easily point to the documentation

Adds the following points:

  • Use a function to instantiate a vue app
  • Don't use a singleton for the service or the store
  • Don't provide an el option on tests, use $mount() instead
  • Don't rely on has-tooltip classes for vue components
  • Don't use data-original-title, that is something bootstrap adds and that we should not be changing
  • In vue components, when you have tooltips use the tooltip mixin - will be merged in 9.2
  • Don't use a class to start a vue app, follow the documentation and create 3 separate files - bundle, service, store

What are the relevant issue numbers?

Closes #31552 (closed)

Merge request reports