Skip to content

Commit

Permalink
fix(pages): use auto imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Aug 29, 2022
1 parent 647edba commit 4a15ea7
Show file tree
Hide file tree
Showing 21 changed files with 388 additions and 554 deletions.
1 change: 0 additions & 1 deletion nuxt/components/_/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
</footer>
</template>
<script lang="ts">
import { useColorMode } from '@nuxtjs/color-mode/dist/runtime/composables'
import { LocaleObject } from '@nuxtjs/i18n/types'
import { defineComponent } from 'vue'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/account/[username]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useRouter, useRoute, abortNavigation, useNuxtApp } from '#app'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/account/[username]/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

<script lang="ts">
import { CombinedError } from '@urql/core'
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { computed, defineComponent, reactive } from 'vue'
import { useRouter, useRoute, abortNavigation, useNuxtApp } from '#app'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/account/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
3 changes: 1 addition & 2 deletions nuxt/pages/contact/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { computed, defineComponent } from 'vue'
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRouter } from '#app'
Expand Down
9 changes: 2 additions & 7 deletions nuxt/pages/dashboard/dev/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,9 @@
<script lang="ts">
import { useI18n } from 'vue-i18n'
import { computed, defineComponent, reactive } from 'vue'
import {
computed,
defineComponent,
reactive,
useNuxtApp,
useRouter,
} from '#app'
import { useNuxtApp, useRouter } from '#app'
import { useHead } from '#head'
import { useSignOut } from '~/plugins/util/auth'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@

<script lang="ts">
import consola from 'consola'
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import Swal from 'sweetalert2'
import { computed, defineComponent, onMounted, reactive, watch } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
14 changes: 2 additions & 12 deletions nuxt/pages/event/[username]/[event_name]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,23 +302,13 @@ import consola from 'consola'
import downloadJs from 'downloadjs'
import DOMPurify from 'isomorphic-dompurify'
import mustache from 'mustache'
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import prntr from 'prntr'
import QrcodeVue from 'qrcode.vue'
import Swal from 'sweetalert2'
import { computed, defineComponent, reactive, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import {
computed,
defineComponent,
reactive,
ref,
useRouter,
useRoute,
watch,
abortNavigation,
useNuxtApp,
} from '#app'
import { useRouter, useRoute, abortNavigation, useNuxtApp } from '#app'
import { useHead } from '#head'
import EVENT_IS_EXISTING_QUERY from '~/gql/query/event/eventIsExisting.gql'
Expand Down
13 changes: 2 additions & 11 deletions nuxt/pages/event/[username]/[event_name]/invitation/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,10 @@

<script lang="ts">
import consola from 'consola'
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { computed, defineComponent, reactive, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import {
computed,
defineComponent,
reactive,
useRouter,
useRoute,
watch,
abortNavigation,
useNuxtApp,
} from '#app'
import { useRouter, useRoute, abortNavigation, useNuxtApp } from '#app'
import { useHead } from '#head'
import EVENT_IS_EXISTING_QUERY from '~/gql/query/event/eventIsExisting.gql'
Expand Down
8 changes: 2 additions & 6 deletions nuxt/pages/event/[username]/[event_name]/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,15 @@
<script lang="ts">
import { CombinedError } from '@urql/vue'
import consola from 'consola'
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { computed, defineComponent, reactive, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import {
computed,
defineComponent,
reactive,
useNuxtApp,
useRoute,
navigateTo,
useRouter,
watch,
abortNavigation,
abortNavigation,
} from '#app'
import { useHead } from '#head'
Expand Down
10 changes: 2 additions & 8 deletions nuxt/pages/event/[username]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
import {
defineComponent,
reactive,
useRouter,
useRoute,
abortNavigation,
} from '#app'
import { useRouter, useRoute, abortNavigation } from '#app'
import { useHead } from '#head'
import { REGEX_SLUG } from '~/plugins/util/validation'
Expand Down
4 changes: 2 additions & 2 deletions nuxt/pages/eventGroup/[username]/[event_group_name].vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent } from 'vue'
import { abortNavigation, defineComponent, useRoute } from '#app'
import { abortNavigation, useRoute } from '#app'
import { useHead } from '#head'
import { REGEX_SLUG } from '~/plugins/util/validation'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/eventGroup/[username]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent } from 'vue'
import { abortNavigation, useRoute } from '#app'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/task/account/email-address/verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

<script lang="ts">
import consola from 'consola'
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import Swal from 'sweetalert2'
import { computed, defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/task/account/password/reset/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/task/account/sign-in.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/task/event/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/task/event/unlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import { useVuelidate } from '@vuelidate/core'
import { required } from '@vuelidate/validators'
import consola from 'consola'
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { computed, defineComponent, onMounted, reactive, toRef } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
1 change: 0 additions & 1 deletion nuxt/pages/upload/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down
3 changes: 0 additions & 3 deletions nuxt/pages/πŸ«–/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
</template>

<script lang="ts">
import { definePageMeta } from 'nuxt/dist/pages/runtime/composables'
import { defineComponent, reactive } from 'vue'
import { useI18n } from 'vue-i18n'
Expand All @@ -13,8 +12,6 @@ import { useHead } from '#head'
definePageMeta({
middleware: [
function (_to: any, _from: any) {
const store = useMaevsiStore()
if (res) {
res.statusCode = 418
}
Expand Down
Loading

0 comments on commit 4a15ea7

Please sign in to comment.