From dcc23f765a6055cfe7cc7e1ad8f5601bec0f1206 Mon Sep 17 00:00:00 2001 From: undefined Date: Sat, 15 May 2021 19:44:44 +0800 Subject: [PATCH] ui: update problem_detail --- .eslintrc.yaml | 1 + packages/hydrojudge/src/sysinfo.ts | 2 +- .../components/problem/tag.page.styl | 2 +- packages/ui-default/package.json | 2 +- .../ui-default/templates/problem_detail.html | 37 +++++++++++++------ 5 files changed, 30 insertions(+), 14 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 98e89237..5aa9c168 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 99290edd..5daf3df6 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 c94129fb..7de01b07 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 dee0a467..6841f773 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 ac2012c7..2f3051ab 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 %}