fix some bugs, bump ver(2.15.0), update install

This commit is contained in:
undefined committed 2020-12-22 13:40:47 +08:00
1 parent 4d031eb9ab
commit bd8ff05387
29 files changed
+226 -162

No files matched your search

+1
View File
@@ -108,6 +108,7 @@ class ImportQduojHandler extends Handler {
}
async get() {
this.response.body = { type: 'QDUOJ' };
this.response.template = 'problem_import.html';
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/import-qduoj",
"version": "1.1.0",
"version": "1.1.1",
"description": "Import QDUOJ problem export",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",
@@ -15,7 +15,7 @@
"bson": "^4.2.2"
},
"peerDependencies": {
"hydrooj": "^2.14.0"
"hydrooj": "^2.15.0"
},
"scripts": {
"build": "tsc",
@@ -1,28 +0,0 @@
{% extends "layout/basic.html" %}
{% block content %}
<div class="row">
<div class="medium-9 columns">
<div class="section">
<div class="section__body">
<form method="post" enctype="multipart/form-data" action="{{ url('file_upload') }}">
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
<p>{{ _('Upload zipfile') }}:
<input type="hidden" name="title" value="QDUOJ_IMPORT">
<input type="hidden" name="redirect" value="{{ url('problem_import_qduoj') }}">
<input type="file" name="file">
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
</p>
</form>
</div>
</div>
</div>
<div class="medium-3 columns">
<div class="section side">
<div class="section__body typo">
<h2>{{ _('What is this?') }}</h2>
<p>{{ _('With this feature, you can import problems that you can view from a site to here. Their title, content, tags and categories will be imported.') }}</p>
</div>
</div>
</div>
</div>
{% endblock %}