Browse Source

ui: tags, service fixture changes

pull/98/head
Jack Pearkes 11 years ago
parent
commit
b7591880dd
  1. 3
      ui/index.html
  2. 19
      ui/javascripts/fixtures.js

3
ui/index.html

@ -86,6 +86,9 @@
{{#if model}}
<h2 class="no-margin">{{ model.1.ServiceName }}</h2>
<hr>
<h5>Tags</h5>
<p>Pending...</p>
<h5>Nodes</h5>
{{#each node in model }}

19
ui/javascripts/fixtures.js

@ -8,6 +8,10 @@
window.fixtures = {}
//
// The array route, i.e /ui/services, should return _all_ services
// in the DC
//
fixtures.services = [
{
"Name": "vagrant-cloud-http",
@ -53,12 +57,17 @@ fixtures.services = [
},
]
// This is both of the fixture services full response. We
// would just expect one of these, inside of the top level
// key. We require that key just for the fixture lookup.
//
// This one is slightly more complicated to allow more UI interaction.
// It represents the route /ui/services/<service> BUT it's what is
// BELOW the top-level key.
//
// So, what is actually returned should be similar to the /catalog/service/<service>
// endpoint.
fixtures.services_full = {
"vagrant-cloud-http": [
// A node
"vagrant-cloud-http":
// This array is what is actually expected from the API.
[
{
"ServicePort": 80,
"ServiceTags": null,

Loading…
Cancel
Save