Commit Graph

7 Commits

Author SHA1 Message Date
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
Neil MacDougall 6481644579
Customisable links support (#7131)
* Implement Rancher Prime changes.

* Implement Rancher Prime endpoint.

* squash

* Implement Rancher Prime endpoint.

* squash

* fix proxy.

* Fix support page links.

* merge master.

* Fix nuxt config.

* test without /rancherversion

* Fix links.

* Merge tify up - rename back to hasSupport for less change

* Fix version metadata fetching

* Allow links to be edited

* Fix lint, revert changed to KeyValue

* Remove unused code

* Fix typo

* Add support for linkOptions

* Add name to component

* File an issue link should go to choose page

* Fix typo

* Fix issue with legacy settings

* Address PR feedback

* Remove todo that was done

Co-authored-by: Shavindra <shavindra@users.noreply.github.com>
2022-10-11 14:11:22 +01:00
Neil MacDougall ce982231bc
Standalone script - allow refresh on dynamic pages (#6738)
* Standalone script - allow refersh on dynamic pages

* Fix comment typo
2022-09-01 14:24:14 +01:00
Giuseppe Leo 5d4e32e855
Create unit test and linting jobs with GitHub Actions (#6562)
* Add GitHub Actions on push to run lint and unit test

* Store unit test coverage as artifact

* Correct unit tests coverage path collection

* Add i18n linting on CI

* Correct rancher-component path

* Remove pull request trigger from Drone

* Fix linting from master

Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-08-01 16:25:20 +01:00
Richard Cox a2e90f9610 Tweaks and fixes
- Remove unused mimeTypes (and eslint file)
- add some build output dirs to gitignore
- fix serve of html files (content was in ui/dist instead of ui)
2022-08-01 12:17:38 +01:00
Neil MacDougall af24fa2b68
Add missing socket 2022-07-30 17:38:18 +01:00
Neil MacDougall 75c726a763 Script to create standalone build for testing 2022-07-30 15:09:00 +01:00