-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [video] fix dependencies * change music 脱lofigirl * fix #428
- Loading branch information
Showing
12 changed files
with
387 additions
and
20,526 deletions.
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
4,417 changes: 254 additions & 4,163 deletions
4,417
video-maker/1000-minutes-simulator/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* ランダムにBGMを選ぶ. | ||
* @return {string} 現在のBGMファイルのパス | ||
*/ | ||
export async function getCurrentRandomBgm(): Promise<string> { | ||
const res = await fetch('/api/bgm') | ||
const file = (await res.json()).file | ||
console.log(file) | ||
|
||
if (file) { | ||
return file | ||
} | ||
throw Error('no bgm file.') | ||
} | ||
|
||
export type Bgm = { | ||
title: string | ||
artist: string | ||
file: string | ||
forPart: string[] | ||
} | ||
|
||
export const AllPartType = ['AllPartType'] | ||
|
Oops, something went wrong.