vault backup: 2026-08-24 09:42:59

This commit is contained in:
CrazyJasonwell
2026-08-24 09:42:59 +08:00
parent 775d83b031
commit 5d1bd76b2c
3018 changed files with 20298 additions and 53817 deletions
+9 -26
View File
@@ -478694,7 +478694,7 @@ var DEFAULT_SETTINGS = {
stable: true,
errors: {},
debug_mode: false,
silence_errors: false,
silence_errors: true,
manifest_version: "",
compatibility_module: true,
safe_mode: true,
@@ -531886,7 +531886,8 @@ var UNITADE_PLUGIN = class _UNITADE_PLUGIN extends import_obsidian12.Plugin {
const filename = file.name.split(".").splice(1);
if (isTFolder(file)) return;
if (this.settings.is_ignore) {
for (const mask of this.settings.ignore_masks.split(">")) {
const ignore_masks = this.settings.ignore_masks ? this.settings.ignore_masks.split(">").map((s) => s.trim()).filter((s) => s.length > 0) : [];
for (const mask of ignore_masks) {
const _mask = mask.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
try {
const regex = new RegExp(_mask);
@@ -531894,11 +531895,7 @@ var UNITADE_PLUGIN = class _UNITADE_PLUGIN extends import_obsidian12.Plugin {
return;
}
} catch (error) {
if (!this.settings.silence_errors) {
console.error(error);
} else {
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${error}`);
}
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${error}`);
}
}
}
@@ -532106,12 +532103,7 @@ var UNITADE_PLUGIN = class _UNITADE_PLUGIN extends import_obsidian12.Plugin {
try {
this.registerExtensions([".md"], "markdown");
} catch (err) {
if (!this.settings.silence_errors) {
new Notification(this.locale.getLocaleItem("ERROR_COMMON_MESSAGE")[0], { body: err });
console.error(err);
} else {
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${err}`);
}
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${err}`);
this.settings.errors["markdown_override"] = formatString(this.locale.getLocaleItem("ERROR_REGISTRY_EXTENSION")[3], err);
}
for (const key in import_codemirror2.default.modes) {
@@ -532295,8 +532287,9 @@ var UNITADE_PLUGIN = class _UNITADE_PLUGIN extends import_obsidian12.Plugin {
if (!this.settings.code_editor_settings.enabled || !this.settings.code_editor_settings.use_default_extensions) {
this.__applyCfg(defaultExtensions, "markdown");
}
const forced_extensions = this.settings.forced_extensions.split(">").map((s) => s.trim());
const forced_extensions = this.settings.forced_extensions ? this.settings.forced_extensions.split(">").map((s) => s.trim()).filter((s) => s.length > 0) : [];
for (const extension of forced_extensions) {
if (!extension) continue;
try {
this.registerView(extension, (leaf) => {
return new UNITADE_VIEW(leaf, extension);
@@ -532338,12 +532331,7 @@ var UNITADE_PLUGIN = class _UNITADE_PLUGIN extends import_obsidian12.Plugin {
} else {
_msg = formatString(this.locale.getLocaleItem("ERROR_REGISTRY_EXTENSION")[1], filetype, view, err);
}
if (!this.settings.silence_errors) {
new Notification(this.locale.getLocaleItem("ERROR_COMMON_MESSAGE")[0], { body: _msg });
console.error(_msg);
} else {
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${_msg}`);
}
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${_msg}`);
this._settings.errors[filetype] = _msg;
}
}
@@ -532405,12 +532393,7 @@ var UNITADE_PLUGIN = class _UNITADE_PLUGIN extends import_obsidian12.Plugin {
} catch (err) {
const _msg = formatString(this.locale.getLocaleItem("ERROR_REGISTRY_EXTENSION")[2], extension);
this.settings.errors[extension] = _msg;
if (!this.settings.silence_errors) {
new Notification(this.locale.getLocaleItem("ERROR_COMMON_MESSAGE")[0], { body: _msg });
console.error(_msg);
} else {
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${_msg}`);
}
console.warn(`[UNITADE-ERROR]: ERROR IS SILENCED, ERROR: ${_msg}`);
}
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "unitade",
"name": "UNITADE.md",
"version": "3.2.7",
"version": "3.2.8",
"minAppVersion": "1.0.0",
"description": "Effortlessly treat any file extension as note, organize diverse file formats in your vault and take advancements in control of extension system even with custom modals.",
"author": "Falcion",