From 7f0d340a378f415183c81db4b23a80920d23873c Mon Sep 17 00:00:00 2001 From: Peifan Li Date: Sat, 27 Dec 2025 23:27:34 -0500 Subject: [PATCH] refactor: refactor collection --- .cursor/rules/codacy.mdc | 4 ++-- backend/src/controllers/cookieController.ts | 1 + backend/src/controllers/passwordController.ts | 1 + backend/src/services/cookieService.ts | 1 + backend/src/services/passwordService.ts | 1 + backend/src/services/settingsValidationService.ts | 1 + backend/src/types/settings.ts | 1 + 7 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.cursor/rules/codacy.mdc b/.cursor/rules/codacy.mdc index a40e538..45e09e2 100644 --- a/.cursor/rules/codacy.mdc +++ b/.cursor/rules/codacy.mdc @@ -10,8 +10,8 @@ Configuration for AI behavior when interacting with Codacy's MCP Server ## using any tool that accepts the arguments: `provider`, `organization`, or `repository` - ALWAYS use: - provider: gh - - organization: Brainicism - - repository: bgutil-ytdlp-pot-provider + - organization: franklioxygen + - repository: MyTube - Avoid calling `git remote -v` unless really necessary ## CRITICAL: After ANY successful `edit_file` or `reapply` operation diff --git a/backend/src/controllers/cookieController.ts b/backend/src/controllers/cookieController.ts index dd02a13..20d308e 100644 --- a/backend/src/controllers/cookieController.ts +++ b/backend/src/controllers/cookieController.ts @@ -43,3 +43,4 @@ export const deleteCookies = async ( cookieService.deleteCookies(); res.json(successMessage("Cookies deleted successfully")); }; + diff --git a/backend/src/controllers/passwordController.ts b/backend/src/controllers/passwordController.ts index 359aa27..ea7a352 100644 --- a/backend/src/controllers/passwordController.ts +++ b/backend/src/controllers/passwordController.ts @@ -59,3 +59,4 @@ export const resetPassword = async ( }); }; + diff --git a/backend/src/services/cookieService.ts b/backend/src/services/cookieService.ts index 3cf76e9..84878f7 100644 --- a/backend/src/services/cookieService.ts +++ b/backend/src/services/cookieService.ts @@ -42,3 +42,4 @@ export function deleteCookies(): void { } } + diff --git a/backend/src/services/passwordService.ts b/backend/src/services/passwordService.ts index c3a5e3e..88f6f51 100644 --- a/backend/src/services/passwordService.ts +++ b/backend/src/services/passwordService.ts @@ -118,3 +118,4 @@ export async function resetPassword(): Promise { return newPassword; } + diff --git a/backend/src/services/settingsValidationService.ts b/backend/src/services/settingsValidationService.ts index 6e741ee..1909a90 100644 --- a/backend/src/services/settingsValidationService.ts +++ b/backend/src/services/settingsValidationService.ts @@ -174,3 +174,4 @@ export async function prepareSettingsForSave( return prepared; } + diff --git a/backend/src/types/settings.ts b/backend/src/types/settings.ts index f6af8dc..6d4aa13 100644 --- a/backend/src/types/settings.ts +++ b/backend/src/types/settings.ts @@ -51,3 +51,4 @@ export const defaultSettings: Settings = { videoColumns: 4, }; +