Open source personal finance application
update 3.3.9
ilkome7a8a89c775d0
diff --git a/components/categories/item/CategoryItem.vue b/components/categories/item/CategoryItem.vueindex cdeec654..26a241ee 100644--- a/components/categories/item/CategoryItem.vue+++ b/components/categories/item/CategoryItem.vue@@ -63,9 +63,9 @@ export default {</template><style lang="stylus" scoped>-@import "~assets/stylus/variables/margins"-@import "~assets/stylus/variables/media"-@import "~assets/stylus/variables/fonts"+@import '~assets/stylus/variables/margins'+@import '~assets/stylus/variables/media'+@import '~assets/stylus/variables/fonts'.categoryItemoverflow hidden@@ -77,8 +77,7 @@ export default {justify-content centerpadding $m6color var(--c-font-1)- background var(--c-bg-3)- border 1px solid var(--c-bg-5)+ background var(--c-bg-5)border-radius $m5&._flatdiff --git a/components/filter/FilterItem.vue b/components/filter/FilterItem.vueindex c1a42288..1d23504d 100644--- a/components/filter/FilterItem.vue+++ b/components/filter/FilterItem.vue@@ -76,11 +76,10 @@ export default {display flexflex-flow columnjustify-content center- padding-bottom $m3&__amountpadding-top $m3- padding-bottom $m3+ padding-bottom $m5&__lineposition absolutediff --git a/components/layout/LayoutMobile.vue b/components/layout/LayoutMobile.vueindex 80504bb5..5e6d46a9 100644--- a/components/layout/LayoutMobile.vue+++ b/components/layout/LayoutMobile.vue@@ -289,7 +289,7 @@ export default {:isShowExpenses="activeTabViewName === 'expenses' || activeTabViewName === 'chart'":key="activeTabViewName + period + filterPeriod + $store.state.chart.periods[filterPeriod].showedPeriods + this.$store.state.filter.categoryId + this.$store.state.filter.walletId")- ChartMenu2+ //- ChartMenu2//- History//-----------------------------@@ -305,7 +305,7 @@ export default {v-if="filterPeriod !== 'all'"v-show="activeTabViewName !== 'history'")- ChartMenu2+ //- ChartMenu2StatChartDonut2(v-if="filterPeriod !== 'all'":isShowIncomes="activeTabViewName === 'incomes' || activeTabViewName === 'chart'"@@ -319,13 +319,9 @@ export default {.boxFlew2ItemPeriodCatsChart2(type="expenses")- .box._line(- v-if="statCurrentPeriod.expenses.categoriesIds.length > 1 && !this.$store.state.filter.categoryId"- )-//- Period Selector//---------------------------- .box__nav._noMargin+ .box__nav.menuDots(@click="isShowPeriodsNames = true").menuDots__name: Date(:type="2").menuDots__dots: .mdi.mdi-dots-vertical@@ -443,7 +439,7 @@ export default {.page__wrap//- Color Line Chart//---------------------------- .box._line(+ .statLine(v-if="statCurrentPeriod[activeTabStat].categoriesIds.length > 1 && !this.$store.state.filter.categoryId")PeriodCatsChart2(:type="activeTabStat")@@ -626,23 +622,26 @@ export default {width $m7height 100%-.finapp .page__header- .filterRow- padding $m6+// .finapp .page__header+// .filterRow+// padding $m6- .filterItem- padding $m6 $m5+// .filterItem+// padding $m6 $m5++// .trnItem._history+// margin-right (- $m6)+// margin-left (- $m6)+// padding-right $m7+// padding-left $m7++// .finapp .page__content .dropdown._noBd+// margin 0 $m2 !important+// border-radius $m6.finapp .page__content .trnsList- .trnItem._history- margin-right (- $m6)- margin-left (- $m6)- padding-right $m7- padding-left $m7--.finapp .page__content .dropdown._noBd- margin 0 $m2 !important- border-radius $m6+ .trnsList__header+ top 60px</style><style lang="stylus" scoped>@@ -660,6 +659,9 @@ export default {color var(--c-font-2)font-size 16px+.statLine+ padding 0 $m7+.boxFlew2display gridgrid-template-columns 1fr 1fr@@ -847,9 +849,6 @@ $border = 1px~/._header &font-weight 500- &:last-child- // padding-bottom 0-.box2position relativemargin $m7@@ -871,9 +870,6 @@ $border = 1px&._disableopacity .2- &._last- //-.activrPeriodNamefont-size 14px@@ -929,7 +925,6 @@ $border = 1px&__title&__title2display flex- // display nonealign-items centerpadding-top $m5padding-bottom $m8@@ -958,7 +953,8 @@ $border = 1pxdisplay flexjustify-content centerheight 38px- margin-bottom $m3+ margin-top $m4+ margin-bottom $m4background var(--c-bg-4)&._noMargindiff --git a/components/layout/LayoutPc.vue b/components/layout/LayoutPc.vueindex c4d1efbd..ef87b351 100644--- a/components/layout/LayoutPc.vue+++ b/components/layout/LayoutPc.vue@@ -147,7 +147,6 @@ export default {margin-left (- $m8).dashboardItems .categoryItem-.dashboardItems .walletItemTilepadding $m8</style>diff --git a/components/stat/StatItem.vue b/components/stat/StatItem.vueindex e8615c2a..d3167ddc 100644--- a/components/stat/StatItem.vue+++ b/components/stat/StatItem.vue@@ -99,7 +99,6 @@ export default {template(v-else).statItem__trnsTrnsList(- ui="stat":incomes="type === 1":expenses="type === 0":categoryId="categoryId"diff --git a/components/stat/StatItemChildCatsItem.vue b/components/stat/StatItemChildCatsItem.vueindex 019aa384..777fbbf4 100644--- a/components/stat/StatItemChildCatsItem.vue+++ b/components/stat/StatItemChildCatsItem.vue@@ -107,7 +107,10 @@ export default {padding $m6 $m6&__trns- padding 0 $m6 0 $m7+ padding 0++ @media $media-laptop+ padding 0 $m6 0 $m7&__graphoverflow hiddendiff --git a/components/stat/StatItemMobile.vue b/components/stat/StatItemMobile.vueindex 26a1b8a6..91cfd7dd 100644--- a/components/stat/StatItemMobile.vue+++ b/components/stat/StatItemMobile.vue@@ -156,7 +156,6 @@ export default {:incomes="type === 1":showCategory="showChildCategories":size="5"- ui="stat")</template>diff --git a/components/stat/StatItemMobileExtra.vue b/components/stat/StatItemMobileExtra.vueindex 04bfdd0b..efdbfd47 100644--- a/components/stat/StatItemMobileExtra.vue+++ b/components/stat/StatItemMobileExtra.vue@@ -169,7 +169,6 @@ export default {template(v-else)TrnsList(- ui="stat":incomes="type === 1":expenses="type === 0":categoryId="categoryId"diff --git a/components/stat/chart/ChartMenu2.vue b/components/stat/chart/ChartMenu2.vueindex 75bd6dcd..9b8ca06b 100644--- a/components/stat/chart/ChartMenu2.vue+++ b/components/stat/chart/ChartMenu2.vue@@ -113,7 +113,7 @@ export default {@import '~assets/stylus/variables'.chartMenu- z-index 11+ z-index 8position absoluteright 0bottom 8pxdiff --git a/components/trnForm/TrnFormTrns.vue b/components/trnForm/TrnFormTrns.vueindex 5ae7a271..fb3c2fca 100644--- a/components/trnForm/TrnFormTrns.vue+++ b/components/trnForm/TrnFormTrns.vue@@ -38,9 +38,10 @@ export default {data () {return {+ editedTrnId: null,pageNumber: 1,sortByEditDate: false,- filterBy: 'walletAndCategory'+ filterBy: 'wallet'}},@@ -126,7 +127,8 @@ export default {}, 100)},- onClickValue (slide) {+ onClickEditTrn (id) {+ this.editedTrnId = idthis.slider.slideTo(0)}}@@ -136,15 +138,10 @@ export default {<template lang="pug">.trnsList.switcherList- //- .switcher- //- .switcher__content- //- .switcher__item._icon(@click="changeFilter('walletAndCategory')" :class="{ _active: filterBy === 'walletAndCategory' }"): .mdi.mdi-history- //- .switcher__item._icon(@click="changeFilter('wallet')" :class="{ _active: filterBy === 'wallet' }"): .mdi.mdi-poll-.switcher.switcher__content- .switcher__item._text(@click="changeFilter('walletAndCategory')" :class="{ _active: filterBy === 'walletAndCategory' }") {{ $t('trnForm.filterWalletAndCategory') }}.switcher__item._text(@click="changeFilter('wallet')" :class="{ _active: filterBy === 'wallet' }") {{ $t('trnForm.filterWallet') }}+ .switcher__item._text(@click="changeFilter('walletAndCategory')" :class="{ _active: filterBy === 'walletAndCategory' }") {{ $t('trnForm.filterWalletAndCategory') }}.switcher__item._text(@click="changeFilter('all')" :class="{ _active: filterBy === 'all' }") {{ $t('trnForm.filterAll') }}.container(v-if="trnsIds.length === 0") No transactions@@ -156,11 +153,13 @@ export default {.trnsList__trnsTrnItem(v-for="trnId in trnsIds"+ :isActive="$store.state.trnForm.values.trnId && editedTrnId === trnId":category="$store.state.categories.items[$store.state.trns.items[trnId].categoryId]":key="trnId":trn="$store.state.trns.items[trnId]":trnId="trnId":wallet="$store.state.wallets.items[$store.state.trns.items[trnId].walletId]"+ @onClickEdit="onClickEditTrn").trnsList__pages(v-if="!isShowedAllTrns")@@ -172,7 +171,7 @@ export default {</template><style lang="stylus" scoped>-@import "~assets/stylus/variables"+@import '~assets/stylus/variables'.containerdisplay flex@@ -192,10 +191,13 @@ export default {align-items centerjustify-content centermargin $m7+ margin-bottom (- $m5)border-radius 12px.switcherposition relative+ position sticky+ top 0&__contentdisplay flex@@ -244,8 +246,6 @@ export default {grid-template-columns 1frgrid-column-gap 8pxgrid-row-gap 8px- padding 8px- padding-bottom 0&__dayoverflow hidden@@ -278,7 +278,7 @@ export default {padding 0padding-bottom $m8- +media-laptop("less")+ +media-laptop('less')padding $m7padding-bottom $m6</style>diff --git a/components/trns/item/TrnItem.vue b/components/trns/item/TrnItem.vueindex d871eaf8..785bdbf2 100644--- a/components/trns/item/TrnItem.vue+++ b/components/trns/item/TrnItem.vue@@ -28,12 +28,18 @@ export default {showCategory: {type: Boolean,default: false+ },++ isActive: {+ type: Boolean,+ default: false}},computed: {className () {return {+ _active: this.isActive,_detailed: this.ui === 'detailed',_history: this.ui === 'history' || (this.ui === 'stat' && this.showCategory),_stat: this.ui === 'stat'@@ -76,6 +82,7 @@ export default {const trnId = this.trnIdthis.$store.dispatch('trnForm/openTrnForm', { action: 'edit', trnId })this.$store.commit('stat/setCategoryModal', { id: null, type: null })+ this.$emit('onClickEdit', this.trnId)}}}@@ -84,8 +91,8 @@ export default {<template lang="pug">.trnItem(v-if="(category && wallet) || trn.type === 2"- @click="handleClick":class="className"+ @click="handleClick")//- Transfer//---------------------------------------------------------------------------@@ -289,16 +296,13 @@ export default {padding-right 0border-bottom $m2- &:active+ +media-hover(true)&._history&._statbackground var(--c-bg-5)- &:hover- &._history- &._stat- @media $media-laptop- background var(--c-bg-5)+ &._active+ background var(--c-bg-1)&__amountalign-self center@@ -398,7 +402,10 @@ export default {grid-template-columns minmax(10px, max-content) 1fr minmax(10px, max-content)grid-column-gap $m7margin-top -1px- padding $m6 $m7+ padding $m6 0++ @media $media-laptop+ padding $m6 $m7&:first-childmargin-top 0diff --git a/components/trns/list/TrnsList3.vue b/components/trns/list/TrnsList3.vueindex 0539710b..375630e6 100644--- a/components/trns/list/TrnsList3.vue+++ b/components/trns/list/TrnsList3.vue@@ -163,7 +163,6 @@ export default {&__daypadding $m7 0- // border-bottom 1px solid var(--c-bg-5)&:first-childpadding-top 0@@ -173,14 +172,14 @@ export default {border-bottom 0&__header- z-index 2+ z-index 9opacity .95position stickytop 37pxdisplay flexalign-items centerjustify-content space-between- padding $m3 $m3+ padding $m3 0background var(--c-bg-4)&__pagesdiff --git a/components/wallets/item/WalletItem2.vue b/components/wallets/item/WalletItem2.vueindex 139e2b01..1c83667b 100644--- a/components/wallets/item/WalletItem2.vue+++ b/components/wallets/item/WalletItem2.vue@@ -73,8 +73,7 @@ export default {cursor pointerpadding 14px $m7padding-top 0- background var(--c-bg-3)- border 1px solid var(--c-bg-6)+ background var(--c-bg-6)border-top 0border-radius $m5diff --git a/components/wallets/item/walletItem.styl b/components/wallets/item/walletItem.stylindex 3a1820f3..505de775 100644--- a/components/wallets/item/walletItem.styl+++ b/components/wallets/item/walletItem.styl@@ -1,8 +1,8 @@.walletItemposition relative+ margin-top -1pxpadding 0 $m7padding-top $m6- margin-top -1px@media $media-laptoppadding 0 $m8@@ -114,14 +114,14 @@min-height 66px&__name- min-height 16pxoverflow hidden+ min-height 16pxpadding-bottom $m5fs-m().amount- color var(--c-font-1)opacity .8+ color var(--c-font-1).amount__wrap._smalldisplay nonediff --git a/finapp.code-workspace b/finapp.code-workspaceindex 2850d7fb..523d4fee 100644--- a/finapp.code-workspace+++ b/finapp.code-workspace@@ -1,5 +1,9 @@{"folders": [+ {+ "name": "finapp",+ "path": "."+ },{"name": "components","path": "components"@@ -19,10 +23,6 @@{"name": "assets","path": "assets"- },- {- "name": "finapp",- "path": "."}],"settings": {diff --git a/locales/en-US.js b/locales/en-US.jsindex 52c9cd4a..742559a1 100644--- a/locales/en-US.js+++ b/locales/en-US.js@@ -44,7 +44,7 @@ export default {app: {update: {title: 'New version available',- text: 'Reload the app. Sometimes you need to reload few times. Don\'t worry you can still use the App'+ text: 'Reload the app. Sometimes you need to reload few times.'},version: 'Version',desc: 'Powerful personal finance application',diff --git a/locales/ru-RU.js b/locales/ru-RU.jsindex ac48c070..e8f3925c 100644--- a/locales/ru-RU.js+++ b/locales/ru-RU.js@@ -45,7 +45,7 @@ export default {app: {update: {title: 'Доступа новая версия',- text: 'Перезагрузи приложение. Иногда требуется несколько перезагрузок. Не волнуйся ты все равно можно использовать приложение.'+ text: 'Перезагрузи приложение. Иногда требуется несколько перезагрузок.'},version: 'Версия',desc: 'Приложение для учета личных финансов',diff --git a/package.json b/package.jsonindex 619e4f66..33f7fa20 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "finapp",- "version": "3.3.7",+ "version": "3.3.9","scripts": {"dev": "cross-env NUXT_HOST=0.0.0.0 nuxt","build": "nuxt build",