diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 98e89237a..5aa9c1682 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -30,6 +30,7 @@ rules: global-require: 0 guard-for-in: 0 implicit-arrow-linebreak: 0 + import/newline-after-import: 0 import/no-cycle: 0 import/no-extraneous-dependencies: 0 import/no-named-as-default: 0 diff --git a/packages/hydrojudge/src/sysinfo.ts b/packages/hydrojudge/src/sysinfo.ts index 99290edd9..5daf3df64 100644 --- a/packages/hydrojudge/src/sysinfo.ts +++ b/packages/hydrojudge/src/sysinfo.ts @@ -12,7 +12,7 @@ async function stackSize() { let output = ''; try { const context: any = { - lang: 'ccWithoutO2', + lang: 'cc', code: `#include using namespace std; int i=1; diff --git a/packages/ui-default/components/problem/tag.page.styl b/packages/ui-default/components/problem/tag.page.styl index c94129fb8..7de01b07f 100644 --- a/packages/ui-default/components/problem/tag.page.styl +++ b/packages/ui-default/components/problem/tag.page.styl @@ -17,7 +17,7 @@ overflow: hidden text-overflow: ellipsis white-space: nowrap - max-width: rem(130px) + max-width: rem(250px) line-height: rem($table-lh) height: rem($table-lh) background: #F0F0F0 diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index dee0a467b..6841f7734 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.8.14", + "version": "4.8.15", "author": "undefined ", "license": "AGPL-3.0", "main": "hydro.js", diff --git a/packages/ui-default/templates/problem_detail.html b/packages/ui-default/templates/problem_detail.html index ac2012c7d..2f3051aba 100644 --- a/packages/ui-default/templates/problem_detail.html +++ b/packages/ui-default/templates/problem_detail.html @@ -1,3 +1,4 @@ +{% set no_path_section = true %} {% extends "layout/basic.html" %} {% block content %}
+
+ +
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
+
+
- {% if rdoc %} -
-

- - - {{ model.builtin.STATUS_TEXTS[rdoc.status] }}{% if rdoc.status != model.builtin.STATUS.STATUS_ACCEPTED %} {{ rdoc.score }}{% endif %} - -

-
- {% else %}

{{ pdoc.title }}

- {% endif %}
{% if not pdoc.data.length %}