[PR #3967] [CLOSED] feat: add codeblock package #5975

Closed
opened 2026-03-23 22:21:09 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3967
Author: @MayurSMahajan
Created: 11/19/2023
Status: Closed

Base: mainHead: feat_codeblock_package


📝 Commits (4)

📊 Changes

15 files changed (+192 additions, -1089 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+2 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+3 -2)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_component.dart (+0 -406)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart (+0 -328)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_themes.dart (+0 -116)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_language_screen.dart (+0 -49)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/migration/editor_migration.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_item/mobile_add_block_toolbar_item.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_item/mobile_convert_block_toolbar_item.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/code_block_node_parser.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/plugins.dart (+0 -2)
📝 frontend/appflowy_flutter/lib/startup/tasks/generate_router.dart (+0 -15)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_cubit.dart (+2 -2)
📝 frontend/appflowy_flutter/pubspec.lock (+179 -164)
📝 frontend/appflowy_flutter/pubspec.yaml (+2 -4)

📄 Description

Solves: #3478

Feature Preview

https://github.com/AppFlowy-IO/AppFlowy/assets/47064215/2de3802d-c35c-4099-ad21-6665d12f0b92


Codeblock Package: https://pub.dev/packages/appflowy_code_block


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/3967 **Author:** [@MayurSMahajan](https://github.com/MayurSMahajan) **Created:** 11/19/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat_codeblock_package` --- ### 📝 Commits (4) - [`378b797`](https://github.com/AppFlowy-IO/AppFlowy/commit/378b797ea7afa88f089a123aa0279712527ed7b7) feat: add codeblock package - [`7ad4c21`](https://github.com/AppFlowy-IO/AppFlowy/commit/7ad4c2177375adb8cc585e14ee1c599e071e0064) Merge remote-tracking branch 'upstream/main' into feat_codeblock_package - [`5bb02c6`](https://github.com/AppFlowy-IO/AppFlowy/commit/5bb02c6dd842fcfc9edc7327ad9f1f227b6204fd) Merge branch 'main' of https://github.com/AppFlowy-IO/appflowy into feat_codeblock_package - [`a1b46ee`](https://github.com/AppFlowy-IO/AppFlowy/commit/a1b46eef2cf1cb7e12031b9ae2a587d321288bfb) chore: remove unused import ### 📊 Changes **15 files changed** (+192 additions, -1089 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+2 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+3 -2) ➖ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_component.dart` (+0 -406) ➖ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart` (+0 -328) ➖ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_themes.dart` (+0 -116) ➖ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_language_screen.dart` (+0 -49) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/migration/editor_migration.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_item/mobile_add_block_toolbar_item.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_item/mobile_convert_block_toolbar_item.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/code_block_node_parser.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/plugins.dart` (+0 -2) 📝 `frontend/appflowy_flutter/lib/startup/tasks/generate_router.dart` (+0 -15) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_cubit.dart` (+2 -2) 📝 `frontend/appflowy_flutter/pubspec.lock` (+179 -164) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+2 -4) </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> Solves: #3478 <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview https://github.com/AppFlowy-IO/AppFlowy/assets/47064215/2de3802d-c35c-4099-ad21-6665d12f0b92 <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- Codeblock Package: https://pub.dev/packages/appflowy_code_block --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:21:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#5975
No description provided.