diff --git a/myBlazorApp/myBlazorApp/App.razor b/myBlazorApp/myBlazorApp/App.razor index d06cf24..d8441fd 100644 --- a/myBlazorApp/myBlazorApp/App.razor +++ b/myBlazorApp/myBlazorApp/App.razor @@ -1,10 +1,11 @@ - - - - - - Not found + + + + + + + Not found

Sorry, there's nothing at this address.

-
-
- +
+
+ diff --git a/myBlazorApp/myBlazorApp/Controllers/CultureController.cs b/myBlazorApp/myBlazorApp/Controllers/CultureController.cs new file mode 100644 index 0000000..d5f71fc --- /dev/null +++ b/myBlazorApp/myBlazorApp/Controllers/CultureController.cs @@ -0,0 +1,32 @@ +using Microsoft.AspNetCore.Localization; +using Microsoft.AspNetCore.Mvc; + +/// +/// The culture controller. +/// +[Route("[controller]/[action]")] +public class CultureController : Controller +{ + /// + /// Sets the culture. + /// + /// The culture. + /// The redirect URI. + /// + /// The action result. + /// + public IActionResult SetCulture(string culture, string redirectUri) + { + if (culture != null) + { + // Define a cookie with the selected culture + this.HttpContext.Response.Cookies.Append( + CookieRequestCultureProvider.DefaultCookieName, + CookieRequestCultureProvider.MakeCookieValue( + new RequestCulture(culture))); + } + + return this.LocalRedirect(redirectUri); + } +} + diff --git a/myBlazorApp/myBlazorApp/Factories/ItemFactory.cs b/myBlazorApp/myBlazorApp/Factories/ItemFactory.cs new file mode 100644 index 0000000..11db794 --- /dev/null +++ b/myBlazorApp/myBlazorApp/Factories/ItemFactory.cs @@ -0,0 +1,50 @@ +using System; +using myBlazorApp.Models; + +namespace myBlazorApp.Factories +{ + public static class ItemFactory + { + public static ItemModel ToModel(Item item, byte[] imageContent) + { + return new ItemModel + { + Id = item.Id, + DisplayName = item.DisplayName, + Name = item.Name, + RepairWith = item.RepairWith, + EnchantCategories = item.EnchantCategories, + MaxDurability = item.MaxDurability, + StackSize = item.StackSize, + ImageContent = imageContent + }; + } + + public static Item Create(ItemModel model) + { + return new Item + { + Id = model.Id, + DisplayName = model.DisplayName, + Name = model.Name, + RepairWith = model.RepairWith, + EnchantCategories = model.EnchantCategories, + MaxDurability = model.MaxDurability, + StackSize = model.StackSize, + CreatedDate = DateTime.Now + }; + } + + public static void Update(Item item, ItemModel model) + { + item.DisplayName = model.DisplayName; + item.Name = model.Name; + item.RepairWith = model.RepairWith; + item.EnchantCategories = model.EnchantCategories; + item.MaxDurability = model.MaxDurability; + item.StackSize = model.StackSize; + item.UpdatedDate = DateTime.Now; + } + } +} + diff --git a/myBlazorApp/myBlazorApp/Modals/DeleteConfirmation.razor b/myBlazorApp/myBlazorApp/Modals/DeleteConfirmation.razor new file mode 100644 index 0000000..ca93451 --- /dev/null +++ b/myBlazorApp/myBlazorApp/Modals/DeleteConfirmation.razor @@ -0,0 +1,11 @@ +
+ +

+ Are you sure you want to delete @item.DisplayName ? +

