Skip to content

Commit

Permalink
fix 修复代码合并问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-and-liu committed Mar 29, 2024
1 parent f4fbdb1 commit 68ee398
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 34 deletions.
4 changes: 0 additions & 4 deletions projects/app/src/components/ChatBox/FeedbackModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const FeedbackModal = ({
teamId,
teamToken,
shareId,
teamId,
teamToken,
outLinkUid,
onSuccess,
onClose
Expand Down Expand Up @@ -41,8 +39,6 @@ const FeedbackModal = ({
teamId,
teamToken,
shareId,
teamId,
teamToken,
outLinkUid,
userBadFeedback: val
});
Expand Down
2 changes: 0 additions & 2 deletions projects/app/src/components/ChatBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,6 @@ const ChatBox = (
chatId={chatId}
chatItemId={feedbackId}
shareId={shareId}
teamId={teamId}
teamToken={teamToken}
outLinkUid={outLinkUid}
onClose={() => setFeedbackId(undefined)}
onSuccess={(content: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { autChatCrud } from '@/service/support/permission/auth/chat';

/* 初始化我的聊天框,需要身份验证 */
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
<<<<<<< HEAD
const {
appId,
chatId,
Expand All @@ -19,10 +18,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
userBadFeedback,
userGoodFeedback
} = req.body as UpdateChatFeedbackProps;
=======
const { appId, chatId, chatItemId, shareId, outLinkUid, teamId, teamToken, userBadFeedback, userGoodFeedback } =
req.body as UpdateChatFeedbackProps;
>>>>>>> 7d2732aa (fix feckbackMoal auth bug)

try {
await connectToDatabase();
Expand All @@ -34,8 +29,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
teamId,
teamToken,
chatId,
teamId,
teamToken,
shareId,
outLinkUid,
per: 'r'
Expand Down
5 changes: 0 additions & 5 deletions projects/app/src/pages/api/core/chat/updateHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,12 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
await connectToDatabase();
const { appId, chatId, teamId, shareId, outLinkUid, customTitle, top } =
req.body as UpdateHistoryProps;
<<<<<<< HEAD
=======

>>>>>>> c9b87787 (fix team share redirect to login)
await autChatCrud({
req,
authToken: true,
appId,
teamId,
chatId,
teamId,
shareId,
outLinkUid,
per: 'w'
Expand Down
16 changes: 7 additions & 9 deletions projects/app/src/pages/app/detail/components/OutLink/FeiShu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import { useTranslation } from 'next-i18next';
import { useToast } from '@fastgpt/web/hooks/useToast';
import { useSystemStore } from '@/web/common/system/useSystemStore';
import MyTooltip from '@/components/MyTooltip';
import MyModal from '@/components/MyModal';
import dayjs from 'dayjs';
import { getDocPath } from '@/web/common/system/doc';
import dynamic from 'next/dynamic';
Expand Down Expand Up @@ -81,9 +80,9 @@ const FeiShu = ({ appId }: { appId: string }) => {
size={['sm', 'md']}
{...(shareChatList.length >= 10
? {
isDisabled: true,
title: t('core.app.share.Amount limit tip')
}
isDisabled: true,
title: t('core.app.share.Amount limit tip')
}
: {})}
onClick={() => setEditFeiShuLinkData(defaultFeishuOutLinkForm)}
>
Expand Down Expand Up @@ -116,11 +115,10 @@ const FeiShu = ({ appId }: { appId: string }) => {
<Td>
{Math.round(item.usagePoints)}
{feConfigs?.isPlus
? `${
item.limit?.maxUsagePoints && item.limit.maxUsagePoints > -1
? ` / ${item.limit.maxUsagePoints}`
: ` / ${t('common.Unlimited')}`
}`
? `${item.limit?.maxUsagePoints && item.limit.maxUsagePoints > -1
? ` / ${item.limit.maxUsagePoints}`
: ` / ${t('common.Unlimited')}`
}`
: ''}
</Td>
<Td>{item.responseDetail ? '✔' : '✖'}</Td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState, useMemo } from 'react';
import { Flex, Box, Button, ModalFooter, ModalBody, Input, Switch } from '@chakra-ui/react';
import MyModal from '@/components/MyModal';
import MyModal from '@fastgpt/web/components/common/MyModal';
import { QuestionOutlineIcon } from '@chakra-ui/icons';
import MyTooltip from '@/components/MyTooltip';
import { OutLinkTypeEnum } from '@fastgpt/global/support/outLink/constant';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { OutLinkSchema } from '@fastgpt/global/support/outLink/type';
import React, { useCallback, useState } from 'react';
import MyModal from '@/components/MyModal';
import MyModal from '@fastgpt/web/components/common/MyModal';
import { useTranslation } from 'next-i18next';
import { Box, Flex, FlexProps, Grid, Image, ModalBody, Switch, useTheme } from '@chakra-ui/react';
import MyRadio from '@/components/common/MyRadio';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState, useMemo } from 'react';
import { Flex, Box, Button, ModalFooter, ModalBody, Input, Switch } from '@chakra-ui/react';
import MyModal from '@/components/MyModal';
import MyModal from '@fastgpt/web/components/common/MyModal';
import { QuestionOutlineIcon } from '@chakra-ui/icons';
import MyTooltip from '@/components/MyTooltip';
import { OutLinkTypeEnum } from '@fastgpt/global/support/outLink/constant';
Expand Down Expand Up @@ -146,7 +146,7 @@ const WecomEditModal = ({
<Box flex={'0 0 90px'}>{t('outlink.WXWORK_TOKEN')}</Box>
<Input
placeholder={t('outlink.WXWORK_TOKEN') || 'Link Name'}
maxLength={20}

{...register('wecomConfig.WXWORK_TOKEN', {
required: t('common.Name is empty') || 'Name is empty'
})}
Expand All @@ -156,7 +156,7 @@ const WecomEditModal = ({
<Box flex={'0 0 90px'}>{t('outlink.WXWORK_AESKEY')}</Box>
<Input
placeholder={t('outlink.WXWORK_AESKEY') || 'Link Name'}
maxLength={20}

{...register('wecomConfig.WXWORK_AESKEY', {
required: t('common.Name is empty') || 'Name is empty'
})}
Expand All @@ -166,7 +166,7 @@ const WecomEditModal = ({
<Box flex={'0 0 90px'}>{t('outlink.WXWORK_SECRET')}</Box>
<Input
placeholder={t('outlink.WXWORK_SECRET') || 'Link Name'}
maxLength={20}

{...register('wecomConfig.WXWORK_SECRET', {
required: t('common.Name is empty') || 'Name is empty'
})}
Expand All @@ -176,7 +176,7 @@ const WecomEditModal = ({
<Box flex={'0 0 90px'}>{t('outlink.WXWORD_ID')}</Box>
<Input
placeholder={t('outlink.WXWORD_ID') || 'Link Name'}
maxLength={20}

{...register('wecomConfig.WXWORD_ID', {
required: t('common.Name is empty') || 'Name is empty'
})}
Expand Down

0 comments on commit 68ee398

Please sign in to comment.