Adjust vote refresh interval to 1 minute and update vote disclaimer text. Add vote statistics display.

This commit is contained in:
akastijn 2025-10-24 22:13:44 +02:00
parent 754479eb98
commit 24e28015d3
2 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,7 @@
</div>
<div class="voteDisclaimer">
<h3 style="text-align: center;">Disclaimers & Info</h3>
<p style="text-align: center;">You can only store 7 daily crate keys, 1 weekly crate key and 2 quest crate
<p style="text-align: center;">You can only store 7 daily crate keys, 2 weekly crate key and 2 quest crate
keys.</p><br>
<p style="text-align: center;">Voting within 30 minutes of midnight UTC can cause your votes to glitch. Keys
lost due to voting too close to midnight UTC will not be reimbursed.
@ -41,6 +41,10 @@
</section>
</section>
<section class="voteSection">
@if (voteStats) {
<p>You have voted {{ voteStats.voteStats.total }} times and {{ voteStats.voteStats.weekly }} this week. You are
on a {{ voteStats.voteStreak.dailyStreak }} vote streak!</p>
}
<div class="container voteContainer">
@for (voteSite of Object.keys(voteSites); track voteSite) {
<div class="vote">

View File

@ -48,7 +48,7 @@ export class VoteComponent implements OnInit, OnDestroy {
}
ngOnInit(): void {
this.refreshSubscription = interval(300000).subscribe(() => {
this.refreshSubscription = interval(60000).subscribe(() => {
this.loadVoteStats();
});
}