# todo/review/fix:

2.0/email-builder
Lei OT 11 months ago
parent 2fc8879bcd
commit 090c6c3927

@ -243,16 +243,6 @@ function FloatingLinkEditor({ editor }) {
setEditMode(true);
}}
/>
{/* todo: 删除后, AutoLink的作用会使文本再次自动转成链接 */}
{/* <div
className="link-trash"
role="button"
tabIndex={0}
onMouseDown={(event) => event.preventDefault()}
onClick={() => {
editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
}}
/> */}
</div>
</>
)}

@ -58,7 +58,7 @@ const BubbleEmail = ({ onOpenEditor, onOpenEmail, ...message }) => {
{...(message.sender === 'me'
? {
styles: { backgroundColor: '#e0e7ff', boxShadow: 'none', border: '1px solid #818cf8' }, // 100 400
// replyButton: ['text', 'document', 'image'].includes(message.whatsapp_msg_type) && message.status !== 'failed' ? true : false, // todo: ?
// replyButton: ['text', 'document', 'image'].includes(message.whatsapp_msg_type) && message.status !== 'failed' ? true : false, // review: ?
}
: {})}
className={[

@ -116,7 +116,7 @@ const MessageListFilter = ({ ...props }) => {
const [visible, setVisible] = useState(false);
const handleReSend = (currentIndex) => {
console.log('handleReSend', currentIndex, data[currentIndex]);
// todo: push,
// fix: push,
const item = data[currentIndex];
const msgObjMerge = {
sender: 'me',

@ -174,8 +174,8 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, conversationid,
setOpenPlainTextConfirm(false);
};
// todo: :
// 1.
// :
// 1. ~~
// 2.
const [fileList, setFileList] = useState([]);
const handleChange = (info) => {
@ -225,7 +225,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, conversationid,
msg_source: 'email',
// to: currentConversation.whatsapp_phone_number,
date: new Date(),
status: 'waiting',
status: 'waiting', // accepted
...msgObj,
// id: `${currentConversation.sn}.${msgObj.id}`,
// id: `${stickToCid}.${msgObj.id}`,
@ -392,7 +392,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, conversationid,
<Button icon={<UploadOutlined />}>附件</Button>
</Upload>
<Flex align={'center'} className='absolute right-0'>
{/* todo: 添加图文集、支付链接 */}
{/* todo: 添加: 支付链接 */}
<Divider type='vertical' />
<Button type={'link'} onClick={() => openDrawer()}>图文集</Button>
<Button type={'link'}>支付链接</Button>

@ -200,7 +200,7 @@ const InputComposer = ({ isWABA, channel }) => {
setComplexMsg(_tmpFile.msgData);
setPastedUploading(true);
const { file_url } = await postUploadFileItem(tmpfile, _tmpFile.newName);
setPastedUploading(false); // todo: data uri
setPastedUploading(false);
if (file_url) {
_tmpFile.msgData.data.dataUri = file_url;
_tmpFile.msgData.data.link = file_url;

Loading…
Cancel
Save