refactor: adjust base components export
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
} from "@/utils/clash-fields";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import { useProfiles } from "@/hooks/use-profiles";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
import { Notice } from "@/components/base";
|
||||
|
||||
const fieldSorter = (a: string, b: string) => {
|
||||
if (a.includes("-") === a.includes("-")) {
|
||||
|
||||
@@ -7,8 +7,7 @@ import { List, ListItem, ListItemText, TextField } from "@mui/material";
|
||||
import { atomClashPort } from "@/services/states";
|
||||
import { getClashConfig } from "@/services/api";
|
||||
import { patchClashConfig } from "@/services/cmds";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
import { BaseDialog, DialogRef, Notice } from "@/components/base";
|
||||
|
||||
export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -5,8 +5,7 @@ import { useTranslation } from "react-i18next";
|
||||
import { List, ListItem, ListItemText, TextField } from "@mui/material";
|
||||
import { getClashInfo, patchClashConfig } from "@/services/cmds";
|
||||
import { getAxios } from "@/services/api";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
import { BaseDialog, DialogRef, Notice } from "@/components/base";
|
||||
|
||||
export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Menu, MenuItem } from "@mui/material";
|
||||
import { Settings } from "@mui/icons-material";
|
||||
import { changeClashCore } from "@/services/cmds";
|
||||
import { useVerge } from "@/hooks/use-verge";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
import { Notice } from "@/components/base";
|
||||
|
||||
const VALID_CORE = [
|
||||
{ name: "Clash", core: "clash" },
|
||||
|
||||
@@ -3,9 +3,8 @@ import { useTranslation } from "react-i18next";
|
||||
import { useLockFn } from "ahooks";
|
||||
import { styled, Typography } from "@mui/material";
|
||||
import { useVerge } from "@/hooks/use-verge";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import { BaseDialog, DialogRef, Notice } from "@/components/base";
|
||||
import { HotkeyInput } from "./hotkey-input";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
|
||||
const ItemWrapper = styled("div")`
|
||||
display: flex;
|
||||
|
||||
@@ -3,8 +3,7 @@ import { useLockFn } from "ahooks";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { List, ListItem, ListItemText, Switch, TextField } from "@mui/material";
|
||||
import { useVerge } from "@/hooks/use-verge";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
import { BaseDialog, DialogRef, Notice } from "@/components/base";
|
||||
|
||||
export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -9,8 +9,7 @@ import {
|
||||
patchVergeConfig,
|
||||
} from "@/services/cmds";
|
||||
import { forwardRef, useState } from "react";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
import { BaseDialog, DialogRef, Notice } from "@/components/base";
|
||||
|
||||
interface Props {
|
||||
enable: boolean;
|
||||
|
||||
@@ -14,8 +14,7 @@ import {
|
||||
} from "@mui/material";
|
||||
import { useVerge } from "@/hooks/use-verge";
|
||||
import { getSystemProxy } from "@/services/cmds";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
import { BaseDialog, DialogRef, Notice } from "@/components/base";
|
||||
|
||||
export const SysproxyViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -11,8 +11,7 @@ import {
|
||||
} from "@mui/material";
|
||||
import { useVerge } from "@/hooks/use-verge";
|
||||
import { defaultTheme, defaultDarkTheme } from "@/pages/_theme";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import Notice from "../../base/base-notice";
|
||||
import { BaseDialog, DialogRef, Notice } from "@/components/base";
|
||||
|
||||
export const ThemeViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -5,10 +5,8 @@ import { useTranslation } from "react-i18next";
|
||||
import { Button, Box, Typography } from "@mui/material";
|
||||
import { useVerge } from "@/hooks/use-verge";
|
||||
import { getClashInfo, openWebUrl } from "@/services/cmds";
|
||||
import { BaseDialog, BaseEmpty, DialogRef, Notice } from "@/components/base";
|
||||
import { WebUIItem } from "./web-ui-item";
|
||||
import { BaseDialog, DialogRef } from "@/components/base";
|
||||
import BaseEmpty from "@/components/base/base-empty";
|
||||
import Notice from "@/components/base/base-notice";
|
||||
|
||||
export const WebUIViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
Reference in New Issue
Block a user