GuidedSetupManual.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { provide, ref } from 'vue'
  4. import LayoutPublicPage from '#desktop/components/layout/LayoutPublicPage/LayoutPublicPage.vue'
  5. import type { BoxSizes } from '#desktop/components/layout/types.ts'
  6. import { useSetTitle } from '../../composables/useSetTitle.ts'
  7. import { SYSTEM_SETUP_SYMBOL } from '../../composables/useSystemSetup.ts'
  8. import type { SystemSetup } from '../../types/setup.ts'
  9. const { title, setTitle } = useSetTitle()
  10. const boxSize = ref<BoxSizes>('medium')
  11. const setBoxSize = (newBoxSize: BoxSizes) => {
  12. boxSize.value = newBoxSize
  13. }
  14. const hideFooter = ref(false)
  15. const setHideFooter = (newHideFooter: boolean) => {
  16. hideFooter.value = newHideFooter
  17. }
  18. provide<SystemSetup>(SYSTEM_SETUP_SYMBOL, {
  19. setTitle,
  20. setBoxSize,
  21. setHideFooter,
  22. })
  23. </script>
  24. <template>
  25. <LayoutPublicPage
  26. :box-size="boxSize"
  27. :hide-footer="hideFooter"
  28. :title="title"
  29. >
  30. <RouterView />
  31. </LayoutPublicPage>
  32. </template>