feat(mail): 接入邮件服务并简化管理后台

- 新增 nodemailer 依赖及 SMTP 邮件发送模块
- 替换 magic link 控制台日志为真实邮件发送
- 移除仪表盘页面,管理后台默认跳转至文件管理
- 精简侧边栏导航,移除用户管理与设置入口
- 移除登录页姓名字段,品牌更名为“鼎兴”
- 关闭 biome 自动组织导入
This commit is contained in:
asgerzhou
2026-07-27 20:18:33 +08:00
parent 57628c04d6
commit 6a3db4e620
14 changed files with 139 additions and 671 deletions
+19
View File
@@ -35,6 +35,9 @@ importers:
next:
specifier: 16.2.10
version: 16.2.10(@babel/core@7.29.7)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
nodemailer:
specifier: ^9.0.3
version: 9.0.3
pg:
specifier: ^8.22.0
version: 8.22.0
@@ -69,6 +72,9 @@ importers:
'@types/node':
specifier: ^20
version: 20.19.43
'@types/nodemailer':
specifier: ^8.0.1
version: 8.0.1
'@types/pg':
specifier: ^8.20.0
version: 8.20.0
@@ -1118,6 +1124,9 @@ packages:
'@types/node@20.19.43':
resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==}
'@types/nodemailer@8.0.1':
resolution: {integrity: sha512-PxpaInm8V1JQDd4j0ds5HfvWQk8JupS1C0Picb96QJsrrRDjBH+DlK7L4ZdNSqNULhiZRQHc40nLVShaGxXAMw==}
'@types/pg@8.20.0':
resolution: {integrity: sha512-bEPFOaMAHTEP1EzpvHTbmwR8UsFyHSKsRisLIHVMXnpNefSbGA1bD6CVy+qKjGSqmZqNqBDV2azOBo8TgkcVow==}
@@ -2339,6 +2348,10 @@ packages:
resolution: {integrity: sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==}
engines: {node: '>=18'}
nodemailer@9.0.3:
resolution: {integrity: sha512-n+YP+NKwR5zRWa60k3GiQ6Q3B4KXCoAw40dAKeCtYn020iNN74aWK2liXIC3ZEATeGql7we3tE3t8QwhY0eskw==}
engines: {node: '>=6.0.0'}
npm-run-path@4.0.1:
resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
engines: {node: '>=8'}
@@ -3786,6 +3799,10 @@ snapshots:
dependencies:
undici-types: 6.21.0
'@types/nodemailer@8.0.1':
dependencies:
'@types/node': 20.19.43
'@types/pg@8.20.0':
dependencies:
'@types/node': 20.19.43
@@ -4778,6 +4795,8 @@ snapshots:
node-releases@2.0.51: {}
nodemailer@9.0.3: {}
npm-run-path@4.0.1:
dependencies:
path-key: 3.1.1