Skip to content

Feat : 删除倒计时和图表的扩展,移除表格的增加列和增加行#323

Merged
xun082 merged 2 commits into
xun082:mainfrom
Hemomoo:feat-dl-chart
Mar 17, 2026
Merged

Feat : 删除倒计时和图表的扩展,移除表格的增加列和增加行#323
xun082 merged 2 commits into
xun082:mainfrom
Hemomoo:feat-dl-chart

Conversation

@Hemomoo

@Hemomoo Hemomoo commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator

PR 描述

PR 类型

删除倒计时和图表的扩展,移除表格的增加列和增加行

  • 🐛 Bug 修复
  • ✨ 新功能
  • 💄 UI/UX 改进
  • ♻️ 重构
  • 🚀 性能优化
  • 📝 文档更新
  • 🔄 其他

Issue 关联

Closes #

其他信息

@netlify

netlify Bot commented Mar 17, 2026

Copy link
Copy Markdown

Deploy Preview for ornate-blancmange-89db6b failed. Why did it fail? →

Name Link
🔨 Latest commit f7a413c
🔍 Latest deploy log https://app.netlify.com/projects/ornate-blancmange-89db6b/deploys/69b9001c44852400088c56d2

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

本次拉取请求旨在通过删除倒计时和图表扩展来简化文档编辑器功能,并移除表格的增加列和增加行操作。这些更改有助于精简代码库,减少维护负担,并可能优化编辑器性能,专注于核心文档编辑体验。

Highlights

  • 删除图表功能: 移除了文档编辑器中的图表扩展及其所有相关组件和逻辑。
  • 删除倒计时功能: 移除了文档编辑器中的倒计时扩展及其所有相关组件和逻辑。
  • 移除表格操作: 移除了表格的“增加列”和“增加行”功能。
Changelog
  • apps/DocFlow/src/app/docs/_components/DocumentSidebar/BlocksTab.tsx
    • 从侧边栏的可用块列表中移除了图表和倒计时块类型。
  • apps/DocFlow/src/extensions/Chart/Chart.ts
    • 删除了图表扩展的核心定义文件。
  • apps/DocFlow/src/extensions/Chart/ChartComponent.tsx
    • 删除了图表组件的React实现文件。
  • apps/DocFlow/src/extensions/Chart/components/AreaChartComponent.tsx
    • 删除了区域图组件文件。
  • apps/DocFlow/src/extensions/Chart/components/BarChartComponent.tsx
    • 删除了柱状图组件文件。
  • apps/DocFlow/src/extensions/Chart/components/LineChartComponent.tsx
    • 删除了折线图组件文件。
  • apps/DocFlow/src/extensions/Chart/components/PieChartComponent.tsx
    • 删除了饼图组件文件。
  • apps/DocFlow/src/extensions/Chart/constants.ts
    • 删除了图表相关的常量定义文件。
  • apps/DocFlow/src/extensions/Chart/index.ts
    • 删除了图表扩展的导出文件。
  • apps/DocFlow/src/extensions/Countdown/Countdown.ts
    • 删除了倒计时扩展的核心定义文件。
  • apps/DocFlow/src/extensions/Countdown/CountdownComponent.tsx
    • 删除了倒计时组件的React实现文件。
  • apps/DocFlow/src/extensions/Countdown/flip-styles.css
    • 删除了倒计时组件的样式文件。
  • apps/DocFlow/src/extensions/Countdown/index.ts
    • 删除了倒计时扩展的导出文件。
  • apps/DocFlow/src/extensions/DragHandler/DragHandler.ts
    • 移除了图表和倒计时块的创建策略。
  • apps/DocFlow/src/extensions/SlashCommand/groups.ts
    • 从斜杠命令菜单中移除了图表和倒计时命令。
  • apps/DocFlow/src/extensions/extension-kit.ts
    • 从主扩展套件中移除了图表和倒计时扩展。
  • apps/DocFlow/src/extensions/index.ts
    • 移除了图表和倒计时扩展的公共导出。
  • apps/DocFlow/src/styles/partials/table.css
    • 移除了表格“添加列”和“添加行”按钮的CSS样式。
  • apps/DocFlow/src/utils/document-export/docx.ts
    • 移除了将图表转换为图像以进行DOCX导出的逻辑。
  • apps/DocFlow/src/utils/editor/is-custom-node-selected.ts
    • 移除了图表和倒计时节点在自定义节点选择逻辑中的引用。
Activity
  • 目前没有记录到任何活动。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

本次 PR 主要移除了倒计时和图表扩展,以及表格的增加行/列功能。代码变更大部分是相关组件和逻辑的删除,整体实现清晰。我发现一处 CSS 文件中存在代码残留,可能会导致样式问题,已在具体文件中提出修改建议。

Comment on lines +14 to 17
yi.ProseMirror .tableWrapper:hover::before {
@apply opacity-100 text-black;
transition-delay: 0ms; /* 显示无延迟 */
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

这部分 CSS 规则似乎是删除“添加行”按钮样式后意外残留的。选择器 yi.ProseMirror 语法不正确,并且此规则已无实际作用,建议将其完全删除以保持代码整洁。

@xun082 xun082 merged commit c66e042 into xun082:main Mar 17, 2026
0 of 6 checks passed
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