Skip to content

Commit

Permalink
rhcl plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmadigan committed Jul 1, 2024
1 parent a888b67 commit ce3007d
Show file tree
Hide file tree
Showing 8 changed files with 7,572 additions and 10,357 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# RHCL Console Plugin

See below for setup requirements.

## Running:

- Target a running OCP
- `yarn run start` # start webpack
- `yarn run start-console` # start local ocp console + proxy

# OpenShift Console Plugin Template

This project is a minimal template for writing a new OpenShift Console dynamic
Expand Down
16 changes: 12 additions & 4 deletions console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
"type": "console.page/route",
"properties": {
"exact": true,
"path": "/example",
"component": { "$codeRef": "ExamplePage" }
"path": "/k8s/ns/:ns/rhcl",
"component": { "$codeRef": "RHCLDashboardPage" }
}
},
{
"type": "console.page/route",
"properties": {
"exact": true,
"path": "/k8s/all-namespaces/rhcl",
"component": { "$codeRef": "RHCLDashboardPage" }
}
},
{
Expand All @@ -18,9 +26,9 @@
{
"type": "console.navigation/href",
"properties": {
"id": "example",
"id": "rhcl",
"name": "%plugin__console-plugin-template~Dashboard%",
"href": "/example",
"href": "/k8s/all-namespaces/rhcl",
"perspective": "dev",
"section": "connectivity-link-section"
}
Expand Down
7 changes: 6 additions & 1 deletion locales/en/plugin__console-plugin-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@
"Success!": "Success!",
"This is a custom page contributed by the console plugin template. The extension that adds the page is declared in console-extensions.json in the project root along with the corresponding nav item. Update console-extensions.json to change or add extensions. Code references in console-extensions.json must have a corresponding property": "This is a custom page contributed by the console plugin template. The extension that adds the page is declared in console-extensions.json in the project root along with the corresponding nav item. Update console-extensions.json to change or add extensions. Code references in console-extensions.json must have a corresponding property",
"Your plugin is working.": "Your plugin is working.",
"Loading...": "Loading..."
"Loading...": "Loading...",
"Age": "Age",
"Name": "Name",
"Namespace": "Namespace",
"Address": "Address",
"Dashboard": "Dashboard"
}
Loading

0 comments on commit ce3007d

Please sign in to comment.