Skip to content

Let's use AI to Earn!

新增组件库 页面等

daoyian8829e7207725
diff --git a/package-lock.json b/package-lock.json
index 17b4cd45..c6c694fc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -33,8 +33,6 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-unused-imports": "^4.1.4",
- "husky": "^9.1.7",
- "lint-staged": "^16.0.0",
"prettier": "^3.0.2",
"typescript": "^5"
}
@@ -1738,35 +1736,6 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
- "node_modules/ansi-escapes": {
- "version": "7.0.0",
- "resolved": "https://registry.npmmirror.com/ansi-escapes/-/ansi-escapes-7.0.0.tgz",
- "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "environment": "^1.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/ansi-regex": {
- "version": "6.1.0",
- "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz",
- "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-regex?sponsor=1"
- }
- },
"node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -2236,39 +2205,6 @@
"integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==",
"license": "MIT"
},
- "node_modules/cli-cursor": {
- "version": "5.0.0",
- "resolved": "https://registry.npmmirror.com/cli-cursor/-/cli-cursor-5.0.0.tgz",
- "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "restore-cursor": "^5.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/cli-truncate": {
- "version": "4.0.0",
- "resolved": "https://registry.npmmirror.com/cli-truncate/-/cli-truncate-4.0.0.tgz",
- "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "slice-ansi": "^5.0.0",
- "string-width": "^7.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/client-only": {
"version": "0.0.1",
"resolved": "https://registry.npmmirror.com/client-only/-/client-only-0.0.1.tgz",
@@ -2295,23 +2231,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/colorette": {
- "version": "2.0.20",
- "resolved": "https://registry.npmmirror.com/colorette/-/colorette-2.0.20.tgz",
- "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/commander": {
- "version": "13.1.0",
- "resolved": "https://registry.npmmirror.com/commander/-/commander-13.1.0.tgz",
- "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- }
- },
"node_modules/compute-scroll-into-view": {
"version": "3.1.1",
"resolved": "https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-3.1.1.tgz",
@@ -2531,19 +2450,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/environment": {
- "version": "1.1.0",
- "resolved": "https://registry.npmmirror.com/environment/-/environment-1.1.0.tgz",
- "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/es-abstract": {
"version": "1.23.9",
"resolved": "https://registry.npmmirror.com/es-abstract/-/es-abstract-1.23.9.tgz",
@@ -3243,13 +3149,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/eventemitter3": {
- "version": "5.0.1",
- "resolved": "https://registry.npmmirror.com/eventemitter3/-/eventemitter3-5.0.1.tgz",
- "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
@@ -3439,19 +3338,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/get-east-asian-width": {
- "version": "1.3.0",
- "resolved": "https://registry.npmmirror.com/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz",
- "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/get-intrinsic": {
"version": "1.3.0",
"resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
@@ -3685,22 +3571,6 @@
"node": ">= 0.4"
}
},
- "node_modules/husky": {
- "version": "9.1.7",
- "resolved": "https://registry.npmmirror.com/husky/-/husky-9.1.7.tgz",
- "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "husky": "bin.js"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/typicode"
- }
- },
"node_modules/idb-keyval": {
"version": "6.2.2",
"resolved": "https://registry.npmmirror.com/idb-keyval/-/idb-keyval-6.2.2.tgz",
@@ -3936,19 +3806,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-fullwidth-code-point": {
- "version": "4.0.0",
- "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",
- "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/is-generator-function": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/is-generator-function/-/is-generator-function-1.1.0.tgz",
@@ -4320,78 +4177,6 @@
"node": ">= 0.8.0"
}
},
- "node_modules/lilconfig": {
- "version": "3.1.3",
- "resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.3.tgz",
- "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/sponsors/antonk52"
- }
- },
- "node_modules/lint-staged": {
- "version": "16.0.0",
- "resolved": "https://registry.npmmirror.com/lint-staged/-/lint-staged-16.0.0.tgz",
- "integrity": "sha512-sUCprePs6/rbx4vKC60Hez6X10HPkpDJaGcy3D1NdwR7g1RcNkWL8q9mJMreOqmHBTs+1sNFp+wOiX9fr+hoOQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "chalk": "^5.4.1",
- "commander": "^13.1.0",
- "debug": "^4.4.0",
- "lilconfig": "^3.1.3",
- "listr2": "^8.3.3",
- "micromatch": "^4.0.8",
- "nano-spawn": "^1.0.0",
- "pidtree": "^0.6.0",
- "string-argv": "^0.3.2",
- "yaml": "^2.7.1"
- },
- "bin": {
- "lint-staged": "bin/lint-staged.js"
- },
- "engines": {
- "node": ">=20.18"
- },
- "funding": {
- "url": "https://opencollective.com/lint-staged"
- }
- },
- "node_modules/lint-staged/node_modules/chalk": {
- "version": "5.4.1",
- "resolved": "https://registry.npmmirror.com/chalk/-/chalk-5.4.1.tgz",
- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^12.17.0 || ^14.13 || >=16.0.0"
- },
- "funding": {
- "url": "https://github.com/chalk/chalk?sponsor=1"
- }
- },
- "node_modules/listr2": {
- "version": "8.3.3",
- "resolved": "https://registry.npmmirror.com/listr2/-/listr2-8.3.3.tgz",
- "integrity": "sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "cli-truncate": "^4.0.0",
- "colorette": "^2.0.20",
- "eventemitter3": "^5.0.1",
- "log-update": "^6.1.0",
- "rfdc": "^1.4.1",
- "wrap-ansi": "^9.0.0"
- },
- "engines": {
- "node": ">=18.0.0"
- }
- },
"node_modules/locate-path": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz",
@@ -4415,72 +4200,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/log-update": {
- "version": "6.1.0",
- "resolved": "https://registry.npmmirror.com/log-update/-/log-update-6.1.0.tgz",
- "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ansi-escapes": "^7.0.0",
- "cli-cursor": "^5.0.0",
- "slice-ansi": "^7.1.0",
- "strip-ansi": "^7.1.0",
- "wrap-ansi": "^9.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/log-update/node_modules/ansi-styles": {
- "version": "6.2.1",
- "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz",
- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
- "node_modules/log-update/node_modules/is-fullwidth-code-point": {
- "version": "5.0.0",
- "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz",
- "integrity": "sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "get-east-asian-width": "^1.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/log-update/node_modules/slice-ansi": {
- "version": "7.1.0",
- "resolved": "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-7.1.0.tgz",
- "integrity": "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ansi-styles": "^6.2.1",
- "is-fullwidth-code-point": "^5.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/chalk/slice-ansi?sponsor=1"
- }
- },
"node_modules/loose-envify": {
"version": "1.4.0",
"resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz",
@@ -4527,19 +4246,6 @@
"node": ">=8.6"
}
},
- "node_modules/mimic-function": {
- "version": "5.0.1",
- "resolved": "https://registry.npmmirror.com/mimic-function/-/mimic-function-5.0.1.tgz",
- "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
@@ -4570,19 +4276,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/nano-spawn": {
- "version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/nano-spawn/-/nano-spawn-1.0.2.tgz",
- "integrity": "sha512-21t+ozMQDAL/UGgQVBbZ/xXvNO10++ZPuTmKRO8k9V3AClVRht49ahtDjfY8l1q6nSHOrE5ASfthzH3ol6R/hg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=20.17"
- },
- "funding": {
- "url": "https://github.com/sindresorhus/nano-spawn?sponsor=1"
- }
- },
"node_modules/nanoid": {
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz",
@@ -4804,22 +4497,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/onetime": {
- "version": "7.0.0",
- "resolved": "https://registry.npmmirror.com/onetime/-/onetime-7.0.0.tgz",
- "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "mimic-function": "^5.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/optionator": {
"version": "0.9.4",
"resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz",
@@ -4947,19 +4624,6 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
- "node_modules/pidtree": {
- "version": "0.6.0",
- "resolved": "https://registry.npmmirror.com/pidtree/-/pidtree-0.6.0.tgz",
- "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "pidtree": "bin/pidtree.js"
- },
- "engines": {
- "node": ">=0.10"
- }
- },
"node_modules/possible-typed-array-names": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",
@@ -5828,23 +5492,6 @@
"url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
}
},
- "node_modules/restore-cursor": {
- "version": "5.1.0",
- "resolved": "https://registry.npmmirror.com/restore-cursor/-/restore-cursor-5.1.0.tgz",
- "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "onetime": "^7.0.0",
- "signal-exit": "^4.1.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/reusify": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.1.0.tgz",
@@ -5856,13 +5503,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/rfdc": {
- "version": "1.4.1",
- "resolved": "https://registry.npmmirror.com/rfdc/-/rfdc-1.4.1.tgz",
- "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/run-parallel": {
"version": "1.2.0",
"resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz",
@@ -6141,49 +5781,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/signal-exit": {
- "version": "4.1.0",
- "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz",
- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
- "dev": true,
- "license": "ISC",
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/slice-ansi": {
- "version": "5.0.0",
- "resolved": "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-5.0.0.tgz",
- "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ansi-styles": "^6.0.0",
- "is-fullwidth-code-point": "^4.0.0"
- },
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/slice-ansi?sponsor=1"
- }
- },
- "node_modules/slice-ansi/node_modules/ansi-styles": {
- "version": "6.2.1",
- "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz",
- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
"node_modules/source-map-js": {
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz",
@@ -6208,47 +5805,12 @@
"node": ">=10.0.0"
}
},
- "node_modules/string-argv": {
- "version": "0.3.2",
- "resolved": "https://registry.npmmirror.com/string-argv/-/string-argv-0.3.2.tgz",
- "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.6.19"
- }
- },
"node_modules/string-convert": {
"version": "0.2.1",
"resolved": "https://registry.npmmirror.com/string-convert/-/string-convert-0.2.1.tgz",
"integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==",
"license": "MIT"
},
- "node_modules/string-width": {
- "version": "7.2.0",
- "resolved": "https://registry.npmmirror.com/string-width/-/string-width-7.2.0.tgz",
- "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "emoji-regex": "^10.3.0",
- "get-east-asian-width": "^1.0.0",
- "strip-ansi": "^7.1.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/string-width/node_modules/emoji-regex": {
- "version": "10.4.0",
- "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-10.4.0.tgz",
- "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/string.prototype.includes": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz",
@@ -6362,22 +5924,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/strip-ansi": {
- "version": "7.1.0",
- "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz",
- "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ansi-regex": "^6.0.1"
- },
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/strip-ansi?sponsor=1"
- }
- },
"node_modules/strip-bom": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/strip-bom/-/strip-bom-3.0.0.tgz",
@@ -6866,50 +6412,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/wrap-ansi": {
- "version": "9.0.0",
- "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-9.0.0.tgz",
- "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ansi-styles": "^6.2.1",
- "string-width": "^7.0.0",
- "strip-ansi": "^7.1.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
- }
- },
- "node_modules/wrap-ansi/node_modules/ansi-styles": {
- "version": "6.2.1",
- "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz",
- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
- "node_modules/yaml": {
- "version": "2.8.0",
- "resolved": "https://registry.npmmirror.com/yaml/-/yaml-2.8.0.tgz",
- "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==",
- "dev": true,
- "license": "ISC",
- "bin": {
- "yaml": "bin.mjs"
- },
- "engines": {
- "node": ">= 14.6"
- }
- },
"node_modules/yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz",
diff --git a/package.json b/package.json
index 546e7edd..579f9f41 100644
--- a/package.json
+++ b/package.json
@@ -3,22 +3,24 @@
"version": "0.1.0",
"private": true,
"scripts": {
- "dev": "next dev",
+ "dev": "next dev -p 6060",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
- "react": "^18",
- "react-dom": "^18",
- "next": "14.2.29",
- "sass": "^1.59.2",
- "zustand": "^5.0.4",
+ "@ant-design/nextjs-registry": "^1.0.2",
+ "@kwooshung/react-no-ssr": "^1.1.4",
+ "@react-oauth/google": "^0.12.2",
"antd": "^5.25.2",
"dayjs": "^1.11.13",
"idb-keyval": "^6.2.2",
- "@ant-design/nextjs-registry": "^1.0.2",
- "@kwooshung/react-no-ssr": "^1.1.4"
+ "next": "14.2.29",
+ "react": "^18",
+ "react-dom": "^18",
+ "react-icons": "^5.5.0",
+ "sass": "^1.59.2",
+ "zustand": "^5.0.4"
},
"devDependencies": {
"typescript": "^5",
diff --git a/src/app/demo/demoPageCore.tsx b/src/app/demo/demoPageCore.tsx
index 9eb10c47..a83f8299 100644
--- a/src/app/demo/demoPageCore.tsx
+++ b/src/app/demo/demoPageCore.tsx
@@ -2,5 +2,5 @@
export const DemoPageCore = () => {
console.log("111");
- return <>demoCore</>;
+ return <div>demoCore</div>;
};
diff --git a/src/app/demo/page.tsx b/src/app/demo/page.tsx
index c73d16fd..22b927a8 100644
--- a/src/app/demo/page.tsx
+++ b/src/app/demo/page.tsx
@@ -15,3 +15,4 @@ export default function Page() {
</>
);
}
+
\ No newline at end of file
diff --git a/src/app/forgot-password/forgot-password.module.css b/src/app/forgot-password/forgot-password.module.css
new file mode 100644
index 00000000..4ee53b4f
--- /dev/null
+++ b/src/app/forgot-password/forgot-password.module.css
@@ -0,0 +1,102 @@
+.container {
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: #f5f5f5;
+ padding: 20px;
+}
+
+.box {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+ width: 100%;
+ max-width: 400px;
+}
+
+.title {
+ text-align: center;
+ color: #333;
+ margin-bottom: 2rem;
+ font-size: 1.8rem;
+}
+
+.form {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+}
+
+.inputGroup {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+}
+
+.input {
+ padding: 0.8rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+ transition: border-color 0.3s;
+}
+
+.input:focus {
+ outline: none;
+ border-color: #0070f3;
+}
+
+.submitButton {
+ background-color: #0070f3;
+ color: white;
+ padding: 0.8rem;
+ border: none;
+ border-radius: 4px;
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ margin-top: 1rem;
+}
+
+.submitButton:hover {
+ background-color: #0051a2;
+}
+
+.links {
+ display: flex;
+ justify-content: center;
+ margin-top: 1.5rem;
+ font-size: 0.9rem;
+}
+
+.link {
+ color: #0070f3;
+ text-decoration: none;
+ transition: color 0.3s;
+}
+
+.link:hover {
+ color: #0051a2;
+ text-decoration: underline;
+}
+
+/* 移动端适配 */
+@media (max-width: 480px) {
+ .box {
+ padding: 1.5rem;
+ }
+
+ .title {
+ font-size: 1.5rem;
+ }
+
+ .input {
+ padding: 0.7rem;
+ }
+
+ .submitButton {
+ padding: 0.7rem;
+ }
+}
\ No newline at end of file
diff --git a/src/app/forgot-password/page.tsx b/src/app/forgot-password/page.tsx
new file mode 100644
index 00000000..2b1e6a4e
--- /dev/null
+++ b/src/app/forgot-password/page.tsx
@@ -0,0 +1,43 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+import styles from "./forgot-password.module.css";
+
+export default function ForgotPasswordPage() {
+ const [email, setEmail] = useState("");
+
+ const handleSubmit = (e: React.FormEvent) => {
+ e.preventDefault();
+ // TODO: 实现忘记密码逻辑
+ console.log("重置密码:", { email });
+ };
+
+ return (
+ <div className={styles.container}>
+ <div className={styles.box}>
+ <h1 className={styles.title}>重置密码</h1>
+ <form onSubmit={handleSubmit} className={styles.form}>
+ <div className={styles.inputGroup}>
+ <input
+ type="email"
+ placeholder="请输入注册邮箱"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ className={styles.input}
+ required
+ />
+ </div>
+ <button type="submit" className={styles.submitButton}>
+ 发送重置链接
+ </button>
+ </form>
+ <div className={styles.links}>
+ <Link href="/login" className={styles.link}>
+ 返回登录
+ </Link>
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index cfe53316..17b5734c 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,15 +1,8 @@
-import type { Metadata } from "next";
import "./globals.css";
-import { AntdRegistry } from "@ant-design/nextjs-registry";
-import { Suspense } from "react";
-import { App, ConfigProvider } from "antd";
-import zh_CN from "antd/es/locale/zh_CN";
-import { APP_TITLE } from "@/constant";
+import { metadata } from "./metadata";
+import { Providers } from "./providers";
-export const metadata: Metadata = {
- title: APP_TITLE,
- description: "哎呦赚官方网站",
-};
+export { metadata };
export default function RootLayout({
children,
@@ -17,22 +10,9 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
- <html lang="en">
+ <html lang="zh">
<body>
- <ConfigProvider
- locale={zh_CN}
- theme={{
- token: {
- colorPrimary: "#d49c61",
- },
- }}
- >
- <App component={false}>
- <Suspense>
- <AntdRegistry>{children}</AntdRegistry>
- </Suspense>
- </App>
- </ConfigProvider>
+ <Providers>{children}</Providers>
</body>
</html>
);
diff --git a/src/app/login/login.module.css b/src/app/login/login.module.css
new file mode 100644
index 00000000..d5b7ffe3
--- /dev/null
+++ b/src/app/login/login.module.css
@@ -0,0 +1,151 @@
+.container {
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
+ padding: 20px;
+}
+
+.loginBox {
+ background: rgba(255, 255, 255, 0.95);
+ padding: 2.5rem;
+ border-radius: 16px;
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
+ width: 100%;
+ max-width: 420px;
+ backdrop-filter: blur(10px);
+}
+
+.title {
+ text-align: center;
+ color: #1a1a1a;
+ margin-bottom: 2rem;
+ font-size: 2rem;
+ font-weight: 600;
+}
+
+.form {
+ display: flex;
+ flex-direction: column;
+ gap: 1.2rem;
+}
+
+.inputGroup {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+}
+
+.input {
+ padding: 1rem;
+ border: 2px solid #e1e1e1;
+ border-radius: 8px;
+ font-size: 1rem;
+ transition: all 0.3s ease;
+ background: rgba(255, 255, 255, 0.9);
+}
+
+.input:focus {
+ outline: none;
+ border-color: #4285f4;
+ box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
+}
+
+.submitButton {
+ background-color: #4285f4;
+ color: white;
+ padding: 1rem;
+ border: none;
+ border-radius: 8px;
+ font-size: 1rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ margin-top: 0.5rem;
+}
+
+.submitButton:hover {
+ background-color: #3367d6;
+ transform: translateY(-1px);
+ box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
+}
+
+.divider {
+ display: flex;
+ align-items: center;
+ text-align: center;
+ margin: 1.5rem 0;
+ color: #666;
+}
+
+.divider::before,
+.divider::after {
+ content: '';
+ flex: 1;
+ border-bottom: 1px solid #e1e1e1;
+}
+
+.divider span {
+ padding: 0 1rem;
+ font-size: 0.9rem;
+}
+
+.googleButtonWrapper {
+ display: flex;
+ justify-content: center;
+ margin: 1rem 0;
+ width: 100%;
+}
+
+/* 确保 Google 按钮容器有正确的尺寸 */
+.googleButtonWrapper > div {
+ width: 100% !important;
+ display: flex !important;
+ justify-content: center !important;
+}
+
+/* 确保 Google 按钮本身有正确的尺寸 */
+.googleButtonWrapper iframe {
+ width: 100% !important;
+ height: 40px !important;
+}
+
+.links {
+ display: flex;
+ justify-content: space-between;
+ margin-top: 1.5rem;
+ font-size: 0.9rem;
+}
+
+.link {
+ color: #4285f4;
+ text-decoration: none;
+ transition: color 0.3s;
+ font-weight: 500;
+}
+
+.link:hover {
+ color: #3367d6;
+ text-decoration: underline;
+}
+
+/* 移动端适配 */
+@media (max-width: 480px) {
+ .loginBox {
+ padding: 1.5rem;
+ margin: 1rem;
+ }
+
+ .title {
+ font-size: 1.75rem;
+ }
+
+ .input {
+ padding: 0.9rem;
+ }
+
+ .submitButton {
+ padding: 0.9rem;
+ }
+}
\ No newline at end of file
diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx
new file mode 100644
index 00000000..cbfda46b
--- /dev/null
+++ b/src/app/login/page.tsx
@@ -0,0 +1,87 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+import { FcGoogle } from "react-icons/fc";
+import { GoogleLogin } from "@react-oauth/google";
+import styles from "./login.module.css";
+
+export default function LoginPage() {
+ const [email, setEmail] = useState("");
+ const [password, setPassword] = useState("");
+
+ const handleSubmit = (e: React.FormEvent) => {
+ e.preventDefault();
+ // TODO: 实现登录逻辑
+ console.log("登录:", { email, password });
+ };
+
+ const handleGoogleSuccess = (credentialResponse: any) => {
+ console.log("Google 登录成功:", credentialResponse);
+ // TODO: 将 credential 发送到后端验证
+ };
+
+ const handleGoogleError = () => {
+ console.log("Google 登录失败");
+ };
+
+ return (
+ <div className={styles.container}>
+ <div className={styles.loginBox}>
+ <h1 className={styles.title}>欢迎回来</h1>
+ <form onSubmit={handleSubmit} className={styles.form}>
+ <div className={styles.inputGroup}>
+ <input
+ type="email"
+ placeholder="邮箱"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ className={styles.input}
+ required
+ />
+ </div>
+ <div className={styles.inputGroup}>
+ <input
+ type="password"
+ placeholder="密码"
+ value={password}
+ onChange={(e) => setPassword(e.target.value)}
+ className={styles.input}
+ required
+ />
+ </div>
+ <button type="submit" className={styles.submitButton}>
+ 登录
+ </button>
+ </form>
+
+ <div className={styles.divider}>
+ <span>或 </span>
+ </div>
+
+ <div className={styles.googleButtonWrapper}>
+ <GoogleLogin
+ onSuccess={handleGoogleSuccess}
+ onError={handleGoogleError}
+ useOneTap={false}
+ theme="outline"
+ shape="rectangular"
+ text="signin_with"
+ locale="zh_CN"
+ width="100%"
+ size="large"
+ />
+ </div>
+
+ <div className={styles.links}>
+ <Link href="/forgot-password" className={styles.link}>
+ 忘记密码?
+ </Link>
+ <Link href="/register" className={styles.link}>
+ 注册账号
+ </Link>
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/app/metadata.ts b/src/app/metadata.ts
new file mode 100644
index 00000000..12380523
--- /dev/null
+++ b/src/app/metadata.ts
@@ -0,0 +1,7 @@
+import type { Metadata } from "next";
+import { APP_TITLE } from "@/constant";
+
+export const metadata: Metadata = {
+ title: APP_TITLE,
+ description: "哎呦赚官方网站",
+};
\ No newline at end of file
diff --git a/src/app/page.tsx b/src/app/page.tsx
index c60a3ec0..d2f4ed3d 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -3,11 +3,18 @@
import styles from "./page.module.scss";
import { Button } from "antd";
import React from "react";
+import { useRouter } from "next/navigation";
export default function Home() {
+ const router = useRouter();
+
+ const handleLogin = () => {
+ router.push("/login");
+ };
+
return (
<div className={styles.page}>
- <Button>1</Button>
+ <Button onClick={handleLogin}>登录页面</Button>
</div>
);
}
diff --git a/src/app/providers.tsx b/src/app/providers.tsx
new file mode 100644
index 00000000..032cd856
--- /dev/null
+++ b/src/app/providers.tsx
@@ -0,0 +1,28 @@
+"use client";
+
+import { GoogleOAuthProvider } from "@react-oauth/google";
+import { ConfigProvider, App } from "antd";
+import zh_CN from "antd/es/locale/zh_CN";
+import { AntdRegistry } from "@ant-design/nextjs-registry";
+import { Suspense } from "react";
+
+export function Providers({ children }: { children: React.ReactNode }) {
+ return (
+ <GoogleOAuthProvider clientId="YOUR_GOOGLE_CLIENT_ID">
+ <ConfigProvider
+ locale={zh_CN}
+ theme={{
+ token: {
+ colorPrimary: "#d49c61",
+ },
+ }}
+ >
+ <App component={false}>
+ <Suspense>
+ <AntdRegistry>{children}</AntdRegistry>
+ </Suspense>
+ </App>
+ </ConfigProvider>
+ </GoogleOAuthProvider>
+ );
+}
\ No newline at end of file
diff --git a/src/app/register/page.tsx b/src/app/register/page.tsx
new file mode 100644
index 00000000..a46d98a4
--- /dev/null
+++ b/src/app/register/page.tsx
@@ -0,0 +1,69 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+import styles from "./register.module.css";
+
+export default function RegisterPage() {
+ const [email, setEmail] = useState("");
+ const [password, setPassword] = useState("");
+ const [confirmPassword, setConfirmPassword] = useState("");
+
+ const handleSubmit = (e: React.FormEvent) => {
+ e.preventDefault();
+ if (password !== confirmPassword) {
+ alert("两次输入的密码不一致");
+ return;
+ }
+ // TODO: 实现注册逻辑
+ console.log("注册:", { email, password });
+ };
+
+ return (
+ <div className={styles.container}>
+ <div className={styles.box}>
+ <h1 className={styles.title}>注册账号</h1>
+ <form onSubmit={handleSubmit} className={styles.form}>
+ <div className={styles.inputGroup}>
+ <input
+ type="email"
+ placeholder="邮箱"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ className={styles.input}
+ required
+ />
+ </div>
+ <div className={styles.inputGroup}>
+ <input
+ type="password"
+ placeholder="密码"
+ value={password}
+ onChange={(e) => setPassword(e.target.value)}
+ className={styles.input}
+ required
+ />
+ </div>
+ <div className={styles.inputGroup}>
+ <input
+ type="password"
+ placeholder="确认密码"
+ value={confirmPassword}
+ onChange={(e) => setConfirmPassword(e.target.value)}
+ className={styles.input}
+ required
+ />
+ </div>
+ <button type="submit" className={styles.submitButton}>
+ 注册
+ </button>
+ </form>
+ <div className={styles.links}>
+ <Link href="/login" className={styles.link}>
+ 已有账号?去登录
+ </Link>
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/app/register/register.module.css b/src/app/register/register.module.css
new file mode 100644
index 00000000..4ee53b4f
--- /dev/null
+++ b/src/app/register/register.module.css
@@ -0,0 +1,102 @@
+.container {
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: #f5f5f5;
+ padding: 20px;
+}
+
+.box {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+ width: 100%;
+ max-width: 400px;
+}
+
+.title {
+ text-align: center;
+ color: #333;
+ margin-bottom: 2rem;
+ font-size: 1.8rem;
+}
+
+.form {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+}
+
+.inputGroup {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+}
+
+.input {
+ padding: 0.8rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+ transition: border-color 0.3s;
+}
+
+.input:focus {
+ outline: none;
+ border-color: #0070f3;
+}
+
+.submitButton {
+ background-color: #0070f3;
+ color: white;
+ padding: 0.8rem;
+ border: none;
+ border-radius: 4px;
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ margin-top: 1rem;
+}
+
+.submitButton:hover {
+ background-color: #0051a2;
+}
+
+.links {
+ display: flex;
+ justify-content: center;
+ margin-top: 1.5rem;
+ font-size: 0.9rem;
+}
+
+.link {
+ color: #0070f3;
+ text-decoration: none;
+ transition: color 0.3s;
+}
+
+.link:hover {
+ color: #0051a2;
+ text-decoration: underline;
+}
+
+/* 移动端适配 */
+@media (max-width: 480px) {
+ .box {
+ padding: 1.5rem;
+ }
+
+ .title {
+ font-size: 1.5rem;
+ }
+
+ .input {
+ padding: 0.7rem;
+ }
+
+ .submitButton {
+ padding: 0.7rem;
+ }
+}
\ No newline at end of file