-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
151 additions
and
67 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
52 changes: 52 additions & 0 deletions
52
src/Client/Logistics.AdminApp/Components/Layout/MainLayout.razor
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,52 @@ | ||
@inherits LayoutComponentBase | ||
|
||
<PageTitle>Logistics Admin</PageTitle> | ||
<RadzenNotification /> | ||
<RadzenTooltip /> | ||
|
||
<RadzenLayout> | ||
<RadzenHeader> | ||
<RadzenRow class="h-100"> | ||
<RadzenColumn class="d-flex" Size="3"> | ||
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0.5rem"> | ||
<AuthorizedView> | ||
<RadzenSidebarToggle Click="@ToggleSidebar"/> | ||
</AuthorizedView> | ||
<RadzenText class="text-light ms-2" Text="Logistics Admin" TextStyle="TextStyle.H5" /> | ||
</RadzenStack> | ||
</RadzenColumn> | ||
<RadzenColumn Size="9" class="d-flex justify-content-end pe-3"> | ||
<LoginDisplay /> | ||
</RadzenColumn> | ||
</RadzenRow> | ||
</RadzenHeader> | ||
|
||
<AuthorizedView> | ||
<RadzenSidebar @bind-Expanded="@_sidebarExpanded"> | ||
<RadzenPanelMenu> | ||
<RadzenPanelMenuItem Text="Home" Icon="home" Path="/"/> | ||
<RadzenPanelMenuItem Text="Tenants" Icon="business" Path="/tenants"/> | ||
<RadzenPanelMenuItem Text="Subscriptions" Icon="subscriptions"> | ||
<RadzenPanelMenuItem Text="Plans" Icon="cases" Path="/subscription-plans"/> | ||
<RadzenPanelMenuItem Text="Subscription customers" Icon="account_balance" Path="/subscriptions"/> | ||
</RadzenPanelMenuItem> | ||
<RadzenPanelMenuItem Text="Users" Icon="group" Path="/users"/> | ||
</RadzenPanelMenu> | ||
</RadzenSidebar> | ||
</AuthorizedView> | ||
|
||
<RadzenBody> | ||
<div class="rz-p-4"> | ||
@Body | ||
</div> | ||
</RadzenBody> | ||
</RadzenLayout> | ||
|
||
@code { | ||
private bool _sidebarExpanded = true; | ||
|
||
private void ToggleSidebar() | ||
{ | ||
_sidebarExpanded = !_sidebarExpanded; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nt/Logistics.AdminApp/Pages/Home.razor.cs → ...s.AdminApp/Components/Pages/Home.razor.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tics.AdminApp/Shared/AddressForm.razor.cs → ...pp/Components/Shared/AddressForm.razor.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
10 changes: 10 additions & 0 deletions
10
src/Client/Logistics.AdminApp/Components/Shared/AuthorizedView.razor
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,10 @@ | ||
<AuthorizeView> | ||
<Authorized> | ||
@ChildContent | ||
</Authorized> | ||
</AuthorizeView> | ||
|
||
@code { | ||
[Parameter] | ||
public RenderFragment? ChildContent { get; set; } | ||
} |
9 changes: 3 additions & 6 deletions
9
...ics.AdminApp/Shared/CurrencyText.razor.cs → ...nApp/Components/Shared/CurrencyText.razor
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
29 changes: 29 additions & 0 deletions
29
src/Client/Logistics.AdminApp/Components/Shared/DecimalView.razor
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,29 @@ | ||
@typeparam TNumber | ||
|
||
<span>@FormattedNumber</span> | ||
|
||
@code { | ||
[Parameter] | ||
public TNumber? Value { get; set; } | ||
|
||
[Parameter] | ||
public int DecimalPlaces { get; set; } = 2; | ||
|
||
private string? FormattedNumber => FormatNumber(Value, DecimalPlaces); | ||
|
||
private static string? FormatNumber(TNumber? number, int decimalPlaces) | ||
{ | ||
if (number is null) | ||
{ | ||
return string.Empty; | ||
} | ||
|
||
return number switch | ||
{ | ||
decimal d => d.ToString($"F{decimalPlaces}"), | ||
double d => d.ToString($"F{decimalPlaces}"), | ||
float f => f.ToString($"F{decimalPlaces}"), | ||
_ => number.ToString() | ||
}; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/Client/Logistics.AdminApp/Components/Shared/Tooltip.razor
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,31 @@ | ||
<div @ref="_elementRef" @onmouseover="@ShowTooltip"> | ||
@ChildContent | ||
</div> | ||
|
||
@code { | ||
private ElementReference _elementRef; | ||
|
||
[Inject] | ||
private TooltipService TooltipService { get; set; } = default!; | ||
|
||
[Parameter, EditorRequired] | ||
public string Text { get; set; } = default!; | ||
|
||
[Parameter] | ||
public TooltipPosition Position { get; set; } | ||
|
||
[Parameter] | ||
public int Delay { get; set; } = 500; | ||
|
||
[Parameter] | ||
public RenderFragment? ChildContent { get; set; } | ||
|
||
private void ShowTooltip() | ||
{ | ||
TooltipService.Open(_elementRef, Text, new TooltipOptions | ||
{ | ||
Position = Position, | ||
Delay = Delay | ||
}); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...Server/Logistics.IdentityServer/keys/is-signing-key-8BFFD5541EECFE2E95FA0787E7841D49.json
This file was deleted.
Oops, something went wrong.