mirror of
https://github.com/hexastack/hexabot
synced 2025-05-08 14:54:45 +00:00
fix(frontend): use short dialogs imports
This commit is contained in:
parent
63efaf3193
commit
05a7a7e18c
@ -10,7 +10,7 @@ import { MenuItem } from "@mui/material";
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { ToggleableInput } from "@/app-components/inputs/ToggleableInput";
|
import { ToggleableInput } from "@/app-components/inputs/ToggleableInput";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -11,7 +11,7 @@ import { Button } from "@mui/material";
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { useFieldArray, useForm } from "react-hook-form";
|
import { useFieldArray, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -17,7 +17,7 @@ import {
|
|||||||
} from "react-hook-form";
|
} from "react-hook-form";
|
||||||
|
|
||||||
import AttachmentInput from "@/app-components/attachment/AttachmentInput";
|
import AttachmentInput from "@/app-components/attachment/AttachmentInput";
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Adornment } from "@/app-components/inputs/Adornment";
|
import { Adornment } from "@/app-components/inputs/Adornment";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
|
@ -10,7 +10,7 @@ import { FC, Fragment, useState } from "react";
|
|||||||
import { useQuery } from "react-query";
|
import { useQuery } from "react-query";
|
||||||
|
|
||||||
import AttachmentInput from "@/app-components/attachment/AttachmentInput";
|
import AttachmentInput from "@/app-components/attachment/AttachmentInput";
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { useApiClient } from "@/hooks/useApiClient";
|
import { useApiClient } from "@/hooks/useApiClient";
|
||||||
import { useToast } from "@/hooks/useToast";
|
import { useToast } from "@/hooks/useToast";
|
||||||
import { useTranslate } from "@/hooks/useTranslate";
|
import { useTranslate } from "@/hooks/useTranslate";
|
||||||
|
@ -10,7 +10,7 @@ import { FormControlLabel, FormHelperText, Switch } from "@mui/material";
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -10,7 +10,7 @@ import { FormControlLabel, Switch } from "@mui/material";
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -16,7 +16,7 @@ import {
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -10,7 +10,7 @@ import { useRouter } from "next/router";
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import MultipleInput from "@/app-components/inputs/MultipleInput";
|
import MultipleInput from "@/app-components/inputs/MultipleInput";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import CheckIcon from "@mui/icons-material/Check";
|
import CheckIcon from "@mui/icons-material/Check";
|
||||||
import EmailIcon from "@mui/icons-material/Email";
|
import EmailIcon from "@mui/icons-material/Email";
|
||||||
import KeyIcon from "@mui/icons-material/Key";
|
import KeyIcon from "@mui/icons-material/Key";
|
||||||
@ -16,8 +15,7 @@ import { FC } from "react";
|
|||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
import { useQueryClient } from "react-query";
|
import { useQueryClient } from "react-query";
|
||||||
|
|
||||||
import { ContentItem } from "@/app-components/dialogs";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer";
|
|
||||||
import { Adornment } from "@/app-components/inputs/Adornment";
|
import { Adornment } from "@/app-components/inputs/Adornment";
|
||||||
import AvatarInput from "@/app-components/inputs/AvatarInput";
|
import AvatarInput from "@/app-components/inputs/AvatarInput";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useCreate } from "@/hooks/crud/useCreate";
|
import { useCreate } from "@/hooks/crud/useCreate";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -10,7 +10,7 @@ import { Button, Grid, Link } from "@mui/material";
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -10,7 +10,7 @@ import { Button, Grid, Link } from "@mui/material";
|
|||||||
import { FC, Fragment, useEffect } from "react";
|
import { FC, Fragment, useEffect } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useUpdate } from "@/hooks/crud/useUpdate";
|
import { useUpdate } from "@/hooks/crud/useUpdate";
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
import { FC, Fragment } from "react";
|
import { FC, Fragment } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useSendInvitation } from "@/hooks/entities/invitation-hooks";
|
import { useSendInvitation } from "@/hooks/entities/invitation-hooks";
|
||||||
|
@ -12,7 +12,7 @@ import { FormControlLabel, Grid, Switch, Tab, Tabs } from "@mui/material";
|
|||||||
import { FC, Fragment, useEffect, useState } from "react";
|
import { FC, Fragment, useEffect, useState } from "react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer, ContentItem } from "@/app-components/dialogs/";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import TriggerIcon from "@/app-components/svg/TriggerIcon";
|
import TriggerIcon from "@/app-components/svg/TriggerIcon";
|
||||||
import { TabPanel } from "@/app-components/tabs/TabPanel";
|
import { TabPanel } from "@/app-components/tabs/TabPanel";
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
import { MenuItem, Select } from "@mui/material";
|
import { MenuItem, Select } from "@mui/material";
|
||||||
import { FC, Fragment, useState } from "react";
|
import { FC, Fragment, useState } from "react";
|
||||||
|
|
||||||
import { ContentContainer } from "@/app-components/dialogs/";
|
import { ContentContainer } from "@/app-components/dialogs";
|
||||||
import { ICategory } from "@/types/category.types";
|
import { ICategory } from "@/types/category.types";
|
||||||
import { ComponentFormProps } from "@/types/common/dialogs.types";
|
import { ComponentFormProps } from "@/types/common/dialogs.types";
|
||||||
|
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright © 2024 Hexastack. All rights reserved.
|
* Copyright © 2025 Hexastack. All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
||||||
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
||||||
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer";
|
|
||||||
|
import { ContentContainer } from "@/app-components/dialogs";
|
||||||
|
|
||||||
import AttachmentMessageForm from "./AttachmentMessageForm";
|
import AttachmentMessageForm from "./AttachmentMessageForm";
|
||||||
import { useBlock } from "./BlockFormProvider";
|
import { useBlock } from "./BlockFormProvider";
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright © 2024 Hexastack. All rights reserved.
|
* Copyright © 2025 Hexastack. All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
||||||
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
||||||
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import { Typography } from "@mui/material";
|
import { Typography } from "@mui/material";
|
||||||
import { Controller, useFormContext } from "react-hook-form";
|
import { Controller, useFormContext } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { ContentItem } from "@/app-components/dialogs/layouts/ContentItem";
|
|
||||||
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
||||||
import { Input } from "@/app-components/inputs/Input";
|
import { Input } from "@/app-components/inputs/Input";
|
||||||
import { useTranslate } from "@/hooks/useTranslate";
|
import { useTranslate } from "@/hooks/useTranslate";
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright © 2024 Hexastack. All rights reserved.
|
* Copyright © 2025 Hexastack. All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
||||||
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
||||||
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import { Divider } from "@mui/material";
|
import { Divider } from "@mui/material";
|
||||||
import { Controller, useFormContext } from "react-hook-form";
|
import { Controller, useFormContext } from "react-hook-form";
|
||||||
|
|
||||||
import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer";
|
import { ContentContainer, ContentItem } from "@/app-components/dialogs";
|
||||||
import { ContentItem } from "@/app-components/dialogs/layouts/ContentItem";
|
|
||||||
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect";
|
||||||
import { useTranslate } from "@/hooks/useTranslate";
|
import { useTranslate } from "@/hooks/useTranslate";
|
||||||
import { EntityType, Format } from "@/services/types";
|
import { EntityType, Format } from "@/services/types";
|
||||||
|
Loading…
Reference in New Issue
Block a user