feat: batch announcements

This commit is contained in:
Jannat Patel
2024-01-12 21:48:42 +05:30
parent 1a6a119f35
commit bcee74ce77
16 changed files with 489 additions and 124 deletions

View File

@@ -1,13 +1,29 @@
<template>
<DesktopLayout>
<router-view />
</DesktopLayout>
<Dialogs />
<Toasts />
<Layout>
<router-view />
</Layout>
<Dialogs />
<Toasts />
</template>
<script setup>
import DesktopLayout from '@/components/DesktopLayout.vue'
import { Toasts } from 'frappe-ui'
import { Dialogs } from '@/utils/dialogs'
import { Toasts } from 'frappe-ui'
import { Dialogs } from '@/utils/dialogs'
import { computed, defineAsyncComponent } from 'vue'
import { useScreenSize } from './utils/composables'
const screenSize = useScreenSize()
const MobileLayout = defineAsyncComponent(() =>
import('@/components/MobileLayout.vue')
)
const DesktopLayout = defineAsyncComponent(() =>
import('@/components/DesktopLayout.vue')
)
const Layout = computed(() => {
if (screenSize.width < 640) {
return MobileLayout
} else {
return DesktopLayout
}
})
</script>