From c56966e8bd0c5314c8fb5c024ca3ea8c719f3b99 Mon Sep 17 00:00:00 2001 From: undefined Date: Sat, 2 Dec 2023 23:17:00 +0800 Subject: [PATCH] ui: show error name --- packages/ui-default/templates/error.html | 2 +- packages/ui-default/templates/main.html | 1 + pnpm-workspace.yaml | 4 ---- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 pnpm-workspace.yaml diff --git a/packages/ui-default/templates/error.html b/packages/ui-default/templates/error.html index 6c65fefbc..eb08d0900 100644 --- a/packages/ui-default/templates/error.html +++ b/packages/ui-default/templates/error.html @@ -8,7 +8,7 @@

{{ _('Oops!') }}

{{ _(error.message).formatFromArray(error.params) }}

{{ _('Technical Information') }}:

-

{{ _('Type') }}: {{ error.code }}

+

{{ _('Type') }}: {{ error.name }}

{{ _('Arguments') }}:

    {%- for param in error.params -%} diff --git a/packages/ui-default/templates/main.html b/packages/ui-default/templates/main.html index 5852953de..65bbf3548 100644 --- a/packages/ui-default/templates/main.html +++ b/packages/ui-default/templates/main.html @@ -2,6 +2,7 @@ {% extends "layout/basic.html" %} {% import "components/contest.html" as contest with context %} {% import "components/problem.html" as problem with context %} +{% import "components/user.html" as user with context %} {% block content %}
    {% for column in contents %} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml deleted file mode 100644 index c14be1de1..000000000 --- a/pnpm-workspace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -packages: -- packages/* -- plugins/* -- modules/*