Move DockerfileCommand component into TS

This commit is contained in:
Joseph Schorr 2017-06-23 14:22:28 -04:00
parent 255bebcc92
commit 62d7cb234c
11 changed files with 113 additions and 106 deletions

View file

@ -1 +1 @@
<span class="dockerfile-command command" command="getWithoutStep(command.message)"></span>
<dockerfile-command class="command" command="getWithoutStep(command.message)"></dockerfile-command>

View file

@ -1,6 +0,0 @@
<span class="dockerfile-command-element" bindonce>
<span class="label" bo-class="getCommandKind(command)" bo-show="getCommandKind(command)"
bo-text="getCommandKind(command)">
</span>
<span class="command-title" bo-html="getCommandTitleHtml(command)"></span>
</span>

View file

@ -165,7 +165,7 @@
<td class="double-col image-col hidden-xs hidden-sm hidden-md">
<span bo-if="feature.imageCommand">
<span data-title="{{ feature.imageCommand }}" data-container="body" bs-tooltip>
<span class="dockerfile-command" command="feature.imageCommand"></span>
<dockerfile-command command="feature.imageCommand"></dockerfile-command>
</span>
<a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ feature.imageId }}"><i class="fa fa-archive"></i></a>
</span>

View file

@ -6,8 +6,8 @@
</div>
<div class="image-command">
<div class="nondocker-command" ng-if="!getDockerfileCommand(image.command)">{{ image.command.join(' ') }}</div>
<div class="dockerfile-command" command="getDockerfileCommand(image.command)"
ng-if="getDockerfileCommand(image.command)"></div>
<dockerfile-command command="getDockerfileCommand(image.command)"
ng-if="getDockerfileCommand(image.command)"></dockerfile-command>
</div>
<div class="image-layer-dot"></div>
<div class="image-layer-line"></div>

View file

@ -153,7 +153,7 @@
<td class="double-col image-col hidden-xs hidden-sm hidden-md">
<span bo-if="vuln.imageCommand">
<span data-title="{{ vuln.imageCommand }}" data-container="body" bs-tooltip>
<span class="dockerfile-command" command="vuln.imageCommand"></span>
<dockerfile-command command="vuln.imageCommand"></dockerfile-command>
</span>
<a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ vuln.imageId }}"><i class="fa fa-archive"></i></a>
</span>