-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to have better control of the version we are using, we have placed the Vue import into a dedicated folder that includes the version on its name. We started importing the production build of Vue, which is recommended. When doing development we easily change that manually. The 'Vue.config' line to enable the development tools is now irrelevant so we have removed it. Moreover, 'Vue.config' is undefined in Vue 3. In Vue 3, variables that are meant to be reactive (Vue tracks them and updates the DOM whenever their value changes) need to be created making use of the 'ref' or 'reactive' functions. In Vue 3, apps are created with 'Vue.createApp' instead of 'new Vue'. In Vue 3, 'Vue.set' does not exist, so all the code making use of that has been rewritten appropriately. In Vue 3, whitespace characters between elements that contain newlines are removed by default. Because of that, we need to use the 'whitespace' compiler option to change that behaviour, otherwise our UI elements such as buttons will be rendered next to each other without any space in between. In Vue 3, components are not created using 'Vue.component'. Instead, the application instance provides a 'component' method for registering app-scoped components. We have moved the instruction for mounting the Vue app at the end of the 'base.html' file to ensure all the necessary DOM elements are ready. The 'exporter-test-result' component was being mounted on demand using a 'target' property, and also made visible by changing CSS properties from JavaScript. That has been replaced by directly placing the component element in the right location and controlling its visibility with a 'show' property.
- Loading branch information
1 parent
8ad2ed7
commit b1b3aaf
Showing
7 changed files
with
60 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters