mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: fix contest_edit file upload
This commit is contained in:
11 files changed
+39
-22
No files matched your search
@@ -23,12 +23,12 @@
|
||||
"@mantine/core": "^8.3.15",
|
||||
"@mantine/hooks": "^8.3.15",
|
||||
"@mantine/notifications": "^8.3.15",
|
||||
"@sentry/browser": "^10.39.0",
|
||||
"@sentry/browser": "^10.40.0",
|
||||
"@sentry/webpack-plugin": "^4.9.1",
|
||||
"@simplewebauthn/browser": "13.2.2",
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
"@types/jquery": "^3.5.33",
|
||||
"@types/jquery": "^3.5.34",
|
||||
"@types/jquery.transit": "^0.9.33",
|
||||
"@types/json-schema": "^7.0.15",
|
||||
"@types/katex": "^0.16.8",
|
||||
@@ -80,7 +80,7 @@
|
||||
"normalize.css": "^8.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"p-queue": "^9.1.0",
|
||||
"pickadate": "^3.6.4",
|
||||
"pickadate": "patch:pickadate@npm%3A3.6.4#~/.yarn/patches/pickadate-npm-3.6.4-5795acb19d.patch",
|
||||
"postcss-loader": "7.3.4",
|
||||
"postcss-preset-mantine": "^1.18.0",
|
||||
"prism-themes": "^1.9.0",
|
||||
@@ -116,7 +116,7 @@
|
||||
"timeago.js": "^4.0.2",
|
||||
"ts-loader": "^9.5.4",
|
||||
"web-streams-polyfill": "^4.2.0",
|
||||
"webpack": "^5.105.2",
|
||||
"webpack": "^5.105.3",
|
||||
"webpack-bundle-analyzer": "^5.2.0",
|
||||
"webpack-dev-server": "^5.2.3",
|
||||
"webpack-manifest-plugin": "^6.0.1",
|
||||
@@ -131,7 +131,7 @@
|
||||
"html-to-text": "^9.0.5",
|
||||
"js-yaml": "^4.1.1",
|
||||
"jsesc": "^3.1.0",
|
||||
"katex": "^0.16.28",
|
||||
"katex": "^0.16.33",
|
||||
"lodash": "^4.17.23",
|
||||
"markdown-it": "^14.1.1",
|
||||
"markdown-it-anchor": "^9.2.0",
|
||||
|
||||
@@ -336,6 +336,7 @@ const page = new NamedPage([
|
||||
'home_files', 'training_files', 'homework_files',
|
||||
], (pageName) => {
|
||||
if (pageName === 'problem_config' || pageName === 'problem_edit') endpoint = './files';
|
||||
if (pageName === 'contest_edit') endpoint = './management';
|
||||
$(document).on('click', '[name="file_rename"]', (ev) => handleClickRename(ev));
|
||||
$(document).on('click', '[name="file_remove"]', (ev) => handleClickRemove(ev));
|
||||
$(document).on('click', '[name="upload_file"]', (ev) => handleClickUpload(ev));
|
||||
|
||||
@@ -233,7 +233,7 @@
|
||||
<div class="section__header">
|
||||
<h1 class="section__title">{{ _('Files') }}</h1>
|
||||
<div class="section__tools">
|
||||
<button class="primary rounded button" name="upload_file">{{ _('Upload') }}</button>
|
||||
<button class="primary rounded button" name="upload_file" data-type="public" data-sidebar="true">{{ _('Upload') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{% set sidebar = true %}
|
||||
|
||||
Reference in new issue
Block a user