mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-05-19 05:51:18 +00:00
Improved:
- Now, the filename of the conflicted settings will be shown on the merging dialogue - The plugin data can be resolved when conflicted. - The semaphore status display has been changed to count only. - Applying to the storage will be concurrent with a few files.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import type { LoadedEntry } from "./lib/src/types";
|
||||
import { base64ToString } from "./lib/src/strbin";
|
||||
import { getDocData } from "./lib/src/utils";
|
||||
import { mergeObject } from "./utils";
|
||||
import { id2path, mergeObject } from "./utils";
|
||||
|
||||
export let docs: LoadedEntry[] = [];
|
||||
export let callback: (keepRev: string, mergedStr?: string) => Promise<void> = async (_, __) => {
|
||||
@@ -93,9 +93,11 @@
|
||||
diffs = getJsonDiff(objA, selectedObj);
|
||||
console.dir(selectedObj);
|
||||
}
|
||||
$: filename = id2path(docA?._id ?? "");
|
||||
</script>
|
||||
|
||||
<h1>File Conflicted</h1>
|
||||
<h1>Conflicted settings</h1>
|
||||
<div><span>{filename}</span></div>
|
||||
{#if !docA || !docB}
|
||||
<div class="message">Just for a minute, please!</div>
|
||||
<div class="buttons">
|
||||
|
||||
Reference in New Issue
Block a user