#374 优化数据集、云脑选择样式

Merged
lewis merged 3 commits from openihu-0910 into V20210910 2 years ago
  1. +11
    -2
      templates/repo/cloudbrain/index.tmpl
  2. +13
    -1
      templates/repo/datasets/index.tmpl
  3. +2
    -4
      templates/repo/header.tmpl
  4. +11
    -2
      templates/repo/modelarts/index.tmpl
  5. +1
    -0
      web_src/js/components/MinioUploader.vue
  6. +1
    -0
      web_src/js/components/ObsUploader.vue

+ 11
- 2
templates/repo/cloudbrain/index.tmpl View File

@@ -2,6 +2,12 @@
{{template "base/head" .}}

<style>
.selectcloudbrain .active.item{
color: #0087f5 !important;
border: 1px solid #0087f5;
margin: -1px;
background: #FFF !important;
}
#deletemodel {
width: 100%;
height: 100%;
@@ -210,8 +216,11 @@
</div>
</div>

<!-- 中间分割线 -->
<div class="ui divider"></div>
<p>使用鹏城云脑计算资源进行调试,云脑1提供CPU / GPU资源,云脑2提供Ascend NPU资源;调试使用的数据集也需要上传到对应的环境。</p>
<div class="ui blue mini menu selectcloudbrain">
<a class="active item" href="{{.RepoLink}}/cloudbrain">{{svg "octicon-server" 16}} CPU / GPU</a>
<a class="item" href="{{.RepoLink}}/modelarts">{{svg "octicon-server" 16}} Ascend NPU</a>
</div>

<!-- 中下列表展示区 -->
<div class="ui grid">


+ 13
- 1
templates/repo/datasets/index.tmpl View File

@@ -1,4 +1,12 @@
{{template "base/head" .}}
<style>
.selectcloudbrain .active.item{
color: #0087f5 !important;
border: 1px solid #0087f5;
margin: -1px;
background: #FFF !important;
}
</style>
<div class="repository release dataset-list view">
{{template "repo/header" .}}
<script>
@@ -62,7 +70,11 @@
</div>
</div>

<div class="ui divider"></div>
<div class="ui blue mini menu selectcloudbrain">
<a class="{{if eq .Type 0}}active {{end}}item" href="{{.RepoLink}}/datasets?type=0">{{svg "octicon-server" 16}} CPU / GPU</a>
<a class="{{if eq .Type 1}}active {{end}}item" href="{{.RepoLink}}/datasets?type=1">{{svg "octicon-server" 16}} Ascend NPU</a>
</div>
<div class="ui stackable grid">
<div class="twelve wide column">
<div class="ui sixteen wide column">


+ 2
- 4
templates/repo/header.tmpl View File

@@ -98,9 +98,8 @@
{{end}}

{{if .Permission.CanRead $.UnitTypeDatasets}}
<a class="{{if .PageIsDataset}}active{{end}} item dataset" >
<a class="{{if .PageIsDataset}}active{{end}} item" href="{{.RepoLink}}/datasets?type=0">
{{svg "octicon-inbox" 16}} {{.i18n.Tr "datasets"}}
<span style="display:none" class="dataset_link">{{.RepoLink}}</span>
</a>
{{end}}

@@ -141,9 +140,8 @@
{{end}}

{{if .Permission.CanRead $.UnitTypeCloudBrain}}
<a class="{{if .PageIsCloudBrain}}active{{end}} item cloudbrain">
<a class="{{if .PageIsCloudBrain}}active{{end}} item" href="{{.RepoLink}}/cloudbrain">
{{svg "octicon-server" 16}} {{.i18n.Tr "repo.cloudbrain"}}
<span style="display:none" class="cloudbrain_link">{{.RepoLink}}</span>
</a>
{{end}}



+ 11
- 2
templates/repo/modelarts/index.tmpl View File

@@ -2,6 +2,12 @@
{{template "base/head" .}}

<style>
.selectcloudbrain .active.item{
color: #0087f5 !important;
border: 1px solid #0087f5;
margin: -1px;
background: #FFF !important;
}
#deletemodel {
width: 100%;
height: 100%;
@@ -210,8 +216,11 @@
</div>
</div>

<!-- 中间分割线 -->
<div class="ui divider"></div>
<p>使用鹏城云脑计算资源进行调试,云脑1提供CPU / GPU资源,云脑2提供Ascend NPU资源;调试使用的数据集也需要上传到对应的环境。</p>
<div class="ui blue mini menu selectcloudbrain">
<a class="item" href="{{.RepoLink}}/cloudbrain">{{svg "octicon-server" 16}} CPU / GPU</a>
<a class="active item" href="{{.RepoLink}}/modelarts">{{svg "octicon-server" 16}} Ascend NPU</a>
</div>

<!-- 中下列表展示区 -->
<div class="ui grid">


+ 1
- 0
web_src/js/components/MinioUploader.vue View File

@@ -11,6 +11,7 @@
{{ file_status_text }}
<span class="success">{{ status }}</span>
</p>
<p>云脑1提供 <span class="text blue">CPU / GPU</span> 资源,云脑2提供 <span class="text blue">Ascend NPU</span> 资源;调试使用的数据集也需要上传到对应的环境。</p>
</div>
</template>



+ 1
- 0
web_src/js/components/ObsUploader.vue View File

@@ -8,6 +8,7 @@
{{ file_status_text }}
<span class="success">{{ status }}</span>
</p>
<p>云脑1提供 <span class="text blue">CPU / GPU</span> 资源,云脑2提供 <span class="text blue">Ascend NPU</span> 资源;调试使用的数据集也需要上传到对应的环境。</p>
</div>
</template>



Loading…
Cancel
Save