From 80acade251a71afb5dad83f4516fe00ccf9a25a1 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Fri, 13 Mar 2026 18:06:08 +0800 Subject: [PATCH] feat: implement user account center with subscription and EVM wallet payment integration, along with initial project configuration files. --- frontend/components/account/AccountCenter.tsx | 15 ++++++--------- frontend/package-lock.json | 1 + frontend/package.json | 1 + frontend/tsconfig.json | 3 ++- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/components/account/AccountCenter.tsx b/frontend/components/account/AccountCenter.tsx index 57ba3d0f..4836ba1f 100644 --- a/frontend/components/account/AccountCenter.tsx +++ b/frontend/components/account/AccountCenter.tsx @@ -246,15 +246,10 @@ async function getWalletConnectProvider( "WalletConnect 未配置:缺少 NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID。", ); } - if ( - walletConnectProviderCache && - walletConnectProviderChainId === chainId - ) { + if (walletConnectProviderCache && walletConnectProviderChainId === chainId) { return walletConnectProviderCache; } - const { EthereumProvider } = await import( - "@walletconnect/ethereum-provider" - ); + const { EthereumProvider } = await import("@walletconnect/ethereum-provider"); const rpcMap: Record = { [chainId]: rpcUrl || WALLETCONNECT_POLYGON_RPC_URL, }; @@ -1543,7 +1538,7 @@ export function AccountCenter() { Telegram Bot 绑定

- 将下方命令发送给到群聊,实现全平台气象推送与权限同步。(https://t.me/+nMG7SjziUKYyZmM1) + 将下方命令发送给polyweather机器人,实现全平台气象推送与权限同步。

@@ -1654,7 +1649,9 @@ export function AccountCenter() { {!walletConnectEnabled && (

未启用 WalletConnect:请配置 - NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID + + NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID +

)}
diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 7ba029be..a8141d72 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -30,6 +30,7 @@ "@types/node": "^22.15.21", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", + "@types/trusted-types": "^2.0.7", "autoprefixer": "^10.4.20", "postcss": "^8.5.3", "tailwindcss": "^3.4.17", diff --git a/frontend/package.json b/frontend/package.json index cb35c93e..fabb05a3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -31,6 +31,7 @@ "@types/node": "^22.15.21", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", + "@types/trusted-types": "^2.0.7", "autoprefixer": "^10.4.20", "postcss": "^8.5.3", "tailwindcss": "^3.4.17", diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 3120d46d..fdc89969 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -17,7 +17,8 @@ "paths": { "@/*": ["./*"] }, - "plugins": [{ "name": "next" }] + "plugins": [{ "name": "next" }], + "typeRoots": ["./node_modules/@types"] }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"]