+ + + + +
+ diff --git a/myBlazorApp/myBlazorApp/Modals/DeleteConfirmation.razor.cs b/myBlazorApp/myBlazorApp/Modals/DeleteConfirmation.razor.cs new file mode 100644 index 0000000..8a4f948 --- /dev/null +++ b/myBlazorApp/myBlazorApp/Modals/DeleteConfirmation.razor.cs @@ -0,0 +1,40 @@ +using System; +using Blazored.Modal; +using Blazored.Modal.Services; +using Microsoft.AspNetCore.Components; +using myBlazorApp.Models; +using myBlazorApp.Services; + +namespace myBlazorApp.Modals +{ + public partial class DeleteConfirmation + { + [CascadingParameter] + public BlazoredModalInstance ModalInstance { get; set; } + + [Inject] + public IDataService DataService { get; set; } + + [Parameter] + public int Id { get; set; } + + private Item item = new Item(); + + protected override async Task OnInitializedAsync() + { + // Get the item + item = await DataService.GetById(Id); + } + + void ConfirmDelete() + { + ModalInstance.CloseAsync(ModalResult.Ok(true)); + } + + void Cancel() + { + ModalInstance.CancelAsync(); + } + } +} + diff --git a/myBlazorApp/myBlazorApp/Pages/Edit.razor b/myBlazorApp/myBlazorApp/Pages/Edit.razor new file mode 100644 index 0000000..74d3978 --- /dev/null +++ b/myBlazorApp/myBlazorApp/Pages/Edit.razor @@ -0,0 +1,82 @@ +@page "/edit/{Id:int}" + +

Edit

+ + + + + +

+ +

+

+ +

+

+ +

+

+ +

+

+ Enchant categories: +

+ @foreach (var item in enchantCategories) + { + + } +
+

+

+ Repair with: +

+ @foreach (var item in repairWith) + { + + } +
+

+

+ +

+

+ +

+

+ +

+ + +
\ No newline at end of file diff --git a/myBlazorApp/myBlazorApp/Pages/Edit.razor.cs b/myBlazorApp/myBlazorApp/Pages/Edit.razor.cs new file mode 100644 index 0000000..26d94a5 --- /dev/null +++ b/myBlazorApp/myBlazorApp/Pages/Edit.razor.cs @@ -0,0 +1,116 @@ +using System; +using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Forms; +using myBlazorApp.Factories; +using myBlazorApp.Models; +using myBlazorApp.Services; + +namespace myBlazorApp.Pages +{ + public partial class Edit + { + [Parameter] + public int Id { get; set; } + + + + /// + /// The default enchant categories. + /// + private List enchantCategories = new List() { "armor", "armor_head", "armor_chest", "weapon", "digger", "breakable", "vanishable" }; + + /// + /// The current item model + /// + private ItemModel itemModel = new() + { + EnchantCategories = new List(), + RepairWith = new List() + }; + + /// + /// The default repair with. + /// + private List repairWith = new List() { "oak_planks", "spruce_planks", "birch_planks", "jungle_planks", "acacia_planks", "dark_oak_planks", "crimson_planks", "warped_planks" }; + + + [Inject] + public IDataService DataService { get; set; } + + [Inject] + public NavigationManager NavigationManager { get; set; } + + [Inject] + public IWebHostEnvironment WebHostEnvironment { get; set; } + + + protected override async Task OnInitializedAsync() + { + var item = await DataService.GetById(Id); + + var fileContent = await File.ReadAllBytesAsync($"{WebHostEnvironment.WebRootPath}/images/default.png"); + + if (File.Exists($"{WebHostEnvironment.WebRootPath}/images/{itemModel.Name}.png")) + { + fileContent = await File.ReadAllBytesAsync($"{WebHostEnvironment.WebRootPath}/images/{item.Name}.png"); + } + + // Set the model with the item + itemModel = ItemFactory.ToModel(item, fileContent); + } + + private async void HandleValidSubmit() + { + await DataService.Update(Id, itemModel); + + NavigationManager.NavigateTo("list"); + } + + private async Task LoadImage(InputFileChangeEventArgs e) + { + // Set the content of the image to the model + using (var memoryStream = new MemoryStream()) + { + await e.File.OpenReadStream().CopyToAsync(memoryStream); + itemModel.ImageContent = memoryStream.ToArray(); + } + } + + private void OnEnchantCategoriesChange(string item, object checkedValue) + { + if ((bool)checkedValue) + { + if (!itemModel.EnchantCategories.Contains(item)) + { + itemModel.EnchantCategories.Add(item); + } + + return; + } + + if (itemModel.EnchantCategories.Contains(item)) + { + itemModel.EnchantCategories.Remove(item); + } + } + + private void OnRepairWithChange(string item, object checkedValue) + { + if ((bool)checkedValue) + { + if (!itemModel.RepairWith.Contains(item)) + { + itemModel.RepairWith.Add(item); + } + + return; + } + + if (itemModel.RepairWith.Contains(item)) + { + itemModel.RepairWith.Remove(item); + } + } + } +} + diff --git a/myBlazorApp/myBlazorApp/Pages/Index.razor b/myBlazorApp/myBlazorApp/Pages/Index.razor index cd39618..aa25222 100644 --- a/myBlazorApp/myBlazorApp/Pages/Index.razor +++ b/myBlazorApp/myBlazorApp/Pages/Index.razor @@ -1,4 +1,6 @@ -@page "/" +@using System.Globalization + +@page "/" Index @@ -8,3 +10,7 @@ Welcome to your new app. + +

+ CurrentCulture: @CultureInfo.CurrentCulture +

\ No newline at end of file diff --git a/myBlazorApp/myBlazorApp/Pages/List.razor b/myBlazorApp/myBlazorApp/Pages/List.razor index a68a3ea..21823bc 100644 --- a/myBlazorApp/myBlazorApp/Pages/List.razor +++ b/myBlazorApp/myBlazorApp/Pages/List.razor @@ -44,4 +44,10 @@ + + + Editer + + + \ No newline at end of file diff --git a/myBlazorApp/myBlazorApp/Pages/List.razor.cs b/myBlazorApp/myBlazorApp/Pages/List.razor.cs index 5ba93d7..79530a7 100644 --- a/myBlazorApp/myBlazorApp/Pages/List.razor.cs +++ b/myBlazorApp/myBlazorApp/Pages/List.razor.cs @@ -1,7 +1,10 @@ using System; using Blazored.LocalStorage; +using Blazored.Modal; +using Blazored.Modal.Services; using Blazorise.DataGrid; using Microsoft.AspNetCore.Components; +using myBlazorApp.Modals; using myBlazorApp.Models; using myBlazorApp.Services; @@ -19,6 +22,12 @@ namespace myBlazorApp.Pages [Inject] public IWebHostEnvironment WebHostEnvironment { get; set; } + [Inject] + public NavigationManager NavigationManager { get; set; } + + [CascadingParameter] + public IModalService Modal { get; set; } + private async Task OnReadData(DataGridReadDataEventArgs e) { if (e.CancellationToken.IsCancellationRequested) @@ -32,6 +41,25 @@ namespace myBlazorApp.Pages totalItem = await DataService.Count(); } } + + private async void OnDelete(int id) + { + var parameters = new ModalParameters(); + parameters.Add(nameof(Item.Id), id); + + var modal = Modal.Show("Delete Confirmation", parameters); + var result = await modal.Result; + + if (result.Cancelled) + { + return; + } + + await DataService.Delete(id); + + // Reload the page + NavigationManager.NavigateTo("list", true); + } } } diff --git a/myBlazorApp/myBlazorApp/Pages/_Layout.cshtml b/myBlazorApp/myBlazorApp/Pages/_Layout.cshtml index bb515fd..7e0555a 100644 --- a/myBlazorApp/myBlazorApp/Pages/_Layout.cshtml +++ b/myBlazorApp/myBlazorApp/Pages/_Layout.cshtml @@ -33,6 +33,8 @@ + + diff --git a/myBlazorApp/myBlazorApp/Program.cs b/myBlazorApp/myBlazorApp/Program.cs index 47d6fa0..29c9293 100644 --- a/myBlazorApp/myBlazorApp/Program.cs +++ b/myBlazorApp/myBlazorApp/Program.cs @@ -4,9 +4,12 @@ using Blazorise.Bootstrap; using Blazorise.Icons.FontAwesome; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; -using Blazored.LocalStorage; using myBlazorApp.Data; using myBlazorApp.Services; +using Blazored.Modal; +using Microsoft.AspNetCore.Localization; +using System.Globalization; +using Microsoft.Extensions.Options; var builder = WebApplication.CreateBuilder(args); @@ -20,6 +23,26 @@ builder.Services.AddBootstrapProviders(); builder.Services.AddFontAwesomeIcons(); builder.Services.AddBlazoredLocalStorage(); builder.Services.AddScoped(); +builder.Services.AddBlazoredModal(); + + +// Add the controller of the app +builder.Services.AddControllers(); + +// Add the localization to the app and specify the resources path +builder.Services.AddLocalization(opts => { opts.ResourcesPath = "Resources"; }); + +// Configure the localtization +builder.Services.Configure(options => +{ + // Set the default culture of the web site + options.DefaultRequestCulture = new RequestCulture(new CultureInfo("en-US")); + + // Declare the supported culture + options.SupportedCultures = new List { new CultureInfo("en-US"), new CultureInfo("fr-FR") }; + options.SupportedUICultures = new List { new CultureInfo("en-US"), new CultureInfo("fr-FR") }; +}); + var app = builder.Build(); @@ -37,8 +60,23 @@ app.UseStaticFiles(); app.UseRouting(); + +// Get the current localization options +var options = ((IApplicationBuilder)app).ApplicationServices.GetService>(); + +if (options?.Value != null) +{ + // use the default localization + app.UseRequestLocalization(options.Value); +} + +// Add the controller to the endpoint +app.UseEndpoints(endpoints => +{ + endpoints.MapControllers(); +}); + app.MapBlazorHub(); app.MapFallbackToPage("/_Host"); - - app.Run(); +app.Run(); diff --git a/myBlazorApp/myBlazorApp/Resources/Pages.List.Designer.cs b/myBlazorApp/myBlazorApp/Resources/Pages.List.Designer.cs new file mode 100644 index 0000000..db1a6f7 --- /dev/null +++ b/myBlazorApp/myBlazorApp/Resources/Pages.List.Designer.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace myBlazorApp.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// This class was generated by MSBuild using the GenerateResource task. + /// To add or remove a member, edit your .resx file then rerun MSBuild. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Build.Tasks.StronglyTypedResourceBuilder", "15.1.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Pages_List { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Pages_List() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("myBlazorApp.Resources.Pages.List", typeof(Pages_List).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/myBlazorApp/myBlazorApp/Resources/Pages.List.resx b/myBlazorApp/myBlazorApp/Resources/Pages.List.resx new file mode 100644 index 0000000..70c400c --- /dev/null +++ b/myBlazorApp/myBlazorApp/Resources/Pages.List.resx @@ -0,0 +1,15 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/myBlazorApp/myBlazorApp/Services/DataLocalService.cs b/myBlazorApp/myBlazorApp/Services/DataLocalService.cs index 61dbcd5..3cc6bdc 100644 --- a/myBlazorApp/myBlazorApp/Services/DataLocalService.cs +++ b/myBlazorApp/myBlazorApp/Services/DataLocalService.cs @@ -1,6 +1,7 @@ -using System; + using System; using Blazored.LocalStorage; using Microsoft.AspNetCore.Components; +using myBlazorApp.Factories; using myBlazorApp.Models; namespace myBlazorApp.Services @@ -31,18 +32,8 @@ namespace myBlazorApp.Services //Simulate the Id model.Id = currentData.Max(s => s.Id) + 1; - // Add item to current data - currentData.Add(new Item - { - Id = model.Id, - DisplayName = model.DisplayName, - Name = model.Name, - RepairWith = model.RepairWith, - EnchantCategories = model.EnchantCategories, - MaxDurability = model.MaxDurability, - StackSize = model.StackSize, - CreatedDate = DateTime.Now - }); + /// Add the item to the current data + currentData.Add(ItemFactory.Create(model)); // Save the image var imagePathInfo = new DirectoryInfo($"{_webHostEnvironment.WebRootPath}/images"); @@ -82,5 +73,93 @@ namespace myBlazorApp.Services return (await _localStorage.GetItemAsync("data")).Skip((currentPage - 1) * pageSize).Take(pageSize).ToList(); } + + public async Task GetById(int id) + { + // Get the current data + var currentData = await _localStorage.GetItemAsync>("data"); + + // Get the item int the list + var item = currentData.FirstOrDefault(w => w.Id == id); + + // Check if item exist + if (item == null) + { + throw new Exception($"Unable to found the item with ID: {id}"); + } + + return item; + } + + public async Task Update(int id, ItemModel model) + { + // Get the current data + var currentData = await _localStorage.GetItemAsync>("data"); + + // Get the item int the list + var item = currentData.FirstOrDefault(w => w.Id == id); + + // Check if item exist + if (item == null) + { + throw new Exception($"Unable to found the item with ID: {id}"); + } + + // Save the image + var imagePathInfo = new DirectoryInfo($"{_webHostEnvironment.WebRootPath}/images"); + + // Check if the folder "images" exist + if (!imagePathInfo.Exists) + { + imagePathInfo.Create(); + } + + // Delete the previous image + if (item.Name != model.Name) + { + var oldFileName = new FileInfo($"{imagePathInfo}/{item.Name}.png"); + + if (oldFileName.Exists) + { + File.Delete(oldFileName.FullName); + } + } + + // Determine the image name + var fileName = new FileInfo($"{imagePathInfo}/{model.Name}.png"); + + // Write the file content + await File.WriteAllBytesAsync(fileName.FullName, model.ImageContent); + + // Modify the content of the item + ItemFactory.Update(item, model); + + // Save the data + await _localStorage.SetItemAsync("data", currentData); + } + + public async Task Delete(int id) + { + // Get the current data + var currentData = await _localStorage.GetItemAsync>("data"); + + // Get the item int the list + var item = currentData.FirstOrDefault(w => w.Id == id); + + // Delete item in + currentData.Remove(item); + + // Delete the image + var imagePathInfo = new DirectoryInfo($"{_webHostEnvironment.WebRootPath}/images"); + var fileName = new FileInfo($"{imagePathInfo}/{item.Name}.png"); + + if (fileName.Exists) + { + File.Delete(fileName.FullName); + } + + // Save the data + await _localStorage.SetItemAsync("data", currentData); + } } } diff --git a/myBlazorApp/myBlazorApp/Services/IDataService.cs b/myBlazorApp/myBlazorApp/Services/IDataService.cs index f628445..0b245cb 100644 --- a/myBlazorApp/myBlazorApp/Services/IDataService.cs +++ b/myBlazorApp/myBlazorApp/Services/IDataService.cs @@ -8,6 +8,9 @@ namespace myBlazorApp.Services Task Add(ItemModel model); Task Count(); Task> List(int currentPage, int pageSize); + Task GetById(int id); + Task Update(int id, ItemModel model); + Task Delete(int id); } } diff --git a/myBlazorApp/myBlazorApp/Shared/CultureSelector.razor b/myBlazorApp/myBlazorApp/Shared/CultureSelector.razor new file mode 100644 index 0000000..955d3d2 --- /dev/null +++ b/myBlazorApp/myBlazorApp/Shared/CultureSelector.razor @@ -0,0 +1,44 @@ +@using System.Globalization +@inject NavigationManager NavigationManager + +

+ +

+ +@code +{ + private CultureInfo[] supportedCultures = new[] + { + new CultureInfo("en-US"), + new CultureInfo("fr-FR") + }; + + private CultureInfo Culture + { + get => CultureInfo.CurrentCulture; + set + { + if (CultureInfo.CurrentUICulture == value) + { + return; + } + + var culture = value.Name.ToLower(CultureInfo.InvariantCulture); + + var uri = new Uri(this.NavigationManager.Uri).GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped); + var query = $"?culture={Uri.EscapeDataString(culture)}&" + $"redirectUri={Uri.EscapeDataString(uri)}"; + + // Redirect the user to the culture controller to set the cookie + this.NavigationManager.NavigateTo("/Culture/SetCulture" + query, forceLoad: true); + } + } +} + diff --git a/myBlazorApp/myBlazorApp/Shared/MainLayout.razor b/myBlazorApp/myBlazorApp/Shared/MainLayout.razor index d903cc5..623a15e 100644 --- a/myBlazorApp/myBlazorApp/Shared/MainLayout.razor +++ b/myBlazorApp/myBlazorApp/Shared/MainLayout.razor @@ -4,12 +4,17 @@
About + +
+ +
+
diff --git a/myBlazorApp/myBlazorApp/_Imports.razor b/myBlazorApp/myBlazorApp/_Imports.razor index 83877dc..66a3c43 100644 --- a/myBlazorApp/myBlazorApp/_Imports.razor +++ b/myBlazorApp/myBlazorApp/_Imports.razor @@ -9,3 +9,7 @@ @using myBlazorApp @using myBlazorApp.Shared @using Blazorise.DataGrid +@using Blazored.Modal +@using Blazored.Modal.Services + + diff --git a/myBlazorApp/myBlazorApp/myBlazorApp.csproj b/myBlazorApp/myBlazorApp/myBlazorApp.csproj index 5a86a14..f39f62b 100644 --- a/myBlazorApp/myBlazorApp/myBlazorApp.csproj +++ b/myBlazorApp/myBlazorApp/myBlazorApp.csproj @@ -14,16 +14,39 @@ + + + + + + + + + + + + + + + + ResXFileCodeGenerator + Pages.List.Designer.cs + + + + + Pages.List.resx + diff --git a/myBlazorApp/myBlazorApp/wwwroot/images/chat.png b/myBlazorApp/myBlazorApp/wwwroot/images/default.png similarity index 100% rename from myBlazorApp/myBlazorApp/wwwroot/images/chat.png rename to myBlazorApp/myBlazorApp/wwwroot/images/default.png diff --git a/myBlazorApp/myBlazorApp/wwwroot/images/harry potter.png b/myBlazorApp/myBlazorApp/wwwroot/images/harry potter.png deleted file mode 100644 index 0bb8b4a..0000000 Binary files a/myBlazorApp/myBlazorApp/wwwroot/images/harry potter.png and /dev/null differ diff --git a/myBlazorApp/myBlazorApp/wwwroot/images/hermione granger.png b/myBlazorApp/myBlazorApp/wwwroot/images/hermione granger.png deleted file mode 100644 index e502beb..0000000 Binary files a/myBlazorApp/myBlazorApp/wwwroot/images/hermione granger.png and /dev/null differ diff --git a/myBlazorApp/myBlazorApp/wwwroot/images/luna lovegood.png b/myBlazorApp/myBlazorApp/wwwroot/images/luna lovegood.png deleted file mode 100644 index f279c43..0000000 Binary files a/myBlazorApp/myBlazorApp/wwwroot/images/luna lovegood.png and /dev/null differ diff --git a/myBlazorApp/myBlazorApp/wwwroot/images/polar bear.png b/myBlazorApp/myBlazorApp/wwwroot/images/polar bear.png new file mode 100644 index 0000000..ac61877 Binary files /dev/null and b/myBlazorApp/myBlazorApp/wwwroot/images/polar bear.png differ diff --git a/myBlazorApp/myBlazorApp/wwwroot/images/ron weasley.png b/myBlazorApp/myBlazorApp/wwwroot/images/ron weasley.png deleted file mode 100644 index a53df5f..0000000 Binary files a/myBlazorApp/myBlazorApp/wwwroot/images/ron weasley.png and /dev/null differ