Skip to content

Commit

Permalink
Pushing out the ability to install as an app. version 1.03
Browse files Browse the repository at this point in the history
  • Loading branch information
runxc1 committed Apr 12, 2024
1 parent 9053c52 commit 3d7976f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Framework/PausableTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public void Stop()
{
Stopwatch.Stop();
}
public bool IsRunning {
get{
return Stopwatch.IsRunning;
}
}
public void TakeSplit()
{
var ts = this.Stopwatch.Elapsed;
Expand Down
11 changes: 10 additions & 1 deletion Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
private int currentCount = 6;
string timeFormat = @"mm\:ss\.ff";
bool editMode = false;
decimal version = 1.02M;
decimal version = 1.03M;
TimerSettings settings = new TimerSettings();
List<PausableTimer> timers = new List<PausableTimer>()
{
Expand Down Expand Up @@ -253,6 +253,15 @@
splitRes.Name = t.Name;
sr.Results.Add(splitRes);
}
if (!t.IsRunning && t.ElapsedSinceLast > TimeSpan.Zero)
{
var splitRes = new SplitResult();
splitRes.Ellapsed = t.Stopwatch.Elapsed;
splitRes.SplitTime = t.ElapsedSinceLast;
splitRes.Number = t.Splits.Count() + 1;
splitRes.Name = t.Name;
sr.Results.Add(splitRes);
}
t.Reset();
}
allStarted = false;
Expand Down
5 changes: 4 additions & 1 deletion wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TrackBlazor</title>
<title>MATT - Multi Athlete Track Timer</title>
<base href="/" />
<link href="_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css" rel="stylesheet" />
<link rel="stylesheet" href="css/app.css" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
<link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
<link href="TrackBlazor.styles.css" rel="stylesheet" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="manifest" href="/manifest.webmanifest" />

<script src="scripts/NoSleep.min.js"></script>
<script src="scripts/NoSleepInterop.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions wwwroot/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"background_color": "#000000",
"theme_color": "#60c9fc",
"prefer_related_applications": false,
"orientation": "portrait",
"icons": [
{
"src": "icon-512.png",
Expand Down
2 changes: 1 addition & 1 deletion wwwroot/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const CACHE_VERSION = 1.02;
const CACHE_VERSION = 1.03;

0 comments on commit 3d7976f

Please sign in to comment.