forked from VOICEVOX/voicevox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into pr/takusea/2276-3
- Loading branch information
Showing
21 changed files
with
521 additions
and
244 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
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,45 @@ | ||
<!-- | ||
NOTE: SettingDialogのBaseCellを参考にして作成 | ||
--> | ||
|
||
<template> | ||
<QCardActions :class="props.class"> | ||
<div>{{ title }}</div> | ||
<div :aria-label="description"> | ||
<QIcon name="help_outline" size="sm" class="help-hover-icon"> | ||
<QTooltip | ||
:delay="500" | ||
anchor="center right" | ||
self="center left" | ||
transitionShow="jump-right" | ||
transitionHide="jump-left" | ||
> | ||
{{ description }} | ||
</QTooltip> | ||
</QIcon> | ||
</div> | ||
<QSpace /> | ||
<slot /> | ||
</QCardActions> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
export type Props = { | ||
title: string; | ||
description: string; | ||
class?: unknown; // 型はquasarの定義を真似ている | ||
}; | ||
|
||
const props = defineProps<Props>(); | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@use "@/styles/visually-hidden" as visually-hidden; | ||
@use "@/styles/colors" as colors; | ||
|
||
.help-hover-icon { | ||
margin-left: 6px; | ||
color: colors.$display; | ||
opacity: 0.5; | ||
} | ||
</style> |
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,36 @@ | ||
<template> | ||
<Presentation v-model="modelValue" @exportAudio="handleExportAudio" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { notifyResult } from "../Dialog"; | ||
import Presentation, { ExportTarget } from "./Presentation.vue"; | ||
import { useStore } from "@/store"; | ||
import { SaveResultObject, SongExportSetting } from "@/store/type"; | ||
defineOptions({ | ||
name: "ExportSongAudioDialog", | ||
}); | ||
const modelValue = defineModel<boolean>(); | ||
const store = useStore(); | ||
const handleExportAudio = async ( | ||
target: ExportTarget, | ||
setting: SongExportSetting, | ||
) => { | ||
let result: SaveResultObject; | ||
if (target === "master") { | ||
result = await store.dispatch("EXPORT_AUDIO_FILE", { setting }); | ||
} else { | ||
result = await store.dispatch("EXPORT_STEM_AUDIO_FILE", { setting }); | ||
} | ||
notifyResult( | ||
result, | ||
"audio", | ||
store.actions, | ||
store.state.confirmedTips.notifyOnGenerate, | ||
); | ||
}; | ||
</script> |
Oops, something went wrong.