diff --git a/website/app/[lang]/pibrowser/explorer/block/[block]/dashboard.jsx b/website/app/[lang]/pibrowser/explorer/block/[block]/dashboard.jsx index 6c1f0f1..2e309db 100644 --- a/website/app/[lang]/pibrowser/explorer/block/[block]/dashboard.jsx +++ b/website/app/[lang]/pibrowser/explorer/block/[block]/dashboard.jsx @@ -2,7 +2,7 @@ import { useEffect, useState } from "react" import { Server } from "stellar-sdk" import Link from "next/link" -export default function Dashboard({block}){ +export default function Dashboard({block,transcript}){ const [lang,setlang] = useState() const server = new Server(process.env['NEXT_PUBLIC_HORIZON_SERVER']) const [data,setdata] = useState(null) @@ -24,7 +24,7 @@ export default function Dashboard({block}){
Account | -Type | -Detail | +{transcript.account} | +{transcript.operation} | +{transcript.detail} |
---|
- Total Account + {transcript.statistic.Metrics.TotalAccount} | {Number.parseInt(dataobj.metric.TotalAccount).toLocaleString("en-US")} @@ -80,7 +81,7 @@ export default async function StatisticPage({params:{lang}}){ | |||||||||||||||||||
- Total Pioneer + {transcript.statistic.Metrics.TotalPioneer} | {totalpioneer} @@ -88,7 +89,7 @@ export default async function StatisticPage({params:{lang}}){ | |||||||||||||||||||
- Migrated Pi + {transcript.statistic.Metrics.MigratedPi} | {Number.parseFloat(dataobj.metric.TotalPi).toLocaleString("en-US",{maximumFractionDigits:7})} Pi @@ -96,7 +97,7 @@ export default async function StatisticPage({params:{lang}}){ | |||||||||||||||||||
- Pioneer Hold + {transcript.statistic.Metrics.PioneerHold} | {Number.parseFloat(dataobj.metric.TotalClaim).toLocaleString("en-US",{maximumFractionDigits:7})} Pi @@ -104,7 +105,7 @@ export default async function StatisticPage({params:{lang}}){ | |||||||||||||||||||
- Pi Locked + {transcript.statistic.Metrics.PiLocked} |
{Number.parseFloat(dataobj.metric.TotalLock).toLocaleString("en-US",{maximumFractionDigits:7})} Pi
@@ -115,19 +116,19 @@ export default async function StatisticPage({params:{lang}}){
-
-
-
-
-
>
diff --git a/website/app/[lang]/pibrowser/statistic/top10.jsx b/website/app/[lang]/pibrowser/statistic/top10.jsx
index c6d5df7..fe7a413 100644
--- a/website/app/[lang]/pibrowser/statistic/top10.jsx
+++ b/website/app/[lang]/pibrowser/statistic/top10.jsx
@@ -4,18 +4,18 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Accordion } from "flowbite-react";
import Link from "next/link";
-export default function Top10({data,lang}){
+export default function Top10({data,lang,transcript}){
if(!data || !lang) return
return(
<>
- TOP 10
+ {transcript.title}
@@ -24,8 +24,8 @@ export default function Top10({data,lang}){
No. |
- Account |
- Amount |
+ {transcript.account} |
+ {transcript.amount} |
No. |
- Account |
- PayForFee |
+ {transcript.account} |
+ {transcript.PayForFee} |
No. |
- Account |
- Frequency |
+ {transcript.account} |
+ {transcript.Frequency} |
- Source
+ {transcript.source}
|
- Operation
+ {transcript.operation}
|
- Detail
+ {transcript.detail}
|
- Time
+ {transcript.time}
|
- Streaming
+ {transcript.title}
- What is Streaming?
+ {transcript.q1}
- Stream is a feature on Stellar Horizon. Horizon provides a streaming mechanism for receiving events in near real time.
+ {transcript.answer}
- {start===false && }
- {start === true && }
+ {start===false && }
+ {start === true && }
diff --git a/website/locales/en.json b/website/locales/en.json
index cf6bced..cf360dd 100644
--- a/website/locales/en.json
+++ b/website/locales/en.json
@@ -21,7 +21,16 @@
"block":{
"Block":"Block",
"Transactions":"Transactions",
- "Time":"Time"
+ "Time":"Time",
+ "Hash":"Hash",
+ "Pre":"Pre Hash",
+ "Operation":"Operation",
+ "Transaction":"Transaction",
+ "BaseFee":"Base Fee",
+ "BaseReserve":"Base Reserve",
+ "FeePool":"Fee Pool",
+ "TotalPi":"Total Pi",
+ "Protocol":"Protocol"
},
"payment":{
"From":"From",
@@ -33,7 +42,15 @@
"Hash":"Hash",
"Operation":"Operation",
"Time":"Time",
- "Account":"Account"
+ "Account":"Account",
+ "Transaction":"Transaction",
+ "Block":"Block",
+ "Fee":"Fee",
+ "Memo":"",
+ "op":"Operation",
+ "Success":"Success",
+ "Failed":"Failed",
+ "None":"None"
},
"lockbalance":{
"Sponsor":"Sponsor",
@@ -83,10 +100,24 @@
"pool_deposit":"",
"pool_withdraw":"",
"claim_claimable_balance":"claim claimable balance"
- }
+ },
+ "source":"Source",
+ "operation":"Operation",
+ "detail":"Detail",
+ "time":"Time",
+ "no":"There has no Operation",
+ "account":"Account"
}
},
"stream":{
+ "start":{
+ "title":"Streaming",
+ "q1":"What is Streaming?",
+ "answer":"Stream is a feature on Stellar Horizon. Horizon provides a streaming mechanism for receiving events in near real time.",
+ "button":"Start"
+ },
+ "but_start":"Start",
+ "but_stop":"Stop",
"input":"Account({need})",
"Optional":"Optional",
"Required":"Required",
@@ -94,6 +125,15 @@
"Block":"Block",
"Tx":"Transaction",
"Time":"Time"
+ },
+ "op":{
+ "title":"OPERATION"
+ },
+ "tx":{
+ "title":"TRANSACTION"
+ },
+ "pay":{
+ "title":"PAYMENT"
}
},
"time":{
@@ -103,6 +143,82 @@
"day":"day",
"month":"month",
"year":"year"
+ },
+ "statistic":{
+ "Metrics":{
+ "title":"METRICS",
+ "TotalAccount":"Total Account",
+ "TotalPioneer":"Total Pioneer",
+ "MigratedPi":"Migrated Pi",
+ "PioneerHold":"Pioneer Hold",
+ "PiLocked":"Pi Locked"
+ },
+ "TOP10":{
+ "title":"TOP 10",
+ "AccountBalance":"Account Balance",
+ "AccountFee":"Account Fee",
+ "AccountPayment":"Account Payment",
+ "account":"Account",
+ "amount":"Amount",
+ "PayForFee":"PayForFee",
+ "Frequency":"Frequency"
+ },
+ "Migrate":{
+ "title":"Migrate Frequency",
+ "Month":"Month",
+ "Year":"Year",
+ "ALL":"ALL",
+ "Unlock":"Unlock",
+ "lock":"Lock",
+ "Migrateop":"Migrate Operation",
+ "CTclaim":"CT Claimed Back"
+ },
+ "Block":{
+ "title":"Block Performance",
+ "closed":"AverageClosedTime",
+ "op":"Total Operation",
+ "Month":"Month",
+ "Year":"Year",
+ "ALL":"ALL"
+ },
+ "Operation":{
+ "title":"Total Operation Distribute",
+ "Total":"Total",
+ "type":{
+ "create_account":"create account",
+ "payment":"payment",
+ "path_receive":"path payment receive",
+ "path_send":"path payment send",
+ "manage_sell":"manage sell offer",
+ "manage_buy":"manage buy offer",
+ "passive_sell":"passive sell offer",
+ "set_options":"set option",
+ "change_trust":"change trust",
+ "allow_trust":"allow trust",
+ "account_merge":"account merge",
+ "manage_data":"manage data",
+ "bump_sequence":"bump sequence",
+ "create_claimable_balance":"create claimable balance",
+ "begin_sponsoring":"",
+ "end_sponsoring":"",
+ "revoke_sponsorship":"",
+ "pool_deposit":"",
+ "pool_withdraw":"",
+ "claim_claimable_balance":"claim claimable balance"
+ }
+ },
+ "LockUP":{
+ "title":"LockUP Period",
+ "No":"No Lock",
+ "two_week":"Two Weeks",
+ "six_month":"Six Months",
+ "oneyear":"One Year",
+ "threeyears":"Three Years",
+ "Pioneers":"Pioneers"
+ }
+
+
+
}
}
\ No newline at end of file
diff --git a/website/locales/zh-TW.json b/website/locales/zh-TW.json
index 9a0eedc..aea4080 100644
--- a/website/locales/zh-TW.json
+++ b/website/locales/zh-TW.json
@@ -21,7 +21,16 @@
"block":{
"Block":"區塊",
"Transactions":"交易",
- "Time":"時間"
+ "Time":"時間",
+ "Hash":"哈希",
+ "Pre":"上一個哈希",
+ "Operation":"操作",
+ "Transaction":"交易",
+ "BaseFee":"基礎手續費",
+ "BaseReserve":"基礎預留",
+ "FeePool":"手續池",
+ "TotalPi":"Pi總額",
+ "Protocol":"協議版本"
},
"payment":{
"From":"從",
@@ -33,7 +42,15 @@
"Hash":"哈希",
"Operation":"操作數",
"Time":"時間",
- "Account":"帳戶"
+ "Account":"帳戶",
+ "Transaction":"交易",
+ "Block":"區塊",
+ "Fee":"手續費",
+ "Memo":"備忘錄",
+ "op":"操作",
+ "Success":"成功",
+ "Failed":"失敗",
+ "None":"無"
},
"lockbalance":{
"Sponsor":"支助者",
@@ -83,10 +100,24 @@
"pool_deposit":"",
"pool_withdraw":"",
"claim_claimable_balance":"獲取資產"
- }
+ },
+ "source":"來源",
+ "operation":"操作",
+ "detail":"詳細動作",
+ "time":"時間",
+ "no":"沒有操作",
+ "account":"帳戶"
}
},
"stream":{
+ "start":{
+ "title":"實況",
+ "q1":"甚麼是實況?",
+ "answer":"實況是一個Stellar API提供的功能. 這功能可以在接近真正時間的狀態下收到區塊鏈資訊.",
+ "button":"開使"
+ },
+ "but_start":"開使",
+ "but_stop":"停止",
"input":"公鑰({need})",
"Optional":"選項",
"Required":"必填",
@@ -94,6 +125,15 @@
"Block":"區塊",
"Tx":"交易",
"Time":"時間"
+ },
+ "op":{
+ "title":"操作"
+ },
+ "tx":{
+ "title":"交易"
+ },
+ "pay":{
+ "title":"付款"
}
},
"time":{
@@ -103,5 +143,77 @@
"day":"天",
"month":"月",
"year":"年"
+ },"statistic":{
+ "Metrics":{
+ "title":"統計",
+ "TotalAccount":"總共帳戶",
+ "TotalPioneer":"先鋒帳戶",
+ "MigratedPi":"已整合的Pi",
+ "PioneerHold":"先鋒持有",
+ "PiLocked":"鎖倉中的Pi"
+ },
+ "TOP10":{
+ "title":"排行榜前10",
+ "AccountBalance":"帳戶餘額",
+ "AccountFee":"帳戶手續費",
+ "AccountPayment":"帳戶付款次數",
+ "account":"帳戶",
+ "amount":"數量",
+ "PayForFee":"手續費支出",
+ "Frequency":"次數"
+ },
+ "Migrate":{
+ "title":"Pi整合狀況",
+ "Month":"月",
+ "Year":"年",
+ "ALL":"全部",
+ "Unlock":"解鎖",
+ "lock":"鎖倉",
+ "Migrateop":"整合操作",
+ "CTclaim":"核心團隊贖回"
+ },
+ "Block":{
+ "title":"區塊表現狀況",
+ "closed":"平均區塊關閉時間",
+ "op":"操作數量",
+ "Month":"月",
+ "Year":"年",
+ "ALL":"全部"
+ },
+ "Operation":{
+ "title":"操作類型分布",
+ "Total":"總共",
+ "type":{
+ "create_account":"創建帳戶",
+ "payment":"付款",
+ "path_receive":"path payment receive",
+ "path_send":"path payment send",
+ "manage_sell":"manage sell offer",
+ "manage_buy":"manage buy offer",
+ "passive_sell":"passive sell offer",
+ "set_options":"set option",
+ "change_trust":"change trust",
+ "allow_trust":"allow trust",
+ "account_merge":"account merge",
+ "manage_data":"manage data",
+ "bump_sequence":"bump sequence",
+ "create_claimable_balance":"創建可索取資產",
+ "begin_sponsoring":"",
+ "end_sponsoring":"",
+ "revoke_sponsorship":"",
+ "pool_deposit":"",
+ "pool_withdraw":"",
+ "claim_claimable_balance":"獲取可索取資產"
+ }
+ },
+ "LockUP":{
+ "title":"鎖倉時間分布",
+ "No":"不鎖倉",
+ "two_week":"兩周",
+ "six_month":"六個月",
+ "oneyear":"一年",
+ "threeyears":"三年",
+ "Pioneers":"先鋒人數"
+ }
}
}
\ No newline at end of file
|