Rancher UI
Go to file
Nancy 5d9bc2bd27
Merge pull request #4941 from WuJun2016/support-multi-nic
HARVESTER: Support multi nic
2023-01-20 12:20:52 -07:00
.github update headers 2018-10-01 15:33:02 -07:00
app Fix confirmation dialog for multiple deactivation 2023-01-05 15:18:44 +00:00
blueprints Switch to @rancher/ember-api-store 2019-01-10 16:44:35 -07:00
config Update Ember 3.24 2021-06-21 10:48:45 -07:00
lib Merge pull request #4941 from WuJun2016/support-multi-nic 2023-01-20 12:20:52 -07:00
public feat: harvester nodeDriver rke1 2021-07-29 12:27:13 +08:00
scripts Use correct inputs when creating PR in rancher 2022-06-09 18:28:53 +02:00
server Exposes edit for RKE2 imported clusters 2020-07-23 10:24:31 -07:00
ssl New cert with SAN for Chrome 58+ 2018-10-26 12:19:48 -07:00
tests iframe issues in vue from ember (#4690) 2021-07-15 09:36:49 +01:00
translations Merge pull request #4941 from WuJun2016/support-multi-nic 2023-01-20 12:20:52 -07:00
vendor Change main font to Lato 2021-05-21 15:33:02 +01:00
.ackrc chore(config): remove bower 2019-06-20 16:51:52 -06:00
.dockerignore Dockerfile, pool refresh 2017-02-10 14:59:03 -07:00
.drone.yml Drone builds were restricted to 2.6, update to match 2.7 2022-09-22 10:38:27 +01:00
.editorconfig Upgrade Ember & Dependencies for LTS support >3.12 2020-10-07 16:52:22 -07:00
.ember-cli Improve vsphere driver UX 2019-10-21 13:19:14 -07:00
.eslintignore Update Ember 3.24 2021-06-21 10:48:45 -07:00
.eslintrc.js Update Ember 3.24 2021-06-21 10:48:45 -07:00
.gitignore Update Ember 3.24 2021-06-21 10:48:45 -07:00
.gitmodules
.ignore chore(config): remove bower 2019-06-20 16:51:52 -06:00
.template-lintrc.js Upgrade Ember & Dependencies for LTS support >3.12 2020-10-07 16:52:22 -07:00
.watchmanconfig
Dockerfile Update build/test to use docker build image 2018-10-30 14:34:54 -07:00
Dockerfile.dapper update debian version in ci 2022-12-08 14:05:36 -07:00
LICENSE
README.md Wrong port 2020-06-08 17:05:21 -07:00
crowdin.yml Add the script for updating i18n files 2017-10-13 20:38:04 +08:00
ember-cli-build.js Change main font to Lato 2021-05-21 15:33:02 +01:00
jsconfig.json Edit clusters using node templates you can't see (rancher/rancher#22080) 2019-08-30 14:15:24 -07:00
package.json Bump prismjs from 1.23.0 to 1.24.0 2021-06-28 18:50:43 +00:00
testem.js Upgrade Ember & Dependencies for LTS support >3.12 2020-10-07 16:52:22 -07:00
yarn.lock Update caniuselite 2022-12-16 18:02:36 +00:00

README.md

Rancher UI

Perhaps you like managing Cattle.

Usage

Prerequisites:

If you're on a Mac and use Homebrew, you can follow these steps:

  brew install node watchman yarn

Setup:

  git clone 'https://github.com/rancher/ui'
  cd 'ui'
  ./scripts/update-dependencies

Run development server:

  yarn start

Connect to UI at https://localhost:8000/ . The server automatically picks up file changes, restarts itself, and reloads the web browser. This is intended only for development, see below for distributing customizations.

Run development server pointed at another instance of the Rancher API

  RANCHER="https://rancher-server" yarn start

RANCHER can also be hostname[:port] or ip[:port].

Compiling for distribution

Rancher releases include a static copy of the UI passed in during build as a tarball. To generate that, run:

  ./scripts/build-static

Customizing

We highly suggest making customizations as an ember-cli addon rather than forking this repo, making a bunch of changes and then fighting conflicts to keep it up to date with upstream forever. ui-example-addon-machine is an example addon that adds a custom screen for a docker-machine driver. If there is no way for you to get to what you want to change from an addon, PRs to this repo that add generalized hooks so that you can are accepted.

Project Structure

Rancher UI uses Ember CLI Pods for its project structure. We suggest reading the documentation if you have questions about the layout of the Rancher UI project.

Engines and In-repo Addons

Rancher UI uses Ember Engines to break the deliverable code into smaller chunks and only deliver what the end-user will need. When adding new components to an engine ensure you are only re-exporting the component back out of the engine if it is required and can not be placed in the shared in-repo addon. When adding a new service or dependency that is required by an engine ensure that you pass the dependencies to the engine, more info can be found here

The shared in-repo addon is a central repository of shared components for use with both the main app and any in-repo engine.

Translations

Rancher UI supports localization via translations files. You can swap translations live by utilizing the Language Picker located in the footer. If you would like to add your own translations files follow the directions below.

  • Fork the Rancher UI repo
  • Copy the en-us.yaml file located in /translations folder and rename using the <language-code>/<country-code>.yaml format (Supported Locales)
  • Replace the values on each key with you're new values corresponding to your language
  • Ensure you replace the languageName value as this is what will be displayed in the language picker in the UI
  • While developing you can use SHFT + L when not focused in an input or text area to toggle the languages between your currently selected language and a special none language to see what key values are missing
  • When you've finished you're translations issue a pull request back to the Rancher UI repo to have your translation included

Hosting remotely

If you want to customize the UI, re-packaging all of Rancher to distribute the UI is possible but not terribly convenient. Instead you can change Cattle to load the UI source from a remote web server:

Running Tests

  yarn global add ember-cli
  • yarn lint:hbs

  • yarn lint:js

  • yarn lint:js -- --fix

  • ember test

  • ember test --server

Bugs & Issues

Please submit bugs and issues to rancher/rancher with a title starting with [UI] .

Or just click here to create a new issue.

License

Copyright (c) 2014-2019 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.