-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
254 在windows上搭建webview2或者electron客户端使用wangeditor和搜狗输入法执行特定步骤会出现异常 #260
The head ref may contain hidden characters: "254-\u5728windows\u4E0A\u642D\u5EFAwebview2\u6216\u8005electron\u5BA2\u6237\u7AEF\u4F7F\u7528wangeditor\u548C\u641C\u72D7\u8F93\u5165\u6CD5\u6267\u884C\u7279\u5B9A\u6B65\u9AA4\u4F1A\u51FA\u73B0\u5F02\u5E38"
254 在windows上搭建webview2或者electron客户端使用wangeditor和搜狗输入法执行特定步骤会出现异常 #260
Conversation
|
WalkthroughThe pull request includes updates to documentation and contribution guidelines, specifically instructing contributors to base new branches on the Changes
Possibly related PRs
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🧹 Outside diff range and nitpick comments (6)
docs/publish.md (2)
3-6
: Consider adding more details about creating changesets.The instructions for publishing a formal version are clear and concise. However, it might be helpful to provide more information about creating changesets, especially for new contributors. Consider adding:
- A brief explanation of what a changeset is and why it's important.
- Guidelines on what information should be included in a changeset.
- An example of a good changeset message.
This additional information would make the process more accessible to all contributors.
8-14
: Enhance guidance for publishing testing versions.The instructions for publishing a testing version are clear and well-structured. To further improve this section, consider adding:
- An explanation of when and why one might want to publish a testing version.
- Guidance on naming conventions for beta versions.
- Information on choosing between different pre-release identifiers (e.g., alpha, beta, rc) and when to use each.
- A note on the importance of communicating the release of testing versions to relevant stakeholders or testers.
These additions would provide more context and help contributors make informed decisions when publishing testing versions.
docs/dev.md (3)
Line range hint
13-26
: LGTM: Clear instructions for Yarn 4.x setup.The new instructions for setting up Yarn 4.x are clear and well-formatted. The use of code blocks enhances readability and makes it easy for users to copy and paste commands.
Consider adding a note about the minimum required Node.js version at the beginning of the "准备工作" (Preparation) section, as it's crucial information for setup.
Line range hint
27-38
: LGTM: Updated build instructions are clear and accurate.The new build instructions clearly differentiate between debug (
yarn dev
) and production (yarn build
) builds, which is helpful for developers.Consider adding a brief explanation of when to use
yarn dev
vsyarn build
to provide more context for new contributors.
仍存在遗留的 'lerna' 引用
在以下文件中发现仍有 'lerna' 的引用,需要更新以反映当前的开发配置:
docs/dev.md
:
lerna link
关联内部包lerna add ...
之后,需要重新lerna link
建立内部连接
docs/test.md
:
- 提及基于
lerna
的 monorepo 管理方式请更新这些部分以使用新的工具链。
🔗 Analysis chain
Line range hint
40-58
: Update remaining references to old tooling and revise instructions.While most of the document has been updated to reflect the new tooling, there are still some inconsistencies:
- The instruction to use
lerna link
for internal package linking is outdated.- The package size analysis instructions might need revision to align with the new tooling (turbo and changeset).
Please update these sections to reflect the current development setup:
- Remove or replace the
lerna link
instruction with the appropriate method for the new tooling.- Verify and update the package size analysis instructions if necessary.
To ensure all references to the old tooling have been updated, please run the following command:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for any remaining references to 'lerna' in the docs directory rg --type md 'lerna' docs/Length of output: 342
docs/contribution-CN.md (1)
65-65
: Consider rephrasing for better clarity in ChineseThe static analysis tool suggests a potential grammatical issue in the phrase "无论是大是小". While this is a common expression in Chinese, we could improve clarity and formality.
Consider rephrasing to:
-我们非常感激您的贡献,无论是大是小。您的努力帮助我们构建了一个更好的`wangEditor-next`。 +我们非常感激您的每一份贡献,无论大小。您的努力帮助我们构建了一个更好的`wangEditor-next`。This maintains the meaning while addressing the potential grammatical concern.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~65-~65: 您不可用“是”来表达个形容词。大部分人都平常用“很”来代替“是”。您是不是想表达"很小"?
Context: ...与讨论,或在社交媒体上推广项目。 ## 感谢 我们非常感激您的贡献,无论是大是小。您的努力帮助我们构建了一个更好的wangEditor-next
。(SHI_ADHECTIVE_ERROR)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (6)
- .changeset/gentle-goats-hang.md (1 hunks)
- docs/contribution-CN.md (2 hunks)
- docs/contribution-EN.md (2 hunks)
- docs/dev.md (1 hunks)
- docs/publish.md (1 hunks)
- packages/core/src/text-area/event-handlers/composition.ts (9 hunks)
✅ Files skipped from review due to trivial changes (1)
- .changeset/gentle-goats-hang.md
🧰 Additional context used
🪛 LanguageTool
docs/contribution-CN.md
[uncategorized] ~65-~65: 您不可用“是”来表达个形容词。大部分人都平常用“很”来代替“是”。您是不是想表达"很小"?
Context: ...与讨论,或在社交媒体上推广项目。 ## 感谢 我们非常感激您的贡献,无论是大是小。您的努力帮助我们构建了一个更好的wangEditor-next
。(SHI_ADHECTIVE_ERROR)
🔇 Additional comments (6)
docs/publish.md (1)
1-14
: Approve changes and request clarification on PR objectives.The updates to the publishing process documentation are clear, concise, and align with modern version management practices. The separation of formal and testing version publishing instructions, along with the introduction of automated publishing for formal versions, significantly improves the workflow.
However, it's not clear how these documentation changes relate to the PR objectives mentioned in the description, which refer to issues with WebView2 and Sogou Input Method on Windows. Could you please clarify:
- How do these publishing process changes address the reported issues?
- Are there any specific instructions or considerations for publishing versions that include fixes for the WebView2 and Sogou Input Method issues?
To ensure all relevant files have been updated, please run the following script:
docs/dev.md (1)
7-7
: LGTM: Updated prerequisite accurately reflects new tooling.The change from "lerna" to "turbo" and "changeset" aligns with the project's shift in development tools. This update ensures that new contributors are aware of the correct tools needed for development.
docs/contribution-CN.md (2)
65-65
: Approved: Improved file formattingThe addition of a newline at the end of the file improves formatting and follows best practices for file endings.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~65-~65: 您不可用“是”来表达个形容词。大部分人都平常用“很”来代替“是”。您是不是想表达"很小"?
Context: ...与讨论,或在社交媒体上推广项目。 ## 感谢 我们非常感激您的贡献,无论是大是小。您的努力帮助我们构建了一个更好的wangEditor-next
。(SHI_ADHECTIVE_ERROR)
20-20
: Approved: Update to use 'master' as the base branchThe change from 'develop' to 'master' as the base branch for new contributions aligns with GitHub's default branch naming convention and simplifies the contribution workflow.
To ensure consistency across the project, please run the following script to check if there are any other references to the 'develop' branch that need to be updated:
Consider adding a note in the README or in this contribution guide about this workflow change to inform existing contributors.
docs/contribution-EN.md (2)
65-65
: Good practice: Added newline at end of file.Adding a newline at the end of the file is a good practice. It ensures that the file ends with a proper line terminator, which can prevent issues with certain tools and improve compatibility.
20-20
: Verify consistency of base branch change across documentation and repository settings.The change from 'develop' to 'master' as the base branch for new contributions is approved. This update likely reflects a shift in the project's branching strategy, possibly towards a trunk-based development model.
To ensure consistency, please run the following script to check for any remaining references to the 'develop' branch in other documentation files and verify the default branch setting in the repository:
✅ Verification successful
Base Branch Change to 'master' Verified Successfully
All references to the 'develop' branch have been removed from the documentation, and the repository's default branch is set to 'master'.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for 'develop' branch references and verify default branch # Test 1: Search for 'develop' branch references in documentation echo "Searching for 'develop' branch references in documentation:" rg --type md -i 'develop.*branch' docs/ # Test 2: Check the default branch setting echo "Checking default branch setting:" gh repo view cycleccc/wangEditor-next --json defaultBranchRef --jq .defaultBranchRef.name # Note: Ensure you have the necessary permissions to run the 'gh' commandLength of output: 350
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
9629d5f
to
0a3da14
Compare
* style: refactor by new eslint * fix: selection sync error * docs: modify dev docs * docs: modify publish docs * Create gentle-goats-hang.md * Update packages/core/src/text-area/event-handlers/composition.ts 254 在windows上搭建webview2或者electron客户端使用wangeditor和搜狗输入法执行特定步骤会出现异常 Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * perf: variable naming correction & delete redundant judgment conditions --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Changes Overview
Implementation Approach
Testing Done
Verification Steps
Additional Notes
Checklist
Related Issues
Summary by CodeRabbit
Documentation
master
branch.Bug Fixes
Improvements