-
Notifications
You must be signed in to change notification settings - Fork 1.1k
refactor(setting): 改了点设置 优化显示效果 更改字段名 #780
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
Conversation
把两个模态框改为了相近的形式,名称也统一了
起码好点了 不是吗.jpg
我说这里怎么回事呢,有个遗漏代码?
Summary of ChangesHello @MoYingJi, 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! 此拉取请求对应用程序的设置进行了重要的重构,主要集中在评论和歌词排除功能上。这些更改旨在通过提供更直观、更有组织的界面来配置这些功能,从而增强用户体验,同时通过标准化命名约定和整合组件来提高代码可维护性。此外,它还为各种设置项引入了有用的提示信息,并确保某些功能正确地限定在Electron环境中。 Highlights
Using Gemini Code AssistThe 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
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 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
|
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.
Code Review
这次的 Pull Request 主要对设置功能进行了重构,特别是评论排除和歌词排除部分,将复杂的配置项移入了独立的模态框中,使得设置界面更加整洁。同时,对一些设置项的字段名进行了优化,提高了代码的清晰度和一致性。此外,还为禁用的设置项增加了提示,改善了用户体验。整体来看,这是一次不错的重构。我发现了一些可以改进的地方,主要涉及导出功能的用户体验和代码的类型安全,具体请看我的评论。
| keywords: settingStore.excludeCommentKeywords || [], | ||
| regexes: settingStore.excludeCommentRegexes || [], |
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.
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.
我保持了原来的逻辑没动吧 觉得需要也可以改
| input.onchange = (e: any) => { | ||
| const file = e.target.files[0]; | ||
| if (!file) return; |
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.
| keywords: settingStore.excludeLyricsUserKeywords || [], | ||
| regexes: settingStore.excludeLyricsUserRegexes || [], |
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.
| input.onchange = (e: any) => { | ||
| const file = e.target.files[0]; | ||
| if (!file) return; |
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.






具体可以看每一个 Commit