Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Block Explorer UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
Block Explorer UI
Commits
03210a7d
Commit
03210a7d
authored
9 months ago
by
Jakub Lachór
Browse files
Options
Downloads
Patches
Plain Diff
Line-through display for inactive witness
parent
e5622698
No related branches found
Branches containing commit
No related tags found
1 merge request
!358
Line-through display for inactive witness
Pipeline
#99293
canceled
9 months ago
Stage: build
Stage: test
Stage: test-report-aggregate
Stage: cleanup
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Config.ts
+1
-0
1 addition, 0 deletions
Config.ts
pages/witnesses.tsx
+11
-16
11 additions, 16 deletions
pages/witnesses.tsx
with
12 additions
and
16 deletions
Config.ts
+
1
−
0
View file @
03210a7d
...
...
@@ -15,6 +15,7 @@ export const config = {
home
:
20
},
maxWitnessVotes
:
30
,
inactiveWitnessKey
:
'
STM1111111111111111111111111111111114T1Anm
'
,
maxDelegatorsCount
:
1000
,
lastBlocksForWidget
:
20
,
firstBlockTime
:
"
2016-03-24T16:05:00
"
,
...
...
This diff is collapsed.
Click to expand it.
pages/witnesses.tsx
+
11
−
16
View file @
03210a7d
...
...
@@ -13,7 +13,7 @@ import VotersDialog from "@/components/Witnesses/VotersDialog";
import
VotesHistoryDialog
from
"
@/components/Witnesses/VotesHistoryDialog
"
;
import
useWitnesses
from
"
@/api/common/useWitnesses
"
;
import
{
config
}
from
"
@/Config
"
;
import
{
formatNumber
,
formatPercent
}
from
"
@/lib/utils
"
;
import
{
cn
,
formatNumber
,
formatPercent
}
from
"
@/lib/utils
"
;
import
Head
from
"
next/head
"
;
export
default
function
Witnesses
()
{
...
...
@@ -83,26 +83,21 @@ export default function Witnesses() {
data-testid
=
"witnesses-table-row"
>
<
TableCell
className
=
{
`
${
index
%
2
===
0
?
"
bg-gray-800 md:bg-inherit
"
:
"
bg-gray-900 md:bg-inherit
"
}
`
+
"
sticky left-0 min-w-[20px]
"
}
className
=
{
cn
(
"
sticky left-0 min-w-[20px]
"
,
{
"
bg-gray-800 md:bg-inherit
"
:
index
%
2
===
0
,
"
bg-gray-900 md:bg-inherit
"
:
index
%
2
!==
0
})
}
>
{
index
+
1
}
</
TableCell
>
<
TableCell
className
=
{
`
${
index
%
2
===
0
?
"
bg-gray-800 md:bg-inherit
"
:
"
bg-gray-900 md:bg-inherit
"
}
`
+
"
text-explorer-turquoise sticky left-11
"
}
className
=
{
cn
(
"
text-explorer-turquoise sticky left-11
"
,
{
"
bg-gray-800 md:bg-inherit
"
:
index
%
2
===
0
,
"
bg-gray-900 md:bg-inherit
"
:
index
%
2
!==
0
,
"
line-through
"
:
singleWitness
.
signing_key
===
config
.
inactiveWitnessKey
,
})
}
>
{
"
"
}
<
Link
href
=
{
`/@
${
singleWitness
.
witness
}
`
}
data-testid
=
"witness-name"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment