Files
apkt-eis/src/App.vue
2023-10-19 09:03:41 +07:00

24 lines
1.0 KiB
Vue

<script setup lang="ts">
import { RouterView } from 'vue-router'
import { NotificationProvider } from '@/components/Notification'
import { useDialogStore } from '@/stores/dialog'
import ActionDialog from '@/components/Dialogs/ActionDialog.vue';
import CommandPalettes from '@/components/CommandPalettes.vue';
import { useCommandPalattesStore } from '@/stores/command';
const dialog = useDialogStore()
const command = useCommandPalattesStore()
</script>
<template>
<NotificationProvider>
<ActionDialog :show-cancel-button="dialog.showCancelButton" :dismiss-on-action="dialog.dismissOnAction"
:open="dialog.open" :title="dialog.title" :message="dialog.content" :confirm-text="dialog.confirmText"
:cancel-text="dialog.cancelText" @on-close="dialog.open = false" @on-confirm="dialog.onConfirm"
@on-cancel="dialog.onCancel" :type="dialog.type" />
<CommandPalettes :open="command.open" @onClose="command.handleOnDismissCommandPalettes" />
<RouterView />
</NotificationProvider>
</template>
<style scoped></style>