fix linting
This commit is contained in:
parent
b3bc9b9417
commit
4687f1edfe
|
@ -92,7 +92,7 @@
|
|||
</header>
|
||||
</template>
|
||||
|
||||
<script setup langs="ts">
|
||||
<script setup lang="ts">
|
||||
import {ref, computed, onMounted, nextTick} from 'vue'
|
||||
import {useStore} from 'vuex'
|
||||
import {useRouter} from 'vue-router'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {Document, SimpleDocumentSearchResultSetUnit} from 'flexsearch'
|
||||
import {Document} from 'flexsearch'
|
||||
|
||||
export interface withId {
|
||||
id: number,
|
||||
|
|
14
src/main.ts
14
src/main.ts
|
@ -11,7 +11,7 @@ import router from './router'
|
|||
import {error, success} from './message'
|
||||
|
||||
import {formatDate, formatDateShort, formatDateLong, formatDateSince, formatISO} from '@/helpers/time/formatDate'
|
||||
// @ts-ignore
|
||||
|
||||
import {VERSION} from './version.json'
|
||||
|
||||
// Notifications
|
||||
|
@ -25,6 +25,14 @@ import {store} from './store'
|
|||
// i18n
|
||||
import {i18n} from './i18n'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
API_URL: string;
|
||||
SENTRY_ENABLED: boolean;
|
||||
SENTRY_DSN: string;
|
||||
}
|
||||
}
|
||||
|
||||
console.info(`Vikunja frontend version ${VERSION}`)
|
||||
|
||||
// Check if we have an api url in local storage and use it if that's the case
|
||||
|
@ -84,7 +92,7 @@ app.mixin({
|
|||
},
|
||||
})
|
||||
|
||||
app.config.errorHandler = (err, vm, info) => {
|
||||
app.config.errorHandler = (err) => {
|
||||
// if (import.meta.env.PROD) {
|
||||
// error(err)
|
||||
// } else {
|
||||
|
@ -94,7 +102,7 @@ app.config.errorHandler = (err, vm, info) => {
|
|||
}
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
app.config.warnHandler = (msg, vm, info) => {
|
||||
app.config.warnHandler = (msg) => {
|
||||
error(msg)
|
||||
}
|
||||
|
||||
|
|
1
src/types/shims-vue.d.ts
vendored
1
src/types/shims-vue.d.ts
vendored
|
@ -9,7 +9,6 @@ declare module 'vue' {
|
|||
}
|
||||
|
||||
// https://next.vuex.vuejs.org/guide/migrating-to-4-0-from-3-x.html#typescript-support
|
||||
import { ComponentCustomProperties } from 'vue'
|
||||
import { Store } from 'vuex'
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
|
|
7
src/types/window.d.ts
vendored
7
src/types/window.d.ts
vendored
|
@ -1,7 +0,0 @@
|
|||
declare global {
|
||||
interface Window {
|
||||
API_URL: string;
|
||||
SENTRY_ENABLED: boolean;
|
||||
SENTRY_DSN: string;
|
||||
}
|
||||
}
|
|
@ -91,7 +91,7 @@ const pageTitle = computed(() => {
|
|||
// We need to define "key" because it is the first parameter in the array and we need the second
|
||||
const predefinedRange = Object.entries(DATE_RANGES)
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
.find(([key, value]) => dateFrom === value[0] && dateTo === value[1])
|
||||
.find(([, value]) => dateFrom === value[0] && dateTo === value[1])
|
||||
?.[0]
|
||||
if (typeof predefinedRange !== 'undefined') {
|
||||
return t(`input.datepickerRange.ranges.${predefinedRange}`)
|
||||
|
|
Reference in New Issue
Block a user