summaryrefslogtreecommitdiff
path: root/pages/index.vue
blob: 2c8403203caa1029b54d3aab2237234a03fd28ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<template lang="pug">
  .mx-auto.max-w-7xl.py-6(class="sm:px-6 lg:px-8")
    model-loading(v-if="isLoading")

</template>

<script>
import ModelLoading from "@/components/ModelLoading.vue";

import { mapGetters } from "vuex";

export default {
  name: "IndexPage",
  layout: "default",
  head: {
    title: "Verden - Social for 3D artists",
  },
  components: {
    "model-loading": ModelLoading,
  },
  computed: {
    ...mapGetters(["isLoading"]),
    ...mapGetters("auth", ["isLogged"]),
  },
  created() {
    this.$store.dispatch("models/getModels");
  },
};
</script>