mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
9ee30c08d6
* ui: Various CSS amends 1. Split out %icon-definition from %composite-row 2. Add hover effect to node listing 3. Fix up proxy level list components 4. Rename our various pills to use a 100-900 scale 5. Reogranize other icon related things (consul-kind and consul-external-source) * Fix up upstream test
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
export default function(visitable, attribute, collection, text, intentions, filter, tabs) {
|
|
const page = {
|
|
visit: visitable('/:dc/services/:service'),
|
|
externalSource: attribute('data-test-external-source', '[data-test-external-source]', {
|
|
scope: '.title',
|
|
}),
|
|
dashboardAnchor: {
|
|
href: attribute('href', '[data-test-dashboard-anchor]'),
|
|
},
|
|
tabs: tabs('tab', [
|
|
'instances',
|
|
'linked-services',
|
|
'upstreams',
|
|
'intentions',
|
|
'routing',
|
|
'tags',
|
|
]),
|
|
filter: filter(),
|
|
// TODO: These need to somehow move to subpages
|
|
instances: collection('.consul-service-instance-list > ul > li:not(:first-child)', {
|
|
address: text('[data-test-address]'),
|
|
}),
|
|
intentions: intentions(),
|
|
};
|
|
page.tabs.upstreamsTab = {
|
|
services: collection('.consul-upstream-list > ul > li:not(:first-child)', {
|
|
name: text('[data-test-service-name]'),
|
|
}),
|
|
};
|
|
page.tabs.linkedServicesTab = {
|
|
services: collection('.consul-service-list > ul > li:not(:first-child)', {
|
|
name: text('[data-test-service-name]'),
|
|
}),
|
|
};
|
|
return page;
|
|
}
|