Skip to content

Commit 0bdbf57

Browse files
authored
Merge branch 'master' into feature/friends-leaderboard
2 parents fb63063 + b5755fa commit 0bdbf57

File tree

6 files changed

+160
-245
lines changed

6 files changed

+160
-245
lines changed

.github/workflows/monkey-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- 'backend/**/*.{ts,js,json,lua,css,html}'
5050
- 'backend/package.json'
5151
fe-src:
52-
- 'frontend/**/*.{ts,scss}'
52+
- 'frontend/**/*.{ts,scss,html}'
5353
- 'frontend/package.json'
5454
pkg-src:
5555
- 'packages/**/*'

frontend/scripts/fontawesome.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ export function getFontawesomeConfig(debug = false): FontawesomeConfig {
9999
(it) => !(solid.includes(it) || regular.includes(it) || brands.includes(it))
100100
);
101101
if (leftOvers.length !== 0) {
102-
throw new Error("unknown icons: " + leftOvers.toString());
102+
throw new Error(
103+
"Fontawesome failed with unknown icons: " + leftOvers.toString()
104+
);
103105
}
104106

105107
if (debug) {

frontend/src/html/pages/account.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,19 @@
685685
<thead>
686686
<tr>
687687
<td></td>
688-
<td type="button" class="sortable history-wpm-header">wpm</td>
689-
<td type="button" class="sortable history-raw-header">raw</td>
690-
<td type="button" class="sortable history-acc-header">accuracy</td>
691-
<td type="button" class="sortable history-consistency-header">
688+
<td data-sort-property="wpm" data-sort-default-direction="desc">
689+
wpm
690+
</td>
691+
<td data-sort-property="rawWpm" data-sort-default-direction="desc">
692+
raw
693+
</td>
694+
<td data-sort-property="acc" data-sort-default-direction="desc">
695+
accuracy
696+
</td>
697+
<td
698+
data-sort-property="consistency"
699+
data-sort-default-direction="desc"
700+
>
692701
consistency
693702
</td>
694703
<td
@@ -701,9 +710,11 @@
701710
<!-- <td>punctuation</td> -->
702711
<td>info</td>
703712
<td>tags</td>
704-
<td type="button" class="sortable history-date-header">
713+
<td
714+
data-sort-property="timestamp"
715+
data-sort-default-direction="desc"
716+
>
705717
date
706-
<i class="fas fa-sort-down" aria-hidden="true"></i>
707718
</td>
708719
</tr>
709720
</thead>

frontend/src/styles/account.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -440,18 +440,6 @@
440440
}
441441
}
442442
}
443-
444-
.headerSorted {
445-
font-weight: bold;
446-
}
447-
448-
.sortable:hover {
449-
cursor: pointer;
450-
-webkit-user-select: none;
451-
user-select: none;
452-
background-color: var(--sub-alt-color);
453-
}
454-
455443
.testActivity {
456444
// width: max-content;
457445
// justify-self: center;

0 commit comments

Comments
 (0)