app template

This commit is contained in:
archer
2023-07-17 12:07:58 +08:00
parent ed42bb6ce8
commit f546068354
11 changed files with 533 additions and 230 deletions

View File

@@ -73,11 +73,11 @@ const Settings = ({ appId }: { appId: string }) => {
</Box>
<Box
border={theme.borders.sm}
border={theme.borders.base}
borderRadius={'lg'}
px={5}
py={4}
bg={'rgba(235,245,255,0.4)'}
bg={'myBlue.100'}
position={'relative'}
>
<Flex alignItems={'center'} py={2}>

View File

@@ -227,6 +227,8 @@ const AppEdit = ({ app, fullScreen, onFullScreen }: Props) => {
const { mutate: onclickSave, isLoading } = useRequest({
mutationFn: () => {
console.log(flow2Modules());
return putAppById(app._id, {
modules: flow2Modules()
});
@@ -240,8 +242,6 @@ const AppEdit = ({ app, fullScreen, onFullScreen }: Props) => {
const initData = useCallback(
(app: AppSchema) => {
console.log('init');
const edges = appModule2FlowEdge({
modules: app.modules,
onDelete: onDelConnect

View File

@@ -105,7 +105,9 @@ const CreateModal = ({ onClose, onSuccess }: { onClose: () => void; onSuccess: (
<ModalContent w={'700px'} maxW={'90vw'}>
<ModalHeader fontSize={'2xl'}> AI </ModalHeader>
<ModalBody>
<Box color={'myGray.800'}></Box>
<Box color={'myGray.800'} fontWeight={'bold'}>
</Box>
<Flex mt={3} alignItems={'center'}>
<Avatar
src={getValues('avatar')}
@@ -124,7 +126,7 @@ const CreateModal = ({ onClose, onSuccess }: { onClose: () => void; onSuccess: (
})}
/>
</Flex>
<Box mt={7} mb={3} color={'myGray.800'}>
<Box mt={7} mb={3} color={'myGray.800'} fontWeight={'bold'}>
</Box>
<Grid