mirror of
https://github.com/status-im/consul.git
synced 2025-01-21 02:59:48 +00:00
6589cbbd0d
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
63 lines
1.7 KiB
Handlebars
63 lines
1.7 KiB
Handlebars
{{on-window 'resize' (action this.getIconPositions)}}
|
|
|
|
{{#if (gt @lines.length 0)}}
|
|
<svg
|
|
{{did-insert this.getIconPositions}}
|
|
{{did-update this.getIconPositions @lines}}
|
|
viewBox={{concat @view.x ' ' @view.y ' ' @view.width ' ' @view.height}}
|
|
preserveAspectRatio="none"
|
|
>
|
|
<defs>
|
|
<marker id="allow-dot" viewBox="-2 -2 15 15" refX="6" refY="6" markerWidth="6" markerHeight="6">
|
|
<circle
|
|
cx="6"
|
|
cy="6"
|
|
r="6"
|
|
/>
|
|
</marker>
|
|
<marker id="allow-arrow" viewBox="-1 -1 12 12" refX="5" refY="5"
|
|
markerWidth="6" markerHeight="6"
|
|
orient="auto-start-reverse">
|
|
<polygon points="0 0 10 5 0 10" />
|
|
</marker>
|
|
<marker id="deny-dot" viewBox="-2 -2 15 15" refX="6" refY="6" markerWidth="6" markerHeight="6">
|
|
<circle
|
|
cx="6"
|
|
cy="6"
|
|
r="6"
|
|
/>
|
|
</marker>
|
|
<marker id="deny-arrow" viewBox="-1 -1 12 12" refX="5" refY="5"
|
|
markerWidth="6" markerHeight="6"
|
|
orient="auto-start-reverse">
|
|
<polygon points="0 0 10 5 0 10" />
|
|
</marker>
|
|
</defs>
|
|
{{#each @lines as |line|}}
|
|
{{#if (eq line.permission 'deny')}}
|
|
<path
|
|
id={{line.id}}
|
|
d={{svg-curve line.dest src=line.src}}
|
|
marker-start="url(#deny-dot)"
|
|
marker-end="url(#deny-arrow)"
|
|
data-permission={{line.permission}}
|
|
/>
|
|
{{else}}
|
|
<path
|
|
id={{line.id}}
|
|
d={{svg-curve line.dest src=line.src}}
|
|
marker-start="url(#allow-dot)"
|
|
marker-end="url(#allow-arrow)"
|
|
data-permission={{line.permission}}
|
|
/>
|
|
{{/if}}
|
|
{{/each}}
|
|
</svg>
|
|
{{/if}}
|
|
|
|
<TopologyMetrics::Icon
|
|
@positions={{this.iconPositions}}
|
|
@items={{@items}}
|
|
/>
|
|
|