Commit Graph

25 Commits

Author SHA1 Message Date
wujun b477ab6b3e
fix harvester plugin url path (#6975) 2022-09-23 12:33:58 -07:00
Richard Cox 9ff599144d Fix the url used to fetch the embedded harvester plugin
- supports legacy harvester cluster use case where it does not have it's own plugin
2022-09-20 12:29:41 +01:00
wujun c413322de5 fix pkgName 2022-09-18 14:36:38 +08:00
Richard Cox ad950c9d70 Fixes following review
- Don't use `harverster/findAll` in harvester machine config
- Fixed access for `SETTING.UI_DASHBOARD_HARVESTER_LEGACY_PLUGIN`
2022-09-09 11:34:14 +01:00
Richard Cox 6692fdda5f Fixes for plugin embedded in dashboard
- also additional logging
2022-09-08 15:56:13 +01:00
Richard Cox 384e6314b6 Remove /:product route from harvester plugin
- this will never be used, as we'll always need a cluster in the route to fetch the plugin from
- additionally 2 people have hit errors where this caused /home to fail
2022-09-08 13:32:20 +01:00
Richard Cox c3f64ef97f Updates to harv plugin location
- wire in setting for legacy clusters using a remote plugin
- add an override for all
2022-09-07 14:34:37 +01:00
Richard Cox d02b614a5c Allow plugins to supply their own fall back model loader
- if a plugin doesn't override/have a model we fall back on model-loader-require
- by default this is blank (to avoid importing all shell models for all plugins)
- for harvester it's so closely tied by both standard resources and resources in
  management/rancher stores  that it's hard to manually supply all that we
  should just load them anyway
2022-09-06 16:45:32 +01:00
Richard Cox 1b0344d93b Update dynamic plugin loader 2022-09-05 17:13:25 +01:00
Richard Cox 092b4d6c79 tidying up a tad 2022-09-01 19:29:23 +01:00
Richard Cox 1a680cf15f Fix load, added some TODOs 2022-09-01 15:44:45 +01:00
Richard Cox b3f13843dd Merge remote-tracking branch 'origin/harvester-plugin-rebased' into test-pluginize-rc-2 2022-09-01 13:57:18 +01:00
Richard Cox 4b1e0b427f Tidying up 2022-08-24 18:16:34 +01:00
Richard Cox 78cb3ae645 Port across tweaks made during dynamic plugin work
- harvester plugin can be bundled with the dashboard until dynamic work has been completed
- Nav directly to virt cluster dashboard instead of via /harvester-c-cluster
- Fix missing bottom border on virt cluster list, hide actions (as they're never populated)
2022-08-19 12:30:47 -07:00
Richard Cox 22e4d3479f WIP build process changes & comment tidy up 2022-07-14 14:00:55 +01:00
Richard Cox 3beacf3ff1 Changes required to support switching between harv clusters - Totally remove old plugins before starting to load a new one - Forget routes associated with removed plugins (to confirm with replaced 2022-07-13 18:32:26 +01:00
Richard Cox d451c96fe4 Harvester cluster list fixes - Don't force subrows in harv cluster list - this fixes the bottom border for rows without status's - There's no actions, so hide checkbox and action columns - Also removes some harvester specific code in non-harvester world 2022-07-13 18:31:07 +01:00
Richard Cox 412f93bf53 Fix case where the plugin is built in - also fixed some linting 2022-07-13 18:30:49 +01:00
Richard Cox a819cf28f4 Fixed routing issue See description in default layout - If the cluster changes hide page content until we've reach the new page location - This resolves issues where the old page's content were showing (and in harv case throwing errors) when the cluster is changed and we haven't reached the new page yet Also - Fixed some error messages in home page given `Header` requirements - Fixed bad routes (like junk resource) when viewing plugin pages 2022-07-13 18:30:44 +01:00
Richard Cox 3e3568e1ca Fix refresh in strange cases. Redirect correctly 2022-07-13 18:30:39 +01:00
Richard Cox 298af542a5 Updates required to prove out loaded from external harvester - Start of failover / new tab 2022-07-13 18:30:35 +01:00
Richard Cox fe2cf50677 Multiple fixes - bring back click to go to cluster (covers case where cluster A pkg is loaded when going to cluster B pkg) - fix refresh - improve routing for cluster and virt cluster managers - improve loading of virt cluster list - add code to determine pkg version and url 2022-07-13 18:30:32 +01:00
Richard Cox 48b93be60a Allow plugin managers to claim routes that are associated with plugins yet to be loaded 2022-07-13 18:30:28 +01:00
Richard Cox 8377fbc69d Click on harvester link to load plugin (currently skipped) - Also update harvester package info (and fix plugin metadata) 2022-07-13 18:30:15 +01:00
Richard Cox 25acc1f8eb Plugins: Rejig files to new shell locations (#5623)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* After rejig

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
2022-05-10 10:04:02 +01:00