-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first cut of the most played section * updating the most played games and totals * fixing incorrect logic to select history tab everytime * fixing an issue selected sort order not being highlighted * progress on getting setting up period for stats * adding dockerfile for cache worker * updating docker and readme file * getting docker to run * adding app settings to docker ignore * updating android's icon to support adaptive and themed icons * making the icon a tad smaller * fixing a problem with ties UI not updating when scores are no longer tied * adding basic overall stats * Fixing stats material and font awesome icon spacings * handling preset period change to show stats * Hooking up selecting custom dates
- Loading branch information
Showing
62 changed files
with
2,990 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,7 @@ | |
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
**/appsettings.json | ||
**/appsettings.*.json | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
backend/cache/BGC.UpdateBoardGameCacheWorker/Properties/launchSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
{ | ||
{ | ||
"profiles": { | ||
"BGC.UpdateBoardGameCacheWorker": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"environmentVariables": { | ||
"DOTNET_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"dotnetRunMessages": true | ||
}, | ||
"Docker": { | ||
"commandName": "Docker" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
|
||
WORKDIR /source | ||
COPY cache/BGC.UpdateBoardGameCacheWorker/*.csproj ./cache/BGC.UpdateBoardGameCacheWorker/ | ||
COPY cache/BGC.CacheCore/*.csproj ./cache/BGC.CacheCore/ | ||
COPY BGC.Core/*.csproj ./BGC.Core/ | ||
|
||
WORKDIR /source/cache/BGC.UpdateBoardGameCacheWorker | ||
RUN dotnet restore | ||
|
||
# TODO Remove this, to avoid including all of the files (especially the app settings) | ||
COPY . ./ | ||
RUN dotnet publish cache/BGC.UpdateBoardGameCacheWorker/BGC.UpdateBoardGameCacheWorker.csproj --self-contained false -o /app | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 as runtime | ||
WORKDIR /app | ||
COPY --from=build /app . | ||
ENTRYPOINT ["dotnet", "BGC.UpdateBoardGameCacheWorker.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions
7
board_games_companion/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/primaryLight"/> | ||
<foreground android:drawable="@drawable/ic_launcher_foreground"/> | ||
</adaptive-icon> | ||
<background android:drawable="@mipmap/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
6 changes: 6 additions & 0 deletions
6
board_games_companion/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
Binary file removed
BIN
-2.37 KB
board_games_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file added
BIN
+2.07 KB
board_games_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+44 Bytes
board_games_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.webp
Binary file not shown.
Binary file added
BIN
+2.48 KB
board_games_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+3.78 KB
board_games_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file removed
BIN
-1.33 KB
board_games_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file added
BIN
+1.34 KB
board_games_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+44 Bytes
board_games_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.webp
Binary file not shown.
Binary file added
BIN
+1.33 KB
board_games_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+2.34 KB
board_games_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file removed
BIN
-3.69 KB
board_games_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file added
BIN
+2.88 KB
board_games_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+46 Bytes
board_games_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.webp
Binary file not shown.
Binary file added
BIN
+3.71 KB
board_games_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+5.54 KB
board_games_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file removed
BIN
-6.97 KB
board_games_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file added
BIN
+4.61 KB
board_games_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+52 Bytes
board_games_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp
Binary file not shown.
Binary file added
BIN
+6.39 KB
board_games_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+9.13 KB
board_games_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file removed
BIN
-12.2 KB
board_games_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file added
BIN
+6.36 KB
board_games_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file added
BIN
+52 Bytes
board_games_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp
Binary file not shown.
Binary file added
BIN
+10.4 KB
board_games_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
Binary file not shown.
Binary file added
BIN
+12.3 KB
board_games_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
board_games_companion/lib/common/enums/plays_stats_preset_time_period.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// ignore_for_file: constant_identifier_names | ||
|
||
enum PlayStatsPresetTimePeriod { | ||
LastWeek, | ||
LastMonth, | ||
LastYear, | ||
Custom, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
board_games_companion/lib/common/helpers/date_time_helpers.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// The [weekday] may be 0 for Sunday, 1 for Monday, etc. up to 7 for Sunday. | ||
DateTime mostRecentWeekday(DateTime date, int weekday) => | ||
DateTime(date.year, date.month, date.day - (date.weekday - weekday) % 7); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
board_games_companion/lib/pages/plays/most_played_game.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
import '../../models/hive/board_game_details.dart'; | ||
|
||
part 'most_played_game.freezed.dart'; | ||
|
||
@freezed | ||
class MostPlayedGame with _$MostPlayedGame { | ||
const factory MostPlayedGame({ | ||
required BoardGameDetails boardGameDetails, | ||
required int totalNumberOfPlays, | ||
required int totalTimePlayedInSeconds, | ||
}) = _MostPlayedGame; | ||
|
||
const MostPlayedGame._(); | ||
} |
Oops, something went wrong.