feat: add wallet UI with 4 tabs and HomePage summary

- chain.js: API wrapper with Idempotency-Key auto-generation
- WalletPage: 4-tab container (wallet/assets/inventory/market)
- WalletTab: balance, address (truncated+copy), key export
- AssetsTab: asset list with detail expand, market listing
- InventoryTab: read-only slot display
- MarketTab: buy/cancel with confirm dialog, all/mine filter
- WalletSummary: HomePage card with balance + stats
- PrivateRoute guard for /wallet, header link on HomePage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 13:43:46 +09:00
parent 8b6ba38a82
commit 3dc1aad8ac
10 changed files with 1066 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ export async function exportWalletKey(password) {
if (!res.ok) {
const err = new Error(res.status === 401 ? '비밀번호가 올바르지 않습니다' : '키 내보내기에 실패했습니다');
err.status = res.status;
try { const body = await res.json(); err.message = body.message || err.message; } catch {}
try { const body = await res.json(); err.message = body.message || err.message; } catch { /* ignore parse failure */ }
throw err;
}
return res.json();