Skip to content

Commit 3a0f4e5

Browse files
authored
Merge pull request #6 from RossDScott/sessionize-refresh
Sessionize refresh
2 parents 43a4efc + efd64ee commit 3a0f4e5

16 files changed

Lines changed: 1071 additions & 33 deletions

File tree

PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Home/Store/EventDataMapper.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using PocketDDD.BlazorClient.Features.Sync.Store;
2-
using PocketDDD.Shared.API.ResponseDTOs;
1+
using PocketDDD.Shared.API.ResponseDTOs;
32
using System.Collections.Immutable;
4-
using System.Runtime.CompilerServices;
53

64
namespace PocketDDD.BlazorClient.Features.Home.Store;
75

@@ -24,6 +22,10 @@ public static IImmutableList<TimeSlot> ToHomeStateModel(this EventDataResponseDT
2422
TrackName = eventData.Tracks.Single(tr => tr.Id == s.TrackId).Name,
2523
RoomName = eventData.Tracks.Single(tr => tr.Id == s.TrackId).RoomName,
2624
IsBookmarked = sessionBookmarks.Contains(s.Id)
27-
}).ToImmutableList()
28-
}).ToImmutableList();
25+
})
26+
.OrderBy(s => s.TrackName)
27+
.ToImmutableList()
28+
})
29+
.OrderBy(ts => ts.From)
30+
.ToImmutableList();
2931
}

PocketDDD.BlazorClient/PocketDDD.BlazorClient/wwwroot/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,23 @@
2323
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
2424
<script>
2525
if (window.location.hostname.includes("localhost") || window.location.hostname.includes("development")) {
26+
console.info("Env = Development")
2627
Blazor.start({
27-
environment: "Test"
28+
environment: "Development"
2829
});
2930
} else if (window.location.hostname.includes("test")) {
31+
console.info("Env = Test")
3032
Blazor.start({
3133
environment: "Test"
3234
});
3335
} else {
36+
console.info("Env = Prod")
3437
Blazor.start({
3538
environment: "Production"
3639
});
3740
}
41+
42+
3843
</script>
3944

4045
<script src="_content/MudBlazor/MudBlazor.min.js"></script>

0 commit comments

Comments
 (0)