Browse Source

fix issue

tags/v1.22.4.2^2
zhoupzh 3 years ago
parent
commit
2ce7ea9256
6 changed files with 12 additions and 21 deletions
  1. +3
    -0
      options/locale/locale_en-US.ini
  2. +3
    -0
      options/locale/locale_zh-CN.ini
  3. +4
    -4
      templates/admin/cloudbrain/imagecommit.tmpl
  4. +1
    -1
      templates/explore/datasets.tmpl
  5. +1
    -1
      web_src/js/components/images/adminImages.vue
  6. +0
    -15
      web_src/js/index.js

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

@@ -2503,6 +2503,8 @@ repos.contributor=Contributor
repos.yes=Yes
repos.no=No

images.recommend = Recommend
images.unrecommend = Unrecommend

datasets.dataset_manage_panel= Dataset Manage
datasets.owner=Owner
@@ -2965,6 +2967,7 @@ snn4imagenet_path = Snn4imagenet script path
brainscore_path = Brainscore script path
start_command = Start command
choose_mirror = select mirror or enter mirror path
input_mirror = Please enter image path
select_dataset = select dataset
specification = specification
select_specification = select specification


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

@@ -2513,6 +2513,8 @@ repos.contributor=贡献者数
repos.yes=是
repos.no=否

images.recommend = 推荐
images.unrecommend = 不推荐

datasets.dataset_manage_panel=数据集管理
datasets.owner=所有者
@@ -2975,6 +2977,7 @@ snn4imagenet_path = snn4imagenet脚本存放路径
brainscore_path = brainscore脚本存放路径
start_command = 启动命令
choose_mirror = 选择镜像或输入镜像地址
input_mirror = 请输入云脑镜像地址
select_dataset = 选择数据集
specification = 规格
select_specification = 选择资源规格


+ 4
- 4
templates/admin/cloudbrain/imagecommit.tmpl View File

@@ -48,8 +48,8 @@
<span class="tooltips" style="display: block;padding-left: 0.5rem;">{{.i18n.Tr "repo.images.name_rule"}}</span>
</div>
<div class="inline required field">
<label class="label_color" for="">云脑镜像</label>
<input type="text" name="place" required placeholder="{{$.i18n.Tr "repo.images.name_placerholder"}}" style="width: 80%;" maxlength="100">
<label class="label_color" for="">{{$.i18n.Tr "repo.images"}}</label>
<input type="text" name="place" required placeholder="{{$.i18n.Tr "cloudbrain.input_mirror"}}" style="width: 80%;" maxlength="100">
</div>
<div class="inline required field">
@@ -70,13 +70,13 @@
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="isRecommend" checked="checked" value="true">
<label>推荐</label>
<label>{{.i18n.Tr "admin.images.recommend"}}</label>
</div>
</div>
<div class="field" style="flex: 0.15;">
<div class="ui radio checkbox" >
<input type="radio" name="isRecommend" value="false">
<label>不推荐</label>
<label>{{.i18n.Tr "admin.images.unrecommend"}}</label>
</div>
</div>


+ 1
- 1
templates/explore/datasets.tmpl View File

@@ -126,7 +126,7 @@
<a class="{{if eq .SortType "recentupdate"}}active{{end}} item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}&tab={{$.TabName}}&category={{$.Category}}&task={{$.Task}}&license={{$.License}}">{{.i18n.Tr "repo.issues.filter_sort.recentupdate"}}</a>
<a class="{{if eq .SortType "leastupdate"}}active{{end}} item" href="{{$.Link}}?sort=leastupdate&q={{$.Keyword}}&tab={{$.TabName}}&category={{$.Category}}&task={{$.Task}}&license={{$.License}}">{{.i18n.Tr "repo.issues.filter_sort.leastupdate"}}</a>
<a class="{{if eq .SortType "downloadtimes"}}active{{end}} item" href="{{$.Link}}?sort=downloadtimes&q={{$.Keyword}}&tab={{$.TabName}}&category={{$.Category}}&task={{$.Task}}&license={{$.License}}">{{.i18n.Tr "repo.issues.filter_sort.downloadtimes"}}</a>
<a class="{{if eq .SortType "moststars"}}active{{end}} item" href="{{$.Link}}?sort=moststars&q={{$.Keyword}}&tab={{$.TabName}}&category={{$.Category}}&task={{$.Task}}&license={{$.License}}">{{.i18n.Tr "repo.issues.issues.filter_sort.moststars"}}</a>
<a class="{{if eq .SortType "moststars"}}active{{end}} item" href="{{$.Link}}?sort=moststars&q={{$.Keyword}}&tab={{$.TabName}}&category={{$.Category}}&task={{$.Task}}&license={{$.License}}">{{.i18n.Tr "repo.issues.filter_sort.moststars"}}</a>
</div>
</div>
</div>


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

@@ -27,7 +27,7 @@
</el-dropdown>
</div>
<div class="ui six wide column right aligned" style="margin: 1rem 0;">
<a class="ui blue small button" href="/admin/images/commit_image">创建云脑镜像</a>
<a class="ui blue small button" href="/admin/images/commit_image?from=imageAdmin">创建云脑镜像</a>
</div>
<div class="ui sixteen wide column" style="padding: 0;">
<el-table


+ 0
- 15
web_src/js/index.js View File

@@ -34,7 +34,6 @@ import {
} from './features/notification.js';
import {createCodeEditor} from './features/codeeditor.js';
import MinioUploader from './components/MinioUploader.vue';
import ObsUploader from './components/ObsUploader.vue';
import EditAboutInfo from './components/EditAboutInfo.vue';
// import Images from './components/Images.vue';
import EditTopics from './components/EditTopics.vue';
@@ -2958,7 +2957,6 @@ $(document).ready(async () => {
initCodeView();
initVueApp();
initVueUploader();
initObsUploader();
initVueDataset();
initVueEditAbout();
initVueEditTopic();
@@ -3881,7 +3879,6 @@ function initVueDataset() {
},
components: {
MinioUploader,
ObsUploader
},
mounted(){
// if(document.getElementById('postPath')){
@@ -4406,19 +4403,7 @@ function initVueDataAnalysis() {
render: h => h(DataAnalysis)
});
}
// 新增
function initObsUploader() {
const el = document.getElementById('obsUploader');
if (!el) {
return;
}

new Vue({
el: '#obsUploader',
components: {ObsUploader},
template: '<ObsUploader />'
});
}
function initVueWxAutorize() {
const el = document.getElementById('WxAutorize');
if (!el) {


Loading…
Cancel
Save