feat: add ci for lint and release , fix several bugs (#5)

* feat: add save_settings_with_update_port command and update related components

* refactor: remove state parameter from API key retrieval and update related functions

* feat: enhance release workflow with tag validation and improve build scripts

* feat: update release workflow to use version input from auto-version workflow

* 📦 Chore(custom): add Clippy configuration for consistent linting across platforms

* chore: add Clippy configuration for consistent linting across platforms

* 🐛 Fix(custom): fix ci

* 🚧 WIP(custom): fix clippy error

* 🐛 Fix(custom): add default openlist and rclone version

* 🚧 WIP(custom): fix clippy errors

* 🚧 WIP(custom): fix clippy errors

* 🐛 Fix(custom): fix ci bugs
This commit is contained in:
Kuingsmile
2025-06-28 13:06:32 +08:00
committed by GitHub
parent bd8e54aa42
commit 5ade6a2c01
36 changed files with 1374 additions and 793 deletions

View File

@@ -19,10 +19,7 @@ const autoStartApp = ref(false)
const openlistCoreSettings = reactive({ ...store.settings.openlist })
const rcloneSettings = reactive({ ...store.settings.rclone })
const appSettings = reactive({ ...store.settings.app })
const isOpenListPortChanged = computed(() => {
return openlistCoreSettings.port !== store.settings.openlist.port
})
let originalOpenlistPort = openlistCoreSettings.port || 5244
watch(autoStartApp, async newValue => {
if (newValue) {
@@ -72,6 +69,7 @@ onMounted(async () => {
if (!appSettings.monitor_interval) appSettings.monitor_interval = 5
if (appSettings.auto_update_enabled === undefined) appSettings.auto_update_enabled = true
originalOpenlistPort = openlistCoreSettings.port || 5244
})
const hasUnsavedChanges = computed(() => {
@@ -108,8 +106,11 @@ const handleSave = async () => {
store.settings.openlist = { ...openlistCoreSettings }
store.settings.rclone = { ...rcloneSettings }
store.settings.app = { ...appSettings }
await store.saveSettings()
if (originalOpenlistPort !== openlistCoreSettings.port) {
await store.saveSettingsWithUpdatePort()
} else {
await store.saveSettings()
}
message.value = t('settings.saved')
messageType.value = 'success'
} catch (error) {