Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: 支持导出单次对话的全部提问记录为Markdown文件或HTML文件 #502

Merged
merged 2 commits into from
May 22, 2024

Conversation

YoungZM339
Copy link
Contributor

What this PR does / why we need it?

#471 有关,但未实现PDF导出

Summary of your change

image
image
image
使用marked和file-saver实现Markdown文件和HTML文件导出。
在实现PDF导出时,发现中文和特殊字符在导出PDF时会出现乱码问题。如果使用html2canvas后再导出PDF,则会导致文本无法复制。对于面向程序开发等场景的知识库来说,无法复制文本/代码是一个非常糟糕的问题,因此决定暂时不放出导出PDF的方法。

Please indicate you've done the following:

  • [ Y ] Made sure tests are passing and test coverage is added if needed.
  • [ Y ] Made sure commit message follow the rule of Conventional Commits specification.
  • [ Y ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

Copy link

f2c-ci-robot bot commented May 21, 2024

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

f2c-ci-robot bot commented May 21, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@YoungZM339 YoungZM339 changed the title feat: 支持导出单次聊天的全部对话记录为Markdown文件或HTML文件 feat: 支持导出单次对话的全部提问记录为Markdown文件或HTML文件 May 21, 2024
@shaohuzhang1
Copy link
Collaborator

ui/src/views/chat/pc/index.vue 文件冲突,无法merge

@YoungZM339
Copy link
Contributor Author

收到,我晚上处理一下冲突再重启pr

@shaohuzhang1 shaohuzhang1 merged commit b24a19a into 1Panel-dev:main May 22, 2024
1 check passed
@shaohuzhang1
Copy link
Collaborator

冲突已解决,已merge

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants