Skip to content

Commit

Permalink
remove namespacePath in relationscard (#718)
Browse files Browse the repository at this point in the history
* remove namespacePath in relationscard

* update locales

* add datasets.length in datasetrelationcard & coderelationcard

* update font weight
  • Loading branch information
youngbeom-shin authored Oct 15, 2024
1 parent 4b1bae0 commit 5d44b51
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<div class="p-[16px] border-t border-gray-200">
<h3 class="flex items-center gap-[8px]">
<SvgIcon name="spaces" width="18px" height="18px" />
<span class="font-[500] text-gray-700 text-[16px] leading-[24px]"> {{ $t('spaces.using') }} </span>
<span class="text-gray-700"> {{ namespacePath }} </span>
<span class="font-medium text-gray-700 text-[16px] leading-[24px]"> {{ $t('spaces.associated') }} </span>
<span class="text-gray-500"> {{ spaces.length }} </span>
</h3>
<div class="mt-[16px] flex gap-[12px]">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/codes/CodeRelationsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="p-[16px] border-t border-gray-200">
<h3 class="flex items-center gap-[8px]">
<SvgIcon name="codes" width="18px" height="18px" />
<span class="font-[500] text-gray-700 text-[16px] leading-[24px]"> {{ $t('codes.codesUsedToTrain') }} </span>
<span class="text-gray-700"> {{ namespacePath }} </span>
<span class="font-medium text-gray-700 text-[16px] leading-[24px]"> {{ $t('codes.associated') }} </span>
<span class="text-gray-500"> {{ codes.length }} </span>
</h3>
<div class="mt-[16px] flex flex-col gap-[12px]">
<RepoItem v-for="code in codes" :repo="code" repoType="code" cardType="relations" />
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/datasets/DatasetRelationsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<div class="p-[16px] border-t border-gray-200">
<h3 class="flex items-center gap-[8px]">
<SvgIcon name="datasets" width="18px" height="18px" />
<span class="font-[500] text-gray-700 text-[16px] leading-[24px]">
{{ $t('datasets.datasetsUsedToTrain') }}
<span class="font-medium text-gray-700 text-[16px] leading-[24px]">
{{ $t('datasets.associated') }}
</span>
<span class="text-gray-700"> {{ namespacePath }} </span>
<span class="text-gray-500"> {{ datasets.length }} </span>
</h3>
<div class="mt-[16px] flex flex-col gap-[12px]">
<RepoItem
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/en_js/codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const codes = {
namespaceCodeName: "Code name",
codeNickName: "Code alias",
codeDesc: "Code description",
codesUsedToTrain: 'Codes used to train',
associated: 'Associated Codes',
newCode: {
title: "Create New Code Repository",
titleDesc: "The repository contains all code files and revision history.",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/en_js/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const datasets = {
datasetTag: "Dataset tags",
datasetIndustryTag: "Industry tags",
tips:"Easy Dataset Hosting",
datasetsUsedToTrain: "Dataset used to train",
associated: "Associated Datasets",
newDataset: {
title: "Create New Dataset Repository",
titleDesc: "The repository contains all model files and revision history.",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/en_js/spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export const spaces = {
title: "Application Space",
placeholder: "Search Spaces",
tips:"Creating Interactive Machine Learning Demos",
using:'Space using'
associated:'Associated Spaces'
}
2 changes: 1 addition & 1 deletion frontend/src/locales/zh_js/codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const codes = {
namespaceCodeName: "命名空间/代码仓库名称",
codeNickName: "代码仓库别名",
codeDesc: "代码仓库简介",
codesUsedToTrain: '关联代码',
associated: '关联代码',
newCode: {
title: "新建代码仓库",
titleDesc: "仓库包含所有的代码文件和修订的历史记录",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/zh_js/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const datasets = {
datasetTag: "数据集标签",
datasetIndustryTag: "数据集行业标签",
tips:"轻松的托管数据集",
datasetsUsedToTrain: "关联数据集",
associated: "关联数据集",
newDataset: {
title: "新建数据集仓库",
titleDesc: "仓库包含所有的模型文件和修订的历史记录",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/zh_js/spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export const spaces = {
title: "应用空间",
placeholder: "应用空间名字",
tips:"创建可交互的机器学习Demo",
using:"使用空间"
associated:"关联空间"
}

0 comments on commit 5d44b51

Please sign in to comment.