initialize.ts 1.1 KB

12345678910111213141516171819202122232425262728
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { App } from 'vue'
  3. import '#mobile/styles/main.css'
  4. import initializeStore from '#shared/stores/index.ts'
  5. import initializeGlobalComponents from '#shared/initializer/globalComponents.ts'
  6. import { initializeAppName } from '#shared/composables/useAppName.ts'
  7. import initializeGlobalProperties from '#shared/initializer/globalProperties.ts'
  8. import { initializeForm, initializeFormFields } from '#mobile/form/index.ts'
  9. import { initializeMobileVisuals } from './initializer/mobileVisuals.ts'
  10. import { initializeMobileIcons } from './initializer/initializeMobileIcons.ts'
  11. import { initializeGlobalComponentStyles } from './initializer/initializeGlobalComponentStyles.ts'
  12. export default function initializeApp(app: App) {
  13. initializeAppName('mobile')
  14. initializeStore(app)
  15. initializeGlobalComponentStyles()
  16. initializeGlobalComponents(app)
  17. initializeGlobalProperties(app)
  18. initializeMobileIcons()
  19. initializeForm(app)
  20. initializeFormFields()
  21. initializeMobileVisuals()
  22. return app
  23. }