在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ui开源软件地址:https://gitee.com/rancher/ui开源软件介绍:Rancher UIPerhaps you like managing Cattle. UsagePrerequisites: 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 Compiling for distributionRancher releases include a static copy of the UI passed in during build as a tarball. To generate that, run: ./scripts/build-static CustomizingWe 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 StructureRancher 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 AddonsRancher 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 The TranslationsRancher 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.
Hosting remotelyIf 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
Bugs & IssuesPlease submit bugs and issues to rancher/rancher with a title starting with Or just click here to create a new issue. Useful links
LicenseCopyright (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, softwaredistributed 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 andlimitations under the License. |
请发表评论