From cab5cc5d7beae19d4dc1c903b4b6bba3aea98d30 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Sat, 22 Nov 2025 17:09:10 +0800 Subject: [PATCH] update pay function --- package.json | 16 ++++++++-------- postcss.config.js | 11 +++++++---- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index e7a29807..06d41d4b 100755 --- a/package.json +++ b/package.json @@ -44,14 +44,14 @@ "match-sorter": "6.3.0", "nouislider": "15.0.0", "posthog-js": "^1.295.0", - "react": "18.3.1", + "react": "^19.0.0", "react-apexcharts": "^1.3.9", "react-big-calendar": "^0.33.2", "react-bootstrap-sweetalert": "5.2.0", "react-circular-slider-svg": "^0.1.5", "react-custom-scrollbars-2": "^4.4.0", "react-datetime": "^3.0.4", - "react-dom": "^18.3.1", + "react-dom": "^19.0.0", "react-dropzone": "^11.4.2", "react-github-btn": "^1.2.1", "react-icons": "^4.12.0", @@ -85,8 +85,8 @@ }, "resolutions": { "react-error-overlay": "6.0.9", - "@types/react": "18.2.0", - "@types/react-dom": "18.2.0" + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0" }, "overrides": { "uuid": "^9.0.1" @@ -118,13 +118,13 @@ }, "devDependencies": { "@craco/craco": "^7.1.0", + "@tailwindcss/postcss": "next", "@types/node": "^20.19.25", - "@types/react": "^18.2.0", - "@types/react-dom": "^18.2.0", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@typescript-eslint/eslint-plugin": "^8.46.4", "@typescript-eslint/parser": "^8.46.4", "ajv": "^8.17.1", - "autoprefixer": "^10.4.21", "concurrently": "^8.2.2", "env-cmd": "^11.0.0", "eslint-config-prettier": "8.3.0", @@ -136,10 +136,10 @@ "imagemin-pngquant": "^10.0.0", "kill-port": "^2.0.1", "msw": "^2.11.5", - "postcss": "^8.5.6", "prettier": "2.2.1", "react-error-overlay": "6.0.9", "sharp": "^0.34.4", + "tailwindcss": "next", "ts-node": "^10.9.2", "webpack-bundle-analyzer": "^4.10.2", "yn": "^5.1.0" diff --git a/postcss.config.js b/postcss.config.js index 07d5d790..e3edee64 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,9 @@ +// PostCSS 配置 - Tailwind CSS v4 +// 文档: https://tailwindcss.com/docs/upgrade-guide + module.exports = { - plugins: [ - require('tailwindcss'), - require('autoprefixer'), - ], + plugins: { + '@tailwindcss/postcss': {}, + // Tailwind v4 已内置 autoprefixer,不再需要单独配置 + }, }