mirror of
https://github.com/louislam/dockge.git
synced 2024-11-27 21:24:02 +00:00
WIP
This commit is contained in:
parent
17f9ee63f7
commit
03a1105e34
1 changed files with 8 additions and 2 deletions
|
@ -40,7 +40,7 @@
|
||||||
<div class="shadow-box big-padding">
|
<div class="shadow-box big-padding">
|
||||||
<h4 class="mb-3">{{ $tc("dockgeAgent", 2) }} <span class="badge bg-warning" style="font-size: 12px;">beta</span></h4>
|
<h4 class="mb-3">{{ $tc("dockgeAgent", 2) }} <span class="badge bg-warning" style="font-size: 12px;">beta</span></h4>
|
||||||
|
|
||||||
<div v-for="(agent, endpoint) in $root.agentList" :key="endpoint" class="mb-3">
|
<div v-for="(agent, endpoint) in $root.agentList" :key="endpoint" class="mb-3 agent">
|
||||||
<!-- Agent Status -->
|
<!-- Agent Status -->
|
||||||
<template v-if="$root.agentStatusList[endpoint]">
|
<template v-if="$root.agentStatusList[endpoint]">
|
||||||
<span v-if="$root.agentStatusList[endpoint] === 'online'" class="badge bg-primary me-2">{{ $t("agentOnline") }}</span>
|
<span v-if="$root.agentStatusList[endpoint] === 'online'" class="badge bg-primary me-2">{{ $t("agentOnline") }}</span>
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
<!-- Agent Display Name -->
|
<!-- Agent Display Name -->
|
||||||
<span v-if="endpoint === ''">{{ $t("currentEndpoint") }}</span>
|
<span v-if="endpoint === ''">{{ $t("currentEndpoint") }}</span>
|
||||||
<span v-else>{{ endpoint }}</span>
|
<a v-else :href="agent.url" target="_blank">{{ endpoint }}</a>
|
||||||
|
|
||||||
<!-- Remove Button -->
|
<!-- Remove Button -->
|
||||||
<font-awesome-icon v-if="endpoint !== ''" class="ms-2 remove-agent" icon="trash" @click="showRemoveAgentDialog[agent.url] = !showRemoveAgentDialog[agent.url]" />
|
<font-awesome-icon v-if="endpoint !== ''" class="ms-2 remove-agent" icon="trash" @click="showRemoveAgentDialog[agent.url] = !showRemoveAgentDialog[agent.url]" />
|
||||||
|
@ -341,4 +341,10 @@ table {
|
||||||
color: rgba(255, 255, 255, 0.3);
|
color: rgba(255, 255, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.agent {
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue