#4626 #4446、#4292、#4439、#4548

Merged
zhoupzh merged 5 commits from fix-csh into V20230828 9 months ago
  1. +2
    -0
      options/locale/locale_en-US.ini
  2. +2
    -0
      options/locale/locale_zh-CN.ini
  3. +14
    -6
      templates/base/head_navbar.tmpl
  4. +7
    -3
      templates/base/head_navbar_fluid.tmpl
  5. +6
    -2
      templates/base/head_navbar_home.tmpl
  6. +6
    -2
      templates/base/head_navbar_pro.tmpl
  7. +1
    -1
      templates/repo/issue/view_content/comments.tmpl
  8. +6
    -1
      web_src/js/components/images/Images.vue
  9. +37
    -0
      web_src/less/openi.less
  10. +1
    -1
      web_src/vuepages/pages/cloudbrain/tools.js
  11. +5
    -1
      web_src/vuepages/pages/dataset/square/components/PublicDataset.vue

+ 2
- 0
options/locale/locale_en-US.ini View File

@@ -3276,6 +3276,8 @@ head.project = Repositories
head.openi = OpenI
head.openi.repo = OpenI Projects
head.dataset = Datasets
head.forum=Forum
head.course=Courses
foot.council = Council
foot.technical_committee = Technical Committee
foot.join = Join OpenI


+ 2
- 0
options/locale/locale_zh-CN.ini View File

@@ -3294,6 +3294,8 @@ head.project=项目
head.openi=启智项目
head.openi.repo = 启智项目
head.dataset=数据集
head.forum=论坛
head.course=实训课程
foot.council=理事会
foot.technical_committee=技术委员会
foot.join=加入启智


+ 14
- 6
templates/base/head_navbar.tmpl View File

@@ -7,7 +7,7 @@
<i class="sidebar icon"></i>
</div>
</div>
<div class="item brand" style="padding-right:1.9rem">
<div class="item brand" style="padding-right:1.2rem">
<a href="/">
<!-- <img class="ui mini image" style="height: 1.3rem;" src="{{StaticUrlPrefix}}/img/git-logo.svg"> -->
<div>
@@ -48,7 +48,7 @@
</div>
</div>
<div class="ui simple dropdown item" id='dropdown_explore'>
{{.i18n.Tr "explore"}}
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu">
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -58,11 +58,13 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageHome}}
<div class="item edge">
<div class="dropdown-menu">
@@ -94,7 +96,7 @@
</div>
<div class="ui simple dropdown item" id='dropdown_PageHome'>
{{.i18n.Tr "explore"}}
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu" >
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -104,11 +106,13 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageExplore}}
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos/square">{{.i18n.Tr "home"}}</a>
{{else if .IsLandingPageOrganizations}}
@@ -231,7 +235,9 @@
</div><!-- end dropdown avatar menu -->
<div class="ui simple item poping up" data-content="{{.i18n.Tr "help"}}" data-variation="tiny inverted">
<a target="_blank" href="{{AppSubUrl}}/docs/index.html">
<div style="display:flex;justify-content:center;align-items:center;font-size:10px;cursor:pointer;width:26px;height:26px;border-radius:100%;text-align:center;background: url(&quot;data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%221%22%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221%22%20gradientTransform%3D%22matrix(0.7%2C%20-0.5250000000000001%2C%200.5250000000000001%2C%200.7%2C%200.283%2C%200.767)%22%3E%3Cstop%20stop-color%3D%22%2361d8dc%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23498af9%22%20stop-opacity%3D%221%22%20offset%3D%220.63%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23e840f7%22%20stop-opacity%3D%221%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E&quot;);">
<div style="display:flex;justify-content:center;align-items:center;font-size:10px;cursor:pointer;width:26px;height:26px;border-radius:100%;text-align:center;background: url(&quot;data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%221%22%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221%22%20gradientTransform%3D%22matrix(0.7%2C%20-0.5250000000000001%2C%200.5250000000000001%2C%200.7%2C%200.283%2C%200.767)%22%3E%3Cstop%20stop-color%3D%22%2361d8dc%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23498af9%22%20stop-opacity%3D%221%22%20offset%3D%220.63%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23e840f7%22%20stop-opacity%3D%221%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E&quot;);
background-size: cover;
background-position: center;">
<svg xmlns="http://www.w3.org/2000/svg" class="styles__StyledSVGIconPathComponent-sc-16fsqc8-0 fPsHiw svg-icon-path-icon fill" viewBox="0 0 384 512" width="16" height="16"><defs data-reactroot=""></defs><g><path fill="rgb(255,255,255)" d="M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"></path></g></svg>
</div>
</a>
@@ -277,7 +283,9 @@

<div class="ui simple item poping up" data-content="{{.i18n.Tr "help"}}" data-variation="tiny inverted">
<a target="_blank" href="{{AppSubUrl}}/docs/index.html">
<div style="display:flex;justify-content:center;align-items:center;font-size:10px;cursor:pointer;width:26px;height:26px;border-radius:100%;text-align:center;background: url(&quot;data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%221%22%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221%22%20gradientTransform%3D%22matrix(0.7%2C%20-0.5250000000000001%2C%200.5250000000000001%2C%200.7%2C%200.283%2C%200.767)%22%3E%3Cstop%20stop-color%3D%22%2361d8dc%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23498af9%22%20stop-opacity%3D%221%22%20offset%3D%220.63%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23e840f7%22%20stop-opacity%3D%221%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E&quot;);">
<div style="display:flex;justify-content:center;align-items:center;font-size:10px;cursor:pointer;width:26px;height:26px;border-radius:100%;text-align:center;background: url(&quot;data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%221%22%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221%22%20gradientTransform%3D%22matrix(0.7%2C%20-0.5250000000000001%2C%200.5250000000000001%2C%200.7%2C%200.283%2C%200.767)%22%3E%3Cstop%20stop-color%3D%22%2361d8dc%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23498af9%22%20stop-opacity%3D%221%22%20offset%3D%220.63%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23e840f7%22%20stop-opacity%3D%221%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E&quot;);
background-size: cover;
background-position: center;">
<svg xmlns="http://www.w3.org/2000/svg" class="styles__StyledSVGIconPathComponent-sc-16fsqc8-0 fPsHiw svg-icon-path-icon fill" viewBox="0 0 384 512" width="16" height="16"><defs data-reactroot=""></defs><g><path fill="rgb(255,255,255)" d="M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"></path></g></svg>
</div>
</a>


+ 7
- 3
templates/base/head_navbar_fluid.tmpl View File

@@ -44,8 +44,8 @@
<a class="item" href="{{AppSubUrl}}/extension/wenxin">{{.i18n.Tr "repo.model_experience"}}</a>
</div>
</div>
<div class="ui dropdown item" id='dropdown_explore'>
{{.i18n.Tr "explore"}}
<div class="ui dropdown item" id='dropdown_explore'>
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu">
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -55,10 +55,12 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageHome}}
<div class="item edge" >
<div class="dropdown-menu">
@@ -88,7 +90,7 @@
</div>
</div>
<div class="ui dropdown item" id='dropdown_PageHome'>
{{.i18n.Tr "explore"}}
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu">
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -98,11 +100,13 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageExplore}}
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos/square">{{.i18n.Tr "home"}}</a>
{{else if .IsLandingPageOrganizations}}


+ 6
- 2
templates/base/head_navbar_home.tmpl View File

@@ -37,7 +37,7 @@
</div>
</div>
<div class="ui dropdown item" id='dropdown_explore'>
{{.i18n.Tr "explore"}}
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu">
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -47,11 +47,13 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageHome}}
<div class="item edge" >
<div class="dropdown-menu">
@@ -82,7 +84,7 @@
</div>
</div>
<div class="ui dropdown item" id='dropdown_PageHome'>
{{.i18n.Tr "explore"}}
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu">
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -92,11 +94,13 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageExplore}}
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos/square">{{.i18n.Tr "home"}}</a>
{{else if .IsLandingPageOrganizations}}


+ 6
- 2
templates/base/head_navbar_pro.tmpl View File

