Skip to content

Commit

Permalink
Application extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Solana Huertas committed Jan 17, 2024
1 parent da46274 commit 481175c
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions ui/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
((window: any) => {
const component = () => {
return React.createElement("div", {}, "Hello World");
return React.createElement("div", {}, "Proposed manifest diff(s)");
};
window?.extensionsAPI?.registerResourceExtension(
component,
"argoproj.io/Application",
"argoproj.io/Application",
"Hello World",
{ icon: "fa-solid fa-not-equal" }
);
window?.extensionsAPI?.registerResourceExtension(
component,
"*",
"*",
"Nice extension"
);
window?.extensionsAPI?.registerResourceExtension(component, '', 'Pod', 'Metrics1', { icon: "fa fa-chart-area" });
window?.extensionsAPI?.registerResourceExtension(component, '*', 'Deployment', 'Metrics2', { icon: "fa fa-chart-area" });
window?.extensionsAPI?.registerResourceExtension(component, '*', 'Application', 'Metrics3', { icon: "fa fa-chart-area" });
window?.extensionsAPI?.registerResourceExtension(component, 'Application', 'Application', 'Metrics4', { icon: "fa fa-chart-area" });

window?.extensionsAPI?.registerResourceExtension(component, '*', 'Application', 'Proposed diff', { icon: "fa fa fa-file-medical" });



const flyoutComponent = (props: {
Expand All @@ -30,7 +16,7 @@ return React.createElement(
style: { padding: "10px" },
onClick: () => props.openFlyout()
},
"Hello World"
"Proposed manifest diff(s)"
);
};
const flyout = () => {
Expand Down

0 comments on commit 481175c

Please sign in to comment.