Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Dec 27, 2024
1 parent 5082082 commit 673bd4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sing/ExportOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const nowRendering = computed(() => {
return store.state.nowRendering;
});
const exportingInfo = computed((): ExportingInfo => {
const exportingInfo = computed<ExportingInfo>(() => {
if (store.state.exportState === "NOT_EXPORTING") {
return { nowExporting: false };
} else if (store.state.exportState === "EXPORTING_AUDIO") {
Expand Down
1 change: 1 addition & 0 deletions src/sing/fileUtils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* 指定されたファイルパスに対応するファイルが既に存在する場合、
* ファイル名に連番のサフィックスを追加してユニークなファイルパスを生成する。
* TODO: src/store/audio.tsのchangeFileTailToNonExistent関数と統合する
*/
export async function generateUniqueFilePath(
filePathWithoutExtension: string,
Expand Down
1 change: 1 addition & 0 deletions src/store/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function parseTextFile(
return audioItems;
}

// TODO: src/sing/fileUtils.tsのgenerateUniqueFilePathと統合する
async function changeFileTailToNonExistent(
filePath: string,
extension: string,
Expand Down

0 comments on commit 673bd4e

Please sign in to comment.