From 28b182d432c6344a299ec033bebce10b47e630f7 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 28 Sep 2022 09:27:01 +0800 Subject: [PATCH 01/18] =?UTF-8?q?=E4=BF=AE=E6=AD=A3GPU=E6=8E=A8=E7=90=86?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=97=A5=E5=BF=97=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/api/v1/repo/cloudbrain.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index d6b7bb076..439190121 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -379,7 +379,11 @@ func CloudbrainDownloadLogFile(ctx *context.Context) { return } - prefix := "/" + setting.CBCodePathPrefix + job.JobName + "/model" + logDir := "/model" + if job.JobType == string(models.JobTypeInference) { + logDir = cloudbrain.ResultPath + } + prefix := "/" + setting.CBCodePathPrefix + job.JobName + logDir files, err := storage.GetOneLevelAllObjectUnderDirMinio(setting.Attachment.Minio.Bucket, prefix, "") if err != nil { log.Error("query cloudbrain model failed: %v", err) From 60cb3f8dc804ea229108959612f01e1aa290bcfd Mon Sep 17 00:00:00 2001 From: chenshihai Date: Wed, 28 Sep 2022 09:52:17 +0800 Subject: [PATCH 02/18] update invitation page --- options/locale/locale_zh-CN.ini | 2 +- web_src/vuepages/langs/config/zh-CN.js | 4 ++-- web_src/vuepages/pages/user/invite/index.vue | 11 +++++++++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 2d75c2d05..cdba8c290 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -72,7 +72,7 @@ your_starred=已点赞 your_settings=设置 invite_friends=邀请好友 your_friend=您的好友 -invite_you_to_join_the_OpenI_AI_Collaboration_Platform_and_enjoy_abundant_free_computing_resources=邀请你加入启智社区AI协作平台,畅享充沛的免费算力资源! +invite_you_to_join_the_OpenI_AI_Collaboration_Platform_and_enjoy_abundant_free_computing_resources=邀请您加入启智社区AI协作平台,畅享充沛的免费算力资源! recommender=推荐人 all=所有 diff --git a/web_src/vuepages/langs/config/zh-CN.js b/web_src/vuepages/langs/config/zh-CN.js index e48e61e3a..2b451e2db 100644 --- a/web_src/vuepages/langs/config/zh-CN.js +++ b/web_src/vuepages/langs/config/zh-CN.js @@ -164,9 +164,9 @@ const zh = { }, user: { inviteFriends: '邀请好友', - inviteFriendsTips: '复制二维码或者邀请注册链接分享给好友', + inviteFriendsTips: '复制二维码或者注册邀请链接分享给好友', clickToViewTheEventDetails: '点击查看活动详情', - copyRegistrationInvitationLink: '复制邀请注册链接', + copyRegistrationInvitationLink: '复制注册邀请链接', registrationAdress: '注册地址:', recommender: '推荐人:', invitedFriends: '已邀请好友', diff --git a/web_src/vuepages/pages/user/invite/index.vue b/web_src/vuepages/pages/user/invite/index.vue index 37a39b8fe..6d75aa25f 100644 --- a/web_src/vuepages/pages/user/invite/index.vue +++ b/web_src/vuepages/pages/user/invite/index.vue @@ -22,7 +22,7 @@
{{ $t('user.registrationAdress') }}{{ invitationLink + invitationCode }}
{{ $t('user.recommender') }}{{ invitationCode }}
- {{ $t('user.copyRegistrationInvitationLink') }} + {{ $t('user.copyRegistrationInvitationLink') }}
@@ -31,7 +31,7 @@
- +