Skip to content

Commit

Permalink
docs(settings): add warning about case-insensitive mode in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Falcion committed Nov 5, 2024
1 parent aea3114 commit 4a2b3f7
Show file tree
Hide file tree
Showing 25 changed files with 57 additions and 25 deletions.
3 changes: 2 additions & 1 deletion source/locales/langs/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/cz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/hi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/no.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/pt_br.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/ro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/sq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion source/locales/langs/zh_tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 9 additions & 1 deletion source/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]!)
Expand All @@ -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';
Expand Down

0 comments on commit 4a2b3f7

Please sign in to comment.