Skip to content

Commit

Permalink
显示布局调整
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Nov 17, 2023
1 parent ad78676 commit a7b4df1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/frontend/components/container/ContainerProbeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const props = defineProps({
</div>
<div v-if="probe.tcpSocket">
<ProbeType type="tcpSocket" />
<CopyableText :text="`${probe.tcpSocket.host}:${probe.tcpSocket.port}`" />
<CopyableText :text="`${probe.tcpSocket.host ? probe.tcpSocket.host : ''}:${probe.tcpSocket.port}`" />
</div>
<div v-if="probe.grpc">
<ProbeType type="grpc" />
Expand Down
50 changes: 26 additions & 24 deletions src/frontend/components/container/ContainersView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ function copy(text) {
{{ t.imagePullPolicy }}
</td>
</tr>

<tr v-if="t.command">
<td>Command</td>
<td>
<CopyableText :text="t.command.join(' ')" />
</td>
</tr>
<tr v-if="t.ports">
<td>Ports</td>
<td>
Expand All @@ -87,6 +94,25 @@ function copy(text) {
</p>
</td>
</tr>

<tr v-if="t.livenessProbe">
<td>livenessProbe</td>
<td>
<ContainerProbeView :probe="t.livenessProbe" />
</td>
</tr>
<tr v-if="t.readinessProbe">
<td>readinessProbe</td>
<td>
<ContainerProbeView :probe="t.readinessProbe" />
</td>
</tr>
<tr v-if="t.startupProbe">
<td>startupProbe</td>
<td>
<ContainerProbeView :probe="t.startupProbe" />
</td>
</tr>
<tr v-if="t.env">
<td>Environment</td>
<td>
Expand Down Expand Up @@ -115,30 +141,6 @@ function copy(text) {
</div>
</td>
</tr>
<tr v-if="t.command">
<td>Command</td>
<td>
<CopyableText :text="t.command.join(' ')" />
</td>
</tr>
<tr v-if="t.livenessProbe">
<td>livenessProbe</td>
<td>
<ContainerProbeView :probe="t.livenessProbe" />
</td>
</tr>
<tr v-if="t.readinessProbe">
<td>readinessProbe</td>
<td>
<ContainerProbeView :probe="t.readinessProbe" />
</td>
</tr>
<tr v-if="t.startupProbe">
<td>startupProbe</td>
<td>
<ContainerProbeView :probe="t.startupProbe" />
</td>
</tr>
</tbody>
</NTable>
</NSpace>
Expand Down

0 comments on commit a7b4df1

Please sign in to comment.