Skip to content

Commit

Permalink
The most significant changes include a major refactoring of the `Inde…
Browse files Browse the repository at this point in the history
…x.razor` file, the addition of a new `JsConsole` class, a new `LinkedListExtension` class, and an update to the `Nekos.sln.DotSettings` file.

1. The `Index.razor` file has undergone substantial refactoring. The changes include renaming of injected services and variables for clarity and consistency, updating the image loading logic to use a linked list of `ImageSchema` objects, moving the footer outside of the conditional rendering block, and updating various methods such as `Next`, `Previous`, `ToggleFavorite`, and `HistoryToFavorite`. The swipe event handlers have also been updated to call the `Next` and `Previous` methods based on the swipe direction.

2. A new `JsConsole` class has been added to the `Nekos.Utils` namespace. This class provides a method for logging messages to the JavaScript console.

3. A new `LinkedListExtension` class has been added to the `Nekos.Utils` namespace. This class provides an extension method for finding the index of an item in a linked list based on a predicate.

4. The `Nekos.sln.DotSettings` file has been updated to include "Nekos" in the user dictionary. This allows ReSharper to recognize "Nekos" as a correctly spelled word.
  • Loading branch information
SCJA03 committed Mar 22, 2024
1 parent bfae67d commit 3f0803f
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 163 deletions.
2 changes: 2 additions & 0 deletions Nekos.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=Nekos/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
Loading

0 comments on commit 3f0803f

Please sign in to comment.