Open source personal finance application
feat: refine trnForm selectors, stats placeholder, glass styling
Ilya Komichev0c9d2ec76186
diff --git a/app/assets/css/utility.css b/app/assets/css/utility.cssindex 9f562e1a..27b19404 100644--- a/app/assets/css/utility.css+++ b/app/assets/css/utility.css@@ -1,5 +1,5 @@@utility interactive {- @apply select-none hover:bg-elevated;+ @apply select-none hover:bg-item-6/50 dark:hover:bg-item-7/10;}@utility flex-center {diff --git a/app/components/categories/CommandPalette.vue b/app/components/categories/CommandPalette.vueindex 4f51d8a9..a15ee20a 100644--- a/app/components/categories/CommandPalette.vue+++ b/app/components/categories/CommandPalette.vue@@ -1,11 +1,14 @@<script setup lang="ts">import type { CommandPaletteItem } from '@nuxt/ui'+import { useStorage } from '@vueuse/core'+import type { CategoryId, CategoryItemWithId } from '~/components/categories/types'import { useCategoriesStore } from '~/components/categories/useCategoriesStore'type CategoryCommandPaletteItem = CommandPaletteItem & CategoryItemWithId+type CategoryFilter = 'all' | 'favorites'const props = defineProps<{activeItemId?: CategoryId@@ -19,7 +22,34 @@ const emit = defineEmits<{const { t } = useI18n()const categoriesStore = useCategoriesStore()-const cats = computed(() => {+const filter = useStorage<CategoryFilter>('finapp-categories-selector-filter', 'all')++const hasFavorites = computed(() => categoriesStore.favoriteCategoriesIds.length > 0)+const hasRecent = computed(() => categoriesStore.recentCategoriesIds.length > 0)+const isShowTabs = computed(() => hasFavorites.value || hasRecent.value)++watch(isShowTabs, (show) => {+ if (!show && filter.value !== 'all')+ filter.value = 'all'+}, { immediate: true })++watch([hasFavorites, hasRecent], () => {+ if (filter.value === 'favorites' && !hasFavorites.value && !hasRecent.value)+ filter.value = 'all'+}, { immediate: true })++function buildCategoryItem(id: CategoryId) {+ const category = categoriesStore.items[id]!+ const parentId = category.parentId+ const parent = parentId ? categoriesStore.items[parentId] : null+ return {+ id,+ ...category,+ suffix: parent?.name ?? category.name,+ }+}++const allCats = computed(() => {const adjustmentCategory = categoriesStore.items.adjustment!const adjustmentGroup = {...adjustmentCategory,@@ -34,7 +64,6 @@ const cats = computed(() => {const rootGroups = categoriesStore.categoriesRootIds.map((id) => {const category = categoriesStore.items[id]!-const children = categoriesStore.getChildrenIds(id)const items = children.length? children.map(childId => ({@@ -64,30 +93,82 @@ function onSelect(item: CategoryCommandPaletteItem) {if (props.hide)props.hide()}++function selectId(id: CategoryId) {+ emit('selected', id)+ if (props.hide)+ props.hide()+}</script><template>- <!-- @vue-ignore -->- <UCommandPalette- :placeholder="t('categories.search.placeholder')"- :groups="cats"- labelKey="name"- @update:modelValue="onSelect"- >- <template #category="{ item: rawItem }">- <div- class="flex w-full items-center gap-3"- :class="{ 'text-primary': (rawItem as CategoryCommandPaletteItem).id === props.activeItemId }"- >- <UiIconBase- :color="(rawItem as CategoryCommandPaletteItem).color"- :name="(rawItem as CategoryCommandPaletteItem).icon"- invert- />- <CategoriesName- :category="(rawItem as CategoryCommandPaletteItem)"+ <div class="relative flex h-full min-h-0 flex-col overflow-hidden">+ <!-- @vue-ignore -->+ <UCommandPalette+ v-if="filter === 'all'"+ :placeholder="t('categories.search.placeholder')"+ :groups="allCats"+ labelKey="name"+ :ui="{ root: '-mt-3 h-full', viewport: isShowTabs ? 'pb-16' : '' }"+ @update:modelValue="onSelect"+ >+ <template #category="{ item: rawItem }">+ <div+ class="flex w-full items-center gap-3"+ :class="{ 'text-primary': (rawItem as CategoryCommandPaletteItem).id === props.activeItemId }"+ >+ <UiIconBase+ :color="(rawItem as CategoryCommandPaletteItem).color"+ :name="(rawItem as CategoryCommandPaletteItem).icon"+ invert+ />+ <CategoriesName+ :category="(rawItem as CategoryCommandPaletteItem)"+ />+ </div>+ </template>+ </UCommandPalette>++ <div+ v-else+ class="scrollerBlock grid h-full content-start gap-4 overflow-y-auto pt-px pb-16"+ >+ <CategoriesSelectorGrid+ v-if="hasFavorites"+ :activeItemId="props.activeItemId"+ :ids="categoriesStore.favoriteCategoriesIds"+ @selected="selectId"+ />+ <div v-if="hasRecent">+ <div class="bg-default/20 font-tertiary sticky top-0 z-20 pt-5 pb-4 text-lg leading-none font-semibold backdrop-blur-xl dark:bg-neutral-800/50">+ {{ t('categories.recentCategories') }}+ </div>+ <CategoriesSelectorGrid+ :activeItemId="props.activeItemId"+ :ids="categoriesStore.recentCategoriesIds"+ class="pt-px"+ @selected="selectId"/></div>+ </div>++ <template v-if="isShowTabs">+ <div+ class="pointer-events-none absolute bottom-0 left-0 z-10 h-12 w-full"+ style="background: linear-gradient(to bottom, transparent, var(--ui-bg))"+ />+ <div class="pointer-events-none absolute bottom-2 left-0 z-20 w-full px-2">+ <div class="border-default/80 bg-default/20 pointer-events-auto rounded-2xl border p-1 shadow-lg backdrop-blur-xl dark:bg-neutral-800/50">+ <UiTabsScroll class="flex gap-1">+ <UiTabsItemFill :isActive="filter === 'all'" @click="filter = 'all'">+ {{ t('common.all') }}+ </UiTabsItemFill>+ <UiTabsItemFill :isActive="filter === 'favorites'" @click="filter = 'favorites'">+ {{ t('categories.favorite') }}+ </UiTabsItemFill>+ </UiTabsScroll>+ </div>+ </div></template>- </UCommandPalette>+ </div></template>diff --git a/app/components/categories/SelectorGrid.vue b/app/components/categories/SelectorGrid.vueindex 896426ab..872f04e9 100644--- a/app/components/categories/SelectorGrid.vue+++ b/app/components/categories/SelectorGrid.vue@@ -24,7 +24,7 @@ function select(id: CategoryId) {</script><template>- <div class="3sm:grid-cols-2 grid gap-1 px-3 pt-1">+ <div class="3sm:grid-cols-2 grid gap-1"><CategoriesItemv-for="categoryId in props.ids":key="categoryId"diff --git a/app/components/layout/MenuBottom.vue b/app/components/layout/MenuBottom.vueindex e3e59892..0fece8f5 100644--- a/app/components/layout/MenuBottom.vue+++ b/app/components/layout/MenuBottom.vue@@ -18,7 +18,7 @@ const isShowMenuLabels = useStorage('finapp.isShowMenuLabels', true):style="{ paddingBottom: `max(8px, calc(env(safe-area-inset-bottom) - 12px))` }"><div- class="border-default/80 bg-default/10 mx-auto flex max-w-sm items-stretch rounded-2xl border shadow-lg backdrop-blur-xl dark:bg-neutral-800/50"+ class="border-default/80 bg-default/20 mx-auto flex max-w-sm items-stretch rounded-2xl border shadow-lg backdrop-blur-xl dark:bg-neutral-800/50"><divv-for="(item, menuId) in itemsBottom"diff --git a/app/components/stat/Item.vue b/app/components/stat/Item.vueindex 15d9d143..f8499fd6 100644--- a/app/components/stat/Item.vue+++ b/app/components/stat/Item.vue@@ -110,6 +110,7 @@ function onClickSumItemWrap(type: SeriesSlugSelected) {<div class="@container/stat"><StatChartWrapv-if="shouldShowAmounts"+ :isEmpty="selectedTrnsIds.length === 0":series="chartSeries":xAxisLabels="chartXAxisLabels"class="pb-3"diff --git a/app/components/stat/chart/Wrap.vue b/app/components/stat/chart/Wrap.vueindex 69fec2c2..c85b3632 100644--- a/app/components/stat/chart/Wrap.vue+++ b/app/components/stat/chart/Wrap.vue@@ -6,10 +6,12 @@ import { statConfigKey, statDateKey } from '~/components/stat/injectionKeys'import { useTrnsFormStore } from '~/components/trnForm/useTrnsFormStore'defineProps<{+ isEmpty?: booleanseries: ChartSeries[]xAxisLabels: number[]}>()+const { t } = useI18n()const statDate = inject(statDateKey)!const statConfig = inject(statConfigKey)!const trnsFormStore = useTrnsFormStore()@@ -50,12 +52,22 @@ function onChangePeriod(period: Period) {</div></div>- <LazyStatChartView- :chartType- :period="statDate.params.value.intervalsBy"- :series- :xAxisLabels- @click="onClickChart"- />+ <div class="relative">+ <LazyStatChartView+ v-show="!isEmpty"+ :chartType+ :period="statDate.params.value.intervalsBy"+ :series+ :xAxisLabels+ @click="onClickChart"+ />++ <div+ v-if="isEmpty"+ class="text-muted grid h-40 place-items-center text-sm @3xl/stat:h-52"+ >+ {{ t('stat.noDataForPeriod') }}+ </div>+ </div></div></template>diff --git a/app/components/trnForm/Main.vue b/app/components/trnForm/Main.vueindex bce53a37..ec966c7e 100644--- a/app/components/trnForm/Main.vue+++ b/app/components/trnForm/Main.vue@@ -21,57 +21,59 @@ const walletId = computed(() =></script><template>- <div class="grid gap-3 px-3 pb-6">+ <div class="grid gap-3 pb-6"><UiTitleModal @click="trnsFormStore.values.trnId = null">{{ trnsFormStore.values.trnId ? t('trnForm.titleEditTrn') : t('trnForm.createTrn') }}</UiTitleModal>- <TrnFormEditedTrn v-if="trnsFormStore.values.trnId" />+ <div class="grid gap-3 px-3">+ <TrnFormEditedTrn v-if="trnsFormStore.values.trnId" />- <div class="flex items-center gap-1">- <TrnFormDate />- <TrnFormMainDescription />- </div>+ <div class="flex items-center gap-1">+ <TrnFormDate />+ <TrnFormMainDescription />+ </div>- <TrnFormMainTypes />-- <TrnFormMainInput- v-if="trnsFormStore.values.trnType !== TrnType.Transfer"- :amount="trnsFormStore.values.amount[trnsFormStore.activeAmountIdx]"- :amountRaw="trnsFormStore.values.amountRaw[trnsFormStore.activeAmountIdx]"- :highlight="trnsFormStore.values.trnType === TrnType.Expense ? 'expense' : 'income'"- :isShowSum="trnsFormStore.shouldShowSum()"- @change="trnsFormStore.onChangeAmount"- />-- <!-- Selected -->- <div- v-if="trnsFormStore.values.trnType !== TrnType.Transfer"- class="grid grid-cols-2 gap-2"- >- <TrnFormSelectorWallet- v-if="walletId"- :bottomSheetStyle="{ maxHeight }"- :title="t('trnForm.wallet.select')"- :walletId="walletId"- @selected="(id: WalletId) => trnsFormStore.values.walletId = id"+ <TrnFormMainTypes />++ <TrnFormMainInput+ v-if="trnsFormStore.values.trnType !== TrnType.Transfer"+ :amount="trnsFormStore.values.amount[trnsFormStore.activeAmountIdx]"+ :amountRaw="trnsFormStore.values.amountRaw[trnsFormStore.activeAmountIdx]"+ :highlight="trnsFormStore.values.trnType === TrnType.Expense ? 'expense' : 'income'"+ :isShowSum="trnsFormStore.shouldShowSum()"+ @change="trnsFormStore.onChangeAmount"/>- <TrnFormSelectorCategory- v-if="trnsFormStore.values.categoryId || categoriesStore.categoriesIdsForTrnValues[0]"+ <!-- Selected -->+ <div+ v-if="trnsFormStore.values.trnType !== TrnType.Transfer"+ class="grid grid-cols-2 gap-2"+ >+ <TrnFormSelectorWallet+ v-if="walletId"+ :bottomSheetStyle="{ maxHeight }"+ :title="t('trnForm.wallet.select')"+ :walletId="walletId"+ @selected="(id: WalletId) => trnsFormStore.values.walletId = id"+ />++ <TrnFormSelectorCategory+ v-if="trnsFormStore.values.categoryId || categoriesStore.categoriesIdsForTrnValues[0]"+ :bottomSheetStyle="{ maxHeight }"+ :category="categoriesStore.items[(trnsFormStore.values.categoryId ?? categoriesStore.categoriesIdsForTrnValues[0])!]!"+ :categoryId="(trnsFormStore.values.categoryId ?? categoriesStore.categoriesIdsForTrnValues[0])!"+ @selected="(id: CategoryId) => trnsFormStore.values.categoryId = id"+ />+ </div>++ <TrnFormMainAmountTransfer+ v-if="trnsFormStore.values.trnType === TrnType.Transfer":bottomSheetStyle="{ maxHeight }"- :category="categoriesStore.items[(trnsFormStore.values.categoryId ?? categoriesStore.categoriesIdsForTrnValues[0])!]!"- :categoryId="(trnsFormStore.values.categoryId ?? categoriesStore.categoriesIdsForTrnValues[0])!"- @selected="(id: CategoryId) => trnsFormStore.values.categoryId = id"/>- </div>-- <TrnFormMainAmountTransfer- v-if="trnsFormStore.values.trnType === TrnType.Transfer"- :bottomSheetStyle="{ maxHeight }"- />- <TrnFormMainCalculator />+ <TrnFormMainCalculator />+ </div></div></template>diff --git a/app/components/trnForm/SelectionCategoriesFast.vue b/app/components/trnForm/SelectionCategoriesFast.vueindex 89be8968..b70e3a6f 100644--- a/app/components/trnForm/SelectionCategoriesFast.vue+++ b/app/components/trnForm/SelectionCategoriesFast.vue@@ -34,6 +34,7 @@ const isShowAllCategoriesFallback = computed(() =>:ids="categoriesStore.favoriteCategoriesIds"+ class="px-3 pt-1"@selected="id => emit('selectCategory', id)"/></div>@@ -49,6 +50,7 @@ const isShowAllCategoriesFallback = computed(() =>:ids="categoriesStore.recentCategoriesIds"+ class="px-3 pt-1"@selected="id => emit('selectCategory', id)"/></div>@@ -60,6 +62,7 @@ const isShowAllCategoriesFallback = computed(() =>:ids="categoriesStore.categoriesIdsForTrnValues"+ class="px-3 pt-1"@selected="id => emit('selectCategory', id)"/></div>diff --git a/app/components/trnForm/SelectorCategory.vue b/app/components/trnForm/SelectorCategory.vueindex 3451527c..4c640f1b 100644--- a/app/components/trnForm/SelectorCategory.vue+++ b/app/components/trnForm/SelectorCategory.vue@@ -39,7 +39,7 @@ const isShow = ref(false)<CategoriesCommandPalette:hide="close":activeItemId="props.categoryId"- class="bottomSheetContentInside -mt-2 min-w-72"+ class="min-w-80 px-3"@selected="(id: CategoryId) => { emit('selected', id); close() }"/></template>diff --git a/app/components/trnForm/SelectorWallet.vue b/app/components/trnForm/SelectorWallet.vueindex 02773310..cdd16ab5 100644--- a/app/components/trnForm/SelectorWallet.vue+++ b/app/components/trnForm/SelectorWallet.vue@@ -45,7 +45,7 @@ const isShow = ref(false):hide="close":activeItemId="props.walletId":disabledIds="props.disabledWalletIds"- class="min-w-80 px-2"+ class="min-w-80 px-3"@selected="(id: WalletId) => emit('selected', id)"/></template>diff --git a/app/components/trns/List.vue b/app/components/trns/List.vueindex 58ce9bb6..6c6c3598 100644--- a/app/components/trns/List.vue+++ b/app/components/trns/List.vue@@ -58,7 +58,7 @@ type TypeFilter = {type: TrnType | undefined}-const typeFilters = computed(() => {+const typeCounts = computed(() => {const counts = { adjustment: 0, expense: 0, income: 0, transfer: 0 }for (const id of trnsIds) {const trn = trnsStore.items?.[id]@@ -75,17 +75,34 @@ const typeFilters = computed(() => {else if (trn.type === TrnType.Transfer)counts.transfer++}+ return counts+})++const realTypesCount = computed(() => {+ const c = typeCounts.value+ return (c.expense > 0 ? 1 : 0) + (c.income > 0 ? 1 : 0) + (c.transfer > 0 ? 1 : 0) + (c.adjustment > 0 ? 1 : 0)+})+const typeFilters = computed(() => {+ const counts = typeCounts.valueconst filters: TypeFilter[] = [{ count: trnsIds.length, isShow: true, name: t('common.all'), slug: 'all', type: undefined },- { count: counts.expense, isShow: !!isShowExpense, name: t('money.expense'), slug: 'expense', type: TrnType.Expense },- { count: counts.income, isShow: !!isShowIncome, name: t('money.income'), slug: 'income', type: TrnType.Income },- { count: counts.transfer, isShow: !!isShowTransfers, name: t('transfer.titleMoney'), slug: 'transfer', type: TrnType.Transfer },+ { count: counts.expense, isShow: !!isShowExpense && counts.expense > 0, name: t('money.expense'), slug: 'expense', type: TrnType.Expense },+ { count: counts.income, isShow: !!isShowIncome && counts.income > 0, name: t('money.income'), slug: 'income', type: TrnType.Income },+ { count: counts.transfer, isShow: !!isShowTransfers && counts.transfer > 0, name: t('transfer.titleMoney'), slug: 'transfer', type: TrnType.Transfer },{ count: counts.adjustment, isShow: counts.adjustment > 0, name: t('trnForm.adjustmentTitle'), slug: 'adjustment', type: undefined },]return filters.filter(item => item.isShow)})+watch(typeFilters, (tabs) => {+ if (filterBy.value === 'all')+ return+ const selected = tabs.find(t => t.slug === filterBy.value)+ if (!selected || selected.count === 0)+ filterBy.value = 'all'+})+const selectedTypeFilter = computed(() => {return typeFilters.value.find(item => item.slug === filterBy.value)})@@ -103,6 +120,7 @@ const filteredByTypeIds = computed(() => {})const isTrnsWithDesc = computed(() => filteredByTypeIds.value.some(id => trnsStore.items?.[id]?.desc))+const isAllTrnsWithDesc = computed(() => filteredByTypeIds.value.every(id => trnsStore.items?.[id]?.desc))const selectedIds = computed(() => {if (isShowWithDesc.value && isTrnsWithDesc.value)@@ -116,15 +134,7 @@ const paginatedTrnsIds = computed(() => selectedIds.value.slice(0, pageNumber.vaconst isShowedAllTrns = computed(() => paginatedTrnsIds.value.length === selectedIds.value.length)function setFilterBy(type: TrnsViewType | 'all') {- if (filterBy.value === type) {- filterBy.value = 'all'- return- }-- if (type !== 'all' && typeFilters.value.find(f => f.slug === type)?.count === 0)- return-- filterBy.value = type ?? 'all'+ filterBy.value = filterBy.value === type ? 'all' : (type ?? 'all')}const groupedTrns = computed(() => paginatedTrnsIds.value@@ -188,7 +198,7 @@ function onOpenTrnForm(date: number) {<!-- Filter by type --><UiTabsScroll- v-if="isShowFilterByType && typeFilters.length > 2"+ v-if="isShowFilterByType && realTypesCount > 1"class="mb-2"><UiTabsItemPill@@ -196,9 +206,6 @@ function onOpenTrnForm(date: number) {:key="filterItem.slug"variant="outline":isActive="filterBy === filterItem.slug"- :class="{- 'pointer-events-none opacity-50': filterItem.count === 0,- }"@click="setFilterBy(filterItem.slug)">{{ filterItem.name }}@@ -207,7 +214,7 @@ function onOpenTrnForm(date: number) {<!-- With Description --><div- v-if="isShowFilterByDesc && isTrnsWithDesc && selectedIds.length > 0"+ v-if="isShowFilterByDesc && isTrnsWithDesc && !isAllTrnsWithDesc && selectedIds.length > 0"class="relative"><UiSwitchItemdiff --git a/app/components/ui/TabsItemFill.vue b/app/components/ui/TabsItemFill.vueindex 8f60923e..028e5bf0 100644--- a/app/components/ui/TabsItemFill.vue+++ b/app/components/ui/TabsItemFill.vue@@ -9,8 +9,8 @@ const emit = defineEmits<{ click: [] }>()<template><div:class="cn(- 'flex flex-1 min-h-[32px] select-none items-center justify-center gap-1 text-nowrap rounded px-2 text-sm text-3 hover:bg-(--item-5)',- props.isActive && 'bg-item-4',+ 'flex flex-1 min-h-[32px] select-none items-center justify-center gap-1 text-nowrap rounded-xl px-2 text-sm',+ props.isActive ? 'bg-item-4 text-primary' : 'interactive text-muted',)"@click="emit('click')">diff --git a/app/components/ui/TitleModal.vue b/app/components/ui/TitleModal.vueindex 8f9c9ac7..662f3448 100644--- a/app/components/ui/TitleModal.vue+++ b/app/components/ui/TitleModal.vue@@ -6,7 +6,7 @@ const emit = defineEmits<{<template><div- class="bg-default font-tertiary sticky top-0 z-20 px-4 pt-5 pb-4 text-lg leading-none font-semibold"+ class="bg-default/20 font-tertiary sticky top-0 z-20 px-4 pt-5 pb-4 text-lg leading-none font-semibold backdrop-blur-xl dark:bg-neutral-800/50"@click="(e: Event) => emit('click', e)"><slot />diff --git a/app/components/wallets/Selector.vue b/app/components/wallets/Selector.vueindex 92bc6c03..1f863a1d 100644--- a/app/components/wallets/Selector.vue+++ b/app/components/wallets/Selector.vue@@ -39,22 +39,11 @@ function onClickWallet(walletId: WalletId) {</script><template>- <div- :class="cn('grid h-full gap-2 overflow-hidden',- walletsStore.currenciesUsed.length > 1 && 'grid-rows-[auto_1fr]',- )"- >+ <div class="relative grid h-full overflow-hidden"><div- v-if="walletsStore.currenciesUsed.length > 1"- class="grid md:max-w-xs"+ class="scrollerBlock h-full overflow-y-auto py-px"+ :class="{ 'pb-16': walletsStore.currenciesUsed.length > 1 }">- <WalletsCurrencies- :currencyFiltered- @selectFilterCurrency="code => currencyFiltered = code"- />- </div>-- <div class="scrollerBlock h-full overflow-y-auto py-px"><WalletsItemv-for="walletId in selectedWalletsIdsWithCurrency":key="walletId"@@ -68,5 +57,20 @@ function onClickWallet(walletId: WalletId) {@click="onClickWallet(walletId)"/></div>++ <template v-if="walletsStore.currenciesUsed.length > 1">+ <div+ class="pointer-events-none absolute bottom-0 left-0 z-10 h-12 w-full"+ style="background: linear-gradient(to bottom, transparent, var(--ui-bg))"+ />+ <div class="pointer-events-none absolute bottom-2 left-0 z-20 w-full px-2">+ <div class="border-default/80 bg-default/20 pointer-events-auto rounded-2xl border p-1 shadow-lg backdrop-blur-xl dark:bg-neutral-800/50">+ <WalletsCurrencies+ :currencyFiltered+ @selectFilterCurrency="code => currencyFiltered = code"+ />+ </div>+ </div>+ </template></div></template>diff --git a/i18n/locales/en-US.js b/i18n/locales/en-US.jsindex 10e520ee..d853eace 100644--- a/i18n/locales/en-US.js+++ b/i18n/locales/en-US.js@@ -61,6 +61,7 @@ export default {deleteFailed: 'Failed to delete category',saveFailed: 'Failed to save category',},+ favorite: 'Favorites',favoriteCategories: 'Favorite categories',filter: 'Filter categories',form: {@@ -96,6 +97,7 @@ export default {},name: 'Categories',new: 'New category',+ recent: 'Recent',recentCategories: 'Recent categories',search: {placeholder: 'Search categories...',@@ -279,6 +281,7 @@ export default {average: {forLast: 'for the last periods',},+ noDataForPeriod: 'No statistics for the selected period',catButtons: {isLines: 'Amount lines',isRoundIcon: 'Icons background',diff --git a/i18n/locales/ru-RU.js b/i18n/locales/ru-RU.jsindex b00c3abe..658ef544 100644--- a/i18n/locales/ru-RU.js+++ b/i18n/locales/ru-RU.js@@ -61,6 +61,7 @@ export default {deleteFailed: 'Не удалось удалить категорию',saveFailed: 'Не удалось сохранить категорию',},+ favorite: 'Избранное',favoriteCategories: 'Избранные категории',filter: 'Фильтр по категориям',form: {@@ -96,6 +97,7 @@ export default {},name: 'Категории',new: 'Новая категория',+ recent: 'Недавние',recentCategories: 'Недавние категории',search: {placeholder: 'Поиск категорий...',@@ -279,6 +281,7 @@ export default {average: {forLast: 'за прошлые периоды',},+ noDataForPeriod: 'Нет статистики за выбранный период',catButtons: {isLines: 'Линии сумм',isRoundIcon: 'Фон иконок',