fix import type
This commit is contained in:
parent
c6aac15d24
commit
d064f0acc0
8 changed files with 12 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
import {RouteLocation} from 'vue-router'
|
||||
import type {RouteLocation} from 'vue-router'
|
||||
|
||||
import {isAppleDevice} from '@/helpers/isAppleDevice'
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import {computed, watch, readonly} from 'vue'
|
||||
import {useStorage, createSharedComposable, BasicColorSchema, usePreferredColorScheme, tryOnMounted} from '@vueuse/core'
|
||||
import {useStorage, createSharedComposable, usePreferredColorScheme, tryOnMounted} from '@vueuse/core'
|
||||
import type {BasicColorSchema} from '@vueuse/core'
|
||||
|
||||
const STORAGE_KEY = 'color-scheme'
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {ref} from 'vue'
|
||||
import {useOnline as useNetworkOnline, ConfigurableWindow} from '@vueuse/core'
|
||||
|
||||
import {useOnline as useNetworkOnline} from '@vueuse/core'
|
||||
import type {ConfigurableWindow} from '@vueuse/core'
|
||||
|
||||
export function useOnline(options?: ConfigurableWindow) {
|
||||
const fakeOnlineState = !!import.meta.env.VITE_IS_ONLINE
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { computed, watchEffect } from 'vue'
|
||||
import { setTitle } from '@/helpers/setTitle'
|
||||
import type { ComputedGetter } from 'vue'
|
||||
|
||||
import { ComputedGetter } from 'vue'
|
||||
import { setTitle } from '@/helpers/setTitle'
|
||||
|
||||
export function useTitle(titleGetter: ComputedGetter<string>) {
|
||||
const titleRef = computed(titleGetter)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {Directive} from 'vue'
|
||||
import type {Directive} from 'vue'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {Directive} from 'vue'
|
||||
import type {Directive} from 'vue'
|
||||
import {install, uninstall} from '@github/hotkey'
|
||||
import {isAppleDevice} from '@/helpers/isAppleDevice'
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {i18n} from '@/i18n'
|
||||
|
||||
import ListModal from '@/modals/list'
|
||||
import type ListModal from '@/models/list'
|
||||
|
||||
export function getListTitle(l: ListModal) {
|
||||
if (l.id === -1) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { createRouter, createWebHistory, RouteLocation } from 'vue-router'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import type { RouteLocation } from 'vue-router'
|
||||
import {saveLastVisited} from '@/helpers/saveLastVisited'
|
||||
import {store} from '@/store'
|
||||
|
||||
|
|
Loading…
Reference in a new issue