Skip to content

Open source personal finance application

refactor v-on: to @

ilkome7224c0b1cf4a
diff --git a/components/budgets/BudgetForm.vue b/components/budgets/BudgetForm.vue
index 46421bc0..485a42be 100644
--- a/components/budgets/BudgetForm.vue
+++ b/components/budgets/BudgetForm.vue
@@ -110,7 +110,7 @@ export default {
TrnsList(v-slot="{ trns }")
TrnItem(
v-for="trnItem in trns"
- v-on:onClick="handleSelectTrn(trnItem.id)"
+ @onClick="handleSelectTrn(trnItem.id)"
:category="trnItem.category"
:className="{ _selected: isSelectedTrn(trnItem.id) }"
:id="trnItem.id"
@@ -121,7 +121,7 @@ export default {
Button(
className="_blue _inline _text-center"
:title="$lang.budgets.form.button"
- v-on:onClick="handleCreateBudget")
+ @onClick="handleCreateBudget")
</template>
<style lang="stylus" scoped>
diff --git a/components/categories/form/CategoryForm.vue b/components/categories/form/CategoryForm.vue
index 8bde89f3..e86a2179 100644
--- a/components/categories/form/CategoryForm.vue
+++ b/components/categories/form/CategoryForm.vue
@@ -244,7 +244,7 @@ ComponentWrap
:center="true"
:show="showColors"
:title="$lang.categories.form.color.placeholder"
- v-on:onClose="showColors = false")
+ @onClose="showColors = false")
.inputText
.inputText__colors
.colors
@@ -263,16 +263,16 @@ ComponentWrap
:center="true"
:show="showParents"
:title="$lang.categories.form.parent.label"
- v-on:onClose="showParents = false")
+ @onClose="showParents = false")
.padding-bottom
ModalButton(
:name="$lang.categories.form.parent.no"
icon="mdi mdi-folder-star"
- v-on:onClick="() => handleParenCategorySelect(0)")
+ @onClick="() => handleParenCategorySelect(0)")
CategoriesView(
:noPadding="true"
:ids="$store.getters['categories/categoriesForBeParent'].filter(cId => cId !== categoryId)"
- v-on:onClick="handleParenCategorySelect")
+ @onClick="handleParenCategorySelect")
//- icons
ModalBottom(
@@ -298,7 +298,7 @@ ComponentWrap
Button(
:class="['_text-center _blue _ml-big', { _inline: $store.state.ui.pc }]"
:title="$lang.categories.form.save"
- v-on:onClick="handleSubmit")
+ @onClick="handleSubmit")
</template>
<style lang="stylus" scoped>
diff --git a/components/categories/modal/CategoryModal.vue b/components/categories/modal/CategoryModal.vue
index ba27e670..8ca99af5 100644
--- a/components/categories/modal/CategoryModal.vue
+++ b/components/categories/modal/CategoryModal.vue
@@ -106,8 +106,8 @@ export default {
ModalBottom(
v-if="$store.state.categories.modal.id"
:show="$store.state.categories.modal.show"
- v-on:onClose="$store.commit('categories/hideCategoryModal')"
- v-on:afterClose="$store.commit('categories/setCategoryModalId', null)")
+ @onClose="$store.commit('categories/hideCategoryModal')"
+ @afterClose="$store.commit('categories/setCategoryModalId', null)")
template(slot="header")
.modalBottom__header__back: .mdi.mdi-chevron-left
.modalBottom__header__title {{ category.name }}
@@ -123,26 +123,26 @@ ModalBottom(
ModalButton(
:name="$lang.base.delete"
icon="mdi mdi-delete"
- v-on:onClick="handleDeleteClick")
+ @onClick="handleDeleteClick")
ModalButton(
:name="$lang.base.edit"
icon="mdi mdi-pencil"
- v-on:onClick="handleEditClick")
+ @onClick="handleEditClick")
ModalButton(
:name="$lang.base.filter"
icon="mdi mdi-filter-outline"
- v-on:onClick="handleSetFilterCategory")
+ @onClick="handleSetFilterCategory")
template(v-if="childCategoriesIds.length")
CategoriesView(
:borderTop="true"
:ids="childCategoriesIds"
:noPadding="true"
- v-on:onClick="id => $store.dispatch('categories/showCategoryModal', id)")
+ @onClick="id => $store.dispatch('categories/showCategoryModal', id)")
ModalBottomConfirm(
:show="showModalConfirm"
:description="deleteInfo"
- v-on:onClose="showModalConfirm = false"
- v-on:onConfirm="handleDeleteConfirm")
+ @onClose="showModalConfirm = false"
+ @onConfirm="handleDeleteConfirm")
</template>
diff --git a/components/currencies/CurrencyModal.vue b/components/currencies/CurrencyModal.vue
index 1d5cbc6a..03efdd58 100644
--- a/components/currencies/CurrencyModal.vue
+++ b/components/currencies/CurrencyModal.vue
@@ -20,7 +20,7 @@ export default {
:center="true"
:show="$store.state.currencies.modal.show"
title="Select base currency"
- v-on:onClose="$store.commit('currencies/hideBaseCurrenciesModal')")
+ @onClose="$store.commit('currencies/hideBaseCurrenciesModal')")
.inputText
.currencies
.currencies__item(
diff --git a/components/dashboard/Dashboard.vue b/components/dashboard/Dashboard.vue
index 806446e3..798a1e4f 100644
--- a/components/dashboard/Dashboard.vue
+++ b/components/dashboard/Dashboard.vue
@@ -57,7 +57,7 @@ export default {
.options__item(v-if="$store.getters['wallets/hasWallets'] && $store.getters['categories/hasCategories']")
Button._grey._center(
:title="$lang.createTrn"
- v-on:onClick="$store.dispatch('trnForm/openTrnForm', { action: 'create' })"
+ @onClick="$store.dispatch('trnForm/openTrnForm', { action: 'create' })"
)
.options__item(v-if="$store.state.demo.hasDemo")
diff --git a/components/dashboard/DashboardFilter.vue b/components/dashboard/DashboardFilter.vue
index 33fbe6a6..aeeee39b 100644
--- a/components/dashboard/DashboardFilter.vue
+++ b/components/dashboard/DashboardFilter.vue
@@ -57,7 +57,7 @@ export default {
:color="filterWallet.color || $store.state.ui.defaultBgColor"
:name="filterWallet.name"
icon="mdi mdi-credit-card-multiple"
- v-on:onClick="clearWalletFilter")
+ @onClick="clearWalletFilter")
//- categories
template(v-if="$store.state.filter.categoryId")
@@ -67,20 +67,20 @@ export default {
:color="filterCategoryParent.color || $store.state.ui.defaultBgColor"
:icon="filterCategoryParent.icon"
:name="filterCategoryParent.name"
- v-on:onClick="clearParentCategoryFilter")
+ @onClick="clearParentCategoryFilter")
//- category
FilterItem(
:color="filterCategory.color || $store.state.ui.defaultBgColor"
:icon="filterCategory.icon"
:name="filterCategory.name"
- v-on:onClick="clearCategoryFilter")
+ @onClick="clearCategoryFilter")
//- clear
FilterItem._clear(
icon="mdi mdi-filter-remove-outline"
name="Clear filter"
- v-on:onClick="clearAllFilters")
+ @onClick="clearAllFilters")
</template>
<style lang="stylus" scoped>
diff --git a/components/dashboard/DashboardNav.vue b/components/dashboard/DashboardNav.vue
index 3df92f02..85bd4ab0 100644
--- a/components/dashboard/DashboardNav.vue
+++ b/components/dashboard/DashboardNav.vue
@@ -30,7 +30,7 @@ export default {
ContextMenu(
:position="{ left: '-12px', top: true }"
:visible="visiblePeriodMenu"
- v-on:onClickOpener="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClickOpener="visiblePeriodMenu = !visiblePeriodMenu")
template(slot="opener")
Dropdown._noBd(
:active="visiblePeriodMenu")
@@ -41,32 +41,32 @@ export default {
icon="mdi mdi-weather-sunset-up"
:title="$lang.dates.day.simple"
:selected="$store.state.filter.period === 'day'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'day')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'day')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-calendar-week"
:title="$lang.dates.week.simple"
:selected="$store.state.filter.period === 'week'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'week')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'week')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-calendar"
:title="$lang.dates.month.simple"
:selected="$store.state.filter.period === 'month'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'month')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'month')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-calendar-star"
:title="$lang.dates.year.simple"
:selected="$store.state.filter.period === 'year'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'year')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'year')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-database"
:title="$lang.dates.all"
:selected="$store.state.filter.period === 'all'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'all')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'all')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
.periodNav__group
._align-right
@@ -79,7 +79,7 @@ export default {
ContextMenu(
:position="{ right: '-12px', top: true }"
:visible="visibleContextMenu"
- v-on:onClickOpener="visibleContextMenu = !visibleContextMenu")
+ @onClickOpener="visibleContextMenu = !visibleContextMenu")
template(slot="opener")
Dropdown._noBd(
@@ -92,33 +92,33 @@ export default {
title="Periods chart"
:showCheckbox="true"
:checkboxValue="$store.state.ui.statGraphsVisibility === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleShowStatGraphs')")
+ @onClick="$store.dispatch('ui/toogleShowStatGraphs')")
ContextMenuItem(
icon="mdi mdi-folder-star"
title="Cats chart"
:showCheckbox="true"
:checkboxValue="$store.state.ui.catsChart === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleVisibleCatsChart')")
+ @onClick="$store.dispatch('ui/toogleVisibleCatsChart')")
ContextMenuItem(
icon="mdi mdi-chart-gantt"
title="Cats stat"
:showCheckbox="true"
:checkboxValue="$store.state.ui.statItems === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleVisibilityStatItems')")
+ @onClick="$store.dispatch('ui/toogleVisibilityStatItems')")
.context-menu-sep
ContextMenuItem(
icon="mdi mdi-palette"
title="Change theme"
- v-on:onClick="$store.dispatch('ui/changeTheme')")
+ @onClick="$store.dispatch('ui/changeTheme')")
ContextMenuItem(
icon="mdi mdi-currency-usd"
title="Change base currency"
- v-on:onClick="$store.commit('showBaseCurrenciesModal')"
- v-on:onClose="visibleContextMenu = !visibleContextMenu")
+ @onClick="$store.commit('showBaseCurrenciesModal')"
+ @onClose="visibleContextMenu = !visibleContextMenu")
</template>
<style lang="stylus" scoped>
diff --git a/components/groups/BudgetForm.vue b/components/groups/BudgetForm.vue
index c735b9f6..151ae0ba 100644
--- a/components/groups/BudgetForm.vue
+++ b/components/groups/BudgetForm.vue
@@ -83,7 +83,7 @@ export default {
Button(
className="_new"
:title="$lang.budgets.form.button"
- v-on:onClick="handleCreateGroup")
+ @onClick="handleCreateGroup")
</template>
<style lang="stylus" scoped>
diff --git a/components/groups/BudgetItem.vue b/components/groups/BudgetItem.vue
index 9c18a53c..9ec3ef6f 100644
--- a/components/groups/BudgetItem.vue
+++ b/components/groups/BudgetItem.vue
@@ -115,7 +115,7 @@ export default {
TrnsList(:ids="trnsIds" v-slot="{ trns }")
TrnItem(
v-for="trnId in trnsIds"
- v-on:onClick="handleTrnItemClick"
+ @onClick="handleTrnItemClick"
:category="trns[trnId].category"
:id="trns[trnId].id"
:key="trns[trnId].id"
diff --git a/components/lang/LangDropdown.vue b/components/lang/LangDropdown.vue
index 5ddba345..3414017b 100644
--- a/components/lang/LangDropdown.vue
+++ b/components/lang/LangDropdown.vue
@@ -44,7 +44,7 @@ div
ContextMenu(
:position="{ left: true, top: true }"
:visible="visibleDropdown"
- v-on:onClickOpener="visibleDropdown = !visibleDropdown")
+ @onClickOpener="visibleDropdown = !visibleDropdown")
template(slot="opener")
Dropdown(
:active="visibleDropdown"
@@ -52,11 +52,11 @@ div
template(slot="content")
ContextMenuItem(
title="🇷🇺 Russian - Русский (Не полный)"
- v-on:onClick="changeLang('ru')")
+ @onClick="changeLang('ru')")
.context-menu-sep
ContextMenuItem(
title="🇺🇸 English - Английский"
- v-on:onClick="changeLang('en')")
+ @onClick="changeLang('en')")
</template>
<style lang="stylus" scoped>
diff --git a/components/layout/LayoutMobile.vue b/components/layout/LayoutMobile.vue
index ed80a7e6..52e9b1c3 100644
--- a/components/layout/LayoutMobile.vue
+++ b/components/layout/LayoutMobile.vue
@@ -119,12 +119,12 @@ export default {
Button(
className="_inline _small"
:title="$lang.wallets.new"
- v-on:onClick="$store.dispatch('ui/setActiveTab', 'createWallet')")
+ @onClick="$store.dispatch('ui/setActiveTab', 'createWallet')")
.col
Button(
className="_inline _small"
:title="$lang.base.sort"
- v-on:onClick="$store.dispatch('ui/setActiveTab', 'walletsSort')")
+ @onClick="$store.dispatch('ui/setActiveTab', 'walletsSort')")
//- wallets sort
transition(name="animation-tab")
@@ -140,13 +140,13 @@ export default {
template(slot="content")
CategoriesList(
:style="{ paddingTop: '16px' }"
- v-on:onClick="(id) => $store.dispatch('categories/showCategoryModal', id)")
+ @onClick="(id) => $store.dispatch('categories/showCategoryModal', id)")
template(slot="bottom")
Button(
className="_inline _small"
:title="$lang.categories.new"
- v-on:onClick="$store.dispatch('ui/setActiveTab', 'createCategory')")
+ @onClick="$store.dispatch('ui/setActiveTab', 'createCategory')")
//- stat
transition(name="animation-tab")
diff --git a/components/layout/LayoutMobileStat.vue b/components/layout/LayoutMobileStat.vue
index 512005dd..0b0df7b8 100644
--- a/components/layout/LayoutMobileStat.vue
+++ b/components/layout/LayoutMobileStat.vue
@@ -25,7 +25,7 @@ export default {
WalletsList(
:limit="3"
ui="widget"
- v-on:onClick="id => handleShowWalletModal(id)")
+ @onClick="id => handleShowWalletModal(id)")
.layoutStat__chart(v-show="$store.state.ui.statGraphsVisibility === 'visible' && ($store.state.filter.period !== 'all')")
StatChartsLine
diff --git a/components/layout/LayoutPc.vue b/components/layout/LayoutPc.vue
index 2ddd0fbb..e5ee4e2b 100644
--- a/components/layout/LayoutPc.vue
+++ b/components/layout/LayoutPc.vue
@@ -94,7 +94,7 @@ export default {
template(slot="content")
CategoriesList.dashboardItems(
- v-on:onClick="id => $store.dispatch('categories/showCategoryModal', id)")
+ @onClick="id => $store.dispatch('categories/showCategoryModal', id)")
template(slot="bottom")
.col
@@ -102,7 +102,7 @@ export default {
className="_blue _inline"
icon="mdi mdi-plus"
:title="$lang.categories.new"
- v-on:onClick="$store.dispatch('ui/setActiveTab', 'createCategory')")
+ @onClick="$store.dispatch('ui/setActiveTab', 'createCategory')")
//- wallets
//------------------------------------------------
@@ -113,7 +113,7 @@ export default {
template(slot="content")
WalletsList.dashboardItems(
ui="tile"
- v-on:onClick="(id) => handleShowWalletModal(id)")
+ @onClick="(id) => handleShowWalletModal(id)")
template(slot="bottom")
.flex
@@ -122,13 +122,13 @@ export default {
className="_inline _blue"
icon="mdi mdi-plus"
:title="$lang.wallets.new"
- v-on:onClick="$store.dispatch('ui/setActiveTab', 'createWallet')")
+ @onClick="$store.dispatch('ui/setActiveTab', 'createWallet')")
.col
Button(
className="_inline _blue"
:title="$lang.base.sort"
icon="mdi mdi-arrow-split-horizontal"
- v-on:onClick="$store.dispatch('ui/setActiveTab', 'walletsSort')")
+ @onClick="$store.dispatch('ui/setActiveTab', 'walletsSort')")
//- add category
//------------------------------------------------
diff --git a/components/layout/LayoutPcSidebar.vue b/components/layout/LayoutPcSidebar.vue
index 4a7bb70d..8c05eda2 100644
--- a/components/layout/LayoutPcSidebar.vue
+++ b/components/layout/LayoutPcSidebar.vue
@@ -42,7 +42,7 @@ export default {
ContextMenu(
:position="{ left: true, top: true }"
:visible="visibleSettingsMenu"
- v-on:onClickOpener="visibleSettingsMenu = !visibleSettingsMenu")
+ @onClickOpener="visibleSettingsMenu = !visibleSettingsMenu")
template(slot="opener")
.link(:class="{ _active: visibleSettingsMenu }"): .mdi.mdi-tune
@@ -50,18 +50,18 @@ export default {
ContextMenuItem(
icon="mdi mdi-palette"
title="Change theme"
- v-on:onClick="$store.dispatch('ui/changeTheme')")
+ @onClick="$store.dispatch('ui/changeTheme')")
ContextMenuItem(
icon="mdi mdi-cog-outline"
:title="$lang.settings.open"
- v-on:onClick="$store.dispatch('ui/setActiveTab', 'settings')"
- v-on:onClose="visibleSettingsMenu = !visibleSettingsMenu")
+ @onClick="$store.dispatch('ui/setActiveTab', 'settings')"
+ @onClose="visibleSettingsMenu = !visibleSettingsMenu")
.context-menu-sep
ContextMenuItem(
icon="mdi mdi-logout"
title="Sign Out"
- v-on:onClick="$store.dispatch('user/signOut')"
- v-on:onClose="visibleSettingsMenu = !visibleSettingsMenu")
+ @onClick="$store.dispatch('user/signOut')"
+ @onClose="visibleSettingsMenu = !visibleSettingsMenu")
.sidebar__menu__item(
:class="{ _active: activeTab === 'wallets'}"
@@ -85,7 +85,7 @@ export default {
WalletsList(
:showToogle="true"
:limit="6"
- v-on:onClick="(id) => handleShowWalletModal(id)")
+ @onClick="(id) => handleShowWalletModal(id)")
</template>
<style lang="stylus" scoped>
diff --git a/components/layout/PeriodNavMobile.vue b/components/layout/PeriodNavMobile.vue
index 77241da2..dab7a2dc 100644
--- a/components/layout/PeriodNavMobile.vue
+++ b/components/layout/PeriodNavMobile.vue
@@ -34,7 +34,7 @@ export default {
ContextMenu(
:position="{ left: true, bottom: true }"
:visible="visiblePeriodMenu"
- v-on:onClickOpener="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClickOpener="visiblePeriodMenu = !visiblePeriodMenu")
template(slot="opener")
Dropdown(:active="visiblePeriodMenu")
template(slot="title"): Date
@@ -44,32 +44,32 @@ export default {
icon="mdi mdi-weather-sunset-up"
:title="$lang.dates.day.simple"
:selected="$store.state.filter.period === 'day'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'day')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'day')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-calendar-week"
:title="$lang.dates.week.simple"
:selected="$store.state.filter.period === 'week'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'week')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'week')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-calendar"
:title="$lang.dates.month.simple"
:selected="$store.state.filter.period === 'month'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'month')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'month')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-calendar-star"
:title="$lang.dates.year.simple"
:selected="$store.state.filter.period === 'year'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'year')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'year')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-database"
:title="$lang.dates.all"
:selected="$store.state.filter.period === 'all'"
- v-on:onClick="$store.dispatch('filter/setPeriod', 'all')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="$store.dispatch('filter/setPeriod', 'all')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
.customize
StatCustomizeMenuMobile(
diff --git a/components/modal/ModalBottom.vue b/components/modal/ModalBottom.vue
index a1c48f9f..6764d738 100644
--- a/components/modal/ModalBottom.vue
+++ b/components/modal/ModalBottom.vue
@@ -37,7 +37,7 @@ export default {
transition(name="fadeIn" appear)
.modalBottom__overflow(@click="$listeners.onClose" v-show="show")
- transition(name="slide" appear v-on:after-leave="afterClose")
+ transition(name="slide" appear @after-leave="afterClose")
.modalBottom__wrap(v-show="show")
//- Header
.modalBottom__header(
diff --git a/components/modal/ModalBottomConfirm.vue b/components/modal/ModalBottomConfirm.vue
index 75bcc7ba..c672cc65 100644
--- a/components/modal/ModalBottomConfirm.vue
+++ b/components/modal/ModalBottomConfirm.vue
@@ -25,7 +25,7 @@ export default {
ModalBottom(
:show="show"
title="Are you sure?"
- v-on:onClose="$emit('onClose')"
+ @onClose="$emit('onClose')"
)
template(v-if="description")
template(slot="description")
@@ -35,12 +35,12 @@ ModalBottom(
ModalButton(
name="Yes"
icon="mdi mdi-check"
- v-on:onClick="$emit('onConfirm')"
+ @onClick="$emit('onConfirm')"
)
ModalButton(
name="Cancel"
icon="mdi mdi-close-circle"
- v-on:onClick="$emit('onClose')"
+ @onClick="$emit('onClose')"
)
</template>
diff --git a/components/shared/inputs/Checkbox.vue b/components/shared/inputs/Checkbox.vue
index c7e5bc3c..30254f83 100644
--- a/components/shared/inputs/Checkbox.vue
+++ b/components/shared/inputs/Checkbox.vue
@@ -23,7 +23,7 @@ label.checkbox(:class="{ _alt: alt }")
input.checkbox__input(
type="checkbox"
:checked="value"
- v-on:input="$emit('input', $event.target.checked)"
+ @input="$emit('input', $event.target.checked)"
)
.checkbox__helper
.checkbox__toogle
diff --git a/components/stat/StatChartDonut.vue b/components/stat/StatChartDonut.vue
index 843dc06a..fe4211bc 100644
--- a/components/stat/StatChartDonut.vue
+++ b/components/stat/StatChartDonut.vue
@@ -149,7 +149,7 @@ export default {
ContextMenu(
:position="{ left: '-12px', top: true }"
:visible="visiblePeriodMenu"
- v-on:onClickOpener="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClickOpener="visiblePeriodMenu = !visiblePeriodMenu")
template(slot="opener")
Dropdown._noBd(
:active="visiblePeriodMenu")
@@ -159,14 +159,14 @@ export default {
ContextMenuItem(
icon="mdi mdi-calendar"
title="Month"
- v-on:onClick="changePeriod('month')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="changePeriod('month')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
ContextMenuItem(
icon="mdi mdi-calendar-star"
title="Year"
- v-on:onClick="changePeriod('year')"
- v-on:onClose="visiblePeriodMenu = !visiblePeriodMenu")
+ @onClick="changePeriod('year')"
+ @onClose="visiblePeriodMenu = !visiblePeriodMenu")
//- .div(@click="toogleModal") Modal
diff --git a/components/stat/StatCustomizeMenuMobile.vue b/components/stat/StatCustomizeMenuMobile.vue
index abd39eb5..a95cb664 100644
--- a/components/stat/StatCustomizeMenuMobile.vue
+++ b/components/stat/StatCustomizeMenuMobile.vue
@@ -45,7 +45,7 @@ export default {
ContextMenu(
:position="position"
:visible="visibleCustomizeMenu"
- v-on:onClickOpener="visibleCustomizeMenu = !visibleCustomizeMenu")
+ @onClickOpener="visibleCustomizeMenu = !visibleCustomizeMenu")
template(slot="opener")
template(v-if="icon")
@@ -62,47 +62,47 @@ ContextMenu(
title="Wallets"
:showCheckbox="true"
:checkboxValue="$store.state.ui.stat.walletsVisibility === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleStatWalletsVisibility')")
+ @onClick="$store.dispatch('ui/toogleStatWalletsVisibility')")
ContextMenuItem(
icon="mdi mdi-chart-bar-stacked"
title="Periods chart"
:showCheckbox="true"
:checkboxValue="$store.state.ui.statGraphsVisibility === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleShowStatGraphs')")
+ @onClick="$store.dispatch('ui/toogleShowStatGraphs')")
ContextMenuItem(
icon="mdi mdi-numeric"
title="Summary"
:showCheckbox="true"
:checkboxValue="$store.state.ui.statSummuryVisibility === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleStatSummuryVisibility')")
+ @onClick="$store.dispatch('ui/toogleStatSummuryVisibility')")
ContextMenuItem(
icon="mdi mdi-folder-star"
title="Stat categories chart"
:showCheckbox="true"
:checkboxValue="$store.state.ui.catsChart === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleVisibleCatsChart')")
+ @onClick="$store.dispatch('ui/toogleVisibleCatsChart')")
ContextMenuItem(
icon="mdi mdi-history"
title="Stat categories list"
:showCheckbox="true"
:checkboxValue="$store.state.ui.statItems === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleVisibilityStatItems')")
+ @onClick="$store.dispatch('ui/toogleVisibilityStatItems')")
ContextMenuItem(
icon="mdi mdi-history"
title="Last trns"
:showCheckbox="true"
:checkboxValue="$store.state.ui.statLastTrnsVisibility === 'visible'"
- v-on:onClick="$store.dispatch('ui/toogleStatLastTrnsVisibility')")
+ @onClick="$store.dispatch('ui/toogleStatLastTrnsVisibility')")
.context-menu-sep
ContextMenuItem(
icon="mdi mdi-palette"
title="Change theme"
- v-on:onClick="$store.dispatch('ui/changeTheme')")
+ @onClick="$store.dispatch('ui/changeTheme')")
</template>
diff --git a/components/stat/StatMobile.vue b/components/stat/StatMobile.vue
index 60811964..49e1ccc9 100644
--- a/components/stat/StatMobile.vue
+++ b/components/stat/StatMobile.vue
@@ -72,7 +72,7 @@ export default {
:color="filterWallet.color || $store.state.ui.defaultBgColor"
:name="filterWallet.name"
icon="mdi mdi-credit-card-multiple"
- v-on:onClick="clearWalletFilter")
+ @onClick="clearWalletFilter")
template(v-if="$store.state.filter.categoryId")
template(v-if="filterCategory.parentId !== 0")
@@ -80,12 +80,12 @@ export default {
:color="filterCategoryParent.color || $store.state.ui.defaultBgColor"
:icon="filterCategoryParent.icon"
:name="filterCategoryParent.name"
- v-on:onClick="clearParentCategoryFilter")
+ @onClick="clearParentCategoryFilter")
FilterItem(
:color="filterCategory.color || $store.state.ui.defaultBgColor"
:icon="filterCategory.icon"
:name="filterCategory.name"
- v-on:onClick="clearCategoryFilter")
+ @onClick="clearCategoryFilter")
.block
StatSummaryMobile(v-show="$store.state.ui.statSummuryVisibility === 'visible'")
@@ -95,7 +95,7 @@ export default {
.options__item(v-if="$store.getters['wallets/hasWallets'] && $store.getters['categories/hasCategories']")
Button._grey._center(
:title="$lang.createTrn"
- v-on:onClick="$store.dispatch('trnForm/openTrnForm', { action: 'create' })"
+ @onClick="$store.dispatch('trnForm/openTrnForm', { action: 'create' })"
)
.options__item(v-if="$store.state.demo.hasDemo")
diff --git a/components/stat/cats/PeriodCatsChart.vue b/components/stat/cats/PeriodCatsChart.vue
index 49963bed..be1e698d 100644
--- a/components/stat/cats/PeriodCatsChart.vue
+++ b/components/stat/cats/PeriodCatsChart.vue
@@ -67,7 +67,7 @@ export default {
:categoryId="categoryId"
:key="`charts-${categoryId}`"
:total="statCurrentPeriod.categories[categoryId][type]"
- v-on:onActiveCategoryChange="handleActiveCategoryChange")
+ @onActiveCategoryChange="handleActiveCategoryChange")
.cats-chart__popup(
v-if="this.$store.state.ui.pc"
diff --git a/components/stat/chart/ChartMenu.vue b/components/stat/chart/ChartMenu.vue
index 9324ad82..92a272ae 100644
--- a/components/stat/chart/ChartMenu.vue
+++ b/components/stat/chart/ChartMenu.vue
@@ -67,7 +67,7 @@ ContextMenu(
:position="{ right: showDropdown ? '-12px' : true }"
:visible="visibleContextMenu"
:openerCircle="true"
- v-on:onClickOpener="visibleContextMenu = !visibleContextMenu")
+ @onClickOpener="visibleContextMenu = !visibleContextMenu")
template(v-if="showDropdown")
template(slot="opener")
@@ -80,18 +80,18 @@ ContextMenu(
ContextMenuItem(
icon="mdi mdi-ungroup"
:title="periods[filterPeriod].grouped ? 'Simple charts' : 'Grouped charts'"
- v-on:onClick="toogleChartsView")
+ @onClick="toogleChartsView")
ContextMenuItem(
icon="mdi mdi-plus"
:title="periods[filterPeriod].grouped ? 'Add group' : 'Add period'"
- v-on:onClick="addPeriodOrGroup")
+ @onClick="addPeriodOrGroup")
ContextMenuItem(
v-if="(periods[filterPeriod].grouped && periods[filterPeriod].showedGroups > 1) || (!periods[filterPeriod].grouped && periods[filterPeriod].showedPeriods > 1)"
icon="mdi mdi-minus"
:title="periods[filterPeriod].grouped ? 'Remove group' : 'Remove period'"
- v-on:onClick="removePeriodOrGroup")
+ @onClick="removePeriodOrGroup")
template(slot="desc")
template(v-if="periods[filterPeriod].grouped") Showed {{ periods[filterPeriod].showedGroups }} groups
diff --git a/components/trnForm/TrnForm.vue b/components/trnForm/TrnForm.vue
index aac3fa9f..55ac824b 100644
--- a/components/trnForm/TrnForm.vue
+++ b/components/trnForm/TrnForm.vue
@@ -421,7 +421,7 @@ export default {
WalletsList(
:limit="3"
ui="widget"
- v-on:onClick="walletId => $store.commit('trnForm/setTrnFormValues', { walletId })"
+ @onClick="walletId => $store.commit('trnForm/setTrnFormValues', { walletId })"
)
.trnForm__quickCats
CategoriesView(
@@ -451,7 +451,7 @@ export default {
WalletsList(
:limit="3"
ui="widget"
- v-on:onClick="walletId => $store.commit('trnForm/setTrnFormValues', { walletId })")
+ @onClick="walletId => $store.commit('trnForm/setTrnFormValues', { walletId })")
.formCategories(v-if="$store.getters['categories/quickSelectorCategoriesIds'].length > 0")
.formTitle(@click="$store.commit('trnForm/toogleTrnFormModal', 'categories')") Favorite Categories
@@ -459,12 +459,12 @@ export default {
ui="_flat"
:ids="$store.getters['categories/quickSelectorCategoriesIds']"
:noPaddingBottom="true"
- v-on:onClick="categoryId => $store.commit('trnForm/setTrnFormValues', { categoryId })")
+ @onClick="categoryId => $store.commit('trnForm/setTrnFormValues', { categoryId })")
//- pc: end
//- mobile
template(v-if="$store.state.ui.mobile")
- TrnFormCalculator(v-on:onFormSubmit="handleSubmitForm")
+ TrnFormCalculator(@onFormSubmit="handleSubmitForm")
//- header
TrnFormHeaderTransfer(
diff --git a/components/trnForm/TrnFormModal.vue b/components/trnForm/TrnFormModal.vue
index da104bd0..111cd5eb 100644
--- a/components/trnForm/TrnFormModal.vue
+++ b/components/trnForm/TrnFormModal.vue
@@ -199,7 +199,7 @@ export default {
@click="onClose"
)
- transition(name="slide" appear v-on:after-leave="afterClose")
+ transition(name="slide" appear @after-leave="afterClose")
.trnFormModal__wrap(v-show="show")
.trnFormModal__header(
@click="onClose"
diff --git a/components/trnForm/TrnFormModalDescription.vue b/components/trnForm/TrnFormModalDescription.vue
index f9e3a553..0751d0cc 100644
--- a/components/trnForm/TrnFormModalDescription.vue
+++ b/components/trnForm/TrnFormModalDescription.vue
@@ -68,13 +68,13 @@ TrnFormModal(
Button(
className="_blue _inline"
:title="$lang.base.save"
- v-on:onClick="handleSave"
+ @onClick="handleSave"
)
.description__action-cancel
Button(
className="_grey _inline"
:title="$lang.base.cancel"
- v-on:onClick="handleCancel"
+ @onClick="handleCancel"
)
</template>
diff --git a/components/trnForm/TrnFormModalTransferFrom.vue b/components/trnForm/TrnFormModalTransferFrom.vue
index 2dd1242e..fb67a5b0 100644
--- a/components/trnForm/TrnFormModalTransferFrom.vue
+++ b/components/trnForm/TrnFormModalTransferFrom.vue
@@ -25,10 +25,10 @@ TrnFormModal(
v-if="$store.state.trnForm.modal.transferFrom"
:show="$store.state.trnForm.modal.transferFrom"
title="Transfer from wallet"
- v-on:onClose="$store.commit('trnForm/toogleTrnFormModal', 'transferFrom')"
+ @onClose="$store.commit('trnForm/toogleTrnFormModal', 'transferFrom')"
)
WalletsList(
ui="tile"
- v-on:onClick="handleSetWallet"
+ @onClick="handleSetWallet"
)
</template>
diff --git a/components/trnForm/TrnFormModalTransferTo.vue b/components/trnForm/TrnFormModalTransferTo.vue
index a1163f9c..f93ef90b 100644
--- a/components/trnForm/TrnFormModalTransferTo.vue
+++ b/components/trnForm/TrnFormModalTransferTo.vue
@@ -25,10 +25,10 @@ TrnFormModal(
v-if="$store.state.trnForm.modal.transferTo"
:show="$store.state.trnForm.modal.transferTo"
title="Transfer to wallet"
- v-on:onClose="$store.commit('trnForm/toogleTrnFormModal', 'transferTo')"
+ @onClose="$store.commit('trnForm/toogleTrnFormModal', 'transferTo')"
)
WalletsList(
ui="tile"
- v-on:onClick="handleSetWallet"
+ @onClick="handleSetWallet"
)
</template>
diff --git a/components/trns/list/TrnsList.vue b/components/trns/list/TrnsList.vue
index 9a425a8c..00e7446d 100644
--- a/components/trns/list/TrnsList.vue
+++ b/components/trns/list/TrnsList.vue
@@ -142,7 +142,7 @@ export default {
Button(
:class="['_text-center _border _inline']"
:title="$lang.trns.more"
- v-on:onClick="showMoreTrns")
+ @onClick="showMoreTrns")
</template>
<style lang="stylus" scoped>
diff --git a/components/trns/modal/TrnModal.vue b/components/trns/modal/TrnModal.vue
index 0662a585..4874b9b6 100644
--- a/components/trns/modal/TrnModal.vue
+++ b/components/trns/modal/TrnModal.vue
@@ -96,8 +96,8 @@ export default {
ModalBottom(
v-if="$store.getters['trns/hasTrns']"
:show="$store.state.trns.modal.show"
- v-on:onClose="$store.commit('trns/hideTrnModal')"
- v-on:afterClose="$store.commit('trns/setTrnModalId', null)")
+ @onClose="$store.commit('trns/hideTrnModal')"
+ @afterClose="$store.commit('trns/setTrnModalId', null)")
template(v-if="trnId")
template(slot="header")
@@ -114,31 +114,31 @@ ModalBottom(
ModalButton(
name="Delete"
icon="mdi mdi-delete"
- v-on:onClick="handleDeleteClick")
+ @onClick="handleDeleteClick")
ModalButton(
name="Edit"
icon="mdi mdi-pencil"
- v-on:onClick="handleEditClick")
+ @onClick="handleEditClick")
ModalButton(
name="Dublicate"
icon="mdi mdi-content-copy"
- v-on:onClick="handleDublicateTrn")
+ @onClick="handleDublicateTrn")
.moreActions
Button.marginBottom(
className="_grey"
title="Set category filter"
icon="mdi mdi-folder-star"
- v-on:onClick="handleSetFilterCategory")
+ @onClick="handleSetFilterCategory")
Button.marginBottom(
:class="{ marginBottom: budgets }"
className="_grey"
title="Set wallet filter"
icon="mdi mdi-credit-card-multiple"
- v-on:onClick="handleSetFilterWallet")
+ @onClick="handleSetFilterWallet")
Button(
v-if="budgets && $store.getters['user/isTester']"
@@ -146,21 +146,21 @@ ModalBottom(
className="_grey"
title="Show budgets"
icon="mdi mdi-hand-saw"
- v-on:onClick="showModalBudgets = true")
+ @onClick="showModalBudgets = true")
Button(
v-if="groups && $store.getters['user/isTester']"
className="_grey"
title="Show groups"
icon="mdi mdi-folder-multiple-outline"
- v-on:onClick="showModalGroups = true")
+ @onClick="showModalGroups = true")
//- budgets
template(v-if="groups && $store.getters['user/isTester']")
ModalBottom(
:show="showModalBudgets"
title="Budgets"
- v-on:onClose="showModalBudgets = false"
+ @onClose="showModalBudgets = false"
paddingless
)
template(v-for="(budget, budgetId) in budgets")
@@ -178,7 +178,7 @@ ModalBottom(
ModalBottom(
:show="showModalGroups"
title="groups"
- v-on:onClose="showModalGroups = false"
+ @onClose="showModalGroups = false"
paddingless
)
template(v-for="(group, groupId) in groups")
@@ -195,8 +195,8 @@ ModalBottom(
//- confirm
ModalBottomConfirm(
:show="showModalConfirm"
- v-on:onClose="showModalConfirm = false"
- v-on:onConfirm="handleDeleteConfirm")
+ @onClose="showModalConfirm = false"
+ @onConfirm="handleDeleteConfirm")
</template>
<style lang="stylus" scoped>
diff --git a/components/wallets/form/WalletForm.vue b/components/wallets/form/WalletForm.vue
index a06f8567..baa44532 100644
--- a/components/wallets/form/WalletForm.vue
+++ b/components/wallets/form/WalletForm.vue
@@ -183,7 +183,7 @@ ComponentWrap
:center="true"
:show="showColors"
:title="$lang.wallets.form.color.placeholder"
- v-on:onClose="showColors = false")
+ @onClose="showColors = false")
.inputText
.inputText__colors
.colors
@@ -201,7 +201,7 @@ ComponentWrap
:center="true"
:show="showCurrencies"
:title="$lang.wallets.form.currency.placeholder"
- v-on:onClose="showCurrencies = false")
+ @onClose="showCurrencies = false")
.inputText
.currencies
.currencies__item(
@@ -215,7 +215,7 @@ ComponentWrap
Button(
:class="['_text-center _blue', { _inline: $store.state.ui.pc }]"
:title="$lang.wallets.form.save"
- v-on:onClick="handleSubmit")
+ @onClick="handleSubmit")
</template>
<style lang="stylus" scoped>
diff --git a/components/wallets/modal/WalletModal.vue b/components/wallets/modal/WalletModal.vue
index 5ec96ad6..1d5ec094 100644
--- a/components/wallets/modal/WalletModal.vue
+++ b/components/wallets/modal/WalletModal.vue
@@ -83,8 +83,8 @@ export default {
ModalBottom(
v-if="$store.state.wallets.modal.id"
:show="$store.state.wallets.modal.show"
- v-on:onClose="$store.commit('wallets/hideWalletModal')"
- v-on:afterClose="$store.commit('wallets/setWalletModalId', null)")
+ @onClose="$store.commit('wallets/hideWalletModal')"
+ @afterClose="$store.commit('wallets/setWalletModalId', null)")
template(v-if="walletId")
template(slot="header")
WalletItem(:id="walletId")
@@ -97,19 +97,19 @@ ModalBottom(
ModalButton(
:name="$lang.base.delete"
icon="mdi mdi-delete"
- v-on:onClick="handleDeleteClick")
+ @onClick="handleDeleteClick")
ModalButton(
:name="$lang.base.edit"
icon="mdi mdi-pencil"
- v-on:onClick="handleEditClick")
+ @onClick="handleEditClick")
ModalButton(
:name="$lang.base.filter"
icon="mdi mdi-filter-outline"
- v-on:onClick="handleSetFilterWallet")
+ @onClick="handleSetFilterWallet")
ModalBottomConfirm(
:show="showModalConfirm"
:description="deleteInfo"
- v-on:onClose="showModalConfirm = false"
- v-on:onConfirm="handleDeleteConfirm")
+ @onClose="showModalConfirm = false"
+ @onConfirm="handleDeleteConfirm")
</template>
diff --git a/components/wallets/sort/WalletsSort.vue b/components/wallets/sort/WalletsSort.vue
index 4a6f839e..f8012fea 100644
--- a/components/wallets/sort/WalletsSort.vue
+++ b/components/wallets/sort/WalletsSort.vue
@@ -80,7 +80,7 @@ ComponentWrap(:contentPadding="$store.state.ui.pc")
Button(
className="_small _blue _text-center"
:title="$lang.base.save"
- v-on:onClick="saveWalletsOrder")
+ @onClick="saveWalletsOrder")
</template>
<style lang="stylus" scoped>
diff --git a/components/welcome/Welcome.vue b/components/welcome/Welcome.vue
index 7a949d1d..39bd4352 100644
--- a/components/welcome/Welcome.vue
+++ b/components/welcome/Welcome.vue
@@ -52,7 +52,7 @@ export default {
ThemeSelector
Button._blue._center(
:title="$lang.buttons.nextStep"
- v-on:onClick="step = 1")
+ @onClick="step = 1")
transition(name="fadeIn")
template(v-if="step === 1")
@@ -67,7 +67,7 @@ export default {
.options__desc {{ $lang.welcome.create.text }}
Button._blue._center(
:title="$lang.welcome.create.btn"
- v-on:onClick="step = 2")
+ @onClick="step = 2")
template(v-if="$store.state.demo.hasDemo")
.options__or
@@ -77,7 +77,7 @@ export default {
.options__desc {{ $lang.welcome.demo.text }}
Button._grey._center(
:title="$lang.welcome.demo.btn"
- v-on:onClick="$store.dispatch('demo/createDemo')")
+ @onClick="$store.dispatch('demo/createDemo')")
//- wallet
transition(name="fadeIn")
@@ -93,7 +93,7 @@ export default {
.button
Button._blue._center(
:title="$lang.welcome.createFirstWallet.btn"
- v-on:onClick="showWalletForm = true")
+ @onClick="showWalletForm = true")
//- category
transition(name="fadeIn")
@@ -105,17 +105,17 @@ export default {
.button
Button._blue._center(
:title="$lang.welcome.createFirstCategory.btn"
- v-on:onClick="showCategoryForm = true")
+ @onClick="showCategoryForm = true")
transition(name="fadeIn")
.tab(v-if="showWalletForm")
.tab__content
- WalletForm(v-on:callback="showWalletForm = false")
+ WalletForm(@callback="showWalletForm = false")
transition(name="fadeIn")
.tab(v-if="showCategoryForm")
.tab__content
- CategoryForm(v-on:callback="categoryCreatedCallback")
+ CategoryForm(@callback="categoryCreatedCallback")
.copyright
Copyright