1
0

项目:更新插件

This commit is contained in:
周中平 2024-03-19 10:46:59 +08:00
parent e0af350777
commit 55785fcbd8
Signed by: zhouzhongping
GPG Key ID: 6666822800008000
11 changed files with 2088 additions and 1159 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,5 +5,5 @@
"isDesktopOnly": false, "isDesktopOnly": false,
"fundingUrl": "https://ko-fi.com/vinzent", "fundingUrl": "https://ko-fi.com/vinzent",
"js": "main.js", "js": "main.js",
"version": "2.23.2" "version": "2.24.1"
} }

View File

@ -8,16 +8,16 @@
} }
} }
.workspace-leaf-content[data-type='git-view'] .button-border { .workspace-leaf-content[data-type="git-view"] .button-border {
border: 2px solid var(--interactive-accent); border: 2px solid var(--interactive-accent);
border-radius: var(--radius-s); border-radius: var(--radius-s);
} }
.workspace-leaf-content[data-type='git-view'] .view-content { .workspace-leaf-content[data-type="git-view"] .view-content {
padding: 0; padding: 0;
} }
.workspace-leaf-content[data-type='git-history-view'] .view-content { .workspace-leaf-content[data-type="git-history-view"] .view-content {
padding: 0; padding: 0;
} }
@ -77,6 +77,18 @@
height: auto; height: auto;
} }
.git-author {
color: var(--text-accent);
}
.git-date {
color: var(--text-accent);
}
.git-ref {
color: var(--text-accent);
}
.workspace-leaf-content[data-type="diff-view"] .d2h-d-none { .workspace-leaf-content[data-type="diff-view"] .d2h-d-none {
display: none; display: none;
} }
@ -228,12 +240,18 @@
} }
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del, .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del { .theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
del {
background-color: #ffb6ba; background-color: #ffb6ba;
} }
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del, .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del { .theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
del {
background-color: #8d232881; background-color: #8d232881;
} }
@ -249,13 +267,19 @@
} }
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins, .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins { .theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
ins {
background-color: #97f295; background-color: #97f295;
text-align: left; text-align: left;
} }
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins, .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins { .theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
ins {
background-color: #1d921996; background-color: #1d921996;
text-align: left; text-align: left;
} }
@ -376,19 +400,31 @@
color: var(--text-normal); color: var(--text-normal);
} }
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-del.d2h-change { .theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-del.d2h-change {
background-color: #fdf2d0; background-color: #fdf2d0;
} }
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-del.d2h-change { .theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-del.d2h-change {
background-color: #55492480; background-color: #55492480;
} }
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-ins.d2h-change { .theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-ins.d2h-change {
background-color: #ded; background-color: #ded;
} }
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-ins.d2h-change { .theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-ins.d2h-change {
background-color: rgba(37, 78, 37, 0.418); background-color: rgba(37, 78, 37, 0.418);
} }
@ -401,7 +437,9 @@
text-decoration: none; text-decoration: none;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a:visited { .workspace-leaf-content[data-type="diff-view"]
.d2h-file-list-wrapper
a:visited {
color: #3572b0; color: #3572b0;
} }
@ -501,7 +539,8 @@
background-color: var(--background-secondary); background-color: var(--background-secondary);
} }
.cm-gutterElement.obs-git-blame-gutter > div, .line-author-settings-preview { .cm-gutterElement.obs-git-blame-gutter > div,
.line-author-settings-preview {
/* delegate text color to settings */ /* delegate text color to settings */
color: var(--obs-git-gutter-text); color: var(--obs-git-gutter-text);
font-family: monospace; font-family: monospace;

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"id": "obsidian-linter", "id": "obsidian-linter",
"name": "Linter", "name": "Linter",
"version": "1.23.1", "version": "1.23.2",
"minAppVersion": "1.4.16", "minAppVersion": "1.4.16",
"description": "Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.", "description": "Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.",
"author": "Victor Tao", "author": "Victor Tao",

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"id": "obsidian-weread-plugin", "id": "obsidian-weread-plugin",
"name": "Weread", "name": "Weread",
"version": "0.9.0", "version": "0.10.0",
"minAppVersion": "0.12.0", "minAppVersion": "0.12.0",
"description": "This is obsidian plugin for Tencent weread.", "description": "This is obsidian plugin for Tencent weread.",
"author": "hankzhao", "author": "hankzhao",

View File

@ -1743,6 +1743,12 @@ function arraymove(arr, fromIndex, toIndex) {
function get_active_file(app2) { function get_active_file(app2) {
return app2.workspace.activeEditor?.file ?? app2.workspace.getActiveFile(); return app2.workspace.activeEditor?.file ?? app2.workspace.getActiveFile();
} }
function get_folder_path_from_file_path(path) {
const path_separator = path.lastIndexOf("/");
if (path_separator !== -1)
return path.slice(0, path_separator);
return "";
}
// src/settings/suggesters/FileSuggester.ts // src/settings/suggesters/FileSuggester.ts
var FileSuggestMode; var FileSuggestMode;
@ -2663,7 +2669,10 @@ var InternalModuleHooks = class extends InternalModule {
} }
generate_on_all_templates_executed() { generate_on_all_templates_executed() {
return (callback_function) => { return (callback_function) => {
const event_ref = app.workspace.on("templater:all-templates-executed", () => callback_function()); const event_ref = app.workspace.on("templater:all-templates-executed", async () => {
await delay(1);
callback_function();
});
if (event_ref) { if (event_ref) {
this.event_refs.push(event_ref); this.event_refs.push(event_ref);
} }
@ -3582,7 +3591,11 @@ var Templater = class {
} }
const extension = template instanceof import_obsidian12.TFile ? template.extension || "md" : "md"; const extension = template instanceof import_obsidian12.TFile ? template.extension || "md" : "md";
const created_note = await errorWrapper(async () => { const created_note = await errorWrapper(async () => {
const path = app.vault.getAvailablePath((0, import_obsidian12.normalizePath)(`${folder?.path ?? ""}/${filename ?? "Untitled"}`), extension); const path = app.vault.getAvailablePath((0, import_obsidian12.normalizePath)(`${folder?.path ?? ""}/${filename || "Untitled"}`), extension);
const folder_path = get_folder_path_from_file_path(path);
if (folder_path && !app.vault.getAbstractFileByPathInsensitive(folder_path)) {
await app.vault.createFolder(folder_path);
}
return app.vault.create(path, ""); return app.vault.create(path, "");
}, `Couldn't create ${extension} file.`); }, `Couldn't create ${extension} file.`);
if (created_note == null) { if (created_note == null) {

View File

@ -1,7 +1,7 @@
{ {
"id": "templater-obsidian", "id": "templater-obsidian",
"name": "Templater", "name": "Templater",
"version": "2.2.1", "version": "2.2.3",
"description": "Create and use templates", "description": "Create and use templates",
"minAppVersion": "1.5.0", "minAppVersion": "1.5.0",
"author": "SilentVoid", "author": "SilentVoid",

View File

@ -1,7 +1,7 @@
{ {
"name": "Minimal", "name": "Minimal",
"version": "7.4.8", "version": "7.5.2",
"minAppVersion": "1.5.0", "minAppVersion": "1.5.4",
"author": "@kepano", "author": "@kepano",
"authorUrl": "https://twitter.com/kepano", "authorUrl": "https://twitter.com/kepano",
"fundingUrl": "https://www.buymeacoffee.com/kepano" "fundingUrl": "https://www.buymeacoffee.com/kepano"

File diff suppressed because one or more lines are too long