mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user