argoproj-labs / rollout-extension

Argo Rollout visualization in Argo CD Web UI
196 stars 46 forks source link

Have example for app view? #49

Closed templarfelix closed 1 year ago

templarfelix commented 1 year ago

have an example for extension in app view ?

I try to write some examples for app view, but I don't have any idea what use for that:

https://github.com/templarfelix/argocd-rollouts-extension

code example

((window) => {
  const component = () => {
    return React.createElement(
      "div",
      { style: { padding: "10px" } },
      "Hello World"
    );
  };
  window.extensionsAPI.registerAppViewExtension(
    component,
    "Test Ext",
    "fa-flask"
  );
})(window);