diff --git a/back_end/saolei/userprofile/views.py b/back_end/saolei/userprofile/views.py index 94f6944..f401410 100644 --- a/back_end/saolei/userprofile/views.py +++ b/back_end/saolei/userprofile/views.py @@ -129,7 +129,6 @@ def user_register(request): def check_collision(request): user = None if request.GET.get('username'): - print(request.GET.get('username')) user = UserProfile.objects.filter(username=request.GET.get('username')).first() elif request.GET.get('email'): user = UserProfile.objects.filter(email=request.GET.get('email')).first() diff --git a/front_end/src/components/widgets/UserArbiterCSV.vue b/front_end/src/components/widgets/UserArbiterCSV.vue new file mode 100644 index 0000000..09874bc --- /dev/null +++ b/front_end/src/components/widgets/UserArbiterCSV.vue @@ -0,0 +1,136 @@ + + + \ No newline at end of file diff --git a/front_end/src/i18n/locales/en.ts b/front_end/src/i18n/locales/en.ts index f390b17..d790b06 100644 --- a/front_end/src/i18n/locales/en.ts +++ b/front_end/src/i18n/locales/en.ts @@ -251,8 +251,10 @@ export default { modeRecord: ' mode record: ' }, videos: 'All videos', - exportArbiterCSV: 'Export as stats_csv.csv', - exportArbiterCSVTooltip: 'Compatible with the datasheet generated by Minesweeper Arbiter.
Not supporting Leff, Reff, Deff, GZiNi and HZiNi at present.', + exportJSON: 'Export as JSON', + exportJSONTooltip: 'Raw data fetched from the server.', + exportArbiterCSV: 'Export as CSV', + exportArbiterCSVTooltip: 'Compatible with stats_csv.csv generated by Minesweeper Arbiter.
Not supporting Leff, Reff, Deff, GZiNi and HZiNi at present.', upload: { title: 'Video Upload', dragOrClick: `Drag files here or click here to select`, diff --git a/front_end/src/i18n/locales/zh-cn.ts b/front_end/src/i18n/locales/zh-cn.ts index c12d2d8..5b53e00 100644 --- a/front_end/src/i18n/locales/zh-cn.ts +++ b/front_end/src/i18n/locales/zh-cn.ts @@ -251,8 +251,10 @@ export default { modeRecord: '模式纪录:' }, videos: '全部录像', - exportArbiterCSV: '导出stats_csv.csv', - exportArbiterCSVTooltip: '兼容 Minesweeper Arbiter 生成的数据表。
目前不支持 Leff, Reff, Deff, GZiNi, HZiNi。', + exportJSON: '导出JSON', + exportJSONTooltip: '从服务器获取的源数据', + exportArbiterCSV: '导出CSV', + exportArbiterCSVTooltip: '兼容 Minesweeper Arbiter 生成的 stats_csv.csv
目前不支持 Leff, Reff, Deff, GZiNi, HZiNi。', upload: { title: '上传录像', dragOrClick: `将录像拉到此处或 点击此处选择`, diff --git a/front_end/src/views/PlayerVideosView.vue b/front_end/src/views/PlayerVideosView.vue index f820713..6913cc9 100644 --- a/front_end/src/views/PlayerVideosView.vue +++ b/front_end/src/views/PlayerVideosView.vue @@ -1,12 +1,5 @@