refactor: remove unused notification permission hook and related code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { Box, CircularProgress } from "@mui/material";
|
||||
|
||||
export interface BaseLoadingOverlayProps {
|
||||
interface BaseLoadingOverlayProps {
|
||||
isLoading: boolean;
|
||||
}
|
||||
|
||||
@@ -29,5 +29,3 @@ export const BaseLoadingOverlay: React.FC<BaseLoadingOverlayProps> = ({
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default BaseLoadingOverlay;
|
||||
|
||||
@@ -44,7 +44,7 @@ interface ProxyOption {
|
||||
}
|
||||
|
||||
// 排序类型: 默认 | 按延迟 | 按字母
|
||||
export type ProxySortType = 0 | 1 | 2;
|
||||
type ProxySortType = 0 | 1 | 2;
|
||||
|
||||
function convertDelayColor(delayValue: number) {
|
||||
const colorStr = delayManager.formatDelayColor(delayValue);
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from "@/hooks/use-traffic-monitor";
|
||||
|
||||
// 流量数据项接口
|
||||
export interface ITrafficItem {
|
||||
interface ITrafficItem {
|
||||
up: number;
|
||||
down: number;
|
||||
timestamp?: number;
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Box, Typography, alpha, useTheme } from "@mui/material";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
// 自定义卡片组件接口
|
||||
export interface EnhancedCardProps {
|
||||
interface EnhancedCardProps {
|
||||
title: ReactNode;
|
||||
icon: ReactNode;
|
||||
action?: ReactNode;
|
||||
|
||||
@@ -55,7 +55,7 @@ interface ProfileExtra {
|
||||
expire: number;
|
||||
}
|
||||
|
||||
export interface ProfileItem {
|
||||
interface ProfileItem {
|
||||
uid: string;
|
||||
type?: "local" | "remote" | "merge" | "script";
|
||||
name?: string;
|
||||
@@ -68,7 +68,7 @@ export interface ProfileItem {
|
||||
option?: any;
|
||||
}
|
||||
|
||||
export interface HomeProfileCardProps {
|
||||
interface HomeProfileCardProps {
|
||||
current: ProfileItem | null | undefined;
|
||||
onProfileUpdated?: () => void;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import VisibilityOff from "@mui/icons-material/VisibilityOff";
|
||||
import { saveWebdavConfig, createWebdavBackup } from "@/services/cmds";
|
||||
import { showNotice } from "@/services/noticeService";
|
||||
|
||||
export interface BackupConfigViewerProps {
|
||||
interface BackupConfigViewerProps {
|
||||
onBackupSuccess: () => Promise<void>;
|
||||
onSaveSuccess: () => Promise<void>;
|
||||
onRefresh: () => Promise<void>;
|
||||
|
||||
@@ -33,7 +33,7 @@ export type BackupFile = IWebDavFile & {
|
||||
|
||||
export const DEFAULT_ROWS_PER_PAGE = 5;
|
||||
|
||||
export interface BackupTableViewerProps {
|
||||
interface BackupTableViewerProps {
|
||||
datasource: BackupFile[];
|
||||
page: number;
|
||||
onPageChange: (
|
||||
|
||||
Reference in New Issue
Block a user