Skip to content

Commit 89f40ed

Browse files
committed
transcript update
1 parent b72c8bd commit 89f40ed

File tree

17 files changed

+339
-107
lines changed

17 files changed

+339
-107
lines changed

website/app/[lang]/pibrowser/explorer/block/[block]/dashboard.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useEffect, useState } from "react"
33
import { Server } from "stellar-sdk"
44
import Link from "next/link"
5-
export default function Dashboard({block}){
5+
export default function Dashboard({block,transcript}){
66
const [lang,setlang] = useState()
77
const server = new Server(process.env['NEXT_PUBLIC_HORIZON_SERVER'])
88
const [data,setdata] = useState(null)
@@ -24,7 +24,7 @@ export default function Dashboard({block}){
2424
<tbody>
2525
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
2626
<td className=" py-1 font-medium">
27-
Hash
27+
{transcript.Hash}
2828
</td>
2929
<td className=" px-3 py-1 font-bold">
3030
{data&&
@@ -35,7 +35,7 @@ export default function Dashboard({block}){
3535
</tr>
3636
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
3737
<td className=" py-1 font-medium">
38-
Pre Hash
38+
{transcript.Pre}
3939
</td>
4040
<td className=" px-3 py-1">
4141
{data &&
@@ -49,7 +49,7 @@ export default function Dashboard({block}){
4949
</tr>
5050
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
5151
<td className=" py-1 font-medium">
52-
Operation
52+
{transcript.Operation}
5353
</td>
5454
<td className=" px-3 py-1">
5555
{data&&
@@ -60,7 +60,7 @@ export default function Dashboard({block}){
6060

6161
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
6262
<td className=" py-1 font-medium">
63-
Transaction
63+
{transcript.Transaction}
6464
</td>
6565
<td className=" px-3 py-1">
6666
{data&&
@@ -74,7 +74,7 @@ export default function Dashboard({block}){
7474
</tr>
7575
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
7676
<td className=" py-1 font-medium">
77-
Base Fee
77+
{transcript.BaseFee}
7878
</td>
7979
<td className=" px-3 py-1">
8080
{data&&
@@ -88,7 +88,7 @@ export default function Dashboard({block}){
8888
</tr>
8989
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
9090
<td className=" py-1 font-medium">
91-
Base Reserve
91+
{transcript.BaseReserve}
9292
</td>
9393
<td className=" px-3 py-1">
9494
{data&&
@@ -102,7 +102,7 @@ export default function Dashboard({block}){
102102
</tr>
103103
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
104104
<td className=" py-1 font-medium">
105-
Fee Pool
105+
{transcript.FeePool}
106106
</td>
107107
<td className=" px-3 py-1">
108108
{data&&
@@ -116,7 +116,7 @@ export default function Dashboard({block}){
116116
</tr>
117117
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
118118
<td className=" py-1 font-medium">
119-
Total Pi
119+
{transcript.TotalPi}
120120
</td>
121121
<td className=" px-3 py-1">
122122
{data&&
@@ -130,7 +130,7 @@ export default function Dashboard({block}){
130130
</tr>
131131
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
132132
<td className=" py-1 font-medium">
133-
Protocol
133+
{transcript.Protocol}
134134
</td>
135135
<td className=" px-3 py-1">
136136
{data&&

website/app/[lang]/pibrowser/explorer/block/[block]/page.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ export default async function BlockPage({params:{lang,block}}){
1010
<section className=" m-4 overflow-y-scroll h-full pb-28">
1111
<section className="my-2">
1212
<div className="text-center text-2xl font-mono font-semibold border-b mx-4">
13-
Block {block}
13+
{transcript.explorer.block.Block} {block}
1414
<Share block={block}/>
1515
</div>
1616

1717
<div className="text-center pb-2 text-purple-500 text-lg my-2 border-b mx-4" >
18-
<Dashboard block={block}/>
18+
<Dashboard block={block} transcript={transcript.explorer.block}/>
1919
</div>
2020
</section>
2121

2222
<section>
2323
<div className="text-center mb-2 font-bold text-lg bg-border bg-border-size bg-no-repeat bg-left-bottom">
24-
Transaction
24+
{transcript.explorer.block.Transaction}
2525
</div>
2626
<Transaction block={block} transcript={transcript.explorer.transaction}/>
2727
</section>

website/app/[lang]/pibrowser/explorer/tx/[tx_hash]/dashboard.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useEffect, useState } from "react"
33
import { Server } from "stellar-sdk"
44
import Link from "next/link"
5-
export default function Dashboard({tx_hash}){
5+
export default function Dashboard({tx_hash,transcript}){
66
const [lang,setlang] = useState()
77
const server = new Server(process.env['NEXT_PUBLIC_HORIZON_SERVER'])
88
const [data,setdata] = useState(null)
@@ -25,7 +25,7 @@ export default function Dashboard({tx_hash}){
2525
<tbody>
2626
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
2727
<td className=" py-1 font-medium">
28-
Block
28+
{transcript.Block}
2929
</td>
3030
<td className=" px-3 py-1">
3131
{data &&
@@ -39,7 +39,7 @@ export default function Dashboard({tx_hash}){
3939
</tr>
4040
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
4141
<td className=" py-1 font-medium">
42-
Hash
42+
{transcript.Hash}
4343
</td>
4444
<td className=" px-3 py-1 font-bold">
4545
{data&&
@@ -51,7 +51,7 @@ export default function Dashboard({tx_hash}){
5151

5252
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
5353
<td className=" py-1 font-medium">
54-
Operation
54+
{transcript.Operation}
5555
</td>
5656
<td className=" px-3 py-1">
5757
{data&&
@@ -61,7 +61,7 @@ export default function Dashboard({tx_hash}){
6161
</tr>
6262
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
6363
<td className=" py-1 font-medium">
64-
Account
64+
{transcript.Account}
6565
</td>
6666
<td className=" px-3 py-1">
6767
{data &&
@@ -75,7 +75,7 @@ export default function Dashboard({tx_hash}){
7575
</tr>
7676
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
7777
<td className=" py-1 font-medium">
78-
Fee
78+
{transcript.Fee}
7979
</td>
8080
<td className=" px-3 py-1">
8181
{data&&
@@ -89,13 +89,13 @@ export default function Dashboard({tx_hash}){
8989
</tr>
9090
<tr className="border-b border-[#F7E4BE] bg-[#FBF2DE] text-neutral-800">
9191
<td className=" py-1 font-medium">
92-
Memo
92+
{transcript.Memo}
9393
</td>
9494
<td className=" px-3 py-1">
9595
{data&&
9696
<>
9797
<span className="font-bold">
98-
{data.memo ? data.memo:<>None</>}
98+
{data.memo ? data.memo:<>{transcript.None}</>}
9999

100100
</span>
101101
</>
@@ -107,14 +107,14 @@ export default function Dashboard({tx_hash}){
107107
{data&&data.successful&&
108108
<>
109109
<span className=" inline-block py-1 px-2.5 leading-none text-center whitespace-nowrap align-baseline font-bold bg-green-400 text-white rounded-full">
110-
Success
110+
{transcript.Success}
111111
</span>
112112
</>
113113
}
114114
{data&&!data.successful&&
115115
<>
116116
<span className=" inline-block py-1 px-2.5 leading-none text-center whitespace-nowrap align-baseline font-bold bg-red-600 text-white rounded-full">
117-
Failed
117+
{transcript.Failed}
118118
</span>
119119
</>
120120
}

website/app/[lang]/pibrowser/explorer/tx/[tx_hash]/op.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Operation({tx_hash,transcript}){
3333
return(
3434
<>
3535
<div className="text-center">
36-
There has no Operation
36+
{transcript.no}
3737
</div>
3838
</>
3939
)
@@ -43,9 +43,9 @@ export default function Operation({tx_hash,transcript}){
4343
<table className="w-full text-center table-fixed font-mono">
4444
<thead className="border-b border-slate-400 text-lg">
4545
<tr>
46-
<th>Account</th>
47-
<th>Type</th>
48-
<th>Detail</th>
46+
<th>{transcript.account}</th>
47+
<th>{transcript.operation}</th>
48+
<th>{transcript.detail}</th>
4949
</tr>
5050
</thead>
5151
<tbody>

website/app/[lang]/pibrowser/explorer/tx/[tx_hash]/page.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ export default async function TxPage({params:{lang,tx_hash}}){
1111
<section className=" m-4 overflow-y-scroll h-full pb-28">
1212
<section className="my-2">
1313
<div className="text-center text-2xl font-mono font-semibold border-b mx-4">
14-
Transaction
14+
{transcript.explorer.transaction.Transaction}
1515
<div className=" break-words">
1616
{tx_hash}
1717
</div>
1818
<Share tx_hash={tx_hash}/>
1919
</div>
2020

2121
<div className="text-center pb-2 text-purple-500 text-lg my-2 border-b mx-4" >
22-
<Dashboard tx_hash={tx_hash}/>
22+
<Dashboard tx_hash={tx_hash} transcript={transcript.explorer.transaction}/>
2323
</div>
2424
</section>
2525

2626
<section className="mx-2">
2727
<div className="text-center mb-2 font-bold text-lg bg-border bg-border-size bg-no-repeat bg-left-bottom">
28-
Operation
28+
{transcript.explorer.transaction.op}
2929
</div>
3030
<Operation tx_hash={tx_hash} transcript={transcript.explorer.operation}/>
3131
</section>

website/app/[lang]/pibrowser/statistic/block.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { Line } from "react-chartjs-2"
3636
},
3737
};
3838

39-
export default function Block({data}){
39+
export default function Block({data,transcript}){
4040
if(!data) return
4141
const [filter,setfilter] = useState([])
4242
const [range,setrange] = useState('all')
@@ -57,14 +57,14 @@ export default function Block({data}){
5757
{
5858
datasets: [
5959
{
60-
label: 'AverageClosedTime',
60+
label: transcript.closed,
6161
data: filter,
6262
borderColor: 'rgb(255, 99, 132)',
6363
backgroundColor: 'rgba(255, 99, 132, 0.5)',
6464
yAxisID: 'y',
6565
},
6666
{
67-
label: 'TotalOperation',
67+
label: transcript.op,
6868
data: filter,
6969
borderColor: 'rgb(53, 162, 235)',
7070
backgroundColor: 'rgba(53, 162, 235, 0.5)',
@@ -81,13 +81,13 @@ export default function Block({data}){
8181
return(
8282
<>
8383
<div className="text-center mb-2 font-bold text-lg bg-border bg-border-size bg-no-repeat bg-left-bottom ">
84-
Block Performance
84+
{transcript.title}
8585
</div>
8686
<div className="flex items-center justify-center mb-3">
8787
<div className="inline-flex shadow-md hover:shadow-lg focus:shadow-lg" role="group">
88-
<button type="button" className="rounded-l inline-block px-6 py-2.5 bg-yellow-400 text-white font-medium text-xs leading-tight uppercase hover:bg-yellow-600 focus:bg-yellow-600 focus:outline-none focus:ring-0 active:bg-yellow-700 transition duration-150 ease-in-out" onClick={()=>setrange('m')}>Month</button>
89-
<button type="button" className="inline-block px-6 py-2.5 bg-yellow-400 text-white font-medium text-xs leading-tight uppercase hover:bg-yellow-600 focus:bg-yellow-600 focus:outline-none focus:ring-0 active:bg-yellow-700 transition duration-150 ease-in-out" onClick={()=>setrange('y')}>Year</button>
90-
<button type="button" className="rounded-r inline-block px-6 py-2.5 bg-yellow-400 text-white font-medium text-xs leading-tight uppercase hover:bg-yellow-600 focus:bg-yellow-600 focus:outline-none focus:ring-0 active:bg-yellow-700 transition duration-150 ease-in-out" onClick={()=>setrange('all')}>All</button>
88+
<button type="button" className="rounded-l inline-block px-6 py-2.5 bg-yellow-400 text-white font-medium text-xs leading-tight uppercase hover:bg-yellow-600 focus:bg-yellow-600 focus:outline-none focus:ring-0 active:bg-yellow-700 transition duration-150 ease-in-out" onClick={()=>setrange('m')}>{transcript.Month}</button>
89+
<button type="button" className="inline-block px-6 py-2.5 bg-yellow-400 text-white font-medium text-xs leading-tight uppercase hover:bg-yellow-600 focus:bg-yellow-600 focus:outline-none focus:ring-0 active:bg-yellow-700 transition duration-150 ease-in-out" onClick={()=>setrange('y')}>{transcript.Year}</button>
90+
<button type="button" className="rounded-r inline-block px-6 py-2.5 bg-yellow-400 text-white font-medium text-xs leading-tight uppercase hover:bg-yellow-600 focus:bg-yellow-600 focus:outline-none focus:ring-0 active:bg-yellow-700 transition duration-150 ease-in-out" onClick={()=>setrange('all')}>{transcript.ALL}</button>
9191
</div>
9292
</div>
9393
<div className="h-48">

0 commit comments

Comments
 (0)