From 21a4934beec74b3097e79d6fd5825683d8293ee5 Mon Sep 17 00:00:00 2001 From: wangjr Date: Thu, 14 Apr 2022 15:42:44 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=BA=E7=9C=81?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/user/dashboard/dashboard.tmpl | 123 ++++++++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index f5b0e3f377..f692b638ae 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -5,13 +5,136 @@ {{template "base/alert" .}}
+
+
+ 欢迎来到启智AI协作平台! +
+
+

探索更好的AI,来这里发现更有意思的 项目数据集

+

使用本平台提供的AI协作功能,如:托管代码、共享数据、调试算法或训练模型,请先创建项目

+

平台目前免费提供CPU、GPU、NPU的算力资源,可进行多种类型的AI任务。

+
+ + +
{{if .EnableHeatmap}} {{template "user/dashboard/heatmap" .}} {{end}} {{template "user/dashboard/feeds" .}} +
+
+ 活动: +
+
+

+ 还没有与你相关的活动 +

+
+
{{template "user/dashboard/repolist" .}}
{{template "base/footer" .}} + + + \ No newline at end of file -- 2.34.1 From 7c59ecb7a97be4957b75a34c40d43a61e34b1198 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 15 Apr 2022 09:20:50 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options/locale/locale_en-US.ini | 9 ++++ options/locale/locale_zh-CN.ini | 11 +++++ templates/user/dashboard/dashboard.tmpl | 56 +++++++++++-------------- 3 files changed, 44 insertions(+), 32 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 09bb5015fe..f06c32f2f6 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -266,6 +266,15 @@ search_related=related search_maybe=maybe search_ge= +wecome_AI_plt = Welcome to Qizhi AI Collaboration Platform! +explore_AI = Explore better AI, come here to find more interesting +datasets = Datasets +repositories = Repositories +use_plt__fuction = To use the AI collaboration functions provided by this platform, such as: hosting code, sharing data, debugging algorithms or training models, please first +provide_resoure = The platform currently provides free computing resources of CPU, GPU, and NPU, and can perform various types of AI tasks. +activity = Activity +no_events = There are no events related to you yet + [explore] repos = Repositories select_repos = Select the project diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index d260653639..b2696c570f 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -268,6 +268,17 @@ search_related=相关 search_maybe=约为 search_ge=个 +wecome_AI_plt=欢迎来到启智AI协作平台! +explore_AI = 探索更好的AI,来这里发现更有意思的 +datasets = 数据集 +repositories = 项目 +use_plt__fuction = 使用本平台提供的AI协作功能,如:托管代码、共享数据、调试算法或训练模型,请先 +provide_resoure = 平台目前免费提供CPU、GPU、NPU的算力资源,可进行多种类型的AI任务。 +create_pro = 创建项目 +activity = 活动 +no_events = 还没有与您相关的活动 + + [explore] repos=项目 select_repos=精选项目 diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index f692b638ae..adf091f9f4 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -7,34 +7,29 @@
- 欢迎来到启智AI协作平台! + {{.i18n.Tr "home.wecome_AI_plt"}}
-

探索更好的AI,来这里发现更有意思的 项目数据集

-

使用本平台提供的AI协作功能,如:托管代码、共享数据、调试算法或训练模型,请先创建项目

-

平台目前免费提供CPU、GPU、NPU的算力资源,可进行多种类型的AI任务。

+

{{.i18n.Tr "home.explore_AI"}} {{.i18n.Tr "home.repositories"}}{{.i18n.Tr "home.datasets"}}

+

{{.i18n.Tr "home.use_plt__fuction"}}{{.i18n.Tr "repo.create_repo"}}

+

{{.i18n.Tr "home.provide_resoure"}}

- - {{if .EnableHeatmap}} {{template "user/dashboard/heatmap" .}} {{end}} - {{template "user/dashboard/feeds" .}} -
-
- 活动: -
-
-

- 还没有与你相关的活动 -

+ {{template "user/dashboard/feeds" .}} +
+
+ {{.i18n.Tr "home.activity"}}:
+
+

+ {{.i18n.Tr "home.no_events"}} +

{{template "user/dashboard/repolist" .}} @@ -63,9 +58,9 @@ margin-bottom: 20px; border-radius: 15px; line-height: 20px; + padding:0px 25px; } .title{ - padding-left: 25px; padding-top: 25px; color: rgba(16, 16, 16, 100); font-size: 20px; @@ -77,7 +72,6 @@ font-size: 14px; text-align: left; font-family: SourceHanSansSC-regular; - padding-left: 25px; margin-top: 20px; } .btn_create{ @@ -97,16 +91,8 @@ font-family: SourceHanSansSC-regular; margin-top: 30px; } - .look{ - padding-left: 29px; - } - .comm{ - padding-right: 20%; - float:right; - vertical-align: middle; - } + .guide{ - margin-left: 25px; margin-top:30px; padding-bottom: 30px; } @@ -118,8 +104,9 @@ text-align: center; font-family: Microsoft Yahei; border: 1px solid rgba(24, 144, 255, 100); - padding: 10px 20px; + padding: 5px 5px; vertical-align: middle; + border-radius: 4px; } .activity{ margin-top: 20px; @@ -136,5 +123,10 @@ text-align: center; font-family: SourceHanSansSC-regular; } - + .padding_none{ + padding: 0px !important; + } + .content >p{ + line-height: 2em !important; + } \ No newline at end of file -- 2.34.1 From 9a933beb60d77ce6efdaa426e4b063177eaa0b00 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 15 Apr 2022 09:24:40 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/user/dashboard/dashboard.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index adf091f9f4..0258c1461b 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -22,7 +22,7 @@ {{template "user/dashboard/heatmap" .}} {{end}} {{template "user/dashboard/feeds" .}} -
+
{{.i18n.Tr "home.activity"}}:
-- 2.34.1 From 8dbb98e29c3a295e74bbc73181428ff2459aa342 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 15 Apr 2022 18:00:32 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/user/dashboard/dashboard.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 0258c1461b..4156b94a86 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -44,8 +44,9 @@ let URL = AppSubUrl + '/api/v1/repos/search?sort=updated&order=desc&uid=true&q=&page=1&limit=10&mode= '; $.getJSON(URL, (result, _textStatus, request) => { - const count = request.getResponseHeader('X-Total-Count'); - if (count != 0){ + const counts_pro = request.getResponseHeader('X-Total-Count'); + console.log("count:",counts_pro) + if (counts_pro != 0){ document.getElementById("default_page").style.display = "none"; document.getElementById("activity_cont").style.display = "none" } -- 2.34.1 From ba93a3ea2510bb853867a5ccd3f9cde2fe416f96 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 15 Apr 2022 18:35:20 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E8=8E=B7=E5=8F=96uid=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/user/dashboard/dashboard.tmpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 4156b94a86..828679153c 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -40,8 +40,9 @@