File tree 1 file changed +9
-0
lines changed
docs/src/components/leaderboard
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
let loading = true ;
8
8
let error = null ;
9
9
let isUsernamePresent = false ;
10
+ let globalCount = 0 ;
10
11
11
12
token .subscribe (token => {
12
13
if (token) {
34
35
break ;
35
36
}
36
37
38
+ globalCount = globalCount + items .length ;
39
+
37
40
items .forEach (pr => {
38
41
const userLogin = pr .user .login ;
39
42
if (prCounts[userLogin]) {
76
79
{#if ! $isConnected}
77
80
< div class = " important-block not-connected" > Log in to Github to see the list< / div>
78
81
{: else }
82
+ 🔥Total Answers: < span class = " global-count" > { globalCount }< / span>
79
83
{#if isUsernamePresent}
80
84
< div class = " link-username" >
81
85
< a href= {` #${ $username} ` }> Check my position< / a>
102
106
margin- top: 1rem ;
103
107
}
104
108
109
+ .global - count {
110
+ color: red;
111
+ font- size: 20px ;
112
+ }
113
+
105
114
.link - username {
106
115
margin- top: 2rem ;
107
116
width: 100 % ;
You can’t perform that action at this time.
0 commit comments