Skip to content
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

Refactoring: ホットキー周りの初期値などをdomainに切り出す #2366

Conversation

Hiroshiba
Copy link
Member

内容

タイトルの通り、ショートカットキー周りのコードをpreload.tsからdomainに移します。
preload.tsダイエットの一貫。

isMacがpreload.ts側に定義されていて相互参照になってしまいそうです。
これは

に含まれる、isMacなどをhelperに移すリファクタリングで解決するはず。

その他

でisMacをDI可能にしようとしたとき、結構複雑だったのでとりあえず切り出しだけやってしまおうと思いました。

@Hiroshiba Hiroshiba requested a review from a team as a code owner November 18, 2024 16:01
@Hiroshiba Hiroshiba closed this Dec 15, 2024
@Hiroshiba Hiroshiba force-pushed the リファクタリング、ホットキー周りの初期値などをdomainに切り出す branch from 53f154f to 4233089 Compare December 15, 2024 13:10
@Hiroshiba Hiroshiba reopened this Dec 15, 2024
@voicevox-preview-pages
Copy link

voicevox-preview-pages bot commented Dec 15, 2024

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:030a5d5

@Hiroshiba Hiroshiba requested a review from Copilot December 21, 2024 13:24

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 13 changed files in this pull request and generated no comments.

Files not reviewed (8)
  • src/components/Menu/MenuItem.vue: Evaluated as low risk
  • src/components/Talk/TalkEditor.vue: Evaluated as low risk
  • src/components/Dialog/HotkeyRecordingDialog.vue: Evaluated as low risk
  • src/components/Dialog/HotkeySettingDialog.vue: Evaluated as low risk
  • src/domain/hotkeyAction.ts: Evaluated as low risk
  • src/backend/common/ConfigManager.ts: Evaluated as low risk
  • src/backend/browser/sandbox.ts: Evaluated as low risk
  • src/store/setting.ts: Evaluated as low risk
@Hiroshiba
Copy link
Member Author

Hiroshiba commented Dec 21, 2024

ChatGPTのo1君にもレビューしてもらいました
https://chatgpt.com/share/6766c292-51a8-8008-8ddb-b2376220c1b4

レビューで指摘されてますが、一部のショートカットキーが型に存在してるのにデフォルトショートカットキー一覧にないやつがありそうでした!
その解決を別でプルリクエスト出してみたいと思います。

問題ないと思うのでマージします!

@Hiroshiba Hiroshiba merged commit b445592 into VOICEVOX:main Dec 21, 2024
9 checks passed
@Hiroshiba Hiroshiba deleted the リファクタリング、ホットキー周りの初期値などをdomainに切り出す branch December 21, 2024 13:31
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.

1 participant