Open source personal finance application
chore: fix typo
ilkome8eeeea38beb4
diff --git a/components/date/types.ts b/components/date/types.tsindex b6788214..7fc424a1 100644--- a/components/date/types.ts+++ b/components/date/types.ts@@ -1,4 +1,4 @@export type PeriodNames = 'day' | 'week' | 'month' | 'year' | 'all'// Note: dayjs doesn't understand Omit-export type PeriodsNamesExeptAll = 'day' | 'week' | 'month' | 'year'+export type PeriodsNamesExceptAll = 'day' | 'week' | 'month' | 'year'diff --git a/components/stat/mobile/MobileMenu.vue b/components/stat/mobile/Menu.vuesimilarity index 100%rename from components/stat/mobile/MobileMenu.vuerename to components/stat/mobile/Menu.vuediff --git a/pages/wallets/total.vue b/pages/wallets/total.vueindex c1cc950f..0f7a0a33 100644--- a/pages/wallets/total.vue+++ b/pages/wallets/total.vue@@ -4,7 +4,7 @@ import _minby from 'lodash.minby'import _sortby from 'lodash.sortby'import dayjs from 'dayjs'import type { ComputedRef, Ref } from '@vue/composition-api'-import type { PeriodsNamesExeptAll } from '~/components/date/types'+import type { PeriodsNamesExceptAll } from '~/components/date/types'import type { TrnID, TrnItem } from '~/components/trns/types'import useAmount from '~/components/amount/useAmount'import { averageLine, baseSeriesItemStyle, options } from '~/components/chart/chartOprions'@@ -29,7 +29,7 @@ function getOldestTrnDate(trnsItems: Record<TrnID, TrnItem>): DateValueOf {/*** Get max periods to show*/-function getMaxPeriodsToShow({ periodName, fromDate }: { periodName: PeriodsNamesExeptAll; fromDate: DateValueOf }) {+function getMaxPeriodsToShow({ periodName, fromDate }: { periodName: PeriodsNamesExceptAll; fromDate: DateValueOf }) {return dayjs().endOf(periodName).diff(fromDate, periodName) + 1}@@ -42,18 +42,18 @@ const oldestTrnDate = getOldestTrnDate(trnsItems.value)/*** Config*/-const activePeriod: Ref<PeriodsNamesExeptAll> = ref('month')+const activePeriod: Ref<PeriodsNamesExceptAll> = ref('month')/*** Periods*/-const periods: PeriodsNamesExeptAll[] = ['day', 'week', 'month', 'year']+const periods: PeriodsNamesExceptAll[] = ['day', 'week', 'month', 'year']const maxPeriodsNumber = computed(() => getMaxPeriodsToShow({ periodName: activePeriod.value, fromDate: oldestTrnDate }))/*** Get Period date from until*/-function getPeriodDates({ date, period }: { date: DateValueOf; period: PeriodsNamesExeptAll }) {+function getPeriodDates({ date, period }: { date: DateValueOf; period: PeriodsNamesExceptAll }) {return {from: dayjs(date).startOf(period).valueOf(),until: dayjs(date).endOf(period).valueOf(),@@ -70,7 +70,7 @@ function getLastDateOrToday({ date }: { date: DateValueOf }) {function getPeriodsDates({ fromDate, periodName, periodsCount }: {fromDate: DateValueOf- periodName: PeriodsNamesExeptAll+ periodName: PeriodsNamesExceptAllperiodsCount: number}) {const periods = []