mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:43:44 +08:00
chore: cleanup
This commit is contained in:
parent
c89ccf7185
commit
4f1b8094a3
@ -1,5 +1,5 @@
|
|||||||
import React, { ReactNode } from "react";
|
import React, { ReactNode } from "react";
|
||||||
import { Typography, alpha } from "@mui/material";
|
import { Typography } from "@mui/material";
|
||||||
import { BaseErrorBoundary } from "./base-error-boundary";
|
import { BaseErrorBoundary } from "./base-error-boundary";
|
||||||
import { useCustomTheme } from "@/components/layout/use-custom-theme";
|
import { useCustomTheme } from "@/components/layout/use-custom-theme";
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import dayjs from "dayjs";
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useLockFn } from "ahooks";
|
import { useLockFn } from "ahooks";
|
||||||
@ -260,8 +259,3 @@ export const ProfileMore = (props: Props) => {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
function parseExpire(expire?: number) {
|
|
||||||
if (!expire) return "-";
|
|
||||||
return dayjs(expire * 1000).format("YYYY-MM-DD");
|
|
||||||
}
|
|
||||||
|
@ -81,11 +81,9 @@ export const ProviderButton = () => {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
size="small"
|
size="small"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
Object.entries(data || {}).forEach(
|
Object.entries(data || {}).forEach(async ([key], index) => {
|
||||||
async ([key, item], index) => {
|
await handleUpdate(key, index);
|
||||||
await handleUpdate(key, index);
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("Update All")}
|
{t("Update All")}
|
||||||
|
@ -79,11 +79,9 @@ export const ProviderButton = () => {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
size="small"
|
size="small"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
Object.entries(data || {}).forEach(
|
Object.entries(data || {}).forEach(async ([key], index) => {
|
||||||
async ([key, item], index) => {
|
await handleUpdate(key, index);
|
||||||
await handleUpdate(key, index);
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("Update All")}
|
{t("Update All")}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import { forwardRef, useImperativeHandle, useState } from "react";
|
import { forwardRef, useImperativeHandle, useState } from "react";
|
||||||
import { useLockFn } from "ahooks";
|
import { useLockFn } from "ahooks";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Box, IconButton, Tooltip } from "@mui/material";
|
|
||||||
import { InfoRounded } from "@mui/icons-material";
|
|
||||||
import {
|
import {
|
||||||
InputAdornment,
|
InputAdornment,
|
||||||
List,
|
List,
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
import { useRef } from "react";
|
import { useRef } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import { TextField, Select, MenuItem, Typography } from "@mui/material";
|
||||||
TextField,
|
|
||||||
Select,
|
|
||||||
MenuItem,
|
|
||||||
Typography,
|
|
||||||
IconButton,
|
|
||||||
} from "@mui/material";
|
|
||||||
|
|
||||||
import { Settings, Shuffle } from "@mui/icons-material";
|
import { Settings, Shuffle } from "@mui/icons-material";
|
||||||
import { DialogRef, Notice, Switch } from "@/components/base";
|
import { DialogRef, Notice, Switch } from "@/components/base";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { useRef } from "react";
|
import { useRef } from "react";
|
||||||
import { useLockFn } from "ahooks";
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { open } from "@tauri-apps/api/dialog";
|
import { open } from "@tauri-apps/api/dialog";
|
||||||
import { Button, MenuItem, Select, Input, Typography } from "@mui/material";
|
import { Button, MenuItem, Select, Input, Typography } from "@mui/material";
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
import { useEffect, useMemo } from "react";
|
import { useEffect } from "react";
|
||||||
import { useLockFn } from "ahooks";
|
import { useLockFn } from "ahooks";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Box, Button, ButtonGroup, Paper } from "@mui/material";
|
import { Box, Button, ButtonGroup } from "@mui/material";
|
||||||
import {
|
import {
|
||||||
closeAllConnections,
|
closeAllConnections,
|
||||||
getClashConfig,
|
getClashConfig,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user