This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -267,8 +267,8 @@ const table = (props) => {
267
267
< React . Fragment >
268
268
{ largeColumns && f2fLeaderboard && profile . hasOwnProperty ( 'handle' ) && < div className = 'handleName animate fadeIn' >
269
269
</ div > }
270
- < div className = 'status' >
271
- Awaiting submission
270
+ < div className = 'status animate flash infinite' >
271
+ Processing final scores...
272
272
</ div >
273
273
</ React . Fragment >
274
274
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module.exports = {
2
2
publicRuntimeConfig : {
3
3
host : process . env . HOST ,
4
4
pollTimeInterval : process . env . LEADERBOARD_POLL_TIME_INTERVAL || 1000 ,
5
- leaderboardRevealDelay : process . env . LEADERBOARD_REVEAL_DELAY || 500 ,
6
- processDevRevealDelay : process . env . DEV_LEADERBOARD_REVEAL_DELAY || 7000
5
+ leaderboardRevealDelay : process . env . LEADERBOARD_REVEAL_DELAY || 2000 ,
6
+ processDevRevealDelay : process . env . DEV_LEADERBOARD_REVEAL_DELAY || 5000
7
7
}
8
8
}
Original file line number Diff line number Diff line change @@ -125,11 +125,25 @@ class F2FLeaderboard extends React.Component {
125
125
. then ( ( leaderboard ) => {
126
126
if ( this . props . isF2f ) {
127
127
leaderboard . sort ( ( a , b ) => ( b . points - a . points ) )
128
+
129
+ console . log ( leaderboard )
128
130
129
131
if ( this . props . showFinalScore ) {
132
+ // // First, take a break and build the excitement
133
+ // leaderboard = leaderboard.map((l, i) => {
134
+ // const member = {
135
+ // handle: i,
136
+ // status: 'Processing final scores...',
137
+ // statusAnimationClass: 'animate flash infinite',
138
+ // animationClass: 'hidden'
139
+ // }
140
+ // return member
141
+ // })
142
+
130
143
leaderboard . forEach ( l => { l . reveal = false } )
131
144
this . setState ( { leaderboard } )
132
- this . animateLeaderboard ( )
145
+ this . polling = setTimeout ( this . animateLeaderboard , publicRuntimeConfig . processDevRevealDelay )
146
+ // this.animateLeaderboard()
133
147
} else {
134
148
leaderboard . forEach ( l => { l . reveal = true } )
135
149
this . setState ( { leaderboard } )
@@ -177,6 +191,8 @@ class F2FLeaderboard extends React.Component {
177
191
178
192
this . setState ( { leaderboard } )
179
193
194
+ console . log ( publicRuntimeConfig )
195
+
180
196
// Show time !!
181
197
this . polling = setTimeout ( this . displayFinalScores , publicRuntimeConfig . processDevRevealDelay )
182
198
} else {
You can’t perform that action at this time.
0 commit comments