-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: game setting on Dictation mode
- Loading branch information
1 parent
4b6fa0f
commit bea6b30
Showing
15 changed files
with
198 additions
and
132 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,24 @@ | ||
<template> | ||
<div class="mb-4"> | ||
<h1 class="text-center text-2xl font-bold text-purple-800 dark:text-white">{{ title }}</h1> | ||
<div class="absolute right-2 top-2"> | ||
<UButton | ||
color="gray" | ||
variant="ghost" | ||
icon="i-heroicons-x-mark-20-solid" | ||
@click="$emit('close')" | ||
tabindex="-1" | ||
:ui="{ color: { gray: { ghost: 'dark:hover:bg-gray-600' } } }" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineProps({ | ||
title: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
</script> |
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
77 changes: 43 additions & 34 deletions
77
...ent/components/mode/dictation/Toolbar.vue → ...ient/components/main/GameSettingModal.vue
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
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
File renamed without changes.
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 @@ | ||
import { ref } from "vue"; | ||
|
||
const showGameSettingModal = ref(false); | ||
|
||
export const useGameSetting = () => { | ||
const toggleGameSettingModal = () => { | ||
showGameSettingModal.value = !showGameSettingModal.value; | ||
}; | ||
|
||
const openGameSettingModal = () => { | ||
showGameSettingModal.value = true; | ||
}; | ||
|
||
const closeGameSettingModal = () => { | ||
showGameSettingModal.value = false; | ||
}; | ||
|
||
return { | ||
showGameSettingModal, | ||
toggleGameSettingModal, | ||
openGameSettingModal, | ||
closeGameSettingModal, | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.