refactor: improve code formatting and consistency across components

- Updated button and span elements in ThemeToggle.vue and TopActions.vue for better readability.
- Enhanced UninstallConfirmModal.vue and UpdateAppsModal.vue with consistent indentation and spacing.
- Refactored downloadStatus.ts and storeConfig.ts for improved code clarity.
- Standardized string quotes and spacing in typedefinition.ts and processInstall.ts.
- Ensured consistent use of arrow functions and improved variable declarations throughout the codebase.
This commit is contained in:
Elysia
2026-02-12 18:32:41 +08:00
parent e11740ad4c
commit 6622e70033
29 changed files with 1681 additions and 1042 deletions

View File

@@ -5,7 +5,7 @@
import { app } from "electron";
import pino from "pino";
const logger = pino({ 'name': 'deeplink.ts' });
const logger = pino({ name: "deeplink.ts" });
type Query = Record<string, string>;
export type Listener = (query: Query) => void;
@@ -52,13 +52,13 @@ export const deepLink = {
on: (event: string, listener: Listener) => {
const count = listeners.add(event, listener);
logger.info(
`Deep link: listener added for event ${event}. Total event listeners: ${count}`
`Deep link: listener added for event ${event}. Total event listeners: ${count}`,
);
},
off: (event: string, listener: Listener) => {
const count = listeners.remove(event, listener);
logger.info(
`Deep link: listener removed for event ${event}. Total event listeners: ${count}`
`Deep link: listener removed for event ${event}. Total event listeners: ${count}`,
);
},
once: (event: string, listener: Listener) => {
@@ -72,7 +72,7 @@ export const deepLink = {
export function handleCommandLine(commandLine: string[]) {
const target = commandLine.find((arg) =>
protocols.some((protocol) => arg.startsWith(protocol + "://"))
protocols.some((protocol) => arg.startsWith(protocol + "://")),
);
if (!target) return;