Skip to content

Commit

Permalink
feat: 去除中英逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
dolphin0618 committed Jul 8, 2024
1 parent 5cc20e6 commit bc3a7cb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,10 @@ export default function MessageSystem({ data }) {

const border = { system: 'border-slate-500', question: 'border-amber-500', processing: 'border-cyan-600', answer: 'border-lime-600', report: 'border-slate-500', guide: 'border-none' }

// 中英去掉最终的回答(report)
// if(data.category === 'report') return null

return <div className="py-1">
<div className={`relative rounded-sm px-6 py-4 border text-sm ${data.category === 'guide' ? 'bg-[#EDEFF6]' : 'bg-slate-50'} ${border[data.category || 'system']}`}>
{logMkdown}
{data.category === 'report' && <CopyIcon className=" absolute right-4 top-2 cursor-pointer" onClick={(e) => handleCopy(e.target.parentNode)}></CopyIcon>}
{/* 中英 */}
{/* {<CopyIcon className=" absolute right-4 top-2 cursor-pointer" onClick={(e) => handleCopy(e.target.parentNode)}></CopyIcon>} */}
</div>
</div>
};
2 changes: 0 additions & 2 deletions src/frontend/src/pages/ChatAppPage/components/FileView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ export default function FileView({ data }) {
? <div className="absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-[rgba(255,255,255,0.6)] dark:bg-blur-shared">
<span className="loading loading-infinity loading-lg"></span>
</div>
// {/* 中英 */}
: <div id="warp-pdf" className="file-view absolute">
{/* : <div id="warp-pdf" className="file-view absolute pointer-events-none"> */}
<List
ref={listRef}
itemCount={pdf?.numPages || 100}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const ResultPanne = ({ chatId, words, data, onClose, onAdd, children }: { chatId
{/* left */}
<div className="w-[300px] bg-gray-100 rounded-md py-4 px-2 h-full overflow-y-auto no-scrollbar">
{/* label */}
{/* 中英 */}
<div className="mb-4 text-sm font-bold">
{t('chat.filterLabel')}
<div className="tooltip fixed" data-tip={t('chat.tooltipText')}><span data-theme="light" className="badge cursor-pointer">?</span></div>
Expand All @@ -116,7 +115,6 @@ const ResultPanne = ({ chatId, words, data, onClose, onAdd, children }: { chatId
{files.map(_file =>
_file.right ? <div key={_file.id} onClick={() => setFile(_file)} className={`group rounded-xl bg-[#fff] hover-bg-gray-200 flex items-center px-4 mb-2 relative min-h-16 cursor-pointer ${file?.id === _file.id && 'bg-gray-200'}`}>
<p className="text-sm break-all">{_file.fileName}</p>
{/* 中英 */}
<div className="absolute right-1 top-1 gap-2 hidden group-hover:flex">
{
_file.fileUrl && <div className="tooltip" data-tip={t('chat.downloadPDFTooltip')}>
Expand Down
4 changes: 0 additions & 4 deletions src/frontend/src/pages/LoginPage/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ export const LoginPage = () => {
</div>
)
}
{/* 中英 */}
{/* <Button
className='h-[48px] mt-[32px] dark:bg-button'
disabled={isLoading} onClick={handleLogin} >{t('login.loginButton')}</Button> */}
{
showLogin ? <>
<div className="text-center">
Expand Down

0 comments on commit bc3a7cb

Please sign in to comment.