Skip to content

Commit

Permalink
misc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
0xor1 committed May 15, 2024
1 parent 14a4682 commit 5502956
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 12 deletions.
9 changes: 6 additions & 3 deletions Common.Client/Auth/SignIn.razor
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@

[CascadingParameter]
public ISession Session { get; set; } = Common.Shared.Auth.Session.CommonDefault();


[Parameter]
public string OnSignInGoTo { get; set; } = "/";

protected override void OnInitialized()
{
if (Session.IsAuthed)
{
Nav.NavigateTo("/");
Nav.NavigateTo(OnSignInGoTo);
}
}

Expand All @@ -73,7 +76,7 @@
try
{
await Auth.SignIn(_model.Email, _model.Pwd, _model.RememberMe);
Nav.NavigateTo("/");
Nav.NavigateTo(OnSignInGoTo);
}
catch
{
Expand Down
4 changes: 2 additions & 2 deletions Common.Client/Common.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>0xor1.Common.Client</PackageId>
<Version>3.0.23</Version>
<Version>3.0.24</Version>
<Authors>Daniel Robinson</Authors>
<Company>Personal</Company>
<Product>Personal</Product>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="DartSassBuilder" Version="1.0.0" />
<PackageReference Include="0xor1.Common.Shared" Version="3.0.23" />
<PackageReference Include="0xor1.Common.Shared" Version="3.0.24" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="8.0.0" />
Expand Down
128 changes: 124 additions & 4 deletions Common.Client/wwwroot/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,136 @@ textarea{
.f-b {
font-weight: 800;
}
.mw-100{
.mw-0p{
max-width: 0;
}
.mw-10p{
max-width: 10%;
}
.mw-20p{
max-width: 20%;
}
.mw-30p{
max-width: 30%;
}
.mw-40p{
max-width: 40%;
}
.mw-50p{
max-width: 50%;
}
.mw-60p{
max-width: 60%;
}
.mw-70p{
max-width: 70%;
}
.mw-80p{
max-width: 80%;
}
.mw-90p{
max-width: 90%;
}
.mw-100p{
max-width: 100%;
}
.w-100{
.w-0p{
width: 0;
}
.w-10p{
width: 10%;
}
.w-20p{
width: 20%;
}
.w-30p{
width: 30%;
}
.w-40p{
width: 40%;
}
.w-50p{
width: 50%;
}
.w-60p{
width: 60%;
}
.w-70p{
width: 70%;
}
.w-80p{
width: 80%;
}
.w-90p{
width: 90%;
}
.w-100p{
width: 100%;
}
.mh-100{
.mh-0p{
max-height: 0;
}
.mh-10p{
max-height: 10%;
}
.mh-20p{
max-height: 20%;
}
.mh-30p{
max-height: 30%;
}
.mh-40p{
max-height: 40%;
}
.mh-50p{
max-height: 50%;
}
.mh-60p{
max-height: 60%;
}
.mh-70p{
max-height: 70%;
}
.mh-80p{
max-height: 80%;
}
.mh-90p{
max-height: 90%;
}
.mh-100p{
max-height: 100%;
}
.h-100{
.h-0p{
height: 0;
}
.h-10p{
height: 10%;
}
.h-20p{
height: 20%;
}
.h-30p{
height: 30%;
}
.h-40p{
height: 40%;
}
.h-50p{
height: 50%;
}
.h-60p{
height: 60%;
}
.h-70p{
height: 70%;
}
.h-80p{
height: 80%;
}
.h-90p{
height: 90%;
}
.h-100p{
height: 100%;
}
.p-rel{
Expand Down
4 changes: 2 additions & 2 deletions Common.Server/Common.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>0xor1.Common.Server</PackageId>
<Version>3.0.23</Version>
<Version>3.0.24</Version>
<Authors>Daniel Robinson</Authors>
<Company>Personal</Company>
<Product>Personal</Product>
Expand All @@ -17,7 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="0xor1.Common.Shared" Version="3.0.23" />
<PackageReference Include="0xor1.Common.Shared" Version="3.0.24" />
<PackageReference Include="AWSSDK.S3" Version="3.7.300.2" />
<PackageReference Include="AWSSDK.SimpleEmail" Version="3.7.300.2" />
<PackageReference Include="CSharpier.MsBuild" Version="0.26.2">
Expand Down
2 changes: 1 addition & 1 deletion Common.Shared/Common.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>0xor1.Common.Shared</PackageId>
<Version>3.0.23</Version>
<Version>3.0.24</Version>
<Authors>Daniel Robinson</Authors>
<Company>Personal</Company>
<Product>Personal</Product>
Expand Down

0 comments on commit 5502956

Please sign in to comment.