From 4a2b3f71dd14a27580fbe561543be44343d59a11 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:02:00 +0300 Subject: [PATCH] docs(settings): add warning about case-insensitive mode in settings --- source/locales/langs/ar.ts | 3 ++- source/locales/langs/cz.ts | 3 ++- source/locales/langs/da.ts | 3 ++- source/locales/langs/de.ts | 3 ++- source/locales/langs/en.ts | 3 ++- source/locales/langs/es.ts | 3 ++- source/locales/langs/fr.ts | 3 ++- source/locales/langs/hi.ts | 3 ++- source/locales/langs/id.ts | 3 ++- source/locales/langs/it.ts | 3 ++- source/locales/langs/ja.ts | 3 ++- source/locales/langs/ko.ts | 3 ++- source/locales/langs/nl.ts | 3 ++- source/locales/langs/no.ts | 3 ++- source/locales/langs/pl.ts | 3 ++- source/locales/langs/pt.ts | 3 ++- source/locales/langs/pt_br.ts | 3 ++- source/locales/langs/ro.ts | 3 ++- source/locales/langs/ru.ts | 3 ++- source/locales/langs/sq.ts | 3 ++- source/locales/langs/tr.ts | 3 ++- source/locales/langs/uk.ts | 3 ++- source/locales/langs/zh.ts | 3 ++- source/locales/langs/zh_tw.ts | 3 ++- source/settings.ts | 10 +++++++++- 25 files changed, 57 insertions(+), 25 deletions(-) diff --git a/source/locales/langs/ar.ts b/source/locales/langs/ar.ts index 82fed0a..5d757f0 100644 --- a/source/locales/langs/ar.ts +++ b/source/locales/langs/ar.ts @@ -163,7 +163,8 @@ export const LOCALES_AR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/cz.ts b/source/locales/langs/cz.ts index 67848c0..7fbb13f 100644 --- a/source/locales/langs/cz.ts +++ b/source/locales/langs/cz.ts @@ -163,7 +163,8 @@ export const LOCALES_CZ = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/da.ts b/source/locales/langs/da.ts index 182db57..0e8dffa 100644 --- a/source/locales/langs/da.ts +++ b/source/locales/langs/da.ts @@ -163,7 +163,8 @@ export const LOCALES_DA = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/de.ts b/source/locales/langs/de.ts index c49c8f2..1763b1b 100644 --- a/source/locales/langs/de.ts +++ b/source/locales/langs/de.ts @@ -163,7 +163,8 @@ export const LOCALES_DE = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/en.ts b/source/locales/langs/en.ts index 5b5548d..e115355 100644 --- a/source/locales/langs/en.ts +++ b/source/locales/langs/en.ts @@ -163,7 +163,8 @@ export const LOCALES_EN = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/es.ts b/source/locales/langs/es.ts index 62fbf73..2d49ed9 100644 --- a/source/locales/langs/es.ts +++ b/source/locales/langs/es.ts @@ -163,7 +163,8 @@ export const LOCALES_ES = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/fr.ts b/source/locales/langs/fr.ts index bdfc91b..e9c1c6d 100644 --- a/source/locales/langs/fr.ts +++ b/source/locales/langs/fr.ts @@ -163,7 +163,8 @@ export const LOCALES_FR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/hi.ts b/source/locales/langs/hi.ts index da6dd2c..88634d0 100644 --- a/source/locales/langs/hi.ts +++ b/source/locales/langs/hi.ts @@ -163,7 +163,8 @@ export const LOCALES_HI = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/id.ts b/source/locales/langs/id.ts index 73c0048..9c8b89f 100644 --- a/source/locales/langs/id.ts +++ b/source/locales/langs/id.ts @@ -163,7 +163,8 @@ export const LOCALES_ID = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/it.ts b/source/locales/langs/it.ts index 85f4f01..251fb6d 100644 --- a/source/locales/langs/it.ts +++ b/source/locales/langs/it.ts @@ -163,7 +163,8 @@ export const LOCALES_IT = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ja.ts b/source/locales/langs/ja.ts index 6a73885..f0f7f9b 100644 --- a/source/locales/langs/ja.ts +++ b/source/locales/langs/ja.ts @@ -163,7 +163,8 @@ export const LOCALES_JA = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ko.ts b/source/locales/langs/ko.ts index 13a1c53..8c8fc63 100644 --- a/source/locales/langs/ko.ts +++ b/source/locales/langs/ko.ts @@ -163,7 +163,8 @@ export const LOCALES_KO = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/nl.ts b/source/locales/langs/nl.ts index c63fef1..7803327 100644 --- a/source/locales/langs/nl.ts +++ b/source/locales/langs/nl.ts @@ -163,7 +163,8 @@ export const LOCALES_NL = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/no.ts b/source/locales/langs/no.ts index 38f7221..5a21da1 100644 --- a/source/locales/langs/no.ts +++ b/source/locales/langs/no.ts @@ -163,7 +163,8 @@ export const LOCALES_NO = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/pl.ts b/source/locales/langs/pl.ts index 1c2ec12..9439096 100644 --- a/source/locales/langs/pl.ts +++ b/source/locales/langs/pl.ts @@ -163,7 +163,8 @@ export const LOCALES_PL = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/pt.ts b/source/locales/langs/pt.ts index 8848a53..55b0d98 100644 --- a/source/locales/langs/pt.ts +++ b/source/locales/langs/pt.ts @@ -163,7 +163,8 @@ export const LOCALES_PT = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/pt_br.ts b/source/locales/langs/pt_br.ts index b2433b7..11d6421 100644 --- a/source/locales/langs/pt_br.ts +++ b/source/locales/langs/pt_br.ts @@ -163,7 +163,8 @@ export const LOCALES_PT_BR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ro.ts b/source/locales/langs/ro.ts index dd32657..dd1ab50 100644 --- a/source/locales/langs/ro.ts +++ b/source/locales/langs/ro.ts @@ -163,7 +163,8 @@ export const LOCALES_RO = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ru.ts b/source/locales/langs/ru.ts index f38c8c3..f31dae9 100644 --- a/source/locales/langs/ru.ts +++ b/source/locales/langs/ru.ts @@ -163,7 +163,8 @@ export const LOCALES_RU = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/sq.ts b/source/locales/langs/sq.ts index 48a54a1..6b5504e 100644 --- a/source/locales/langs/sq.ts +++ b/source/locales/langs/sq.ts @@ -163,7 +163,8 @@ export const LOCALES_SQ = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/tr.ts b/source/locales/langs/tr.ts index af1a21b..a1fdc26 100644 --- a/source/locales/langs/tr.ts +++ b/source/locales/langs/tr.ts @@ -163,7 +163,8 @@ export const LOCALES_TR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/uk.ts b/source/locales/langs/uk.ts index 031a093..a302607 100644 --- a/source/locales/langs/uk.ts +++ b/source/locales/langs/uk.ts @@ -163,7 +163,8 @@ export const LOCALES_UK = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/zh.ts b/source/locales/langs/zh.ts index 87610b8..ee36b9c 100644 --- a/source/locales/langs/zh.ts +++ b/source/locales/langs/zh.ts @@ -163,7 +163,8 @@ export const LOCALES_ZH = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/zh_tw.ts b/source/locales/langs/zh_tw.ts index 4b868a8..e0119ee 100644 --- a/source/locales/langs/zh_tw.ts +++ b/source/locales/langs/zh_tw.ts @@ -163,7 +163,8 @@ export const LOCALES_ZH_TW = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/settings.ts b/source/settings.ts index f20fec7..0e8ac7c 100644 --- a/source/settings.ts +++ b/source/settings.ts @@ -224,7 +224,7 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { this.__updateErrors(); }); - new Setting(containerEl) + const caseInsenstiveExtensions = new Setting(containerEl) .setName(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[0]!) .setDesc(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[1]!) .setTooltip(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[2]!) @@ -245,6 +245,14 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { return toggle; }); + const onCaseInsensWarning = document.createElement('div'); + onCaseInsensWarning.style.fontSize = '80%'; + onCaseInsensWarning.style.margin = '10px'; + onCaseInsensWarning.style.color = 'darkRed'; + onCaseInsensWarning.innerHTML = this.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[3]!; + + caseInsenstiveExtensions.infoEl.appendChild(onCaseInsensWarning); + configInput.inputEl.style.width = '100%'; configInput.inputEl.style.height = '48px'; configInput.inputEl.style.minHeight = '36px';