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.
- Loading branch information
1 parent
e0d3869
commit e0fc41a
Showing
8 changed files
with
473 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<template> | ||
<div v-if="nowAudioExporting" class="exporting-dialog"> | ||
<div> | ||
<QSpinner color="primary" size="2.5rem" /> | ||
<div class="q-mt-xs"> | ||
{{ nowRendering ? "レンダリング中・・・" : "音声を書き出し中・・・" }} | ||
</div> | ||
<QBtn | ||
v-if="nowRendering" | ||
padding="xs md" | ||
label="音声の書き出しをキャンセル" | ||
class="q-mt-sm" | ||
outline | ||
@click="cancelExport" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { computed } from "vue"; | ||
import { useStore } from "@/store"; | ||
const store = useStore(); | ||
const nowRendering = computed(() => { | ||
return store.state.nowRendering; | ||
}); | ||
const nowAudioExporting = computed(() => { | ||
return store.state.nowAudioExporting; | ||
}); | ||
const cancelExport = () => { | ||
void store.actions.CANCEL_AUDIO_EXPORT(); | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@use "@/styles/v2/variables" as vars; | ||
@use "@/styles/colors" as colors; | ||
.exporting-dialog { | ||
background-color: rgba(colors.$display-rgb, 0.15); | ||
position: absolute; | ||
inset: 0; | ||
z-index: 10; | ||
display: flex; | ||
text-align: center; | ||
align-items: center; | ||
justify-content: center; | ||
> div { | ||
color: colors.$display; | ||
background: colors.$surface; | ||
border-radius: 6px; | ||
padding: 14px; | ||
} | ||
} | ||
</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,63 @@ | ||
<template> | ||
<div v-if="nowLabelExporting" class="exporting-dialog"> | ||
<div> | ||
<QSpinner color="primary" size="2.5rem" /> | ||
<div class="q-mt-xs"> | ||
{{ | ||
nowRendering | ||
? "レンダリング中・・・" | ||
: "labファイルを書き出し中・・・" | ||
}} | ||
</div> | ||
<QBtn | ||
v-if="nowRendering" | ||
padding="xs md" | ||
label="labファイルの書き出しをキャンセル" | ||
class="q-mt-sm" | ||
outline | ||
@click="cancelExport" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { computed } from "vue"; | ||
import { useStore } from "@/store"; | ||
const store = useStore(); | ||
const nowRendering = computed(() => { | ||
return store.state.nowRendering; | ||
}); | ||
const nowLabelExporting = computed(() => { | ||
return store.state.nowLabelExporting; | ||
}); | ||
const cancelExport = () => { | ||
void store.actions.CANCEL_LABEL_EXPORT(); | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@use "@/styles/v2/variables" as vars; | ||
@use "@/styles/colors" as colors; | ||
.exporting-dialog { | ||
background-color: rgba(colors.$display-rgb, 0.15); | ||
position: absolute; | ||
inset: 0; | ||
z-index: 10; | ||
display: flex; | ||
text-align: center; | ||
align-items: center; | ||
justify-content: center; | ||
> div { | ||
color: colors.$display; | ||
background: colors.$surface; | ||
border-radius: 6px; | ||
padding: 14px; | ||
} | ||
} | ||
</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
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.