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

Feat: display usages #973

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions enjoy/src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ export class Client {
});
}

usages(): Promise<{ label: string; data: number[] }[]> {
return this.api.get("/api/mine/usages");
}

syncAudio(audio: Partial<AudioType>) {
return this.api.post("/api/mine/audios", decamelizeKeys(audio));
}
Expand Down
3 changes: 2 additions & 1 deletion enjoy/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -718,5 +718,6 @@
"audioInput": "Audio input",
"textInput": "Text input",
"increasePlaybackRate": "Increase playback rate",
"descreasePlaybackRate": "Descrease playback rate"
"descreasePlaybackRate": "Descrease playback rate",
"usage": "Usage"
}
3 changes: 2 additions & 1 deletion enjoy/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -718,5 +718,6 @@
"audioInput": "语音输入",
"textInput": "文字输入",
"increasePlaybackRate": "加快播放速度",
"decreasePlaybackRate": "减慢播放速度"
"decreasePlaybackRate": "减慢播放速度",
"usage": "使用情况"
}
Loading
Loading