mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-15 18:55:57 +00:00
Change a few more lines to more correctly reflect the settings
This commit is contained in:
@@ -142,7 +142,7 @@ export class ModuleSetupObsidian extends AbstractObsidianModule implements IObsi
|
|||||||
const setupJustImport = "Don't sync anything, just apply the settings.";
|
const setupJustImport = "Don't sync anything, just apply the settings.";
|
||||||
const setupAsNew = "This is a new client - sync everything from the remote server.";
|
const setupAsNew = "This is a new client - sync everything from the remote server.";
|
||||||
const setupAsMerge = "This is an existing client - merge existing files with the server.";
|
const setupAsMerge = "This is an existing client - merge existing files with the server.";
|
||||||
const setupAgain = "This is a new server - reset remote server and use local files.";
|
const setupAgain = "Initialise new server data - ideal for new or broken servers.";
|
||||||
const setupManually = "Continue and configure manually.";
|
const setupManually = "Continue and configure manually.";
|
||||||
newSettingW.syncInternalFiles = false;
|
newSettingW.syncInternalFiles = false;
|
||||||
newSettingW.usePluginSync = false;
|
newSettingW.usePluginSync = false;
|
||||||
|
|||||||
@@ -940,7 +940,7 @@ Store only the settings. **Caution: This may lead to data corruption**; database
|
|||||||
});
|
});
|
||||||
new Setting(paneEl)
|
new Setting(paneEl)
|
||||||
.setName("Enable LiveSync")
|
.setName("Enable LiveSync")
|
||||||
.setDesc("Only enable this after configuring either of the above two options.")
|
.setDesc("Only enable this after configuring either of the above two options or completing all configuration manually.")
|
||||||
.addOnUpdate(visibleOnly(() => !this.isConfiguredAs("isConfigured", true)))
|
.addOnUpdate(visibleOnly(() => !this.isConfiguredAs("isConfigured", true)))
|
||||||
.addButton((text) => {
|
.addButton((text) => {
|
||||||
text.setButtonText("Enable").onClick(async () => {
|
text.setButtonText("Enable").onClick(async () => {
|
||||||
@@ -1357,7 +1357,7 @@ Store only the settings. **Caution: This may lead to data corruption**; database
|
|||||||
const ObjectStorageMessage = `WARNING: This feature is a Work In Progress, so please keep in mind the following:
|
const ObjectStorageMessage = `WARNING: This feature is a Work In Progress, so please keep in mind the following:
|
||||||
- Append only architecture. A rebuild is required to shrink the storage.
|
- Append only architecture. A rebuild is required to shrink the storage.
|
||||||
- A bit fragile.
|
- A bit fragile.
|
||||||
- When first syncing, all history will be transferred from the server. Be mindful of data caps and slow speeds.
|
- When first syncing, all history will be transferred from the remote. Be mindful of data caps and slow speeds.
|
||||||
- Only differences are synced live.
|
- Only differences are synced live.
|
||||||
|
|
||||||
If you run into any issues, or have ideas about this feature, please create a issue on GitHub.
|
If you run into any issues, or have ideas about this feature, please create a issue on GitHub.
|
||||||
@@ -1533,8 +1533,8 @@ I appreciate you for your great dedication.
|
|||||||
|
|
||||||
void addPanel(paneEl, "Fetch settings").then((paneEl) => {
|
void addPanel(paneEl, "Fetch settings").then((paneEl) => {
|
||||||
new Setting(paneEl)
|
new Setting(paneEl)
|
||||||
.setName("Fetch config from server")
|
.setName("Fetch config from remote server")
|
||||||
.setDesc("Fetch necessary settings from already configured server.")
|
.setDesc("Fetch necessary settings from already configured remote server.")
|
||||||
.addButton((button) =>
|
.addButton((button) =>
|
||||||
button
|
button
|
||||||
.setButtonText("Fetch")
|
.setButtonText("Fetch")
|
||||||
@@ -1599,7 +1599,7 @@ I appreciate you for your great dedication.
|
|||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
(await this.plugin.confirm.askYesNoDialog(
|
(await this.plugin.confirm.askYesNoDialog(
|
||||||
"Do you want to fetch the config from the server?",
|
"Do you want to fetch the config from the remote server?",
|
||||||
{ defaultOption: "Yes", title: "Fetch config" }
|
{ defaultOption: "Yes", title: "Fetch config" }
|
||||||
)) == "yes"
|
)) == "yes"
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -105,11 +105,11 @@ export const SettingInformation: Partial<Record<keyof AllSettings, Configuration
|
|||||||
},
|
},
|
||||||
syncOnSave: {
|
syncOnSave: {
|
||||||
name: "Sync on Save",
|
name: "Sync on Save",
|
||||||
desc: "Forces a sync of the file when it's saved.",
|
desc: "Starts synchronisation when a file is saved.",
|
||||||
},
|
},
|
||||||
syncOnEditorSave: {
|
syncOnEditorSave: {
|
||||||
name: "Sync on Editor Save",
|
name: "Sync on Editor Save",
|
||||||
desc: "When you save a file in the editor, sync automatically",
|
desc: "When you save a file in the editor, start a sync automatically",
|
||||||
},
|
},
|
||||||
syncOnFileOpen: {
|
syncOnFileOpen: {
|
||||||
name: "Sync on File Open",
|
name: "Sync on File Open",
|
||||||
@@ -148,8 +148,8 @@ export const SettingInformation: Partial<Record<keyof AllSettings, Configuration
|
|||||||
desc: "Should we prompt you for every single merge, even if we can safely merge automatcially?",
|
desc: "Should we prompt you for every single merge, even if we can safely merge automatcially?",
|
||||||
},
|
},
|
||||||
writeDocumentsIfConflicted: {
|
writeDocumentsIfConflicted: {
|
||||||
name: "Sync changes even if the file has a conflict.",
|
name: "Apply Latest Change if Conflicting",
|
||||||
desc: "Turn on to previous behavior",
|
desc: "Enable this option to automatically apply the most recent change to documents even when it conflicts",
|
||||||
},
|
},
|
||||||
syncInternalFilesInterval: {
|
syncInternalFilesInterval: {
|
||||||
name: "Scan hidden files periodically",
|
name: "Scan hidden files periodically",
|
||||||
@@ -261,7 +261,7 @@ export const SettingInformation: Partial<Record<keyof AllSettings, Configuration
|
|||||||
},
|
},
|
||||||
useCustomRequestHandler: {
|
useCustomRequestHandler: {
|
||||||
name: "Use Custom HTTP Handler",
|
name: "Use Custom HTTP Handler",
|
||||||
desc: "Enable this if your Object Storage doesn't accept CORS",
|
desc: "Enable this if your Object Storage doesn't support CORS",
|
||||||
},
|
},
|
||||||
maxChunksInEden: {
|
maxChunksInEden: {
|
||||||
name: "Maximum Incubating Chunks",
|
name: "Maximum Incubating Chunks",
|
||||||
|
|||||||
Reference in New Issue
Block a user