2022-07-26 14:46:02 +00:00
|
|
|
import { Ref, ref } from 'vue'
|
|
|
|
import { noop } from '@/utils'
|
2022-10-08 10:54:25 +00:00
|
|
|
|
2022-07-26 14:46:02 +00:00
|
|
|
import MessageToaster from '@/components/ui/MessageToaster.vue'
|
|
|
|
import DialogBox from '@/components/ui/DialogBox.vue'
|
2022-11-19 18:04:21 +00:00
|
|
|
import Overlay from '@/components/ui/Overlay.vue'
|
2022-07-26 14:46:02 +00:00
|
|
|
|
2022-10-10 07:00:30 +00:00
|
|
|
export const MessageToasterStub: Ref<InstanceType<typeof MessageToaster>> = ref({
|
2022-07-26 14:46:02 +00:00
|
|
|
info: noop,
|
|
|
|
success: noop,
|
|
|
|
warning: noop,
|
|
|
|
error: noop
|
|
|
|
})
|
|
|
|
|
2022-10-10 07:00:30 +00:00
|
|
|
export const DialogBoxStub: Ref<InstanceType<typeof DialogBox>> = ref({
|
2022-07-26 14:46:02 +00:00
|
|
|
info: noop,
|
|
|
|
success: noop,
|
|
|
|
warning: noop,
|
|
|
|
error: noop,
|
|
|
|
confirm: noop
|
|
|
|
})
|
2022-11-19 18:04:21 +00:00
|
|
|
|
|
|
|
export const OverlayStub: Ref<InstanceType<typeof Overlay>> = ref({
|
|
|
|
show: noop,
|
|
|
|
hide: noop
|
|
|
|
})
|