mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-05-13 02:51:51 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0923ac3d85 | ||
|
|
ca100d6d9d |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-livesync",
|
"id": "obsidian-livesync",
|
||||||
"name": "Self-hosted LiveSync",
|
"name": "Self-hosted LiveSync",
|
||||||
"version": "0.15.2",
|
"version": "0.15.3",
|
||||||
"minAppVersion": "0.9.12",
|
"minAppVersion": "0.9.12",
|
||||||
"description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
"description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
||||||
"author": "vorotamoroz",
|
"author": "vorotamoroz",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.15.2",
|
"version": "0.15.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.15.2",
|
"version": "0.15.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"diff-match-patch": "^1.0.5",
|
"diff-match-patch": "^1.0.5",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.15.2",
|
"version": "0.15.3",
|
||||||
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -635,6 +635,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
await this.plugin.markRemoteLocked();
|
await this.plugin.markRemoteLocked();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
let rebuildRemote = false;
|
||||||
|
|
||||||
new Setting(containerRemoteDatabaseEl)
|
new Setting(containerRemoteDatabaseEl)
|
||||||
.setName("")
|
.setName("")
|
||||||
@@ -653,7 +654,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
} else {
|
} else {
|
||||||
this.plugin.settings.customChunkSize = 100;
|
this.plugin.settings.customChunkSize = 100;
|
||||||
}
|
}
|
||||||
|
rebuildRemote = false;
|
||||||
changeDisplay("10")
|
changeDisplay("10")
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@@ -674,8 +675,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
} else {
|
} else {
|
||||||
this.plugin.settings.customChunkSize = 100;
|
this.plugin.settings.customChunkSize = 100;
|
||||||
}
|
}
|
||||||
this.plugin.saveSettings();
|
rebuildRemote = true;
|
||||||
await this.plugin.tryResetRemoteDatabase();
|
|
||||||
changeDisplay("10")
|
changeDisplay("10")
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@@ -1200,8 +1200,15 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.plugin.app.setting.close()
|
this.plugin.app.setting.close()
|
||||||
await this.plugin.resetLocalDatabase();
|
await this.plugin.resetLocalDatabase();
|
||||||
await this.plugin.initializeDatabase(true)
|
await this.plugin.initializeDatabase(true);
|
||||||
|
if (rebuildRemote) {
|
||||||
|
await this.plugin.markRemoteLocked();
|
||||||
|
await this.plugin.tryResetRemoteDatabase();
|
||||||
|
await this.plugin.markRemoteLocked();
|
||||||
|
await this.plugin.markRemoteResolved();
|
||||||
|
}
|
||||||
await this.plugin.replicate(true);
|
await this.plugin.replicate(true);
|
||||||
|
|
||||||
Logger("All done! Please set up subsequent devices with 'Copy setup URI' and 'Open setup URI'.", LOG_LEVEL.NOTICE);
|
Logger("All done! Please set up subsequent devices with 'Copy setup URI' and 'Open setup URI'.", LOG_LEVEL.NOTICE);
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.plugin.app.commands.executeCommandById("obsidian-livesync:livesync-copysetupuri")
|
this.plugin.app.commands.executeCommandById("obsidian-livesync:livesync-copysetupuri")
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ I appreciate for reviewing and giving me advice @Pouhon158!
|
|||||||
#### Minors
|
#### Minors
|
||||||
- 0.15.1 Missed the stylesheet.
|
- 0.15.1 Missed the stylesheet.
|
||||||
- 0.15.2 The wizard has been improved and documentated!
|
- 0.15.2 The wizard has been improved and documentated!
|
||||||
|
- 0.15.3 Fixed the issue about locking/unlocking remote database while rebuilding in the wizard.
|
||||||
|
|
||||||
### 0.14.1
|
### 0.14.1
|
||||||
- The target selecting filter was implemented.
|
- The target selecting filter was implemented.
|
||||||
|
|||||||
Reference in New Issue
Block a user