[WIP] replace `semantic-modal` with `ui/Modal` component

This commit is contained in:
upsiflu 2024-12-12 10:46:36 +01:00
parent c369f3168a
commit e0fb7f0fc4
2 changed files with 7 additions and 18 deletions

View File

@ -1,21 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import SemanticModal from '~/components/semantic/Modal.vue' import Modal from '~/components/ui/Modal.vue'
import { useVModel } from '@vueuse/core'
import { computed } from 'vue' import { computed } from 'vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
interface Events {
(e: 'update:show', show: boolean): void
}
interface Props { const model = defineModel<boolean>()
show: boolean
}
const emit = defineEmits<Events>()
const props = defineProps<Props>()
const showRef = useVModel(props, 'show', emit)
const { t } = useI18n() const { t } = useI18n()
const general = computed(() => [ const general = computed(() => [
@ -108,10 +97,9 @@ const player = computed(() => [
</script> </script>
<template> <template>
<semantic-modal v-model:show="showRef"> <Modal
<header class="header"> :title="t('components.ShortcutsModal.header.modal')"
{{ t('components.ShortcutsModal.header.modal') }} v-model="model">
</header>
<section class="scrolling content"> <section class="scrolling content">
<div class="ui stackable two column grid"> <div class="ui stackable two column grid">
<div class="column"> <div class="column">
@ -157,5 +145,5 @@ const player = computed(() => [
{{ t('components.ShortcutsModal.button.close') }} {{ t('components.ShortcutsModal.button.close') }}
</button> </button>
</footer> </footer>
</semantic-modal> </Modal>
</template> </template>

View File

@ -306,6 +306,7 @@ onMounted(() => {
</div> </div>
</Modal> </Modal>
<Modal <Modal
:title="labels.theme"
ref="themeModal" ref="themeModal"
v-model:show="isThemeModalOpen" v-model:show="isThemeModalOpen"
:fullscreen="false" :fullscreen="false"