mirror of
https://github.com/danbulant/notes
synced 2026-05-19 04:18:49 +00:00
vault backup: 2022-09-15 21:17:14
This commit is contained in:
parent
dacc9021e3
commit
d762580b9c
6 changed files with 62 additions and 26 deletions
8
notes/.obsidian/plugins/dataview/main.js
vendored
8
notes/.obsidian/plugins/dataview/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "dataview",
|
||||
"name": "Dataview",
|
||||
"version": "0.5.45",
|
||||
"version": "0.5.46",
|
||||
"minAppVersion": "0.13.11",
|
||||
"description": "Complex data views for the data-obsessed.",
|
||||
"author": "Michael Brenan <blacksmithgu@gmail.com>",
|
||||
|
|
|
|||
47
notes/.obsidian/plugins/obsidian-git/main.js
vendored
47
notes/.obsidian/plugins/obsidian-git/main.js
vendored
|
|
@ -25029,6 +25029,11 @@ var ObsidianGitSettingsTab = class extends import_obsidian5.PluginSettingTab {
|
|||
plugin.settings.refreshSourceControl = value;
|
||||
plugin.saveSettings();
|
||||
}));
|
||||
new import_obsidian5.Setting(containerEl).setName("Source Control View refresh interval").setDesc("Milliseconds two wait after file change before refreshing the Source Control View").addText((toggle) => toggle.setValue(plugin.settings.refreshSourceControlTimer.toString()).setPlaceholder("7000").onChange((value) => {
|
||||
plugin.settings.refreshSourceControlTimer = Math.max(parseInt(value), 500);
|
||||
plugin.saveSettings();
|
||||
plugin.setRefreshDebouncer();
|
||||
}));
|
||||
new import_obsidian5.Setting(containerEl).setName("Disable notifications").setDesc("Disable notifications for git operations to minimize distraction (refer to status bar for updates). Errors are still shown as notifications even if you enable this setting").addToggle((toggle) => toggle.setValue(plugin.settings.disablePopups).onChange((value) => {
|
||||
plugin.settings.disablePopups = value;
|
||||
plugin.saveSettings();
|
||||
|
|
@ -25100,6 +25105,15 @@ var ObsidianGitSettingsTab = class extends import_obsidian5.PluginSettingTab {
|
|||
plugin.gitManager.updateBasePath(value || "");
|
||||
});
|
||||
});
|
||||
new import_obsidian5.Setting(containerEl).setName("Disable on this device").addToggle((toggle) => toggle.setValue(plugin.localStorage.getPluginDisabled()).onChange((value) => {
|
||||
plugin.localStorage.setPluginDisabled(value);
|
||||
if (value) {
|
||||
plugin.unloadPlugin();
|
||||
} else {
|
||||
plugin.loadPlugin();
|
||||
}
|
||||
new import_obsidian5.Notice("Obsidian must be restarted for the changes to take affect");
|
||||
}));
|
||||
new import_obsidian5.Setting(containerEl).setName("Donate").setDesc("If you like this Plugin, consider donating to support continued development.").addButton((bt) => {
|
||||
bt.buttonEl.outerHTML = "<a href='https://ko-fi.com/F1F195IQ5' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>";
|
||||
});
|
||||
|
|
@ -25321,7 +25335,8 @@ var DEFAULT_SETTINGS = {
|
|||
differentIntervalCommitAndPush: false,
|
||||
changedFilesInStatusBar: false,
|
||||
username: "",
|
||||
showedMobileNotice: false
|
||||
showedMobileNotice: false,
|
||||
refreshSourceControlTimer: 7e3
|
||||
};
|
||||
var GIT_VIEW_CONFIG = {
|
||||
type: "git-view",
|
||||
|
|
@ -25383,6 +25398,12 @@ var LocalStorageSettings = class {
|
|||
setGitPath(value) {
|
||||
return localStorage.setItem(this.prefix + ":gitPath", value);
|
||||
}
|
||||
getPluginDisabled() {
|
||||
return localStorage.getItem(this.prefix + ":pluginDisabled") == "true";
|
||||
}
|
||||
setPluginDisabled(value) {
|
||||
return localStorage.setItem(this.prefix + ":pluginDisabled", `${value}`);
|
||||
}
|
||||
};
|
||||
|
||||
// src/openInGitHub.ts
|
||||
|
|
@ -30990,11 +31011,6 @@ var ObsidianGit = class extends import_obsidian21.Plugin {
|
|||
this.conflictOutputFile = "conflict-files-obsidian-git.md";
|
||||
this.offlineMode = false;
|
||||
this.loading = false;
|
||||
this.debRefresh = (0, import_obsidian21.debounce)(() => {
|
||||
if (this.settings.refreshSourceControl) {
|
||||
this.refresh();
|
||||
}
|
||||
}, 7e3, true);
|
||||
}
|
||||
setState(state) {
|
||||
var _a2;
|
||||
|
|
@ -31025,6 +31041,14 @@ var ObsidianGit = class extends import_obsidian21.Plugin {
|
|||
this.localStorage = new LocalStorageSettings(this);
|
||||
yield this.loadSettings();
|
||||
this.migrateSettings();
|
||||
this.addSettingTab(new ObsidianGitSettingsTab(this.app, this));
|
||||
if (!this.localStorage.getPluginDisabled()) {
|
||||
this.loadPlugin();
|
||||
}
|
||||
});
|
||||
}
|
||||
loadPlugin() {
|
||||
return __async(this, null, function* () {
|
||||
addEventListener("git-refresh", this.refresh.bind(this));
|
||||
this.registerView(GIT_VIEW_CONFIG.type, (leaf) => {
|
||||
return new GitView2(leaf, this);
|
||||
|
|
@ -31036,7 +31060,7 @@ var ObsidianGit = class extends import_obsidian21.Plugin {
|
|||
display: "Git View",
|
||||
defaultMod: true
|
||||
});
|
||||
this.addSettingTab(new ObsidianGitSettingsTab(this.app, this));
|
||||
this.setRefreshDebouncer();
|
||||
this.addCommand({
|
||||
id: "edit-gitignore",
|
||||
name: "Edit .gitignore",
|
||||
|
|
@ -31237,6 +31261,15 @@ var ObsidianGit = class extends import_obsidian21.Plugin {
|
|||
this.app.workspace.onLayoutReady(() => this.init());
|
||||
});
|
||||
}
|
||||
setRefreshDebouncer() {
|
||||
var _a2;
|
||||
(_a2 = this.debRefresh) == null ? void 0 : _a2.cancel();
|
||||
this.debRefresh = (0, import_obsidian21.debounce)(() => {
|
||||
if (this.settings.refreshSourceControl) {
|
||||
this.refresh();
|
||||
}
|
||||
}, this.settings.refreshSourceControlTimer, true);
|
||||
}
|
||||
showNotices() {
|
||||
return __async(this, null, function* () {
|
||||
const length = 1e4;
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@
|
|||
"description": "Backup your vault with Git.",
|
||||
"isDesktopOnly": false,
|
||||
"js": "main.js",
|
||||
"version": "2.0.3"
|
||||
"version": "2.1.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2510,7 +2510,6 @@ var InternalModuleDate = class extends InternalModule {
|
|||
|
||||
// src/core/functions/internal_functions/file/InternalModuleFile.ts
|
||||
var import_obsidian8 = __toModule(require("obsidian"));
|
||||
var import_path = __toModule(require("path"));
|
||||
var DEPTH_LIMIT = 10;
|
||||
var InternalModuleFile = class extends InternalModule {
|
||||
constructor() {
|
||||
|
|
@ -2665,13 +2664,14 @@ var InternalModuleFile = class extends InternalModule {
|
|||
return (path, file_to_move) => __async(this, null, function* () {
|
||||
const file = file_to_move || this.config.target_file;
|
||||
const new_path = (0, import_obsidian8.normalizePath)(`${path}.${file.extension}`);
|
||||
if (import_obsidian8.Platform.isMobileApp) {
|
||||
return UNSUPPORTED_MOBILE_TEMPLATE;
|
||||
const dirs = new_path.replace(/\\/g, "/").split("/");
|
||||
dirs.pop();
|
||||
if (dirs.length) {
|
||||
const dir = dirs.join("/");
|
||||
if (!window.app.vault.getAbstractFileByPath(dir)) {
|
||||
yield window.app.vault.createFolder(dir);
|
||||
}
|
||||
}
|
||||
if (!(this.app.vault.adapter instanceof import_obsidian8.FileSystemAdapter)) {
|
||||
throw new TemplaterError("app.vault is not a FileSystemAdapter instance");
|
||||
}
|
||||
this.app.vault.adapter.mkdir((0, import_path.dirname)(new_path).split(import_path.sep).pop());
|
||||
yield this.app.fileManager.renameFile(file, new_path);
|
||||
return "";
|
||||
});
|
||||
|
|
@ -2841,9 +2841,10 @@ var PromptModal = class extends import_obsidian9.Modal {
|
|||
} else {
|
||||
textInput = new import_obsidian9.TextComponent(div);
|
||||
}
|
||||
this.value = (_a = this.default_value) != null ? _a : "";
|
||||
textInput.inputEl.addClass("templater-prompt-input");
|
||||
textInput.setPlaceholder("Type text here");
|
||||
textInput.setValue((_a = this.default_value) != null ? _a : "");
|
||||
textInput.setValue(this.value);
|
||||
textInput.onChange((value) => this.value = value);
|
||||
textInput.inputEl.addEventListener("keydown", (evt) => this.enterCallback(evt));
|
||||
}
|
||||
|
|
@ -3210,7 +3211,7 @@ var FunctionsGenerator = class {
|
|||
|
||||
// node_modules/eta/dist/eta.es.js
|
||||
var import_fs = __toModule(require("fs"));
|
||||
var import_path2 = __toModule(require("path"));
|
||||
var import_path = __toModule(require("path"));
|
||||
function setPrototypeOf(obj, proto) {
|
||||
if (Object.setPrototypeOf) {
|
||||
Object.setPrototypeOf(obj, proto);
|
||||
|
|
@ -3570,7 +3571,7 @@ function compile(str, config2) {
|
|||
}
|
||||
var _BOM = /^\uFEFF/;
|
||||
function getWholeFilePath(name, parentfile, isDirectory) {
|
||||
var includePath = (0, import_path2.resolve)(isDirectory ? parentfile : (0, import_path2.dirname)(parentfile), name) + ((0, import_path2.extname)(name) ? "" : ".eta");
|
||||
var includePath = (0, import_path.resolve)(isDirectory ? parentfile : (0, import_path.dirname)(parentfile), name) + ((0, import_path.extname)(name) ? "" : ".eta");
|
||||
return includePath;
|
||||
}
|
||||
function getPath(path, options) {
|
||||
|
|
@ -5028,9 +5029,9 @@ var Autocomplete = class extends import_obsidian16.EditorSuggest {
|
|||
if (type2 == "(")
|
||||
return pass(functiondef);
|
||||
}
|
||||
function commasep(what, end2, sep2) {
|
||||
function commasep(what, end2, sep) {
|
||||
function proceed(type2, value) {
|
||||
if (sep2 ? sep2.indexOf(type2) > -1 : type2 == ",") {
|
||||
if (sep ? sep.indexOf(type2) > -1 : type2 == ",") {
|
||||
var lex = cx.state.lexical;
|
||||
if (lex.info == "call")
|
||||
lex.pos = (lex.pos || 0) + 1;
|
||||
|
|
@ -5042,7 +5043,7 @@ var Autocomplete = class extends import_obsidian16.EditorSuggest {
|
|||
}
|
||||
if (type2 == end2 || value == end2)
|
||||
return cont();
|
||||
if (sep2 && sep2.indexOf(";") > -1)
|
||||
if (sep && sep.indexOf(";") > -1)
|
||||
return pass(what);
|
||||
return cont(expect(end2));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "templater-obsidian",
|
||||
"name": "Templater",
|
||||
"version": "1.14.0",
|
||||
"version": "1.14.1",
|
||||
"description": "Create and use templates",
|
||||
"minAppVersion": "0.11.13",
|
||||
"author": "SilentVoid",
|
||||
|
|
|
|||
Loading…
Reference in a new issue