From 56395012dcd327a108f9f5ffdc0adcbf230ca889 Mon Sep 17 00:00:00 2001 From: Guest4242 <161818573+imguest24897-alt@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:55:09 +0300 Subject: [PATCH 1/4] edit 1 --- src/html/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/html/index.html b/src/html/index.html index 2306ad3..d5da637 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -312,6 +312,21 @@ + +
+ +
From b9c30ab2d064eb3d38721992af687e429653e359 Mon Sep 17 00:00:00 2001 From: Guest4242 <161818573+imguest24897-alt@users.noreply.github.com> Date: Mon, 29 Sep 2025 23:00:25 +0300 Subject: [PATCH 2/4] edit 2 --- src/ts/main.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ts/main.ts b/src/ts/main.ts index d2b1ad4..a450020 100644 --- a/src/ts/main.ts +++ b/src/ts/main.ts @@ -427,7 +427,15 @@ async function openVM(vm: VM): Promise { VM!.on('login', (rank: Rank, perms: Permissions) => onLogin(rank, perms)); VM!.on('close', () => { - if (!expectedClose) alert(TheI18n.GetString(I18nStringKey.kError_UnexpectedDisconnection)); + if (!expectedClose) { + /* + * better disconnection thing + * by guest4242 :-) + */ + const someToast = document.getElementById('disconnectionToast') // yummy toast + const disconnectionToastControl = bootstrap.Toast.getOrCreateInstance(someToast) + disconnectionToastControl.show(); + } closeVM(); }); From 6a075e7dac9cf25af360e3559980285e2f40f583 Mon Sep 17 00:00:00 2001 From: Guest4242 <161818573+imguest24897-alt@users.noreply.github.com> Date: Mon, 29 Sep 2025 23:36:44 +0300 Subject: [PATCH 3/4] edit 3 --- src/html/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/html/index.html b/src/html/index.html index d5da637..6b8659e 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -323,7 +323,8 @@ just now
- You have been disconnected from the server. + +
From a6fed5264e80b339457ef57d46c2d0cdd4d101a3 Mon Sep 17 00:00:00 2001 From: Guest4242 <161818573+imguest24897-alt@users.noreply.github.com> Date: Mon, 29 Sep 2025 23:42:31 +0300 Subject: [PATCH 4/4] edit 4 --- src/ts/i18n.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ts/i18n.ts b/src/ts/i18n.ts index 64d53f1..0152c94 100644 --- a/src/ts/i18n.ts +++ b/src/ts/i18n.ts @@ -265,6 +265,7 @@ export class I18n { accountSettingsButton: I18nStringKey.kAccountModal_AccountSettings, accountLogoutButton: I18nStringKey.kGeneric_Logout, languageDropdownText: I18nStringKey.kSiteButtons_Languages, + disconnecti18n_thing: I18nStringKey.kError_UnexpectedDisconnection, welcomeModalHeader: I18nStringKey.kWelcomeModal_Header, welcomeModalBody: I18nStringKey.kWelcomeModal_Body, @@ -467,4 +468,4 @@ export class I18n { } } -export let TheI18n = new I18n(); \ No newline at end of file +export let TheI18n = new I18n();