feat: update VSCode settings for ESLint and Prettier integration
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 20s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s

chore: refactor ESLint configuration for improved linting rules and performance

fix: handle push event data parsing in service worker

style: adjust tabbar item properties for better readability in App.vue

refactor: remove unused functions and improve code clarity in TransactionDetail.vue

fix: ensure consistent event handling in CalendarView.vue

style: clean up component structure and formatting in various Vue files

chore: update launch script for better command execution

feat: add ESLint configuration file for consistent code style across the project

fix: resolve issues with button click events in multiple components
This commit is contained in:
孙诚
2026-01-07 14:33:30 +08:00
parent efdfe88155
commit b2339c1c5e
32 changed files with 380 additions and 241 deletions

View File

@@ -23,8 +23,8 @@
icon="arrow"
plain
size="small"
@click="changeMonth(1)"
:disabled="isCurrentMonth"
@click="changeMonth(1)"
/>
</div>
@@ -69,7 +69,7 @@
</div>
<!-- 环形图区域 -->
<div class="chart-container" v-if="expenseCategoriesView.length > 0">
<div v-if="expenseCategoriesView.length > 0" class="chart-container">
<div class="ring-chart">
<svg viewBox="0 0 200 200" class="ring-svg">
<circle
@@ -95,7 +95,7 @@
</div>
<!-- 分类列表 -->
<div class="category-list" v-if="expenseCategoriesView.length > 0">
<div v-if="expenseCategoriesView.length > 0" class="category-list">
<div
v-for="(category) in expenseCategoriesView"
:key="category.classify"
@@ -125,7 +125,7 @@
</div>
<!-- 收入分类统计 -->
<div class="common-card" v-if="incomeCategoriesView.length > 0">
<div v-if="incomeCategoriesView.length > 0" class="common-card">
<div class="card-header">
<h3 class="card-title">收入分类统计</h3>
<van-tag type="success" size="medium">{{ incomeCategoriesView.length }}</van-tag>
@@ -155,7 +155,7 @@
</div>
<!-- 不计收支分类统计 -->
<div class="common-card" v-if="noneCategoriesView.length > 0">
<div v-if="noneCategoriesView.length > 0" class="common-card">
<div class="card-header">
<h3 class="card-title">不计收支分类统计</h3>
<van-tag type="info" size="medium">{{ noneCategoriesView.length }}</van-tag>
@@ -202,7 +202,7 @@
class="bar expense-bar"
:style="{ height: getBarHeight(item.expense, maxTrendValue) }"
>
<div class="bar-value" v-if="item.expense > 0">
<div v-if="item.expense > 0" class="bar-value">
{{ formatShortMoney(item.expense) }}
</div>
</div>
@@ -210,7 +210,7 @@
class="bar income-bar"
:style="{ height: getBarHeight(item.income, maxTrendValue) }"
>
<div class="bar-value" v-if="item.income > 0">
<div v-if="item.income > 0" class="bar-value">
{{ formatShortMoney(item.income) }}
</div>
</div>
@@ -285,10 +285,10 @@
>
<template #header-actions>
<SmartClassifyButton
ref="smartClassifyButtonRef"
v-if="isUnclassified"
ref="smartClassifyButtonRef"
:transactions="categoryBills"
:onBeforeClassify="beforeSmartClassify"
:on-before-classify="beforeSmartClassify"
@save="onSmartClassifySave"
@notify-doned-transaction-id="handleNotifiedTransactionId"
/>