The Rancher UI
Go to file
Westly Wright 1edfd2a006
Correctly wait for the gatekeeper app to be ready
app doesn't have a state so all the logic was a little wonky, the state must
have been removed. setup the app to watch for the deployed condition instead.
refactored the logic about sending out the emit a bit too so that the config
observer sends the event only if the wait for contidion call int he enable has
failed. it seems a little bonkers to wait 60 seconds which can happen some
times. 30 second default should be more than enough in most cases so this really
catches outside cases where clusters may be bogged down and slow.

rancher/dashboard#371 - Scenario 2
2020-04-28 10:23:52 -07:00
.storybook storybook class 2020-04-13 15:23:43 -07:00
.vscode Move explorer into cluster 2020-02-20 11:07:14 -07:00
assets Merge pull request #554 from lvuch/lh-playground 2020-04-26 14:50:16 -05:00
components Correctly wait for the gatekeeper app to be ready 2020-04-28 10:23:52 -07:00
config fix secret typeDisplay 2020-04-24 15:28:04 -07:00
detail Update secret.vue 2020-04-27 13:13:00 -07:00
edit pass mode prop to resourcetabs 2020-04-27 09:58:33 -07:00
layouts start of masthead changes 2020-04-21 15:32:55 -07:00
list Drop recent types 2020-04-20 14:33:41 -07:00
middleware Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
mixins Merge pull request #555 from codyrancher/no-console 2020-04-26 14:52:36 -05:00
models Move can delete check to instance method and override cluster check 2020-04-27 12:18:06 -07:00
pages Merge pull request #555 from codyrancher/no-console 2020-04-26 14:52:36 -05:00
plugins refactor all current action checks into instance methods 2020-04-27 12:28:35 -07:00
scripts Allow dots in the branch 2020-03-26 12:14:16 -07:00
server Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
shared pass mode prop to resourcetabs 2020-04-27 09:58:33 -07:00
static favicon 502 2020-04-22 10:08:59 -07:00
store Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
stories placeholder for layout pages 2020-04-23 10:16:47 -07:00
test Remove new yaml serialization 2020-04-15 10:00:09 -07:00
utils Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
.ackrc Remove vue-native-websocket, use socket per norman client, typescript support 2019-12-18 17:20:14 -07:00
.dockerignore Service Networking and HealthCheck 2019-10-23 16:10:18 -07:00
.drone.yml Build release branch 2020-03-26 11:58:04 -07:00
.eslintignore Rearrange for building on CDN 2019-10-22 14:43:26 -07:00
.eslintrc.js Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
.gitignore Cluster dashboard overview feedback 2020-04-02 11:17:22 -07:00
Dockerfile Yes dapper 2019-09-04 15:29:31 -07:00
Dockerfile.dev Project picker/filter, standalone steve 2020-03-17 23:07:33 -07:00
LICENSE License 2019-12-31 15:21:43 -07:00
README.md Project picker/filter, standalone steve 2020-03-17 23:07:33 -07:00
babel.config.js Remove vue-native-websocket, use socket per norman client, typescript support 2019-12-18 17:20:14 -07:00
jsconfig.json Better standaone Steve support 2020-03-07 03:42:40 -07:00
nuxt.config.js Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
package.json Fixing warnings 2020-04-16 13:35:34 -07:00
yarn.lock Remove new yaml serialization 2020-04-15 10:00:09 -07:00

README.md

dashboard

Build Status

Dashboard UI. For the other Rancher UI see rancher/ui.

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at https://localhost:8005
$ API=http://localhost:8005 yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

Multiple GitHub auth configs

Auth supports multiple GitHub auth URLs and using the appropriate one based on the Host header that a request comes in on. This is particularly useful for development against a server that already has GitHub setup.

In management.cattle.io.authconfig github, add a hostnameToClientId map of Host header value -> GitHub client ID:

hostnameToClientId:
  "localhost:8005": <your GitHub Client ID for localhost:8005>

And then in the secret in namespace cattle-global-data called githubconfig-clientsecret, add GitHub client ID -> base64-encoded client secret to the data section:

data:
  clientsecret: <the normal client secret already configured>
  <your client id>: <your base64-encoded client secret for localhost:8005>

Running with standalone Steve on a Mac

cd steve
make run-host

cd dashboard
docker build -f Dockerfile.dev -t rancherlabs/dashboard:dev
docker run -v $(pwd):/src -v dashboard_node:/src/node_modules -p 8005:8005 -e API=http://172.17.0.1:8989 rancherlabs/dashboard:dev
#
# The first time will take forever installing node_modules into the volume, it will be faster next time.
#
# Goto https://localhost:8005


License
=======
Copyright (c) 2014-2020 [Rancher Labs, Inc.](http://rancher.com)

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](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.