Skip to content

Open source personal finance application

update 3.3.9

ilkome7a8a89c775d0
diff --git a/components/categories/item/CategoryItem.vue b/components/categories/item/CategoryItem.vue
index 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'
.categoryItem
overflow hidden
@@ -77,8 +77,7 @@ export default {
justify-content center
padding $m6
color var(--c-font-1)
- background var(--c-bg-3)
- border 1px solid var(--c-bg-5)
+ background var(--c-bg-5)
border-radius $m5
&._flat
diff --git a/components/filter/FilterItem.vue b/components/filter/FilterItem.vue
index c1a42288..1d23504d 100644
--- a/components/filter/FilterItem.vue
+++ b/components/filter/FilterItem.vue
@@ -76,11 +76,10 @@ export default {
display flex
flex-flow column
justify-content center
- padding-bottom $m3
&__amount
padding-top $m3
- padding-bottom $m3
+ padding-bottom $m5
&__line
position absolute
diff --git a/components/layout/LayoutMobile.vue b/components/layout/LayoutMobile.vue
index 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
+ //- ChartMenu2
StatChartDonut2(
v-if="filterPeriod !== 'all'"
:isShowIncomes="activeTabViewName === 'incomes' || activeTabViewName === 'chart'"
@@ -319,13 +319,9 @@ export default {
.boxFlew2Item
PeriodCatsChart2(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 $m7
height 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
+
.boxFlew2
display grid
grid-template-columns 1fr 1fr
@@ -847,9 +849,6 @@ $border = 1px
~/._header &
font-weight 500
- &:last-child
- // padding-bottom 0
-
.box2
position relative
margin $m7
@@ -871,9 +870,6 @@ $border = 1px
&._disable
opacity .2
- &._last
- //
-
.activrPeriodName
font-size 14px
@@ -929,7 +925,6 @@ $border = 1px
&__title
&__title2
display flex
- // display none
align-items center
padding-top $m5
padding-bottom $m8
@@ -958,7 +953,8 @@ $border = 1px
display flex
justify-content center
height 38px
- margin-bottom $m3
+ margin-top $m4
+ margin-bottom $m4
background var(--c-bg-4)
&._noMargin
diff --git a/components/layout/LayoutPc.vue b/components/layout/LayoutPc.vue
index 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 .walletItemTile
padding $m8
</style>
diff --git a/components/stat/StatItem.vue b/components/stat/StatItem.vue
index e8615c2a..d3167ddc 100644
--- a/components/stat/StatItem.vue
+++ b/components/stat/StatItem.vue
@@ -99,7 +99,6 @@ export default {
template(v-else)
.statItem__trns
TrnsList(
- ui="stat"
:incomes="type === 1"
:expenses="type === 0"
:categoryId="categoryId"
diff --git a/components/stat/StatItemChildCatsItem.vue b/components/stat/StatItemChildCatsItem.vue
index 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
&__graph
overflow hidden
diff --git a/components/stat/StatItemMobile.vue b/components/stat/StatItemMobile.vue
index 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.vue
index 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.vue
index 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 8
position absolute
right 0
bottom 8px
diff --git a/components/trnForm/TrnFormTrns.vue b/components/trnForm/TrnFormTrns.vue
index 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 = id
this.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__trns
TrnItem(
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'
.container
display flex
@@ -192,10 +191,13 @@ export default {
align-items center
justify-content center
margin $m7
+ margin-bottom (- $m5)
border-radius 12px
.switcher
position relative
+ position sticky
+ top 0
&__content
display flex
@@ -244,8 +246,6 @@ export default {
grid-template-columns 1fr
grid-column-gap 8px
grid-row-gap 8px
- padding 8px
- padding-bottom 0
&__day
overflow hidden
@@ -278,7 +278,7 @@ export default {
padding 0
padding-bottom $m8
- +media-laptop("less")
+ +media-laptop('less')
padding $m7
padding-bottom $m6
</style>
diff --git a/components/trns/item/TrnItem.vue b/components/trns/item/TrnItem.vue
index 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.trnId
this.$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 0
border-bottom $m2
- &:active
+ +media-hover(true)
&._history
&._stat
background var(--c-bg-5)
- &:hover
- &._history
- &._stat
- @media $media-laptop
- background var(--c-bg-5)
+ &._active
+ background var(--c-bg-1)
&__amount
align-self center
@@ -398,7 +402,10 @@ export default {
grid-template-columns minmax(10px, max-content) 1fr minmax(10px, max-content)
grid-column-gap $m7
margin-top -1px
- padding $m6 $m7
+ padding $m6 0
+
+ @media $media-laptop
+ padding $m6 $m7
&:first-child
margin-top 0
diff --git a/components/trns/list/TrnsList3.vue b/components/trns/list/TrnsList3.vue
index 0539710b..375630e6 100644
--- a/components/trns/list/TrnsList3.vue
+++ b/components/trns/list/TrnsList3.vue
@@ -163,7 +163,6 @@ export default {
&__day
padding $m7 0
- // border-bottom 1px solid var(--c-bg-5)
&:first-child
padding-top 0
@@ -173,14 +172,14 @@ export default {
border-bottom 0
&__header
- z-index 2
+ z-index 9
opacity .95
position sticky
top 37px
display flex
align-items center
justify-content space-between
- padding $m3 $m3
+ padding $m3 0
background var(--c-bg-4)
&__pages
diff --git a/components/wallets/item/WalletItem2.vue b/components/wallets/item/WalletItem2.vue
index 139e2b01..1c83667b 100644
--- a/components/wallets/item/WalletItem2.vue
+++ b/components/wallets/item/WalletItem2.vue
@@ -73,8 +73,7 @@ export default {
cursor pointer
padding 14px $m7
padding-top 0
- background var(--c-bg-3)
- border 1px solid var(--c-bg-6)
+ background var(--c-bg-6)
border-top 0
border-radius $m5
diff --git a/components/wallets/item/walletItem.styl b/components/wallets/item/walletItem.styl
index 3a1820f3..505de775 100644
--- a/components/wallets/item/walletItem.styl
+++ b/components/wallets/item/walletItem.styl
@@ -1,8 +1,8 @@
.walletItem
position relative
+ margin-top -1px
padding 0 $m7
padding-top $m6
- margin-top -1px
@media $media-laptop
padding 0 $m8
@@ -114,14 +114,14 @@
min-height 66px
&__name
- min-height 16px
overflow hidden
+ min-height 16px
padding-bottom $m5
fs-m()
.amount
- color var(--c-font-1)
opacity .8
+ color var(--c-font-1)
.amount__wrap._small
display none
diff --git a/finapp.code-workspace b/finapp.code-workspace
index 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.js
index 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.js
index 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.json
index 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",