chore: adjust files

This commit is contained in:
GyDi
2022-02-13 19:27:06 +08:00
parent d7a1b974cd
commit aeece6c201
18 changed files with 30 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
import { ApiType } from "../services/types";
import { ApiType } from "../../services/types";
interface Props {
value: ApiType.ConnectionsItem;

View File

@@ -2,12 +2,12 @@ import { useEffect, useState } from "react";
import { useRecoilValue } from "recoil";
import { Box, Typography } from "@mui/material";
import { ArrowDownward, ArrowUpward } from "@mui/icons-material";
import { getInfomation } from "../services/api";
import { ApiType } from "../services/types";
import { atomClashPort } from "../states/setting";
import parseTraffic from "../utils/parse-traffic";
import { getInfomation } from "../../services/api";
import { ApiType } from "../../services/types";
import { atomClashPort } from "../../states/setting";
import parseTraffic from "../../utils/parse-traffic";
const Traffic = () => {
const LayoutTraffic = () => {
const portValue = useRecoilValue(atomClashPort);
const [traffic, setTraffic] = useState({ up: 0, down: 0 });
@@ -66,4 +66,4 @@ const Traffic = () => {
);
};
export default Traffic;
export default LayoutTraffic;

View File

@@ -1,5 +1,5 @@
import { styled, Box } from "@mui/material";
import { ApiType } from "../services/types";
import { ApiType } from "../../services/types";
const Item = styled(Box)(({ theme }) => ({
padding: "8px 0",

View File

@@ -13,10 +13,10 @@ import {
} from "@mui/material";
import { useSWRConfig } from "swr";
import { RefreshRounded } from "@mui/icons-material";
import { CmdType } from "../services/types";
import { updateProfile, deleteProfile, viewProfile } from "../services/cmds";
import Notice from "./notice";
import parseTraffic from "../utils/parse-traffic";
import { CmdType } from "../../services/types";
import { updateProfile, deleteProfile, viewProfile } from "../../services/cmds";
import Notice from "../base/base-notice";
import parseTraffic from "../../utils/parse-traffic";
import relativeTime from "dayjs/plugin/relativeTime";
dayjs.extend(relativeTime);

View File

@@ -16,9 +16,9 @@ import {
MyLocationRounded,
NetworkCheckRounded,
} from "@mui/icons-material";
import { updateProxy } from "../services/api";
import { ApiType } from "../services/types";
import { getProfiles, patchProfile } from "../services/cmds";
import { updateProxy } from "../../services/api";
import { ApiType } from "../../services/types";
import { getProfiles, patchProfile } from "../../services/cmds";
import ProxyItem from "./proxy-item";
interface Props {

View File

@@ -15,8 +15,8 @@ import { atomClashPort } from "../../states/setting";
import { patchClashConfig } from "../../services/cmds";
import { SettingList, SettingItem } from "./setting";
import { getClashConfig, getVersion, updateConfigs } from "../../services/api";
import Notice from "../base/base-notice";
import GuardState from "./guard-state";
import Notice from "../notice";
interface Props {
onError: (err: Error) => void;