@@ -47,7 +47,7 @@
</div>
</div>
<div class="ui dropdown item" id='dropdown_explore'>
{{.i18n.Tr "explore"}}
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu">
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -57,11 +57,13 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageHome}}
<div class="item edge">
<div class="dropdown-menu">
@@ -92,7 +94,7 @@
</div>
</div>
<div class="ui dropdown item" id='dropdown_PageHome'>
{{.i18n.Tr "explore"}}
<span class="menu-new-dot">{{.i18n.Tr "explore"}}</span>
<i class="dropdown icon"></i>
<div class="menu" >
<!--<a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>-->
@@ -102,11 +104,13 @@
{{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
<a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
{{end}}
<a class="item" target="_blank" href="https://course.openi.org.cn"><span class="menu-new">{{.i18n.Tr "custom.head.course"}}</span></a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
<a class="item" href="{{AppSubUrl}}/tech/tech_view">科技2030项目</a>
</div>
</div>
<a class="item" target="_blank" href="https://bbs.openi.org.cn/"><span class="menu-new">{{.i18n.Tr "custom.head.forum"}}</span></a>
{{else if .IsLandingPageExplore}}
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos/square">{{.i18n.Tr "home"}}</a>
{{else if .IsLandingPageOrganizations}}


+ 1
- 1
templates/repo/issue/view_content/comments.tmpl View File

@@ -43,7 +43,7 @@
{{end}}
</div>
<div class="ui attached segment">
<div class="render-content markdown">
<div class="render-content markdown gallery">
{{if .RenderedContent}}
{{.RenderedContent|Str2html}}
{{else}}


+ 6
- 1
web_src/js/components/images/Images.vue View File

@@ -1002,7 +1002,12 @@ export default {
} else {
console.log(res.data.Message);
}
});
}).catch(err => {
console.log(err);
if (err.request.responseURL.indexOf('/user/login') >= 0) {
window.location.href = `/user/login?redirect_to=${encodeURIComponent(window.location.href)}`;
}
})
}
},
imageUnstar(id) {


+ 37
- 0
web_src/less/openi.less View File

@@ -1541,4 +1541,41 @@ i.SUCCEEDED {
text-align: right;
font-size: 14px;
color: rgba(16, 16, 16, 0.6);
}
.menu-new {
position: relative;
&::after {
position: absolute;
right: -32px;
top: -8px;
content: 'NEW';
background-color: rgb(255, 37, 37);
width: 32px;
height: 14px;
border-radius: 10px 10px 10px 0px;
color: rgb(255, 255, 255);
font-size: 12px;
text-align: center;
line-height: 16px;
}
}
.menu-new-dot {
position: relative;
&::after {
position: absolute;
content: '';
right: -4px;
top: -6px;
background-color: #ff2525;
width: 6px;
height: 6px;
border-radius: 100%;
}
}
.ui.secondary.menu #navbar .item {
padding: 0.78571429em 0.62857143em;
}
.ui.secondary.menu #navbar .right.menu .ui.item.simple {
padding: 0.78571429em 0.42857143em;
margin: 0 0.15714286em;
}

+ 1
- 1
web_src/vuepages/pages/cloudbrain/tools.js View File

@@ -110,7 +110,7 @@ export class CloudBrainTools {
} else {
task.canSaveImage = false;
}
if (task.can_modify && task.cluster == 'OpenI') {
if (task.can_modify && task.cluster == 'OpenI' && !['PREPARING', 'CONNECTING'].includes(task.status)) {
task.canDownloadModel = true;
task.downloadModelUrl = `/${task.repoOwnerName}/${task.repoName}/cloudbrain/${task.id}/models`;
} else {


+ 5
- 1
web_src/vuepages/pages/dataset/square/components/PublicDataset.vue View File

@@ -260,7 +260,11 @@ export default {
location.href = `/${item.Repo.OwnerName}/${item.Repo.Name}/datasets`
},
postSquareStar(item,index){
if(this.isSigned==='false' || !this.isSigned || this.dataGet =='my_datasets') return;
if(this.isSigned==='false' || !this.isSigned) {
window.location.href = `/user/login?redirect_to=${encodeURIComponent(window.location.href)}`;
return;
}
if (this.dataGet == 'my_datasets') return;
let baseUrl=`/${item.Repo.OwnerName}/${item.Repo.Name}/datasets/${item.ID}/`
let url = item.IsStaring ? baseUrl+'unstar': baseUrl+'star'
let changeItem = item


Loading…
Cancel
Save