{#if isAutoSyncConfigModalOpen}

Auto Sync Configuration

Configure the Auto Sync feature here. Please ensure you have a valid sync token set in settings.

How often should the app sync data automatically? Please enter a number in hours. The minimum value is 1 hour.

{#if !autoSyncConfigState.validatingToken && autoSyncConfigState.tokenValid} {:else if !autoSyncConfigState.validatingToken && !autoSyncConfigState.tokenValid} {:else if autoSyncConfigState.validatingToken} {/if}

Enter your sync token here. A green tick will be displayed if the token is valid, a red cross if it's invalid, and a spinner if it's validating. Please ensure you have a valid sync token set or automatic sync will not work.

{/if}
FanslySync

FanslySync

v{versionData.appVersion} (runtime: {versionData.tauriVersion}) {#if upToDate === false} {:else if upToDate === true} Up to date! {/if}

Sync

Manage automatic sync options and manual sync here.

{#if loadingSync}
Loading...

Loading sync options, one moment...

{:else}

Automatic Sync

{config?.auto_sync_enabled ? 'Enabled' : 'Disabled'}

Sync content automatically every {config?.sync_interval} {(config?.sync_interval ?? 0 > 1) ? 'hour' : 'hours'}. Please ensure you have a stable internet connection.

Manual Sync

Trigger a manual sync now, instead of waiting for an automatic sync.

{/if}
{#if syncState.show}
{#if !syncState.success && !syncState.error}

Syncing...

We are currently {syncProgress.currentStep}. We've processed {syncProgress.current_count} of {syncProgress.total_count} items so far. We are about {syncProgress.percentage}% done with this step.

{:else if syncState.success}

Sync Successful!

Data synced successfully. Use the copy button to copy the sync URL to your clipboard.

{:else}

Sync Failed!

An error occurred while syncing your data. Details: {syncState.message}

{/if}
{/if}