From 38bee6415dcfb5941443c07457ed23726900df41 Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 6 Apr 2021 19:36:07 +0800 Subject: [PATCH] ui: fix notification param --- .editorconfig | 10 ---------- packages/hydrooj/package.json | 2 +- .../components/notification/notification.page.js | 2 +- packages/ui-default/package.json | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 38d921e1..00000000 --- a/.editorconfig +++ /dev/null @@ -1,10 +0,0 @@ -# EditorConfig is awesome: https://EditorConfig.org - -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 4 -indent_style = space -insert_final_newline = true diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 577e08df..3867c3f1 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "2.21.12", + "version": "2.21.13", "bin": "bin/hydrooj.js", "main": "dist/loader.js", "typings": "dist/loader.d.ts", diff --git a/packages/ui-default/components/notification/notification.page.js b/packages/ui-default/components/notification/notification.page.js index 03fd4922..eb4f7215 100644 --- a/packages/ui-default/components/notification/notification.page.js +++ b/packages/ui-default/components/notification/notification.page.js @@ -3,5 +3,5 @@ import Notification from 'vj/components/notification/index'; export default new AutoloadPage('notificationPage', () => { const text = new URL(window.location.href).searchParams.get('notification'); - if (text) new Notification(text).show(); + if (text) Notification.success(text); }); diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index c6be4a20..0a255a24 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.5.9", + "version": "4.5.10", "author": "undefined ", "license": "AGPL-3.0", "main": "hydro.js",