Skip to content

Commit 5d44b51

Browse files
remove namespacePath in relationscard (#718)
* remove namespacePath in relationscard * update locales * add datasets.length in datasetrelationcard & coderelationcard * update font weight
1 parent 4b1bae0 commit 5d44b51

File tree

9 files changed

+12
-13
lines changed

9 files changed

+12
-13
lines changed

frontend/src/components/application_spaces/SpaceRelationsCard.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
<div class="p-[16px] border-t border-gray-200">
33
<h3 class="flex items-center gap-[8px]">
44
<SvgIcon name="spaces" width="18px" height="18px" />
5-
<span class="font-[500] text-gray-700 text-[16px] leading-[24px]"> {{ $t('spaces.using') }} </span>
6-
<span class="text-gray-700"> {{ namespacePath }} </span>
5+
<span class="font-medium text-gray-700 text-[16px] leading-[24px]"> {{ $t('spaces.associated') }} </span>
76
<span class="text-gray-500"> {{ spaces.length }} </span>
87
</h3>
98
<div class="mt-[16px] flex gap-[12px]">

frontend/src/components/codes/CodeRelationsCard.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<div class="p-[16px] border-t border-gray-200">
33
<h3 class="flex items-center gap-[8px]">
44
<SvgIcon name="codes" width="18px" height="18px" />
5-
<span class="font-[500] text-gray-700 text-[16px] leading-[24px]"> {{ $t('codes.codesUsedToTrain') }} </span>
6-
<span class="text-gray-700"> {{ namespacePath }} </span>
5+
<span class="font-medium text-gray-700 text-[16px] leading-[24px]"> {{ $t('codes.associated') }} </span>
6+
<span class="text-gray-500"> {{ codes.length }} </span>
77
</h3>
88
<div class="mt-[16px] flex flex-col gap-[12px]">
99
<RepoItem v-for="code in codes" :repo="code" repoType="code" cardType="relations" />

frontend/src/components/datasets/DatasetRelationsCard.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div class="p-[16px] border-t border-gray-200">
33
<h3 class="flex items-center gap-[8px]">
44
<SvgIcon name="datasets" width="18px" height="18px" />
5-
<span class="font-[500] text-gray-700 text-[16px] leading-[24px]">
6-
{{ $t('datasets.datasetsUsedToTrain') }}
5+
<span class="font-medium text-gray-700 text-[16px] leading-[24px]">
6+
{{ $t('datasets.associated') }}
77
</span>
8-
<span class="text-gray-700"> {{ namespacePath }} </span>
8+
<span class="text-gray-500"> {{ datasets.length }} </span>
99
</h3>
1010
<div class="mt-[16px] flex flex-col gap-[12px]">
1111
<RepoItem

frontend/src/locales/en_js/codes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const codes = {
88
namespaceCodeName: "Code name",
99
codeNickName: "Code alias",
1010
codeDesc: "Code description",
11-
codesUsedToTrain: 'Codes used to train',
11+
associated: 'Associated Codes',
1212
newCode: {
1313
title: "Create New Code Repository",
1414
titleDesc: "The repository contains all code files and revision history.",

frontend/src/locales/en_js/datasets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const datasets = {
1010
datasetTag: "Dataset tags",
1111
datasetIndustryTag: "Industry tags",
1212
tips:"Easy Dataset Hosting",
13-
datasetsUsedToTrain: "Dataset used to train",
13+
associated: "Associated Datasets",
1414
newDataset: {
1515
title: "Create New Dataset Repository",
1616
titleDesc: "The repository contains all model files and revision history.",

frontend/src/locales/en_js/spaces.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export const spaces = {
22
title: "Application Space",
33
placeholder: "Search Spaces",
44
tips:"Creating Interactive Machine Learning Demos",
5-
using:'Space using'
5+
associated:'Associated Spaces'
66
}

frontend/src/locales/zh_js/codes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const codes = {
88
namespaceCodeName: "命名空间/代码仓库名称",
99
codeNickName: "代码仓库别名",
1010
codeDesc: "代码仓库简介",
11-
codesUsedToTrain: '关联代码',
11+
associated: '关联代码',
1212
newCode: {
1313
title: "新建代码仓库",
1414
titleDesc: "仓库包含所有的代码文件和修订的历史记录",

frontend/src/locales/zh_js/datasets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const datasets = {
1010
datasetTag: "数据集标签",
1111
datasetIndustryTag: "数据集行业标签",
1212
tips:"轻松的托管数据集",
13-
datasetsUsedToTrain: "关联数据集",
13+
associated: "关联数据集",
1414
newDataset: {
1515
title: "新建数据集仓库",
1616
titleDesc: "仓库包含所有的模型文件和修订的历史记录",

frontend/src/locales/zh_js/spaces.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export const spaces = {
22
title: "应用空间",
33
placeholder: "应用空间名字",
44
tips:"创建可交互的机器学习Demo",
5-
using:"使用空间"
5+
associated:"关联空间"
66
}

0 commit comments

Comments
 (0)