mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): eslint imports order
This commit is contained in:
@@ -34,9 +34,10 @@ import { EntityType } from "@/services/types";
|
||||
import { PermissionAction } from "@/types/permission.types";
|
||||
import { getDateTimeFormatter } from "@/utils/date";
|
||||
|
||||
import { CategoryDialog } from "./CategoryDialog";
|
||||
import { ICategory } from "../../types/category.types";
|
||||
|
||||
import { CategoryDialog } from "./CategoryDialog";
|
||||
|
||||
export const Categories = () => {
|
||||
const { t } = useTranslate();
|
||||
const { toast } = useToast();
|
||||
|
||||
@@ -23,8 +23,6 @@ import { useConfig } from "@/hooks/useConfig";
|
||||
import { useTranslate } from "@/hooks/useTranslate";
|
||||
import { EntityType } from "@/services/types";
|
||||
|
||||
import { ChatActions } from "./ChatActions";
|
||||
import { ChatHeader } from "./ChatHeader";
|
||||
import {
|
||||
getAvatarSrc,
|
||||
getMessageContent,
|
||||
@@ -33,6 +31,9 @@ import {
|
||||
import { useChat } from "../hooks/ChatContext";
|
||||
import { useInfinitedLiveMessages } from "../hooks/useInfiniteLiveMessages";
|
||||
|
||||
import { ChatActions } from "./ChatActions";
|
||||
import { ChatHeader } from "./ChatHeader";
|
||||
|
||||
export function Chat() {
|
||||
const { apiUrl } = useConfig();
|
||||
const { t, i18n } = useTranslate();
|
||||
|
||||
@@ -14,9 +14,10 @@ import { useNormalizedInfiniteQuery } from "@/hooks/crud/useNormalizedInfiniteQu
|
||||
import { EntityType, QueryType } from "@/services/types";
|
||||
import { useSubscribe } from "@/websocket/socket-hooks";
|
||||
|
||||
import { useChat } from "./ChatContext";
|
||||
import { SocketMessageEvents } from "../types";
|
||||
|
||||
import { useChat } from "./ChatContext";
|
||||
|
||||
export const useInfinitedLiveMessages = () => {
|
||||
const { subscriber: activeChat } = useChat();
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
@@ -35,11 +35,12 @@ import { useTranslate } from "@/hooks/useTranslate";
|
||||
import { EntityType } from "@/services/types";
|
||||
import { OutgoingMessageFormat } from "@/types/message.types";
|
||||
|
||||
import { IBlockAttributes, IBlock } from "../../types/block.types";
|
||||
|
||||
import BlockFormProvider from "./form/BlockFormProvider";
|
||||
import { MessageForm } from "./form/MessageForm";
|
||||
import { OptionsForm } from "./form/OptionsForm";
|
||||
import { TriggersForm } from "./form/TriggersForm";
|
||||
import { IBlockAttributes, IBlock } from "../../types/block.types";
|
||||
|
||||
export type BlockDialogProps = DialogControlProps<IBlock>;
|
||||
type TSelectedTab = "triggers" | "options" | "messages";
|
||||
|
||||
@@ -17,9 +17,10 @@ import { Pattern } from "@/types/block.types";
|
||||
import { SXStyleOptions } from "@/utils/SXStyleOptions";
|
||||
import { createValueWithId, ValueWithId } from "@/utils/valueWithId";
|
||||
|
||||
import PatternInput from "./PatternInput";
|
||||
import { getInputControls } from "../../utils/inputControls";
|
||||
|
||||
import PatternInput from "./PatternInput";
|
||||
|
||||
type PatternsInputProps = {
|
||||
value: Pattern[];
|
||||
onChange: (patterns: Pattern[]) => void;
|
||||
|
||||
@@ -52,11 +52,12 @@ import { IBlock } from "@/types/block.types";
|
||||
import { ICategory } from "@/types/category.types";
|
||||
import { BlockPorts } from "@/types/visual-editor.types";
|
||||
|
||||
import { AdvancedLinkModel } from "./AdvancedLink/AdvancedLinkModel";
|
||||
import BlockDialog from "../BlockDialog";
|
||||
import { ZOOM_LEVEL } from "../constants";
|
||||
import { useVisualEditor } from "../hooks/useVisualEditor";
|
||||
|
||||
import { AdvancedLinkModel } from "./AdvancedLink/AdvancedLinkModel";
|
||||
|
||||
const Diagrams = () => {
|
||||
const { t } = useTranslate();
|
||||
const [model, setModel] = useState<
|
||||
|
||||
Reference in New Issue
Block a user