improve translation for Docker TaskState

This commit is contained in:
sam 2022-02-14 15:46:15 +08:00
parent f34bdd3124
commit b1113e8e8a

View File

@ -7,22 +7,37 @@
<a-input v-model="listQuery['taskName']" placeholder="任务名称" class="search-input-item" /> <a-input v-model="listQuery['taskName']" placeholder="任务名称" class="search-input-item" />
<a-input v-model="listQuery['taskId']" placeholder="任务id" class="search-input-item" /> <a-input v-model="listQuery['taskId']" placeholder="任务id" class="search-input-item" />
<a-input v-model="listQuery['taskNode']" placeholder="节点id" class="search-input-item" /> <a-input v-model="listQuery['taskNode']" placeholder="节点id" class="search-input-item" />
<!-- Note: detail description about taskState, please @see https://docs.docker.com/engine/swarm/how-swarm-mode-works/swarm-task-states/ -->
<!-- reference Java class: com.github.dockerjava.api.model.TaskState -->
<a-select show-search option-filter-prop="children" v-model="listQuery['taskState']" allowClear placeholder="状态" class="search-input-item"> <a-select show-search option-filter-prop="children" v-model="listQuery['taskState']" allowClear placeholder="状态" class="search-input-item">
<a-select-option key="NEW">新任务</a-select-option> <!-- NEW: The task was initialized. -->
<a-select-option key="NEW">新建状态</a-select-option>
<a-select-option key="ALLOCATED">已分配</a-select-option> <a-select-option key="ALLOCATED">已分配</a-select-option>
<a-select-option key="PENDING">未决定</a-select-option> <!-- PENDING: Resources for the task were allocated. -->
<a-select-option key="ASSIGNED">已指定</a-select-option> <a-select-option key="PENDING">待处理</a-select-option>
<a-select-option key="ACCEPTED">公认</a-select-option> <!-- ASSIGNED: Docker assigned the task to nodes. -->
<a-select-option key="ASSIGNED">已分配</a-select-option>
<!-- ACCEPTED: The task was accepted by a worker node. If a worker node rejects the task, the state changes to REJECTED. -->
<a-select-option key="ACCEPTED">处理中</a-select-option>
<!-- PREPARING: Docker is preparing the task. -->
<a-select-option key="PREPARING">准备中</a-select-option> <a-select-option key="PREPARING">准备中</a-select-option>
<a-select-option key="READY">准备</a-select-option> <a-select-option key="READY">准备</a-select-option>
<a-select-option key="STARTING">开始</a-select-option> <!-- STARTING: Docker is starting the task. -->
<a-select-option key="RUNNING">运行中</a-select-option> <a-select-option key="STARTING">开始执行任务</a-select-option>
<a-select-option key="COMPLETE">完成</a-select-option> <!-- RUNNING: The task is executing. -->
<a-select-option key="SHUTDOWN">关闭</a-select-option> <a-select-option key="RUNNING">执行任务中</a-select-option>
<a-select-option key="FAILED">失败</a-select-option> <!-- COMPLETE: The task exited without an error code. -->
<a-select-option key="COMPLETE">执行成功</a-select-option>
<!-- SHUTDOWN: Docker requested the task to shut down. -->
<a-select-option key="SHUTDOWN">停止</a-select-option>
<!-- FAILED: The task exited with an error code. -->
<a-select-option key="FAILED">执行失败</a-select-option>
<!-- REJECTED: The worker node rejected the task. -->
<a-select-option key="REJECTED">拒绝</a-select-option> <a-select-option key="REJECTED">拒绝</a-select-option>
<a-select-option key="REMOVE">消除</a-select-option> <!-- REMOVE: The task is not terminal but the associated service was removed or scaled down. -->
<a-select-option key="ORPHANED">孤儿</a-select-option> <a-select-option key="REMOVE">移除</a-select-option>
<!-- ORPHANED: The node was down for too long. -->
<a-select-option key="ORPHANED">已失联</a-select-option>
</a-select> </a-select>
<a-button type="primary" @click="loadData" :loading="loading">搜索</a-button> <a-button type="primary" @click="loadData" :loading="loading">搜索</a-button>
</a-space> </a-space>