Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2755 Reviewed-by: zhoupzh <zhoupzh@pcl.ac.cn>pull/2766/head
@@ -827,6 +827,7 @@ description_format_err=Description's length can be up to %s characters long. | |||
create_dataset = Create Dataset | |||
download_url=Download Url | |||
download_oper=Operation | |||
download_copy=Copy URL | |||
create_dataset_fail=Failed to create dataset. | |||
query_dataset_fail=Failed to query dataset. | |||
edit_attachment_fail=Failed to update description. | |||
@@ -956,6 +957,8 @@ linked_dataset=Linked Dataset | |||
unfavorite=Unfavorite | |||
favorite=Favorite | |||
disassociate=Disassociate | |||
benchmark_dataset_tip=Note: first use the dataset function to upload the model, and then select the model from the dataset list. | |||
[repo] | |||
owner = Owner | |||
repo_name = Repository Name | |||
@@ -3128,7 +3131,7 @@ specification = specification | |||
select_specification = select specification | |||
description = description | |||
wrong_specification=You cannot use this specification, please choose another item. | |||
resource_use=Resource Occupancy | |||
job_name_rule = Please enter letters, numbers, _ and - up to 64 characters and cannot end with a dash (-). | |||
train_dataset_path_rule = The dataset location is stored in the environment variable <strong style="color:#010101">data_url</strong>, and the output path is stored in the environment variable <strong style="color:#010101">train_url</strong>. | |||
@@ -838,6 +838,7 @@ reference_dataset_fail=关联数据集失败,请稍后再试。 | |||
cancel_reference_dataset_fail=取消关联数据集失败,请稍后再试。 | |||
download_url=数据集下载地址 | |||
download_copy=复制链接 | |||
download_oper=操作 | |||
show_dataset=数据集 | |||
edit_dataset=编辑数据集 | |||
@@ -962,6 +963,7 @@ linked_dataset=关联数据集 | |||
unfavorite=取消收藏 | |||
favorite=收藏 | |||
disassociate=取消关联 | |||
benchmark_dataset_tip=说明:先使用数据集功能上传模型,然后从数据集列表选模型。 | |||
[repo] | |||
owner=拥有者 | |||
@@ -3159,7 +3161,7 @@ delete_task = 删除任务 | |||
task_delete_confirm = 你确认删除该任务么?此任务一旦删除不可恢复。 | |||
operate_confirm = 确定操作 | |||
operate_cancel = 取消操作 | |||
resource_use=资源占用情况 | |||
gpu_num = GPU数 | |||
cpu_num = CPU数 | |||
@@ -15,7 +15,7 @@ | |||
{{if .benchmarkMode}}{{.i18n.Tr "repo.modelarts.infer_job.select_model"}}{{else}}{{.i18n.Tr "dataset.select_dataset"}}{{end}} | |||
</el-button> | |||
{{if .benchmarkMode}} | |||
<span class="tooltips" style="display: block;margin-left:11.5rem;">说明:先使用数据集功能上传模型,然后从数据集列表选模型。</span> | |||
<span class="tooltips" style="display: block;margin-left:11.5rem;">{{.i18n.Tr "dataset.benchmark_dataset_tip"}}</span> | |||
{{end}} | |||
<el-dialog title="{{.i18n.Tr "dataset.select_dataset"}}" :visible.sync="dialogVisible" width="50%"> | |||
<div v-loading="loadingDataIndex" style="position: relative;"> | |||
@@ -49,13 +49,13 @@ | |||
<i class="CREATING"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" | |||
data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压中</span> | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_stared"}}</span> | |||
</span> | |||
<span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;"> | |||
<i class="FAILED"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color:red;" | |||
data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压失败</span> | |||
data-tooltip="{{$.i18n.Tr "dataset.unzip_failed"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_failed"}}</span> | |||
</span> | |||
</div> | |||
</div> | |||
@@ -85,13 +85,13 @@ | |||
<i class="CREATING"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" | |||
data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压中</span> | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_stared"}}</span> | |||
</span> | |||
<span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;"> | |||
<i class="FAILED"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color:red;" | |||
data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压失败</span> | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_failed"}}</span> | |||
</span> | |||
</div> | |||
</div> | |||
@@ -120,13 +120,13 @@ | |||
<i class="CREATING"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" | |||
data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压中</span> | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_stared"}}</span> | |||
</span> | |||
<span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;"> | |||
<i class="FAILED"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color:red;" | |||
data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压失败</span> | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_failed"}}</span> | |||
</span> | |||
</div> | |||
</div> | |||
@@ -155,13 +155,13 @@ | |||
<i class="CREATING"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" | |||
data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压中</span> | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_stared"}}</span> | |||
</span> | |||
<span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;"> | |||
<i class="FAILED"></i> | |||
<span style="margin-left: 0.4em;font-size: 12px;color:red;" | |||
data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" | |||
data-variation="mini" data-position="left center">解压失败</span> | |||
data-variation="mini" data-position="left center">{{$.i18n.Tr "dataset.unzip_failed"}}</span> | |||
</span> | |||
</div> | |||
</div> | |||
@@ -211,7 +211,7 @@ | |||
data-content={{.i18n.Tr "repo.modelarts.train_job.boot_file_helper"}} | |||
data-position="right center" data-variation="mini"></i> | |||
</span> | |||
<a href="https://git.openi.org.cn/OpenIOSSG/MNIST_PytorchExample_GPU" target="_blank">查看样例</a> | |||
<a href="https://git.openi.org.cn/OpenIOSSG/MNIST_PytorchExample_GPU" target="_blank">{{.i18n.Tr "cloudbrain.view_sample"}}</a> | |||
</div> | |||
<div id="select-multi-dataset"> | |||
@@ -164,7 +164,7 @@ | |||
<span> | |||
<i class="question circle icon link" data-content={{.i18n.Tr "repo.modelarts.train_job.boot_file_helper"}} data-position="right center" data-variation="mini"></i> | |||
</span> | |||
<a href="https://git.openi.org.cn/OpenIOSSG/MNIST_PytorchExample_GPU/src/branch/master/train_for_c2net.py" target="_blank">查看样例</a> | |||
<a href="https://git.openi.org.cn/OpenIOSSG/MNIST_PytorchExample_GPU/src/branch/master/train_for_c2net.py" target="_blank">{{.i18n.Tr "cloudbrain.view_sample"}}</a> | |||
</div> | |||
@@ -441,7 +441,7 @@ | |||
<tr> | |||
<td style="word-wrap: break-word;word-break: break-all;"><a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a></td> | |||
<td style="word-wrap: break-word;word-break: break-all;">{{.DatasetDownloadLink}}</td> | |||
<td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn1" data-original="{{$.i18n.Tr "repo.copy_link"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-text="{{.DatasetDownloadLink}}">复制链接</a></td> | |||
<td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn" data-original="{{$.i18n.Tr "repo.copy_link"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-text="{{.DatasetDownloadLink}}">{{$.i18n.Tr "dataset.download_copy"}}</a></td> | |||
</tr> | |||
{{end}} | |||
</tbody> | |||
@@ -320,7 +320,7 @@ | |||
data-tab="first{{$k}}">{{$.i18n.Tr "repo.modelarts.train_job.config"}}</a> | |||
<a class="item log_bottom" data-tab="second{{$k}}" | |||
data-version="{{.VersionName}}">{{$.i18n.Tr "repo.modelarts.log"}}</a> | |||
<a class="item metric_chart" data-tab="four{{$k}}" data-version="{{.VersionName}}">资源占用情况</a> | |||
<a class="item metric_chart" data-tab="four{{$k}}" data-version="{{.VersionName}}">{{$.i18n.Tr "cloudbrain.resource_use"}}</a> | |||
<a class="item load-model-file" data-tab="third{{$k}}" data-download-flag="{{$.canDownload}}" data-path="{{$.RepoLink}}/modelarts/train-job/{{.JobID}}/model_list" data-version="{{.VersionName}}" data-parents="" data-filename="" data-init="init" >{{$.i18n.Tr "repo.model_download"}}</a> | |||
</div> | |||
<div class="ui tab active" data-tab="first{{$k}}"> | |||
@@ -11,9 +11,9 @@ | |||
v-if="benchmarkNew" | |||
class="label-fix-width" | |||
style="font-weight: normal" | |||
>数据集</label | |||
>{{i18n.dataset_label}}</label | |||
> | |||
<label v-else>数据集</label> | |||
<label v-else>{{i18n.dataset_label}}</label> | |||
<span | |||
:class=" | |||
benchmarkNew === true ? 'dataset-train-span' : 'dataset-debug-span' | |||
@@ -38,7 +38,7 @@ | |||
type="text" | |||
class="disabled" | |||
style="width: 48.5%" | |||
placeholder="选择数据集文件" | |||
:placeholder="i18n.dataset_select_placeholder" | |||
required | |||
/> | |||
<input | |||
@@ -46,7 +46,7 @@ | |||
type="text" | |||
class="disabled" | |||
:required="required" | |||
placeholder="选择数据集文件" | |||
:placeholder="i18n.dataset_select_placeholder" | |||
/> | |||
</span> | |||
@@ -59,10 +59,10 @@ | |||
? 'select-dataset-button' | |||
: 'select-dataset-button-color' | |||
" | |||
>选择数据集 | |||
>{{i18n.dataset_select}} | |||
</el-button> | |||
<el-dialog | |||
title="选择数据集" | |||
:title="i18n.dataset_select" | |||
:visible.sync="dialogVisible" | |||
:width="dialogWidth" | |||
> | |||
@@ -74,7 +74,7 @@ | |||
></i> | |||
<input | |||
type="text" | |||
placeholder="搜数据集名称/描述..." | |||
:placeholder="i18n.dataset_search_placeholder" | |||
v-model="search" | |||
@keydown.enter.stop.prevent="searchName" | |||
/> | |||
@@ -90,7 +90,7 @@ | |||
> | |||
<el-tabs v-model="activeName" @tab-click="handleClick"> | |||
<!-- 当前项目的数据集 --> | |||
<el-tab-pane label="本项目" name="first" v-loading="loadingCurrent"> | |||
<el-tab-pane :label="i18n.dataset_current_repo" name="first" v-loading="loadingCurrent"> | |||
<el-row> | |||
<el-tree | |||
:data="currentDatasetList" | |||
@@ -144,7 +144,7 @@ | |||
<i | |||
class="ri-links-line" | |||
style="color: #21ba45; margin-right: 0.3rem" | |||
title="关联数据集" | |||
:title="i18n.dataset_relate" | |||
v-if=" | |||
'/' + data.Repo.OwnerName + '/' + data.Repo.Name !== | |||
repoLink | |||
@@ -172,13 +172,13 @@ | |||
class="zip-loading" | |||
v-if="data.DecompressState === 2" | |||
> | |||
正在解压缩 | |||
{{i18n.dataset_unziping}} | |||
</span> | |||
<span | |||
class="unzip-failed" | |||
v-if="data.DecompressState === 3" | |||
> | |||
解压失败 | |||
{{i18n.dataset_unzip_failed}} | |||
</span> | |||
</span> | |||
</span> | |||
@@ -201,7 +201,7 @@ | |||
</div> | |||
</el-tab-pane> | |||
<!-- 我上传的数据集 --> | |||
<el-tab-pane label="我上传的" name="second" v-loading="loadingMy"> | |||
<el-tab-pane :label="i18n.dataset_my_upload" name="second" v-loading="loadingMy"> | |||
<el-row> | |||
<el-tree | |||
:data="myDatasetList" | |||
@@ -274,13 +274,13 @@ | |||
class="zip-loading" | |||
v-if="data.DecompressState === 2" | |||
> | |||
正在解压缩 | |||
{{i18n.dataset_unziping}} | |||
</span> | |||
<span | |||
class="unzip-failed" | |||
v-if="data.DecompressState === 3" | |||
> | |||
解压失败 | |||
{{i18n.dataset_unzip_failed}} | |||
</span> | |||
</span> | |||
</span> | |||
@@ -304,7 +304,7 @@ | |||
</el-tab-pane> | |||
<!-- 公开的数据集 --> | |||
<el-tab-pane | |||
label="公开数据集" | |||
:label="i18n.dataset_public" | |||
name="third" | |||
v-loading="loadingPublic" | |||
> | |||
@@ -380,13 +380,13 @@ | |||
class="zip-loading" | |||
v-if="data.DecompressState === 2" | |||
> | |||
正在解压缩 | |||
{{i18n.dataset_unziping}} | |||
</span> | |||
<span | |||
class="unzip-failed" | |||
v-if="data.DecompressState === 3" | |||
> | |||
解压失败 | |||
{{i18n.dataset_unzip_failed}} | |||
</span> | |||
</span> | |||
</span> | |||
@@ -410,7 +410,7 @@ | |||
</el-tab-pane> | |||
<!-- 我点赞的数据集 --> | |||
<el-tab-pane | |||
label="我收藏的" | |||
:label="i18n.dataset_collected" | |||
name="four" | |||
v-loading="loadingFavorite" | |||
> | |||
@@ -486,13 +486,13 @@ | |||
class="zip-loading" | |||
v-if="data.DecompressState === 2" | |||
> | |||
正在解压缩 | |||
{{i18n.dataset_unziping}} | |||
</span> | |||
<span | |||
class="unzip-failed" | |||
v-if="data.DecompressState === 3" | |||
> | |||
解压失败 | |||
{{i18n.dataset_unzip_failed}} | |||
</span> | |||
</span> | |||
</span> | |||
@@ -536,7 +536,7 @@ | |||
line-height: 40px; | |||
" | |||
> | |||
已选数据文件 | |||
{{i18n.dataset_selected}} | |||
</div> | |||
<div style="flex: 1; margin-top: 1.5rem"> | |||
<el-checkbox-group v-model="checkList"> | |||
@@ -558,7 +558,7 @@ | |||
color: #fff; | |||
border: 1px solid #389e0d; | |||
" | |||
>确定</el-button | |||
>{{i18n.dataset_ok}}</el-button | |||
> | |||
</div> | |||
</el-col> | |||
@@ -585,7 +585,7 @@ export default { | |||
activeName: "first", | |||
search: "", | |||
required: true, | |||
i18n: {}, | |||
type: 0, | |||
repoLink: "", | |||
selectDatasetArray: [], | |||
@@ -666,10 +666,10 @@ export default { | |||
}) | |||
) { | |||
this.$refs[data.ref].setChecked(data.id, false, false); | |||
this.$message.warning("不能选择相同名称的数据文件"); | |||
this.$message.warning(this.i18n.dataset_not_equal_file); | |||
} else if (this.selectDatasetArray.length === 5) { | |||
this.$refs[data.ref].setChecked(data.id, false, false); | |||
this.$message.error("最多不超过五个文件"); | |||
this.$message.error(this.i18n.dataset_most); | |||
} else { | |||
this.selectDatasetArray.push(data); | |||
} | |||
@@ -1013,6 +1013,11 @@ export default { | |||
}, | |||
created() { | |||
this.setDialogWidth(); | |||
if (document.documentElement.attributes["lang"].nodeValue == "en-US") { | |||
this.i18n = this.$locale.US; | |||
} else { | |||
this.i18n = this.$locale.CN; | |||
} | |||
}, | |||
}; | |||
</script> | |||
@@ -7,32 +7,32 @@ | |||
v-if="benchmarkNew" | |||
class="label-fix-width" | |||
style="font-weight: normal" | |||
>镜像</label | |||
>{{i18n.image_label}}</label | |||
> | |||
<label v-else>镜像</label> | |||
<label v-else>{{i18n.image_label}}</label> | |||
<input | |||
v-if="benchmarkNew" | |||
type="text" | |||
name="image" | |||
:value="imageAddress" | |||
style="width: 48.5%" | |||
placeholder="选择镜像或输入镜像地址" | |||
:placeholder="i18n.image_select_placeholder" | |||
/> | |||
<input | |||
v-else | |||
type="text" | |||
name="image" | |||
:value="imageAddress" | |||
placeholder="选择镜像或输入镜像地址" | |||
:placeholder="i18n.image_select_placeholder" | |||
/> | |||
<el-button | |||
type="text" | |||
@click="dialogVisible = true" | |||
icon="el-icon-plus" | |||
style="color: #0366d6" | |||
>选择镜像 | |||
>{{i18n.image_select}} | |||
</el-button> | |||
<el-dialog title="选择镜像" :visible.sync="dialogVisible" width="50%"> | |||
<el-dialog :title="i18n.image_select" :visible.sync="dialogVisible" width="50%"> | |||
<div | |||
class="ui icon input" | |||
style="z-index: 9999; position: absolute; right: 50px; height: 30px" | |||
@@ -43,12 +43,12 @@ | |||
></i> | |||
<input | |||
type="text" | |||
placeholder="搜镜像Tag/描述/标签..." | |||
:placeholder="i18n.image_search_placeholder" | |||
v-model="search" | |||
/> | |||
</div> | |||
<el-tabs v-model="activeName" @tab-click="handleClick"> | |||
<el-tab-pane label="公开镜像" name="first" v-loading="loadingPublic"> | |||
<el-tab-pane :label="i18n.image_public" name="first" v-loading="loadingPublic"> | |||
<div | |||
style=" | |||
display: flex; | |||
@@ -120,7 +120,7 @@ | |||
selectImages(publicData.place, publicData.tag) | |||
" | |||
> | |||
使用 | |||
{{i18n.image_use}} | |||
</button> | |||
</div> | |||
</div> | |||
@@ -169,6 +169,7 @@ export default { | |||
}, | |||
tableDataPublic: [], | |||
loadingPublic: false, | |||
i18n: {}, | |||
}; | |||
}, | |||
methods: { | |||
@@ -236,7 +237,13 @@ export default { | |||
this.benchmarkNew = true; | |||
} | |||
}, | |||
created() {}, | |||
created() { | |||
if (document.documentElement.attributes["lang"].nodeValue == "en-US") { | |||
this.i18n = this.$locale.US; | |||
} else { | |||
this.i18n = this.$locale.CN; | |||
} | |||
}, | |||
}; | |||
</script> | |||
@@ -7,16 +7,16 @@ | |||
v-if="benchmarkNew" | |||
class="label-fix-width" | |||
style="font-weight: normal" | |||
>镜像</label | |||
>{{i18n.image_label}}</label | |||
> | |||
<label v-else>镜像</label> | |||
<label v-else>{{i18n.image_label}}</label> | |||
<input | |||
v-if="benchmarkNew" | |||
type="text" | |||
name="image" | |||
:value="imageAddress" | |||
style="width: 48.5%" | |||
placeholder="选择镜像或输入镜像地址" | |||
:placeholder="i18n.image_select_placeholder" | |||
required | |||
/> | |||
<input | |||
@@ -24,7 +24,7 @@ | |||
type="text" | |||
name="image" | |||
:value="imageAddress" | |||
placeholder="选择镜像或输入镜像地址" | |||
:placeholder="i18n.image_select_placeholder" | |||
required | |||
/> | |||
<el-button | |||
@@ -32,9 +32,9 @@ | |||
@click="dialogVisible = true" | |||
icon="el-icon-plus" | |||
style="color: #0366d6" | |||
>选择镜像 | |||
>{{i18n.image_select}} | |||
</el-button> | |||
<el-dialog title="选择镜像" :visible.sync="dialogVisible" width="50%"> | |||
<el-dialog :title="i18n.image_select" :visible.sync="dialogVisible" width="50%"> | |||
<div | |||
class="ui icon input" | |||
style="z-index: 9999; position: absolute; right: 50px; height: 30px" | |||
@@ -45,12 +45,12 @@ | |||
></i> | |||
<input | |||
type="text" | |||
placeholder="搜镜像Tag/描述/标签..." | |||
:placeholder="i18n.image_search_placeholder" | |||
v-model="search" | |||
/> | |||
</div> | |||
<el-tabs v-model="activeName" @tab-click="handleClick"> | |||
<el-tab-pane label="公开镜像" name="first" v-loading="loadingPublic"> | |||
<el-tab-pane :label="i18n.image_public" name="first" v-loading="loadingPublic"> | |||
<div | |||
style=" | |||
display: flex; | |||
@@ -122,7 +122,7 @@ | |||
selectImages(publicData.place, publicData.tag) | |||
" | |||
> | |||
使用 | |||
{{i18n.image_use}} | |||
</button> | |||
</div> | |||
</div> | |||
@@ -142,7 +142,7 @@ | |||
</div> | |||
</el-tab-pane> | |||
<el-tab-pane label="我的镜像" name="second" v-loading="loadingCustom"> | |||
<el-tab-pane :label="i18n.image_my" name="second" v-loading="loadingCustom"> | |||
<div | |||
style=" | |||
display: flex; | |||
@@ -208,7 +208,7 @@ | |||
selectImages(customData.place, customData.tag) | |||
" | |||
> | |||
使用 | |||
{{i18n.image_use}} | |||
</button> | |||
<span | |||
v-if="customData.status === 0" | |||
@@ -217,7 +217,7 @@ | |||
<i class="CREATING"></i> | |||
<span | |||
style="margin-left: 0.4em; font-size: 12px; color: #5a5a5a" | |||
>提交中</span | |||
>{{i18n.image_commit}}</span | |||
> | |||
</span> | |||
<span | |||
@@ -228,11 +228,11 @@ | |||
<el-tooltip | |||
class="item" | |||
effect="dark" | |||
content="检测提交镜像是否大小超过20G!" | |||
:content="i18n.image_commit_content" | |||
placement="left" | |||
> | |||
<span style="margin-left: 0.4em; font-size: 12px; color: red" | |||
>提交失败</span | |||
>{{i18n.image_commit_failed}}</span | |||
> | |||
</el-tooltip> | |||
</span> | |||
@@ -254,7 +254,7 @@ | |||
</div> | |||
</el-tab-pane> | |||
<el-tab-pane label="我收藏的镜像" name="third"> | |||
<el-tab-pane :label="i18n.image_collected" name="third"> | |||
<div | |||
style=" | |||
display: flex; | |||
@@ -324,7 +324,7 @@ | |||
class="ui primary basic button mini" | |||
@click.stop.prevent="selectImages(starData.place, starData.tag)" | |||
> | |||
使用 | |||
{{i18n.image_use}} | |||
</button> | |||
</div> | |||
</div> | |||
@@ -368,7 +368,7 @@ export default { | |||
paramsPublic: { page: 1, pageSize: 5, q: "", recommend: false }, | |||
tableDataPublic: [], | |||
loadingPublic: false, | |||
i18n: {}, | |||
currentPageCustom: 1, | |||
pageSizeCustom: 5, | |||
totalNumCustom: 0, | |||
@@ -513,7 +513,13 @@ export default { | |||
this.benchmark = true; | |||
} | |||
}, | |||
created() {}, | |||
created() { | |||
if (document.documentElement.attributes["lang"].nodeValue == "en-US") { | |||
this.i18n = this.$locale.US; | |||
} else { | |||
this.i18n = this.$locale.CN; | |||
} | |||
}, | |||
}; | |||
</script> | |||
@@ -57,6 +57,32 @@ export const i18nVue = { | |||
dataset_link_failed: "关联数据集失败!", | |||
dataset_over_nums: "关联超过?个数据集", | |||
cancel_link_dataset: "取消?关联数据集成功!", | |||
image_label:"镜像", | |||
image_select_placeholder:"选择镜像或输入镜像地址", | |||
image_select:"选择镜像", | |||
image_search_placeholder:"搜镜像Tag/描述/标签...", | |||
image_public:"公开镜像", | |||
image_use:"使用", | |||
image_my:"我的镜像", | |||
image_commit:"提交中", | |||
image_commit_content:"检测提交镜像是否大小超过20G!", | |||
image_commit_failed:"提交失败", | |||
image_collected:"我收藏的镜像", | |||
dataset_label:"数据集", | |||
dataset_select_placeholder:"选择数据集文件", | |||
dataset_select:"选择数据集", | |||
dataset_search_placeholder:"搜数据集名称/描述...", | |||
dataset_unziping:"正在解压缩", | |||
dataset_unzip_failed:"解压失败", | |||
dataset_my_upload:"我上传的", | |||
dataset_current_repo:"本项目", | |||
dataset_public:"公开数据集", | |||
dataset_relate:"关联数据集", | |||
dataset_collected:"我收藏的", | |||
dataset_selected:"已选数据文件", | |||
dataset_ok:"确定", | |||
dataset_not_equal_file:"不能选择相同名称的数据文件", | |||
dataset_most:"最多不超过五个文件", | |||
}, | |||
US: { | |||
computer_vision: "computer vision", | |||
@@ -119,5 +145,31 @@ export const i18nVue = { | |||
dataset_link_failed: "Linked dataset Failed!", | |||
dataset_over_nums: "Linked over ? datasets!", | |||
cancel_link_dataset: "Cancel ? Linked dataset succeeded!", | |||
image_label:"Image", | |||
image_select_placeholder:"Select image or input image url", | |||
image_select:"Select Image", | |||
image_search_placeholder:"Search image tag/description/label...", | |||
image_public:"Public Image", | |||
image_use:"Use", | |||
image_my:"My Images", | |||
image_commit:"Commiting", | |||
image_commit_content:"Check whether the size of the submitted image exceeds 20g.", | |||
image_commit_failed:"Commit failed", | |||
image_collected:"My collected images", | |||
dataset_label:"Dataset", | |||
dataset_select_placeholder:"Select dataset file", | |||
dataset_select:"Select dataset", | |||
dataset_search_placeholder:"Search dataset name/description ...", | |||
dataset_unziping:"Decompressing", | |||
dataset_unzip_failed:"Decompression failed", | |||
dataset_my_upload:"Upload by me", | |||
dataset_current_repo:"Current Repository", | |||
dataset_public:"Public dataset", | |||
dataset_collected:"My collection", | |||
dataset_relate:"Related dataset", | |||
dataset_selected:"Selected dataset file", | |||
dataset_ok:"OK", | |||
dataset_not_equal_file:"Cannot select a data file with the same name.", | |||
dataset_most:"Up to five files.", | |||
}, | |||
}; |