initialize.ts 994 B

12345678910111213141516171819202122232425262728
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import type { App } from 'vue'
  3. import '@shared/initializer/translatableMarker'
  4. import 'virtual:svg-icons-register' // eslint-disable-line import/no-unresolved
  5. import '@mobile/styles/main.scss'
  6. import initializeStore from '@shared/stores'
  7. import initializeGlobalComponents from '@shared/initializer/globalComponents'
  8. import initializeForm from '@mobile/form'
  9. import initializeGlobalProperties from '@shared/initializer/globalProperties'
  10. import { initializeAppName } from '@shared/composables/useAppName'
  11. import { initializeObjectAttributes } from './object-attributes/initializeObjectAttributes'
  12. export default function initializeApp(app: App) {
  13. // TODO remove when Vue 3.3 released
  14. app.config.unwrapInjectedRef = true
  15. initializeAppName('mobile')
  16. initializeStore(app)
  17. initializeGlobalComponents(app)
  18. initializeGlobalProperties(app)
  19. initializeForm(app)
  20. initializeObjectAttributes()
  21. return app
  22. }