feat: update application configuration and monitoring intervals, remove monitor_interval setting

Fixes #48
This commit is contained in:
Kuingsmile
2025-07-13 15:52:29 +08:00
parent 3e1a5f121d
commit 731ff435a5
14 changed files with 35 additions and 41 deletions

View File

@@ -68,7 +68,6 @@ onMounted(async () => {
rcloneConfigJson.value = JSON.stringify(rcloneSettings.config, null, 2)
if (!appSettings.theme) appSettings.theme = 'light'
if (!appSettings.monitor_interval) appSettings.monitor_interval = 5
if (appSettings.auto_update_enabled === undefined) appSettings.auto_update_enabled = true
if (!appSettings.gh_proxy) appSettings.gh_proxy = ''
if (appSettings.gh_proxy_api === undefined) appSettings.gh_proxy_api = false
@@ -298,26 +297,6 @@ const handleReset = async () => {
</div>
</div>
<div class="settings-section">
<h2>{{ t('settings.app.monitor.title') }}</h2>
<p>{{ t('settings.app.monitor.subtitle') }}</p>
<div class="form-grid">
<div class="form-group">
<label>{{ t('settings.app.monitor.interval.label') }}</label>
<input
v-model.number="appSettings.monitor_interval"
type="number"
class="form-input"
:placeholder="t('settings.app.monitor.interval.placeholder')"
min="1"
max="60"
/>
<small>{{ t('settings.app.monitor.interval.help') }}</small>
</div>
</div>
</div>
<div class="settings-section">
<h2>{{ t('settings.app.ghProxy.title') }}</h2>
<p>{{ t('settings.app.ghProxy.subtitle') }}</p>