ui: 放行 code:class

This commit is contained in:
undefined committed 2021-06-14 22:52:56 +08:00
1 parent 804e8896d3
commit 7bd7325db6
4 files changed
+6 -3

No files matched your search

@@ -18,7 +18,7 @@ const xss = new Xss.FilterXSS({
caption: [], caption: [],
center: [], center: [],
cite: [], cite: [],
code: [], code: ['class'],
col: ['align', 'valign', 'span', 'width'], col: ['align', 'valign', 'span', 'width'],
colgroup: ['align', 'valign', 'span', 'width'], colgroup: ['align', 'valign', 'span', 'width'],
dd: [], dd: [],
@@ -99,3 +99,6 @@ export async function downloadProblemSet(pids, name = 'Export') {
} }
await download(`${name}.zip`, targets); await download(`${name}.zip`, targets);
} }
window.Hydro.components.downloadProblemSet = downloadProblemSet;
window.Hydro.components.download = download;
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.11.20", "version": "4.11.21",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",
@@ -77,7 +77,7 @@
{% if model.system.get('server.pro') %} {% if model.system.get('server.pro') %}
<li class="footer__extra-link-item">Professional Version</li> <li class="footer__extra-link-item">Professional Version</li>
{% else %} {% else %}
<li class="footer__extra-link-item">Community Version (for non-commercial use only)</li> <li class="footer__extra-link-item">Community Version</li>
{% endif %} {% endif %}
</ol> </ol>
</div> </div>