-
-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [352] client gui's * decoupled UI error handling from HTTP * create client UI project and wire up first shared page * filesystem basics working * some cleanup * reorganize solution to optimize for code re-use * try fix gh build * try again * layout and navmenu now shared * rebase * try to add bootstrap and css dependencies * fix ioc wireup * not really working yet * webui working again, now using shared css/js resources * clientUI now working with shared css/js * app settings working * peloton settings working * move app settings to own component * format settings page updated * garmin settings page * cleanup * rebase * progress on sync page and mfa * sync page working * fix some build warnings * index page working * attempt to fix gha pr check * rename PelotonToGarminConsole to ConsoleClient * update app name * [352] basic publishing working * logging is working * attempt update prcheck to publish * fix typo * try publish ready to run * comment out for now
- Loading branch information
1 parent
adb180b
commit 2c7559e
Showing
146 changed files
with
3,801 additions
and
1,784 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
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
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
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
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,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Common\Common.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
4 changes: 2 additions & 2 deletions
4
.../Dto/Api/GarminAuthenticationContracts.cs → ...Contract/GarminAuthenticationContracts.cs
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,34 @@ | ||
namespace Api.Contract; | ||
|
||
public interface IErrorResponse | ||
{ | ||
public string Message { get; set; } | ||
public ErrorCode Code { get; set; } | ||
} | ||
|
||
public class ErrorResponse : IErrorResponse | ||
{ | ||
public string Message { get; set; } | ||
public ErrorCode Code { get; set; } | ||
public Exception? Exception { get; set; } | ||
|
||
public ErrorResponse(string message, Exception? ex = null) | ||
{ | ||
Message = message; | ||
} | ||
|
||
public ErrorResponse(string message, ErrorCode code, Exception? ex = null) | ||
{ | ||
Message = message; | ||
Code = code; | ||
} | ||
} | ||
|
||
public enum ErrorCode : ushort | ||
{ | ||
None = 0, | ||
|
||
NeedToInitGarminMFAAuth = 100, | ||
UnexpectedGarminMFA = 101, | ||
InvalidGarminCredentials = 102, | ||
} |
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
Oops, something went wrong.