mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2026-07-11 13:39:41 +02:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c93093c0ea | |||
| cc14d4ee04 | |||
| f3cf177409 | |||
| 226eb6ccb3 | |||
| 94902c635e | |||
| d005e5ac56 | |||
| 221f21caa9 | |||
| b9f1b5a51e |
Binary file not shown.
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 72 KiB |
@@ -11,7 +11,7 @@
|
|||||||
<AvaloniaXamlIlDebuggerLaunch>False</AvaloniaXamlIlDebuggerLaunch>
|
<AvaloniaXamlIlDebuggerLaunch>False</AvaloniaXamlIlDebuggerLaunch>
|
||||||
<ApplicationIcon>app.ico</ApplicationIcon>
|
<ApplicationIcon>app.ico</ApplicationIcon>
|
||||||
<AssemblyName>NeedleworkDotNet</AssemblyName>
|
<AssemblyName>NeedleworkDotNet</AssemblyName>
|
||||||
<AssemblyVersion>0.14.0.0</AssemblyVersion>
|
<AssemblyVersion>0.14.2.0</AssemblyVersion>
|
||||||
<FileVersion>$(AssemblyVersion)</FileVersion>
|
<FileVersion>$(AssemblyVersion)</FileVersion>
|
||||||
<AvaloniaXamlVerboseExceptions>False</AvaloniaXamlVerboseExceptions>
|
<AvaloniaXamlVerboseExceptions>False</AvaloniaXamlVerboseExceptions>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ namespace Needlework.Net.Services
|
|||||||
foreach (var element in elements)
|
foreach (var element in elements)
|
||||||
{
|
{
|
||||||
var path = element.QuerySelector("a.post-card-content-link")!.GetAttribute("href")!;
|
var path = element.QuerySelector("a.post-card-content-link")!.GetAttribute("href")!;
|
||||||
var title = element.QuerySelector(".post-card-title")!.TextContent;
|
var title = element.QuerySelector(".post-card-title")!.TextContent.Trim();
|
||||||
var excerpt = element.QuerySelector(".post-card-excerpt > p")!.TextContent;
|
var excerpt = element.QuerySelector(".post-card-excerpt")!.TextContent;
|
||||||
var post = new HextechDocsPost()
|
var post = new HextechDocsPost()
|
||||||
{
|
{
|
||||||
Path = path,
|
Path = path,
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public partial class WebSocketViewModel : PageBase, IEnableLogger
|
|||||||
{
|
{
|
||||||
private Dictionary<string, EventMessage> _events = [];
|
private Dictionary<string, EventMessage> _events = [];
|
||||||
|
|
||||||
|
private readonly AvaloniaList<EventViewModel> _filteredEventLog = new();
|
||||||
|
|
||||||
private readonly IFlurlClient _githubUserContentClient;
|
private readonly IFlurlClient _githubUserContentClient;
|
||||||
|
|
||||||
private readonly NotificationService _notificationService;
|
private readonly NotificationService _notificationService;
|
||||||
@@ -53,7 +55,20 @@ public partial class WebSocketViewModel : PageBase, IEnableLogger
|
|||||||
|
|
||||||
public CancellationTokenSource TokenSource { get; set; } = new();
|
public CancellationTokenSource TokenSource { get; set; } = new();
|
||||||
|
|
||||||
public IReadOnlyList<EventViewModel> FilteredEventLog => string.IsNullOrWhiteSpace(Search) ? EventLog : [.. EventLog.Where(x => x.Key.Contains(Search, StringComparison.InvariantCultureIgnoreCase))];
|
public IReadOnlyList<EventViewModel> FilteredEventLog
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
IEnumerable<EventViewModel> events = EventLog;
|
||||||
|
if (!string.IsNullOrWhiteSpace(Search))
|
||||||
|
{
|
||||||
|
events = events.Where(x => x.Key.Contains(Search, StringComparison.InvariantCultureIgnoreCase));
|
||||||
|
}
|
||||||
|
_filteredEventLog.Clear();
|
||||||
|
_filteredEventLog.AddRange(events);
|
||||||
|
return _filteredEventLog;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private Vector _eventLogOffset = new();
|
private Vector _eventLogOffset = new();
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<controls:UserCard UserImage="/Assets/Users/aoshiw.png"
|
<controls:UserCard UserImage="/Assets/Users/aoshiw.png"
|
||||||
UserName="AoshiW"
|
UserName="AoshiW"
|
||||||
UserGithub="AoshiW">
|
UserGithub="AoshiW">
|
||||||
For PR.
|
For PRs that we needed the most.
|
||||||
</controls:UserCard>
|
</controls:UserCard>
|
||||||
</WrapPanel>
|
</WrapPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|||||||
Reference in New Issue
Block a user