Skip to content

Commit a348f73

Browse files
committed
add pwa upload info
1 parent 4ffead7 commit a348f73

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

src/SC2ArcadeCrawler/CrawlerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private static int GetWaitTime(HttpResponseMessage response)
178178
}
179179
else
180180
{
181-
return rateLimitRemaining * 1000;
181+
return rateLimitReset * 1000;
182182
}
183183
}
184184
else

src/dsstats.web/dsstats.web.Client/Pages/UploadPage.razor

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99

1010
<PageTitle>dsstats - upload</PageTitle>
1111

12-
<div class="container">
12+
<div class="container py-4 bgchart">
1313
<h4>Upload Replays</h4>
1414

1515
<p>You can upload one replay here:</p>
1616
<dsstats.razorlib.Ih.IhUploadComp Guid="guid" OnDecodeRequested="DecodeRequested" />
17-
<small class="text-info bgchart2 p-1">By uploading replays you agree, that the replay data can be used for player and commander stats on this website.</small>
17+
<small class="text-info bgchart2 p-1">
18+
By uploading replays you agree that the replay data can be used for player and commander stats on this website.
19+
</small>
1820

1921
<div>
2022
@if (decoding)
@@ -41,13 +43,11 @@
4143
}
4244
@if (!string.IsNullOrEmpty(errorMessage))
4345
{
44-
<p class="text-danger">
45-
@errorMessage
46-
</p>
46+
<p class="text-danger">@errorMessage</p>
4747
}
4848
</div>
4949

50-
<div class="mt-3 bgchart p-2 rounded" style="max-width: 500px;">
50+
<div class="mt-4 bgchart p-2 rounded" style="max-width: 500px;">
5151
<p>
5252
To upload all your replays you can use the free Windows desktop application:
5353
<div>
@@ -69,8 +69,25 @@
6969
</a>
7070
</div>
7171
</div>
72+
73+
<div class="mt-4 card shadow-sm border-0 bgchart2" style="max-width: 600px;">
74+
<div class="card-body">
75+
<h5 class="card-title">💡 Try the new PWA!</h5>
76+
<p class="card-text">
77+
You can now use the <strong>dsstats PWA (Progressive Web App)</strong> directly in your browser to
78+
<strong>decode and upload replays</strong> without installing anything.
79+
</p>
80+
<p class="card-text">
81+
The PWA works offline, stores replays in your browser, and can be installed on your desktop or mobile device.
82+
</p>
83+
<a href="https://dsstats-dev.pax77.org" target="_blank" class="btn btn-primary">
84+
<i class="bi bi-box-arrow-up-right me-1"></i> Open dsstats PWA
85+
</a>
86+
</div>
87+
</div>
7288
</div>
7389

90+
7491
@code {
7592
Guid guid = Guid.NewGuid();
7693

0 commit comments

Comments
 (0)