Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Mar 29, 2024
1 parent 60ed278 commit a2c05bd
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Guard.Test/Core/Updater.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace Guard.Test.Core
{
public class Updater
{
[Fact]
public void CheckUrl()
{
Assert.Equal(
"https://2faguard.app/api/update",
Guard.Core.Installation.Updater.updateApiUrl
);
}
}
}
3 changes: 1 addition & 2 deletions Guard/Core/Installation/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
using System.Text.Json;
using System.Windows;
using Microsoft.Security.Extensions;
using static Guard.Core.Installation.Updater;

namespace Guard.Core.Installation
{
public class Updater
{
private static readonly string updateApiUrl = "http://localhost:4321/api/update";
public static readonly string updateApiUrl = "https://2faguard.app/api/update";
public static readonly HttpClient httpClient = new();
private static readonly JsonSerializerOptions jsonSerializerOptions =
new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
Expand Down
2 changes: 1 addition & 1 deletion Guard/Guard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<Title>2FAGuard</Title>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<Authors>Timo Kössler and Open Source Contributors</Authors>
<Copyright>$(Authors)</Copyright>
<RepositoryType>git</RepositoryType>
Expand Down
2 changes: 1 addition & 1 deletion Guard/Installer/installer.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MyAppName "2FAGuard"
#define MyAppVersion "1.1.0"
#define MyAppVersion "1.2.0"
#define MyAppPublisher "Timo Kössler"
#define MyAppURL "https://2faguard.app"
#define MyAppExeName "2FAGuard.exe"
Expand Down
2 changes: 2 additions & 0 deletions Guard/Views/Controls/TokenCard.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@
x:Name="Issuer"
FontSize="18"
FontTypography="BodyStrong"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap" />
<ui:TextBlock
x:Name="Username"
Appearance="Secondary"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap" />
<ui:TextBlock
x:Name="TokenTextBlock"
Expand Down
8 changes: 8 additions & 0 deletions Guard/Views/Controls/TokenCard.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@ internal TokenCard(TOTPTokenHelper token)
mainWindow = (MainWindow)Application.Current.MainWindow;

Issuer.Text = token.dBToken.Issuer;
if (token.dBToken.Issuer.Length > 18)
{
Issuer.ToolTip = token.dBToken.Issuer;
}
if (token.Username != null)
{
Username.Text = token.Username;
if (token.Username.Length > 22)
{
Username.ToolTip = token.Username;
}
}
else
{
Expand Down

0 comments on commit a2c05bd

Please sign in to comment.