From b645c7d034c5c4b9645db7bbac2a4c9de1a7d381 Mon Sep 17 00:00:00 2001
From: hzm <934585316@qq.com>
Date: Thu, 19 Feb 2026 18:21:56 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20eslint=20=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.husky/pre-commit | 2 +
app/components/Common.jsx | 33 +-
app/components/FundTrendChart.jsx | 2 +-
app/components/HoldingEditModal.jsx | 2 +-
app/components/WeChatModal.jsx | 8 +-
app/page.jsx | 19 +-
eslint.config.mjs | 20 +
package-lock.json | 5383 ++++++++++++++++++++++++++-
package.json | 16 +-
9 files changed, 5459 insertions(+), 26 deletions(-)
create mode 100755 .husky/pre-commit
create mode 100644 eslint.config.mjs
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100755
index 0000000..f841cf2
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+npx lint-staged
diff --git a/app/components/Common.jsx b/app/components/Common.jsx
index 6d90084..72b0ebb 100644
--- a/app/components/Common.jsx
+++ b/app/components/Common.jsx
@@ -2,6 +2,7 @@
import { useEffect, useState } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
+import Image from 'next/image';
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
import timezone from 'dayjs/plugin/timezone';
@@ -227,19 +228,25 @@ export function DonateTabs() {
justifyContent: 'center'
}}
>
- {method === 'alipay' ? (
-
- ) : (
-
- )}
+
扫码加入群聊,获取最新更新与交流 diff --git a/app/page.jsx b/app/page.jsx index 0e6a22f..a503d8f 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -2,6 +2,7 @@ import { useEffect, useRef, useState, useMemo, useLayoutEffect, useCallback } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; +import Image from 'next/image'; import { createWorker } from 'tesseract.js'; import { createAvatar } from '@dicebear/core'; import { glass } from '@dicebear/collection'; @@ -514,8 +515,8 @@ export default function HomePage() { useEffect(() => { checkTradingDay(); - // 每分钟检查一次 - const timer = setInterval(checkTradingDay, 60000); + // 每30分钟检查一次 + const timer = setInterval(checkTradingDay, 60000 * 30); return () => clearInterval(timer); }, []); @@ -2768,10 +2769,13 @@ export default function HomePage() { {user ? (