mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix tag
This commit is contained in:
1 parent
388733b4d0
commit
a532f3d7a6
6 files changed
+21
-12
No files matched your search
@@ -11,6 +11,12 @@
|
|||||||
margin: rem(0 2px 2px 0) !important
|
margin: rem(0 2px 2px 0) !important
|
||||||
padding: 0 !important
|
padding: 0 !important
|
||||||
|
|
||||||
|
.problem__tag-item
|
||||||
|
padding: rem(0px)
|
||||||
|
margin-left: rem(3px)
|
||||||
|
&:hover
|
||||||
|
text-decoration: none
|
||||||
|
|
||||||
.problem__tag-link
|
.problem__tag-link
|
||||||
display: inline-block
|
display: inline-block
|
||||||
padding: rem(0 7px)
|
padding: rem(0 7px)
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
"@babel/runtime-corejs3": "^7.14.0",
|
"@babel/runtime-corejs3": "^7.14.0",
|
||||||
"@blueprintjs/core": "^3.44.2",
|
"@blueprintjs/core": "^3.44.2",
|
||||||
"@blueprintjs/icons": "^3.26.0",
|
"@blueprintjs/icons": "^3.26.0",
|
||||||
|
"@blueprintjs/select": "^3.16.2",
|
||||||
"@hydrooj/utils": "^1.0.15",
|
"@hydrooj/utils": "^1.0.15",
|
||||||
"@undefined-moe/monaco-yaml": "^2.5.0",
|
"@undefined-moe/monaco-yaml": "^2.5.0",
|
||||||
"ansi_up": "^5.0.1",
|
"ansi_up": "^5.0.1",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { NamedPage } from 'vj/misc/Page';
|
import { NamedPage } from 'vj/misc/Page';
|
||||||
import UserSelectAutoComplete from 'vj/components/autocomplete/UserSelectAutoComplete';
|
import UserSelectAutoComplete from 'vj/components/autocomplete/UserSelectAutoComplete';
|
||||||
|
import ProblemSelectAutoComplete from 'vj/components/autocomplete/ProblemSelectAutoComplete';
|
||||||
|
|
||||||
const page = new NamedPage('record_main', async () => {
|
const page = new NamedPage('record_main', async () => {
|
||||||
const { default: SockJs } = await import('../components/socket');
|
const { default: SockJs } = await import('../components/socket');
|
||||||
@@ -24,7 +25,10 @@ const page = new NamedPage('record_main', async () => {
|
|||||||
$newTr.trigger('vjContentNew');
|
$newTr.trigger('vjContentNew');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
UserSelectAutoComplete.getOrConstruct($('.filter-user [name="uidOrName"]'), {
|
UserSelectAutoComplete.getOrConstruct($('[name="uidOrName"]'), {
|
||||||
|
clearDefaultValue: false,
|
||||||
|
});
|
||||||
|
ProblemSelectAutoComplete.getOrConstruct($('[name="pid"]'), {
|
||||||
clearDefaultValue: false,
|
clearDefaultValue: false,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
{% set layout_name = "basic" %}
|
{% set layout_name = "basic" %}
|
||||||
{% extends "layout/html5.html" %}
|
{% extends "layout/html5.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
||||||
{% include "partials/nav.html" %}
|
{% include "partials/nav.html" %}
|
||||||
|
|
||||||
<div class="slideout-panel" id="panel">
|
<div class="slideout-panel" id="panel">
|
||||||
<div class="slideout-overlay"></div>
|
<div class="slideout-overlay"></div>
|
||||||
{% include "partials/header_mobile.html" %}
|
{% include "partials/header_mobile.html" %}
|
||||||
@@ -13,7 +11,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{% include "partials/footer.html" %}
|
{% include "partials/footer.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "partials/login_dialog.html" %}
|
{% include "partials/login_dialog.html" %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -105,13 +105,14 @@
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% if pagename != 'problem_detail' %}
|
||||||
<div class="section side">
|
<div class="section side">
|
||||||
<div class="section__header">
|
<div class="section__header">
|
||||||
<h1 class="section__title">{{ _('Information') }}</h1>
|
<h1 class="section__title">{{ _('Information') }}</h1>
|
||||||
</div>
|
</div>
|
||||||
{% include "partials/problem-sidebar-information.html" %}
|
{% include "partials/problem-sidebar-information.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if page_name == 'problem_detail' and (tdocs or ctdocs) %}
|
{% if page_name == 'problem_detail' and (tdocs or ctdocs) %}
|
||||||
<div class="section side">
|
<div class="section side">
|
||||||
<div class="section__header">
|
<div class="section__header">
|
||||||
|
|||||||
@@ -39,12 +39,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="section__body">
|
<div class="section__body">
|
||||||
<ul class="problem__tags">
|
<ul class="problem__tags">
|
||||||
<li class="problem__tag"><p class="problem__tag-link">{{ _('Time') }}: {{ pdoc.config.timeMax if pdoc.config.timeMax == pdoc.config.timeMin else pdoc.config.timeMin+'~'+pdoc.config.timeMax }}ms</p></li>
|
<span class="bp3-tag bp3-large bp3-minimal problem__tag-item">{{ _('Time') }}: {{ pdoc.config.timeMax if pdoc.config.timeMax == pdoc.config.timeMin else pdoc.config.timeMin+'~'+pdoc.config.timeMax }}ms</span>
|
||||||
<li class="problem__tag"><p class="problem__tag-link">{{ _('Memory') }}: {{ pdoc.config.memoryMax if pdoc.config.memoryMax == pdoc.config.memoryMin else pdoc.config.memoryMin+'~'+pdoc.config.memoryMax }}MiB</p></li>
|
<span class="bp3-tag bp3-large bp3-minimal problem__tag-item">{{ _('Memory') }}: {{ pdoc.config.memoryMax if pdoc.config.memoryMax == pdoc.config.memoryMin else pdoc.config.memoryMin+'~'+pdoc.config.memoryMax }}MiB</span>
|
||||||
<li class="problem__tag"><p class="problem__tag-link">{{ _('Accepted') }}: {{ pdoc.nAccept }}</p></li>
|
<a class="bp3-tag bp3-large bp3-minimal bp3-interactive problem__tag-item" href="{{ url('record_main', query={pid:pdoc.docId}) }}">{{ _('Submitted') }}: {{ pdoc.nSubmit }}</a>
|
||||||
<li class="problem__tag"><p class="problem__tag-link">{{ _('Accepted Ratio') }}: {% if pdoc.nSubmit > 0 %}{{ (100 * pdoc.nAccept / pdoc.nSubmit)|round|int }}%{% else %}{{ _('?') }}{% endif %}</p></li>
|
<a class="bp3-tag bp3-large bp3-minimal bp3-interactive problem__tag-item" href="{{ url('record_main', query={pid:pdoc.docId, status:1}) }}">{{ _('Accepted') }}: {{ pdoc.nAccept }}</a>
|
||||||
<li class="problem__tag"><p class="problem__tag-link">{{ _('Difficulty') }}: {{ pdoc['difficulty'] or _('(None)') }}</p></li>
|
<span class="bp3-tag bp3-large bp3-minimal problem__tag-item">{{ _('Accepted Ratio') }}: {% if pdoc.nSubmit > 0 %}{{ (100 * pdoc.nAccept / pdoc.nSubmit)|round|int }}%{% else %}{{ _('?') }}{% endif %}</span>
|
||||||
<li class="problem__tag"><p class="problem__tag-link">{{ _('Uploaded By') }}: {{ user.render_inline(owner_udoc, badge=false) }}</p></li>
|
<span class="bp3-tag bp3-large bp3-minimal problem__tag-item">{{ _('Difficulty') }}: {{ pdoc['difficulty'] or _('(None)') }}</span>
|
||||||
|
<span class="bp3-tag bp3-large bp3-minimal bp3-interactive problem__tag-item">{{ _('Uploaded By') }}: {{ user.render_inline(udoc, badge=false) }}</span>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user