From a2bd6fc652c4da02bb155ce7ce850598638c9591 Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 1 Sep 2020 22:40:52 +0800 Subject: [PATCH] pre: import.fps --- packages/fps-importer/package.json | 6 ++-- .../template/problem_import_fps.html | 36 +++++++++++++++++++ 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 packages/fps-importer/template/problem_import_fps.html diff --git a/packages/fps-importer/package.json b/packages/fps-importer/package.json index d8f87ad6a..ff7c71c18 100644 --- a/packages/fps-importer/package.json +++ b/packages/fps-importer/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/fps-importer", - "version": "1.0.0", + "version": "1.0.2", "description": "Import FPS problems", "main": "package.json", "repository": "https://github.com/hydro-dev/Hydro.git", @@ -9,11 +9,11 @@ "dependencies": { "adm-zip": "^0.4.16", "fs-extra": "^9.0.1", - "hydrooj": "^2.12.22", "turndown": "^6.0.0", "xml2js": "^0.4.23" }, "devDependencies": { + "hydrooj": "^2.12.22", "@types/turndown": "^5.0.0", "@types/xml2js": "^0.4.5" }, @@ -21,4 +21,4 @@ "build": "tsc", "lint": "eslint . --ext ts --fix" } -} +} \ No newline at end of file diff --git a/packages/fps-importer/template/problem_import_fps.html b/packages/fps-importer/template/problem_import_fps.html new file mode 100644 index 000000000..537b3d1dc --- /dev/null +++ b/packages/fps-importer/template/problem_import_fps.html @@ -0,0 +1,36 @@ +{% extends "layout/basic.html" %} +{% block content %} +
+
+
+
+
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+

{{ _('What is this?') }}

+

{{ _('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.') }}

+
+
+
+
+{% endblock %}