refactor: remove unused notification permission hook and related code

This commit is contained in:
Tunglies
2025-09-18 19:13:11 +08:00
parent a995a13163
commit 409571f54b
19 changed files with 17 additions and 315 deletions

View File

@@ -2,12 +2,10 @@ import {
useGlobalLogData,
clearGlobalLogs,
LogLevel,
ILogItem,
} from "@/services/global-log-service";
// 为了向后兼容,导出相同的类型
export type { LogLevel };
export type { ILogItem };
export const useLogData = useGlobalLogData;

View File

@@ -28,7 +28,7 @@ const cleanupConnections = async (previousProxy: string) => {
}
};
export interface ProxySelectionOptions {
interface ProxySelectionOptions {
onSuccess?: () => void;
onError?: (error: any) => void;
enableConnectionCleanup?: boolean;

View File

@@ -1,8 +0,0 @@
import { setupNotificationPermission } from "../utils/notification-permission";
import { useEffect } from "react";
export function useNotificationPermission() {
useEffect(() => {
setupNotificationPermission();
}, []);
}