-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to use latest Vue.js #1110
Comments
I have some questions before starting work on this:
Also, when I run |
Some answers 😄
You dont have to use |
Ok. To check my changes in the HUD code base, each time I need to run |
It depends on what changes you make. If they are just client side then |
Hi all, I spent some time today to learn Vue 3, so that it can help in migrating to the latest version, currently under
The VueJS code is in .js file, which references to the template being used in .html file and the styles go in .css file. Whereas the latest convention being followed now in Vue 3 is to use a single file component aka SFC with extension of The display.js file contains multiple components i.e.
Currently, the java and javascript code is not separated properly, the package files and the gradle files are mixed at same level, how I think the structure roughly should be is as follows
In this way, we can separate the two languages resulting in better management of the codebase. The above hierarchy is just a rough and can be improved upon. This task can drag away from the title of this issue i.e. updating VueJS version but since we're updating the HUD so I guess its the right time to make directory structure changes as well. What do you guys suggest, given your experience how should this be approached? Should we first update VueJs version and then make directory changes to rest of the repo, or should we do it in parallel? In any case, the HUD is going to get broken and we won't be able to test it untill unless we complete the implementation so the decision need to be taken here wisely as lots of time is going to be invested in it. Lastly, while trying to understand the HUD codebase I am really feeling the need of proper developer comments in each file, like I am unable to understand the working of HUD on code level, shouldn't we introduce comments or maybe have some sort of developer docs which will make the life easier for developers to contribute to HUD and they dont have to read the codebase line by line, and just have a look at comments/docs? |
I'd recommend updating VueJs first. |
Thanks @psiinon for feedback. |
Pick a wiki page and have a look on the right hand side - you should see |
Ugh, my bad - the wikis dont support PRs 😦 |
Good idea, how does the process looks like? |
Have you updated the website before? |
Opened another PR (#1376 ) that further upgrades vue 2.7 to Vue 3.1 migration build. This can be a solid step forward in our journey to Vue 3. After this PR, we will be on Vue 3 technically, just have to get rid of migration build as a next step. |
See #1109
The Vuejs libs names have changed.
According to https://vuejs.org/guide/quick-start.html#without-build-tools it looks like the *.esm-browser.js files might be the ones to use but I tried changing the build and html/js files to use them and it still didnt work.
Someone with more JS knowledge than me might be able to solve this much more quickly ;)
The text was updated successfully, but these errors were encountered: