Commit Graph

27 Commits

Author SHA1 Message Date
Phillip Rak 6302588e5e Dead code removal: `globalHandleError()`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-05 12:31:46 -07:00
Phillip Rak 9071eeabea Remove `createApp()` from `entry-helper`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-05 09:01:08 -07:00
Cody Jackson d47ce13f28 Fixed the remaining lint warnings and errors
The chart.test.ts is likely more broken now than it was. This can be fixed later.
2024-08-22 16:07:04 -07:00
Cody Jackson 014431a6fd Fix a merge conflict where we weren't mounting the app properly 2024-08-22 16:07:03 -07:00
Phillip Rak 0c9361a024 render the login page
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:05:37 -07:00
Phillip Rak 53c38fa029 Return route meta from matched route
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:05:37 -07:00
Cody Jackson 0b2f8c61f6 hack n slash 2024-08-22 16:05:37 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Giuseppe Leo d98ca6bd85
Remove Nuxt reference in extensions and creator (#11420)
* Remove nuxt commands

* Remove vsconfig nuxt mention

* Remove Nuxt path as unused

* Remove Nuxt

* Remove creator scripts

* Remove all the nuxt and nuxt.config references

* Restore existing comment about Nuxt

* Add dependency for check-plugin

* Add more missing dependencies

* Update to comments

* Correct comment based on PR review
2024-08-07 18:42:08 +02:00
Cody Jackson 3dad3e8814 Removing the next render method
I noticed that we had a global `app` which appeared to be useless which led me to checking if the render method was doing anything. It doesn't appear to affect the rendering of our app so I remove dit.
2024-08-01 14:28:22 -07:00
Cody Jackson d270d84b49 Moving the title navigation guard to be with the rest of our navigation guards 2024-08-01 14:28:22 -07:00
Cody Jackson 584650ca6b Simplifying mountApp
Removing next() since  we no longer make use of it from middleware.
Recognizing that the beforeEach call to render should be sufficient I removed the inline invocation.
2024-08-01 14:28:22 -07:00
Cody Jackson 47a2105d18 Removing dead code from entry 2024-08-01 14:28:22 -07:00
Cody Jackson 1cea6df626 Removing some unnecessary entry code
Primarily removing code we found wasn't needed and was getting in the way of vue3. Namely component validation and patching.
2024-08-01 14:28:22 -07:00
Cody Jackson 250b9ab0ee Removing all of middleware merged from my other prs 2024-07-29 14:19:38 -07:00
Cody Jackson fdf7018b7e Removing the rest of authenticated middleware. Primarily cluster loading. 2024-07-10 11:23:42 -07:00
Richard d88c454496 Handle harvester loading in a route guard to better handle the unauthenticated method. This is done by providing a 404 catch all page which is authenticated. 2024-07-09 07:56:14 -07:00
Francesco Torchia 7e0b79f0e8
Tirgger loading indicator on route change
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-07-09 11:24:35 +02:00
Francesco Torchia f81865f7b9
Fix resolved route path
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-07-04 19:24:04 +02:00
Cody Jackson 136aad1c45 Fixing harvester cluster page reload 404s
We were previously calling authenticated middleware to handle the loading of the harvester plugin. This will now explicitly do the loading instead of relying on the middleware.

This showed up again because of two factors. We were no longer executing the authenticated middlware because of our guards at the top and because the route.currentRoute.path was showing '/' instead of the full path.
2024-07-03 09:29:58 -07:00
Cody Jackson 396eed903a A fix for i18n in harvester
This ensures we will always initialize i18n before each page load (in harvester case after the extension is loaded which adds new translations).
2024-07-03 08:02:10 -07:00
Giuseppe Leo c36b071e40
Remove every reference to .nuxt global option (#11265)
* Remove unused rehydratation plugin

* Remove any reference to the .nuxt folders

* Remove globalApp nuxt and any reference or use case to nuxt.error

* Replace errors handling with existing fail-whale logic
2024-06-21 11:15:05 +02:00
Giuseppe Leo 1db3aade10
Clean and simplify Nuxt utility (#11258)
* Remove reassignment; Add meaningful variables and attributes names

* Move import logic to router

* Remove unused code and move single case to related files

* Simplify and merge functions

* Move error functions to its own util

* Fix linting issues

* Add comments and change names

* Remove nuxt util, merge logic to init entry helper
2024-06-18 11:06:49 +02:00
Cody Jackson b81a1f8522 Extracted the authentication portion of the authenticated middleware into a navigation guard 2024-06-10 14:03:48 -07:00
Cody Jackson ccfc473c13 Found a few issues with navigation guards and fixed them
- The from/to routes were transposed so I flipped them
- Load initial settings wasn't receiving the store and the error was swallowed.
- Fixed some error reporting instead of just swallowing exceptions
2024-06-06 12:10:30 -07:00
Cody Jackson ae9eb1ed08 Fixing a race condition with how we update/reset the title to "Rancher" if a page doesn't set the title. 2024-05-31 14:52:31 -07:00
Giuseppe Leo 43ef5fc390
Clean up entry logic for vue.config (#11048)
* Cleanup entry for vue configuration

Rename reserved function terms

Correct extendApp initialization by passing Vue attribute

Avoid reserved name Vue

Set more unique and meaningful file names

Remove deprecated code added with rebase

Add vue instance to mountApp

Add comments and references to TODO issue

Restore function declaration over binding issue

Rename apps and correct issue with the render

Rebase residual cleanup

Remove unnecessary env var related to Nuxt

Remove deprecated confit assignment

Revert render function refactoring

* Fix Dashboard version issue
2024-05-29 11:09:43 +02:00