Commit Graph

29 Commits

Author SHA1 Message Date
Neil MacDougall c5f5c9b0cf
Add support for replaying network requests from a captured HAR file (#10149)
* Add support for replaying from har file

* Fix merge

* Improvements

* Add export and folder support

* Minor tidy ups

* Fix lint

* Add doc

* Update doc with correct fallback HTTP status code

* Fix typo
2023-12-20 16:39:00 +00:00
Alexandre Alves 6637583874
remove "process." mentions from Dashboard and adjust code (#10119)
* remove process.client and process.server mentions and adjust code

* fix a couple of missing conditions for process.server

* remove commented line

* remove process.static

* fix lint errors

* uncomment code

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-12-13 08:41:26 +00:00
Evgeniya Vashkevich e2149a4798
[INT] Removed vue-meta library (#9952)
* [INT] Removed vue-meta library
2023-12-05 09:42:23 -08:00
Richard Cox 68930d7820
Merge pull request #9543 from richard-cox/fix-error-in-prod
Fix white page errors in prod
2023-09-06 11:28:00 +01:00
Giuseppe Leo 479125264f
Vue files are not correctly instrumented by the tests (#7166)
* Remove merge to master on PR tests due coverage issue

* Update GI action versions from 2 to 3

* Re-enable HTMl coverage for tests

* Remove deprecated nyc in package configuration from merge conflict; Ignore further folders from coverage

* Change tests checkout and print changed files on test during coverage job

* Add codecov configuration

* Add coverage if instrumented

* Remove changed files steps

* Increase memory for unit test

* Add .vue extension to unit test instrumentation

Add .vue extension to unit test instrumentation

* Remove HTML coverage due 'file:' issue

* Remove HTML report and add .vue files

* Restore GHA fetch to 1 for last commit
2023-09-01 10:02:51 +02:00
Alexandre Alves a79cf12157
Recover proxy config mechanism (#9616)
* recover proxy config mechanism

* remove unwanted proxy config

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-08-31 12:20:08 +01:00
Richard Cox 8aef0252fe Remove process.x webpack config, add comments 2023-08-31 11:11:11 +01:00
Richard Cox 7ec8626ee6 Fix white page errors in prod
- white page errors should not be visible in prod
- these were were enabled in all envs via the port of shell/initialize/client.js after nuxt
- that came from the output of a template
- the template has some features on via debug state when built
- we now disable these features in prod
- Additionally..
  - set some process values that were being skipped but still used
  - always log uncaught errors in `fetch`s. in theory we should be monitoring $fetchState.error but we never do. this has led to some painful debugging with customers
2023-08-15 16:08:51 +01:00
richa 141d277e71
Added router to rediect github auth (#9262)
* Added router to rediect github auth

* Added env variables for client id

* Fixed broken server Middleware

* Removed e2e changes

* Fixed lint

* Removed code for test

* Clean code
2023-07-14 16:35:51 +02:00
Richard Cox 0245a8cb93 Merge remote-tracking branch 'upstream/master' into epinio/resolve-conflicts-with-master 2023-06-23 18:00:14 +01:00
Giuseppe Leo 01eeb0548f
Add recommended lint rules globally (#8997)
* Update configuration

* Create default config for eslint

* Restore plugin:vue/recommended

* Add exceptions and overrides

* Correct manually remaining issues

* Adding further picked exceptions groupped up

* Fix or disable specific cases manually and singularly

* Add naming linting exception

* Remove unused variable in component

* Move rules to default

* Autocorrect rancher/components linting issues

* Configure VSCode to use multiple files, to display linting for rancher components

* Disable jest lint hook restriction for string list component

* Autofix
2023-06-23 17:02:55 +02:00
Richard Cox 0709d3fbee Fix issue where multiple instances of vue were imported
- caused by yarn link to dashboard
2023-06-21 18:37:09 +01:00
Richard Cox ed9ee99980 Fix failing e2e test
- caused by EXCLUDE_OPERATOR_PKG defaulting to truthy
- which meant no plugins were loaded by the ui
- which meant button to reload ui given changes to plugins was always shown
- when meant extension e2e test that removed plugin immediately used it to reload without waiting for remove to finish
2023-06-09 15:40:06 +01:00
Richard Cox bfa27646aa operator pkgs --> pkg 2023-06-01 18:24:04 +01:00
Richard Cox 8a05df2d31 Merge remote-tracking branch 'upstream/master' into merge-master-2 2023-06-01 17:37:47 +01:00
Richard Cox 859c157962 Two Build Related Tweaks
- Fix chunking for `pages/c/_cluster/settings/DefaultLinksEditor.vue`
- bundle css with pages, instead of as prefetched links in index.html
2023-06-01 14:22:08 +01:00
Richard Cox 1e8c6cb13d remove EXCLUDES_NUXT_PLUGINS, replace with EXCLUDE_OPERATOR_PKGS (to avoid loading operator plugins) 2023-05-26 16:17:28 +01:00
Richard Cox 21e2267bd2 Fixes following merge 2023-05-25 17:00:16 +01:00
Richard Cox 747a36f526 Fix 'What's New' page
- Fixes #8979
- Remove clash of `test: /\.md$/,` entries
- The removed entry might be a copy and paste error. Going back to pre-nuxt removeal the `url-loader` was associated with loading images
  - https://github.com/rancher/dashboard/blob/v2.7.2/shell/nuxt.config.js#L492
  - i'm not sure if we don't need the custom loader now, images do seem to work
2023-05-25 14:12:21 +01:00
Richard Cox 541be75918 Fix router base
- build time env var was not passed through to where it was used in runtime
- resulted in RC builds looking for resources in `/` instead of `/dashboard`
2023-05-25 12:58:52 +01:00
codyrancher f6ed581a54 Changing how we serve the favicon
The release version of rancher appears to expect the favicon at the root directory. Dev expected it to be under the public directory. I changed dev to use the root directory as well

https://github.com/rancher/dashboard/issues/8794
2023-05-05 15:35:24 +02:00
Neil MacDougall c628c5a91d
Remove extension autoLoad functionality (#8700) 2023-04-28 11:27:11 +01:00
Neil MacDougall 45381b0f39
Update vue options to preserve whitespace (#8742)
* Update vue options to preserve whitespace

* Bug fix with tidy-up
2023-04-26 12:33:41 +01:00
Cody Jackson 487cf0d6a4 Migrating all of the files out of the nuxt directory into reasonable places within shell 2023-04-20 11:56:58 +02:00
Neil MacDougall ca5f45ce50
Dev server: Improve ctrl+c handling and suppress proxy setup messages (#8391)
* Add CTRL+C handler and hide proxy messages

* Fix lint issues
2023-04-17 18:33:42 +01:00
Nancy 336f44142e
fix /meta/proxy requests when running locally (#8539) 2023-03-27 15:15:08 -07:00
Neil MacDougall 22920e61f7
Fix router base in production (#8388) 2023-03-09 13:43:16 +00:00
Cody Jackson 724d952e96 Fix proxy so requests like /rancherversion function 2023-03-08 20:51:17 -07:00
Cody Jackson cbf8507bc4 Fixing build errors in drone 2023-03-08 16:02:12 -07:00