From d15a4904a5af779ae4fcb5c84c35ee49a468a39a Mon Sep 17 00:00:00 2001 From: Dream Hunter Date: Thu, 11 Dec 2025 23:33:33 +0800 Subject: [PATCH] feat: add custom SQL cleanup for scheduled maintenance (#781) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add CustomSqlCleanup type to models - Add validateCustomSql and executeCustomSqlCleanup functions - Add SQL validation: DELETE only, single statement, max 1000 chars - Integrate custom SQL cleanup with scheduled job - Add frontend UI with tabs for basic/custom SQL cleanup - Support i18n for English and Chinese 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- frontend/src/views/admin/Maintenance.vue | 260 +++++++++++++++-------- worker/src/admin_api/cleanup_api.ts | 86 +++++++- worker/src/models/index.ts | 8 + worker/src/scheduled.ts | 15 ++ 4 files changed, 277 insertions(+), 92 deletions(-) diff --git a/frontend/src/views/admin/Maintenance.vue b/frontend/src/views/admin/Maintenance.vue index 6a1f0339..71a4762b 100644 --- a/frontend/src/views/admin/Maintenance.vue +++ b/frontend/src/views/admin/Maintenance.vue @@ -1,10 +1,12 @@