Skip to content

aiyengar2/ui-plugin-examples

 
 

Repository files navigation

ui-plugin-examples

Example plugins for the Rancher Dashboard UI.

This repository contains 2 example plugins in the pkg folder.

Name Description
homepage Plugin that changes the landing home page
new-feature Plugin that adds a new feature to the top-level slide-in menu

You can find the built packages for these plugins in the releases section of this GitHub repository. These are assets named in the form [plugin-name]-[version].tgz.

Additionally, fake Helm charts for the plugins are published to the releases as well - these currently only contain enough metadata to test the UI Plugin catalog. These are assets named in the form [plugin-name]-chart-[version].tgz.

You can also add this repository as a Helm Repository in Rancher - to do this:

  • Go to the local cluster, to 'Apps' and 'Repositories'
  • Click 'Create' and enter a name, e.g. 'ui-plugin-examples'
  • Choose Target 'http(s) URL to an index generated by Helm'
  • Enter https://rancher.github.io/ui-plugin-examples/ for the 'Index URL'
  • Click 'Create`

Building and running locally

You can build and run the plugins locally, to do so:

  • Run yarn install
  • Set the API environment variable to point to a Rancher backend
  • Run Rancher in development mode with yarn dev
  • Open a web browser to https://127.0.0.1:8005

Once you login, you should see Rancher load with the two plugins automatically loaded. You can edit the code for the plugins and then should hot-reload within the browser.

Bugs & Issues

Please submit bugs and issues to rancher/dashboard.

Or just click here to create a new issue.

License

Copyright (c) 2014-2022 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Example plugins for the Rancher Dashboard UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.4%
  • Shell 38.9%
  • TypeScript 6.5%
  • Vue 3.2%