Skip to content

Conversation

@QuietlyChan
Copy link

  • Add the DownloadDropdown component to the ResearchBlock component.

  • Implement report downloads in Markdown, PDF, image, and Word formats.

  • Create a new download-utils.ts file containing download-related utility functions.

  • Add relevant dependencies in package.json.

image

const [editing, setEditing] = useState(false);
const [copied, setCopied] = useState(false);

// 获取报告内容用于下载
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is recommended to use English in codes.

if (isDownloading) return;
setIsDownloading(true);
try {
// 创建临时元素用于截图
Copy link

@hobbytp hobbytp Jun 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above. It is generic comment for all codes in your commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants