kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Add hidden setting to set taskTimerInterval, add documentation (#4523)
* Add sync filter hidden setting documentation * Add setting to change the taskTimerInterval * Add documentation for the saver filter hidden setting * add hidden setting for timerTaskInterval, add documentation for timerTaskInterval, saver filter and sync filterfix-syncer
rodzic
980f337549
commit
840a5951be
|
@ -24,6 +24,7 @@ Syncer.prototype.titleSyncPollingInterval = "$:/config/SyncPollingInterval";
|
|||
Syncer.prototype.titleSyncDisableLazyLoading = "$:/config/SyncDisableLazyLoading";
|
||||
Syncer.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done";
|
||||
Syncer.prototype.titleSyncThrottleInterval = "$:/config/SyncThrottleInterval";
|
||||
Syncer.prototype.titleTaskTimerInterval = "$:/config/TaskTimerInterval"
|
||||
Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer
|
||||
Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...
|
||||
Syncer.prototype.errorRetryInterval = 5 * 1000; // Interval to retry after an error
|
||||
|
@ -45,7 +46,7 @@ function Syncer(options) {
|
|||
this.titleUserName = options.titleUserName || this.titleUserName;
|
||||
this.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter;
|
||||
this.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification;
|
||||
this.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval;
|
||||
this.taskTimerInterval = options.taskTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleTaskTimerInterval,""),10) || this.taskTimerInterval;
|
||||
this.throttleInterval = options.throttleInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,""),10) || this.throttleInterval;
|
||||
this.errorRetryInterval = options.errorRetryInterval || this.errorRetryInterval;
|
||||
this.fallbackInterval = options.fallbackInterval || this.fallbackInterval;
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
title: Hidden Setting: Saver Filter
|
||||
tags: [[Hidden Settings]]
|
||||
|
||||
A filter which determines which tiddlers should be saved when saving the wiki.
|
||||
|
||||
Defaults to "" which saves everything.
|
||||
|
||||
Changing needs a restart to take effect.
|
||||
|
||||
$:/config/SaverFilter
|
|
@ -0,0 +1,10 @@
|
|||
title: Hidden Setting: Sync Filter
|
||||
tags: [[Hidden Settings]]
|
||||
|
||||
A filter which determines which tiddlers in the wiki should be synced with the server.
|
||||
|
||||
Defaults to "" which syncs everything.
|
||||
|
||||
Changing needs a restart to take effect.
|
||||
|
||||
$:/config/SyncFilter
|
|
@ -0,0 +1,10 @@
|
|||
title: Hidden Setting: Task Timer Interval
|
||||
tags: [[Hidden Settings]]
|
||||
|
||||
Specifies the interval at which [[Syncadaptor|https://tiddlywiki.com/dev/#Syncadaptor]] will run the next task in the queue.
|
||||
|
||||
Defaults to "1000" (1 * 1000ms = 1s)
|
||||
|
||||
Changing needs a restart to take effect.
|
||||
|
||||
$:/config/TaskTimerInterval
|
Ładowanie…
Reference in New Issue