Skip to content

Commit

Permalink
fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Dec 10, 2024
1 parent 0ace6b1 commit 8a61b16
Show file tree
Hide file tree
Showing 35 changed files with 56 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<MudText>@ContentText</MudText>
</DialogContent>
<DialogActions>
<MudButton StartIcon="@Icons.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
<MudButton StartIcon="@Icons.Filled.Delete" Color="Color.Error" Variant="Variant.Filled" OnClick="Submit">@L["Confirm"]</MudButton>
<MudButton StartIcon="@Icons.Material.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
<MudButton StartIcon="@Icons.Material.Filled.Delete" Color="Color.Error" Variant="Variant.Filled" OnClick="Submit">@L["Confirm"]</MudButton>
</DialogActions>
</MudDialog>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<MudText>@ContentText</MudText>
</DialogContent>
<DialogActions>
<MudButton StartIcon="@Icons.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
<MudButton StartIcon="@Icons.Filled.Logout" Color="@Color" Variant="Variant.Filled" OnClick="Submit">@ButtonText</MudButton>
<MudButton StartIcon="@Icons.Material.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
<MudButton StartIcon="@Icons.Material.Filled.Logout" Color="@Color" Variant="Variant.Filled" OnClick="Submit">@ButtonText</MudButton>
</DialogActions>
</MudDialog>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@using System.Globalization

<MudTooltip Text="@CurrentLanguage">
<MudMenu Class="mx-1" Icon="@Icons.Material.Outlined.Translate" Color="Color.Default" Direction="Direction.Bottom" OffsetY="true"
<MudMenu Class="mx-1" Icon="@Icons.Material.Outlined.Translate" Color="Color.Default"
Dense="true">
@foreach (var language in SupportedLanguages)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Blazor.Server.UI/Components/Shared/NotificationMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
@inject IStringLocalizer<SharedResource> L

<MudBadge Color="Color.Secondary" Dot="true" Overlap="true" Visible="_newNotificationsAvailable">
<MudMenu Icon="@Icons.Outlined.Notifications" AnchorOrigin="Origin.BottomLeft" TransformOrigin="Origin.TopCenter" PopoverClass="docs-layout-menu-shadow" ListClass="pa-2 docs-menu-list" LockScroll="true">
<MudMenu Icon="@Icons.Material.Outlined.Notifications" AnchorOrigin="Origin.BottomLeft" TransformOrigin="Origin.TopCenter" PopoverClass="docs-layout-menu-shadow" ListClass="pa-2 docs-menu-list" LockScroll="true">
<div class="d-flex justify-space-between align-center px-2">
<MudText Typo="Typo.subtitle2">@L["Notifications"]</MudText>
<MudButton Disabled="@(_newNotificationsAvailable == false)" OnClick="MarkNotificationAsRead" StartIcon="@Icons.Filled.DoneAll" Variant="Variant.Text" Color="Color.Primary" Class="ml-16 mr-n2">@L["Mark as read"]</MudButton>
<MudButton Disabled="@(_newNotificationsAvailable == false)" OnClick="MarkNotificationAsRead" StartIcon="@Icons.Material.Filled.DoneAll" Variant="Variant.Text" Color="Color.Primary" Class="ml-16 mr-n2">@L["Mark as read"]</MudButton>
</div>
@if (_messages != null && _newNotificationsAvailable)
{
@foreach (var (message, isRead) in _messages.Take(5))
{
<MudMenuItem Class="px-2 py-0 rounded" Link="@($"/mud/announcements/{message.Id}")">
<MudMenuItem Class="px-2 py-0 rounded" Href="@($"/mud/announcements/{message.Id}")">
<MudText Typo="Typo.subtitle2">@message.Title</MudText>
<MudText Typo="Typo.body2">@($"{message.Authors.FirstOrDefault()?.DisplayName} • {message.PublishDate.ToString("MM/dd/yyyy")}")</MudText>
</MudMenuItem>
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Components/Shared/UserMenu.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@inject IStringLocalizer<SharedResource> L
<MudMenu AnchorOrigin="Origin.BottomRight"
Icon="@Icons.Filled.PermIdentity"
Icon="@Icons.Material.Filled.PermIdentity"
Class="mx-1"
LockScroll="true"
TransformOrigin="Origin.TopRight">
Expand Down
4 changes: 2 additions & 2 deletions src/Blazor.Server.UI/Pages/CheckinPoints/CheckinPoints.razor
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -142,7 +142,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info">
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
6 changes: 3 additions & 3 deletions src/Blazor.Server.UI/Pages/Departments/Departments.razor
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -140,8 +140,8 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info" Direction="Direction.Left"
OffsetX="true">
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info"
>
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
4 changes: 2 additions & 2 deletions src/Blazor.Server.UI/Pages/Designations/Designations.razor
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -139,7 +139,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info">
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
4 changes: 2 additions & 2 deletions src/Blazor.Server.UI/Pages/Devices/Devices.razor
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -143,7 +143,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info" >
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info" >
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
4 changes: 2 additions & 2 deletions src/Blazor.Server.UI/Pages/Employees/Employees.razor
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -149,7 +149,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info">
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<InputFile id="UploadPhoto" OnChange="UploadPhoto" hidden accept=".jpg, .jpeg, .png" />
<MudIconButton HtmlTag="label"
Color="MudBlazor.Color.Info"
Icon="@Icons.Filled.PhotoCamera"
Icon="@Icons.Material.Filled.PhotoCamera"
for="UploadPhoto"></MudIconButton>
</MudTooltip>
</div>
Expand Down
5 changes: 2 additions & 3 deletions src/Blazor.Server.UI/Pages/Identity/Roles/Roles.razor
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -126,8 +126,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info" Direction="Direction.Left"
OffsetX="true">
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Pages/Identity/Users/Profile.razor
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<InputFile id="UploadPhoto" OnChange="UploadPhoto" hidden accept=".jpg, .jpeg, .png" />
<MudIconButton HtmlTag="label"
Color="MudBlazor.Color.Info"
Icon="@Icons.Filled.PhotoCamera"
Icon="@Icons.Material.Filled.PhotoCamera"
for="UploadPhoto"></MudIconButton>
</MudTooltip>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Pages/Identity/Users/Users.razor
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Pages/Identity/Users/_UserForm.razor
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<MudTooltip Text="@L["Click upload a photo."]">
<MudIconButton HtmlTag="label"
Color="MudBlazor.Color.Info"
Icon="@Icons.Filled.PhotoCamera"
Icon="@Icons.Material.Filled.PhotoCamera"
for="UploadPhoto"></MudIconButton>
</MudTooltip>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -95,7 +95,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info">
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
5 changes: 2 additions & 3 deletions src/Blazor.Server.UI/Pages/Products/Products.razor
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}
</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -143,8 +143,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info" Direction="Direction.Left"
OffsetX="true">
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<MudText Typo="Typo.caption">@L["Product Pictures"]</MudText>
<MudFab HtmlTag="label" Size="MudBlazor.Size.Small"
Color="MudBlazor.Color.Info"
Icon="@Icons.Filled.Image"
Icon="@Icons.Material.Filled.Image"
Label="Upload picture"
for="fileInput" />
<MudText Typo="Typo.body2">@L["The recommended size for uploading images is 640X320"]</MudText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

</MudHidden>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
@if (_canCreate)
{
Expand Down Expand Up @@ -95,7 +95,7 @@
{
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
Dense="true"
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info" >
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info" >
@if (_canEdit)
{
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>
Expand Down
Loading

0 comments on commit 8a61b16

Please sign in to comment.