| @@ -2503,6 +2503,8 @@ repos.contributor=Contributor | |||||
| repos.yes=Yes | repos.yes=Yes | ||||
| repos.no=No | repos.no=No | ||||
| images.recommend = Recommend | |||||
| images.unrecommend = Unrecommend | |||||
| datasets.dataset_manage_panel= Dataset Manage | datasets.dataset_manage_panel= Dataset Manage | ||||
| datasets.owner=Owner | datasets.owner=Owner | ||||
| @@ -2965,6 +2967,7 @@ snn4imagenet_path = Snn4imagenet script path | |||||
| brainscore_path = Brainscore script path | brainscore_path = Brainscore script path | ||||
| start_command = Start command | start_command = Start command | ||||
| choose_mirror = select mirror or enter mirror path | choose_mirror = select mirror or enter mirror path | ||||
| input_mirror = Please enter image path | |||||
| select_dataset = select dataset | select_dataset = select dataset | ||||
| specification = specification | specification = specification | ||||
| select_specification = select specification | select_specification = select specification | ||||
| @@ -2513,6 +2513,8 @@ repos.contributor=贡献者数 | |||||
| repos.yes=是 | repos.yes=是 | ||||
| repos.no=否 | repos.no=否 | ||||
| images.recommend = 推荐 | |||||
| images.unrecommend = 不推荐 | |||||
| datasets.dataset_manage_panel=数据集管理 | datasets.dataset_manage_panel=数据集管理 | ||||
| datasets.owner=所有者 | datasets.owner=所有者 | ||||
| @@ -2975,6 +2977,7 @@ snn4imagenet_path = snn4imagenet脚本存放路径 | |||||
| brainscore_path = brainscore脚本存放路径 | brainscore_path = brainscore脚本存放路径 | ||||
| start_command = 启动命令 | start_command = 启动命令 | ||||
| choose_mirror = 选择镜像或输入镜像地址 | choose_mirror = 选择镜像或输入镜像地址 | ||||
| input_mirror = 请输入云脑镜像地址 | |||||
| select_dataset = 选择数据集 | select_dataset = 选择数据集 | ||||
| specification = 规格 | specification = 规格 | ||||
| select_specification = 选择资源规格 | select_specification = 选择资源规格 | ||||
| @@ -48,8 +48,8 @@ | |||||
| <span class="tooltips" style="display: block;padding-left: 0.5rem;">{{.i18n.Tr "repo.images.name_rule"}}</span> | <span class="tooltips" style="display: block;padding-left: 0.5rem;">{{.i18n.Tr "repo.images.name_rule"}}</span> | ||||
| </div> | </div> | ||||
| <div class="inline required field"> | <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> | ||||
| <div class="inline required field"> | <div class="inline required field"> | ||||
| @@ -70,13 +70,13 @@ | |||||
| <div class="field"> | <div class="field"> | ||||
| <div class="ui radio checkbox"> | <div class="ui radio checkbox"> | ||||
| <input type="radio" name="isRecommend" checked="checked" value="true"> | <input type="radio" name="isRecommend" checked="checked" value="true"> | ||||
| <label>推荐</label> | |||||
| <label>{{.i18n.Tr "admin.images.recommend"}}</label> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="field" style="flex: 0.15;"> | <div class="field" style="flex: 0.15;"> | ||||
| <div class="ui radio checkbox" > | <div class="ui radio checkbox" > | ||||
| <input type="radio" name="isRecommend" value="false"> | <input type="radio" name="isRecommend" value="false"> | ||||
| <label>不推荐</label> | |||||
| <label>{{.i18n.Tr "admin.images.unrecommend"}}</label> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -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 "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 "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 "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> | </div> | ||||
| </div> | </div> | ||||
| @@ -27,7 +27,7 @@ | |||||
| </el-dropdown> | </el-dropdown> | ||||
| </div> | </div> | ||||
| <div class="ui six wide column right aligned" style="margin: 1rem 0;"> | <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> | ||||
| <div class="ui sixteen wide column" style="padding: 0;"> | <div class="ui sixteen wide column" style="padding: 0;"> | ||||
| <el-table | <el-table | ||||
| @@ -34,7 +34,6 @@ import { | |||||
| } from './features/notification.js'; | } from './features/notification.js'; | ||||
| import {createCodeEditor} from './features/codeeditor.js'; | import {createCodeEditor} from './features/codeeditor.js'; | ||||
| import MinioUploader from './components/MinioUploader.vue'; | import MinioUploader from './components/MinioUploader.vue'; | ||||
| import ObsUploader from './components/ObsUploader.vue'; | |||||
| import EditAboutInfo from './components/EditAboutInfo.vue'; | import EditAboutInfo from './components/EditAboutInfo.vue'; | ||||
| // import Images from './components/Images.vue'; | // import Images from './components/Images.vue'; | ||||
| import EditTopics from './components/EditTopics.vue'; | import EditTopics from './components/EditTopics.vue'; | ||||
| @@ -2958,7 +2957,6 @@ $(document).ready(async () => { | |||||
| initCodeView(); | initCodeView(); | ||||
| initVueApp(); | initVueApp(); | ||||
| initVueUploader(); | initVueUploader(); | ||||
| initObsUploader(); | |||||
| initVueDataset(); | initVueDataset(); | ||||
| initVueEditAbout(); | initVueEditAbout(); | ||||
| initVueEditTopic(); | initVueEditTopic(); | ||||
| @@ -3881,7 +3879,6 @@ function initVueDataset() { | |||||
| }, | }, | ||||
| components: { | components: { | ||||
| MinioUploader, | MinioUploader, | ||||
| ObsUploader | |||||
| }, | }, | ||||
| mounted(){ | mounted(){ | ||||
| // if(document.getElementById('postPath')){ | // if(document.getElementById('postPath')){ | ||||
| @@ -4406,19 +4403,7 @@ function initVueDataAnalysis() { | |||||
| render: h => h(DataAnalysis) | render: h => h(DataAnalysis) | ||||
| }); | }); | ||||
| } | } | ||||
| // 新增 | |||||
| function initObsUploader() { | |||||
| const el = document.getElementById('obsUploader'); | |||||
| if (!el) { | |||||
| return; | |||||
| } | |||||
| new Vue({ | |||||
| el: '#obsUploader', | |||||
| components: {ObsUploader}, | |||||
| template: '<ObsUploader />' | |||||
| }); | |||||
| } | |||||
| function initVueWxAutorize() { | function initVueWxAutorize() { | ||||
| const el = document.getElementById('WxAutorize'); | const el = document.getElementById('WxAutorize'); | ||||
| if (!el) { | if (!el) { | ||||