John Cowen 4179afae06 Instead of rewriting the API call, use ember to rewrite the URL
We now essentially do 2 redirects if you hit a `folder/`

1. If you visit `/ui/dc1/kv/folder/`, `consul` will redirect you to `/ui/dc1/kv/folder`
2. Once redirected to `/ui/dc1/kv/folder` via a 301, use ember/history
API to redirect you back to `/ui/dc1/kv/folder/`.

Bit long winded, but achieves what we want without having to get stuck
into `consul` itself to remove the 301 for the UI
2018-07-11 10:44:37 +01:00
..
2018-06-15 13:56:45 +01:00
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00
2018-06-12 11:24:35 +01:00
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00

consul-ui

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone https://github.com/hashicorp/consul.git this repository
  • cd ui-v2
  • yarn install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

You do not need to run make start-api/yarn run start:api to run the tests

  • make test or yarn run test
  • make test-view or yarn run test:view to view the tests running in Chrome