Skip to content

Open source personal finance application

improvements: refactor

ilkome51b0979510e2
diff --git a/components/base/BottomSheetClose.vue b/components/base/BottomSheetClose.vue
index 1001c3aa..e399c148 100644
--- a/components/base/BottomSheetClose.vue
+++ b/components/base/BottomSheetClose.vue
@@ -1,9 +1,3 @@
-<script>
-export default {
- name: 'BaseBottomSheetClose',
-}
-</script>
-
<template lang="pug">
.handlerClose(@click="$emit('onClick')")
svg(
diff --git a/components/currencies/List.vue b/components/currencies/List.vue
index 572a88c6..d8b36334 100644
--- a/components/currencies/List.vue
+++ b/components/currencies/List.vue
@@ -26,7 +26,7 @@ const list = computed(() => {
.overflow-hidden.h-full.grid(
class="grid-rows-[auto,1fr]"
)
- .pb-2.px-2
+ .px-2
input.w-full.m-0.py-2.px-3.rounded-lg.text-base.font-normal.text-skin-item-base.bg-skin-item-main-bg.border.border-solid.border-skin-item-main-hover.placeholder_text-skin-item-base-down.transition.ease-in-out.focus_text-skin-item-base-up.focus_bg-skin-item-main-hover.focus_border-blue3.focus_outline-none(
placeholder="Search..."
v-model="searchInput"
diff --git a/components/stat/chart/Periods.vue b/components/stat/chart/Periods.vue
index 334c06fe..fa77af22 100644
--- a/components/stat/chart/Periods.vue
+++ b/components/stat/chart/Periods.vue
@@ -9,7 +9,8 @@ const { $store } = useNuxtApp()
// Filter
const { filterPeriodNameAllReplacedToYear } = useFilter()
-const showedPeriods = computed(() => $store.state.chart.periods[filterPeriodNameAllReplacedToYear.value].showedPeriods)
+const showedPeriods = computed(() =>
+ $store.state.chart.periods[filterPeriodNameAllReplacedToYear.value].showedPeriods)
function saveChartsPeriodsToLocalStorage() {
$store.dispatch('ui/saveUiView')
@@ -63,8 +64,6 @@ const isShowAdd = computed(() => showedPeriods.value >= maxPeriodsNumber.value)
@click="$store.dispatch('filter/setPeriod', periodItem.slug)"
)
| {{ periodItem.name }}
- span.pl-1(v-if="periodItem.slug === filterPeriodNameAllReplacedToYear")
- | {{ showedPeriods }}
.cursor-pointer.w-10.py-2.px-3.flex-center.rounded-md.hocus_bg-skin-item-main-hover(
:class="{ 'opacity-0 cursor-default pointer-events-none': isShowAdd }"