-
Notifications
You must be signed in to change notification settings - Fork 312
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
Change: ブラウザ版のConfigをBaseConfigManagerベースに #1629
Merged
Merged
Changes from 27 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
60f4a14
(add/browser-config)
sevenc-nanashi ffa2729
Change: ブラウザのコンフィグをConfigManagerベースに
sevenc-nanashi 994a656
Change: store名を変更
sevenc-nanashi f5a74e4
Merge: origin/main -> add/browser-config
sevenc-nanashi ff3f473
Add: チェックを追加
sevenc-nanashi 2318674
Add: tmateを追加
sevenc-nanashi 3464c5b
Merge: origin/main -> add/browser-config
sevenc-nanashi 10e8af5
Delete: tmateを削除
sevenc-nanashi d09df6f
Change: 調整結果.spec.tsに限定
sevenc-nanashi fdffc37
Change: --を追加
sevenc-nanashi 4d9ea03
Add: console.logを追加
sevenc-nanashi fc763cc
Change: fail-fast: false
sevenc-nanashi 16d27d0
Fix: CIが落ちてるのを修正
sevenc-nanashi e880771
Change: リトライしないように
sevenc-nanashi 00a6acb
Change: タイムアウトを延長
sevenc-nanashi 08b59d1
Change: もう少し待つ
sevenc-nanashi 690efaa
Add: consoleのログを追加
sevenc-nanashi 8ceed61
Change: retriesを復活
sevenc-nanashi 7cf4411
Change: テストする物を限定
sevenc-nanashi 7b32a2d
Change: dotfiles持ち込み
sevenc-nanashi 45293ee
Change: engineInfo周りをenvから持ってくるように
sevenc-nanashi cb2db2b
Delete: 指定を削除
sevenc-nanashi af1055d
Add: tmate復活
sevenc-nanashi b7c7d47
Fix: 動いて欲しい(祈りを捧げながら)
sevenc-nanashi 8d6cc72
Delete: consoleのハンドラを削除
sevenc-nanashi 48e898f
Code: FIXMEを追加
sevenc-nanashi a0695f8
Fix: import.meta.envを使うように
sevenc-nanashi 50bec9a
Refactor: lockで書き直し
sevenc-nanashi 31d07cf
Code: 固定値であることを追記
sevenc-nanashi 4628907
Change: protectedに
sevenc-nanashi 57e6eb1
Add: Mutexを追加
sevenc-nanashi 4d2f0b3
Code: コメントを追加
sevenc-nanashi 1c0b3db
Fix: initialize忘れ
sevenc-nanashi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import { EngineInfo, EngineId } from "@/type/preload"; | ||
import { EngineInfo, envEngineInfoSchema } from "@/type/preload"; | ||
|
||
const baseEngineInfo = envEngineInfoSchema | ||
.array() | ||
.parse(JSON.parse(import.meta.env.VITE_DEFAULT_ENGINE_INFOS))[0]; | ||
|
||
export const defaultEngine: EngineInfo = { | ||
uuid: EngineId("074fc39e-678b-4c13-8916-ffca8d505d1d"), | ||
host: "http://127.0.0.1:50021", | ||
name: "VOICEVOX Engine", | ||
path: undefined, | ||
executionEnabled: false, | ||
executionFilePath: "", | ||
executionArgs: [], | ||
...baseEngineInfo, | ||
type: "default", | ||
}; | ||
|
||
export const directoryHandleStoreKey = "directoryHandle"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
色々試してたときのやつですね。問題自体はここには無かったのでいらないっちゃ要らないはず。
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.
なるほどです!
エンジンIDの変更が意図的かどうかパッとわからないので、やったほうが良さそうであればエンジンリポジトリと同様に環境変数へ、なくても良さそうであればこの行を消すはどうでしょう?
.env.test
を書き換えるかはどちらでも良さそう。(どっちかというと.envを自由に書き換えるほうがローカル変数っぽみがあって直感的だとは思います。.env.testは元からあるのでグローバルっぽみ。)
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.
Viteは
.env
より.env.test
の方が優先度が高いので、.env
と.env.test
は同期しておきたいんですよね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.
あ、たしかに!!気をつけないといけない仕様ですね・・・。
(だとしたら
executionArgs
が元の.env.testの空っぽのに上書きされてそうですけど、なんで今まで動いてたんだろう).env.test直接書き換えで良い気がしました!