refactor: 优化eslint配置,提升代码质量 (#1341)
* feat: 统一并标准化eslint * lint: napcat.webui * lint: napcat.webui * lint: napcat.core * build: fix * lint: napcat.webui * refactor: 重构eslint * Update README.md
This commit is contained in:
651 files changed
+37978
-37584
No files matched your search
@@ -1,42 +1,42 @@
|
||||
import { Button } from '@heroui/button'
|
||||
import { Button } from '@heroui/button';
|
||||
import {
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalContent,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
useDisclosure
|
||||
} from '@heroui/modal'
|
||||
useDisclosure,
|
||||
} from '@heroui/modal';
|
||||
|
||||
import ChatInput from '.'
|
||||
import ChatInput from '.';
|
||||
|
||||
export default function ChatInputModal() {
|
||||
const { isOpen, onOpen, onOpenChange } = useDisclosure()
|
||||
export default function ChatInputModal () {
|
||||
const { isOpen, onOpen, onOpenChange } = useDisclosure();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button onPress={onOpen} color="primary" radius="full" variant="flat">
|
||||
<Button onPress={onOpen} color='primary' radius='full' variant='flat'>
|
||||
构造聊天消息
|
||||
</Button>
|
||||
<Modal
|
||||
size="4xl"
|
||||
scrollBehavior="inside"
|
||||
size='4xl'
|
||||
scrollBehavior='inside'
|
||||
isOpen={isOpen}
|
||||
onOpenChange={onOpenChange}
|
||||
>
|
||||
<ModalContent>
|
||||
{(onClose) => (
|
||||
<>
|
||||
<ModalHeader className="flex flex-col gap-1">
|
||||
<ModalHeader className='flex flex-col gap-1'>
|
||||
构造消息
|
||||
</ModalHeader>
|
||||
<ModalBody className="overflow-y-auto">
|
||||
<div className="overflow-y-auto">
|
||||
<ModalBody className='overflow-y-auto'>
|
||||
<div className='overflow-y-auto'>
|
||||
<ChatInput />
|
||||
</div>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button color="primary" onPress={onClose} variant="flat">
|
||||
<Button color='primary' onPress={onClose} variant='flat'>
|
||||
关闭
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
@@ -45,5 +45,5 @@ export default function ChatInputModal() {
|
||||
</ModalContent>
|
||||
</Modal>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user