import { useQuasar } from 'quasar'
import {
  defineComponent, onBeforeMount, onBeforeUnmount, onMounted, ref, toRefs, watch, inject, computed,
} from 'vue'

import { tools } from '@tools'

import { shared_consts } from '@src/common/shared_vuejs'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import { static_data } from '@src/db/static_data'
import { useGlobalStore } from '@store/globalStore'
import { useUserStore } from '@store/UserStore'

import MixinUsers from '../../mixins/mixin-users'

export default defineComponent({
  name: 'CFirstPageApp',
  components: {},
  props: {},

  setup() {
    const $q = useQuasar()
    const { t } = useI18n()
    const $router = useRouter()

    const userStore = useUserStore()
    const globalStore = useGlobalStore()

    function mounted() {
      // mounted
    }

    function reloadPage() {
      $router.go(0)
    }

    onMounted(mounted)

    return {
      tools,
      static_data,
      globalStore,
      t,
      reloadPage,
    }
  },

})
