mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-06-11 00:40:14 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 236f2293ce | |||
| 4cb908cf62 | |||
| fab2327937 | |||
| 0837648aa6 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-livesync",
|
"id": "obsidian-livesync",
|
||||||
"name": "Self-hosted LiveSync",
|
"name": "Self-hosted LiveSync",
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"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",
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"diff-match-patch": "^1.0.5",
|
"diff-match-patch": "^1.0.5",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"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",
|
||||||
|
|||||||
+3
-3
@@ -158,7 +158,7 @@ export class LocalPouchDB {
|
|||||||
async isOldDatabaseExists() {
|
async isOldDatabaseExists() {
|
||||||
const db = new PouchDB<EntryDoc>(this.dbname + "-livesync", {
|
const db = new PouchDB<EntryDoc>(this.dbname + "-livesync", {
|
||||||
auto_compaction: this.settings.useHistory ? false : true,
|
auto_compaction: this.settings.useHistory ? false : true,
|
||||||
revs_limit: 100,
|
revs_limit: 20,
|
||||||
deterministic_revs: true,
|
deterministic_revs: true,
|
||||||
skip_setup: true,
|
skip_setup: true,
|
||||||
});
|
});
|
||||||
@@ -253,9 +253,9 @@ export class LocalPouchDB {
|
|||||||
Logger(newDbStatus);
|
Logger(newDbStatus);
|
||||||
|
|
||||||
if (this.settings.encrypt) {
|
if (this.settings.encrypt) {
|
||||||
enableEncryption(old, this.settings.passphrase);
|
enableEncryption(old, this.settings.passphrase, true);
|
||||||
}
|
}
|
||||||
const rep = old.replicate.to(this.localDatabase);
|
const rep = old.replicate.to(this.localDatabase, { batch_size: 25, batches_limit: 10 });
|
||||||
rep.on("change", (e) => {
|
rep.on("change", (e) => {
|
||||||
progress.setMessage(`Converting ${e.docs_written} docs...`);
|
progress.setMessage(`Converting ${e.docs_written} docs...`);
|
||||||
Logger(`Converting ${e.docs_written} docs...`, LOG_LEVEL.VERBOSE);
|
Logger(`Converting ${e.docs_written} docs...`, LOG_LEVEL.VERBOSE);
|
||||||
|
|||||||
+1
-1
Submodule src/lib updated: 92c1bbc45d...b031e4e69d
+3
-3
@@ -607,9 +607,9 @@ export default class ObsidianLiveSyncPlugin extends Plugin {
|
|||||||
this.logMessage = [].concat(this.logMessage).concat([newmessage]).slice(-100);
|
this.logMessage = [].concat(this.logMessage).concat([newmessage]).slice(-100);
|
||||||
console.log(valutName + ":" + newmessage);
|
console.log(valutName + ":" + newmessage);
|
||||||
this.setStatusBarText(null, messagecontent.substring(0, 30));
|
this.setStatusBarText(null, messagecontent.substring(0, 30));
|
||||||
if (message instanceof Error) {
|
// if (message instanceof Error) {
|
||||||
console.trace(message);
|
// console.trace(message);
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (level >= LOG_LEVEL.NOTICE) {
|
if (level >= LOG_LEVEL.NOTICE) {
|
||||||
if (messagecontent in this.notifies) {
|
if (messagecontent in this.notifies) {
|
||||||
|
|||||||
Reference in New Issue
Block a user