Skip to content

Commit

Permalink
fix ts warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Sep 8, 2024
1 parent f40e4bf commit e802f20
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/app/router/create-app-router.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router'
import {RouteAccessError, RouteAuthAccessError} from "@/shared/lib/errors";
import { RouteAuthAccessError } from "@/shared/lib/errors";
import { routes } from './routes'
import type { TRouterMiddleware } from './types'

Expand Down
2 changes: 1 addition & 1 deletion src/screens/home/ui/home-page/home-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import { PageHeader, LayoutPreviewEvents, LayoutBase, LayoutSidebar } from '@/widgets/ui'
import { ALL_EVENT_TYPES, PAGE_TYPES, PAGES_SETTINGS } from '@/shared/constants'
import { ALL_EVENT_TYPES, PAGES_SETTINGS } from '@/shared/constants'
import type { PageEventTypes } from '@/shared/types'
const route = useRoute()
Expand Down
23 changes: 11 additions & 12 deletions src/shared/ui/file-attachment/file-attachment.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<script lang="ts" setup>
import { computed } from "vue";
import { useFormats } from "../../lib/formats";
import { REST_API_URL } from "../../lib/io";
import type { Attachment } from "../../types";
import { computed } from 'vue'
import { useFormats } from '../../lib/formats'
import type { Attachment } from '../../types'
const { formatFileSize } = useFormats();
const { formatFileSize } = useFormats()
type Props = {
eventId: string;
attachment: Attachment;
downloadUrl?: string;
};
eventId: string
attachment: Attachment
downloadUrl?: string
}
const props = defineProps<Props>();
const size = computed(() => formatFileSize(props.attachment.size || 0));
const props = defineProps<Props>()
const size = computed(() => formatFileSize(props.attachment.size || 0))
</script>

<template>
Expand Down Expand Up @@ -44,7 +43,7 @@ const size = computed(() => formatFileSize(props.attachment.size || 0));
</template>

<style lang="scss" scoped>
@import "src/assets/mixins";
@import 'src/assets/mixins';
.file-attachment {
@apply border border-gray-300 px-3 py-2 flex items-center;
Expand Down
3 changes: 1 addition & 2 deletions src/widgets/ui/layout-base/layout-base.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts" setup>
import { useTitle } from '@vueuse/core'
import { storeToRefs } from 'pinia'
import { watch, watchEffect } from 'vue'
import { watch } from 'vue'
import { useEvents } from '@/shared/lib/use-events'
import SfdumpWrap from '@/shared/lib/vendor/dumper'
import { useEventsStore } from '@/shared/stores'
Expand Down

0 comments on commit e802f20

Please sign in to comment.