Open source personal finance application
fix: restore useStorage import from @vueuse/core
Ilya Komichev4bbb82c21e10
diff --git a/app/components/categories/StatPage.vue b/app/components/categories/StatPage.vueindex 4520cbe1..6411c31b 100644--- a/app/components/categories/StatPage.vue+++ b/app/components/categories/StatPage.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { CategoryId } from '~/components/categories/types'import type { StatTabSlug } from '~/components/stat/types'diff --git a/app/components/categories/page/List.vue b/app/components/categories/page/List.vueindex 5afc372f..42841fa6 100644--- a/app/components/categories/page/List.vue+++ b/app/components/categories/page/List.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { CategoryId } from '~/components/categories/types'import { useCategoriesStore } from '~/components/categories/useCategoriesStore'diff --git a/app/components/categories/page/id/Index.vue b/app/components/categories/page/id/Index.vueindex bb6d6220..64fd64b0 100644--- a/app/components/categories/page/id/Index.vue+++ b/app/components/categories/page/id/Index.vue@@ -1,4 +1,5 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'import { differenceInDays } from 'date-fns'import type { CategoryId } from '~/components/categories/types'diff --git a/app/components/date/useStatDate.ts b/app/components/date/useStatDate.tsindex f9a518f3..9a443de8 100644--- a/app/components/date/useStatDate.ts+++ b/app/components/date/useStatDate.ts@@ -1,3 +1,4 @@+import { useStorage } from '@vueuse/core'import { differenceInDays } from 'date-fns'import defu from 'defu'import { z } from 'zod/v4'diff --git a/app/components/stat/Page.vue b/app/components/stat/Page.vueindex 067580e9..70ef5d2b 100644--- a/app/components/stat/Page.vue+++ b/app/components/stat/Page.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { CategoryId } from '~/components/categories/types'import type { StatTabSlug } from '~/components/stat/types'import type { WalletId } from '~/components/wallets/types'diff --git a/app/components/stat/categories/Section2.vue b/app/components/stat/categories/Section2.vueindex 79e8e7a2..1833cc54 100644--- a/app/components/stat/categories/Section2.vue+++ b/app/components/stat/categories/Section2.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { Categories, CategoryId } from '~/components/categories/types'import type { CategoryWithData, StatTabSlug } from '~/components/stat/types'import type { TrnId } from '~/components/trns/types'diff --git a/app/components/stat/useStatConfig.ts b/app/components/stat/useStatConfig.tsindex 6e4a7753..919e00f3 100644--- a/app/components/stat/useStatConfig.ts+++ b/app/components/stat/useStatConfig.ts@@ -1,5 +1,6 @@import type { DeepPartial } from '~~/utils/types'+import { useStorage } from '@vueuse/core'import defu from 'defu'import { z } from 'zod/v4'diff --git a/app/components/stat/useStatItem.ts b/app/components/stat/useStatItem.tsindex b7112041..bd78fb2c 100644--- a/app/components/stat/useStatItem.ts+++ b/app/components/stat/useStatItem.ts@@ -1,5 +1,6 @@import type { ComputedRef } from 'vue'+import { useStorage } from '@vueuse/core'import { differenceInDays, differenceInMonths, differenceInWeeks } from 'date-fns'import type { CategoryId } from '~/components/categories/types'diff --git a/app/components/trnForm/TrnsSlide.vue b/app/components/trnForm/TrnsSlide.vueindex 44cf32c2..28ad2df4 100644--- a/app/components/trnForm/TrnsSlide.vue+++ b/app/components/trnForm/TrnsSlide.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { CategoryId } from '~/components/categories/types'import type { WalletId } from '~/components/wallets/types'diff --git a/app/components/trns/pages/History.vue b/app/components/trns/pages/History.vueindex 1dc8c5ab..81fb980e 100644--- a/app/components/trns/pages/History.vue+++ b/app/components/trns/pages/History.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { CategoryId } from '~/components/categories/types'import type { WalletId } from '~/components/wallets/types'diff --git a/app/components/ui/Toggle.vue b/app/components/ui/Toggle.vueindex 60dc5463..8bf1b675 100644--- a/app/components/ui/Toggle.vue+++ b/app/components/ui/Toggle.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+const props = defineProps<{initStatus?: booleanopenPadding?: stringdiff --git a/app/components/ui/ToggleWithStorage.vue b/app/components/ui/ToggleWithStorage.vueindex 8ba3f67f..14dd08c0 100644--- a/app/components/ui/ToggleWithStorage.vue+++ b/app/components/ui/ToggleWithStorage.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+const props = defineProps<{initStatus?: booleanlineWidth?: numberdiff --git a/app/components/wallets/Item.vue b/app/components/wallets/Item.vueindex 847bfab8..a2bb6a5b 100644--- a/app/components/wallets/Item.vue+++ b/app/components/wallets/Item.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { WalletId, WalletItemComputed } from '~/components/wallets/types'import { useCurrenciesStore } from '~/components/currencies/useCurrenciesStore'diff --git a/app/components/wallets/Selector.vue b/app/components/wallets/Selector.vueindex 6527e435..2ffd56ff 100644--- a/app/components/wallets/Selector.vue+++ b/app/components/wallets/Selector.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { CurrencyCode } from '~/components/currencies/types'import type { WalletId } from '~/components/wallets/types'diff --git a/app/components/wallets/page/List.vue b/app/components/wallets/page/List.vueindex 195cd518..5899b5c9 100644--- a/app/components/wallets/page/List.vue+++ b/app/components/wallets/page/List.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { TrnId } from '~/components/trns/types'import type { WalletId, WalletsGroupedBy } from '~/components/wallets/types'diff --git a/app/components/wallets/page/id/Index.vue b/app/components/wallets/page/id/Index.vueindex 519ea2b2..219506cd 100644--- a/app/components/wallets/page/id/Index.vue+++ b/app/components/wallets/page/id/Index.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useStorage } from '@vueuse/core'+import type { StatTabSlug } from '~/components/stat/types'import type { TrnId } from '~/components/trns/types'import type { WalletId } from '~/components/wallets/types'diff --git a/app/components/wallets/page/useWalletsPageFilter.ts b/app/components/wallets/page/useWalletsPageFilter.tsindex c1f98c02..99b38e34 100644--- a/app/components/wallets/page/useWalletsPageFilter.ts+++ b/app/components/wallets/page/useWalletsPageFilter.ts@@ -1,5 +1,7 @@import type { Ref } from 'vue'+import { useStorage } from '@vueuse/core'+import type { CurrencyCode } from '~/components/currencies/types'import type { WalletId, WalletsCurrencyFiltered, WalletsGroupedBy, WalletType, WalletViewTypes } from '~/components/wallets/types'diff --git a/app/components/wallets/page/useWalletsPageGrouping.ts b/app/components/wallets/page/useWalletsPageGrouping.tsindex b8b6f498..ee6a8e93 100644--- a/app/components/wallets/page/useWalletsPageGrouping.ts+++ b/app/components/wallets/page/useWalletsPageGrouping.ts@@ -1,5 +1,7 @@import type { ComputedRef, Ref } from 'vue'+import { useStorage } from '@vueuse/core'+import type { WalletId, WalletItem, WalletsGroupedBy } from '~/components/wallets/types'import { useWalletsStore } from '~/components/wallets/useWalletsStore'