添加项目文件。

This commit is contained in:
2025-02-25 22:28:49 +08:00
parent 07e26cc93e
commit 1a7bdb585a
32 changed files with 1601 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
@page "/pixiv"
@rendermode InteractiveServer
<h3>Pixiv</h3>
<FluentButton OnClick="RandomGet">
随机获取
</FluentButton>
<FluentDivider />
<br/>
<FluentStack Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Center">
@foreach (var (index, img) in CurrentImgs.S3URL.Index())
{
@if(index == 0)
{
<img src="@img.Large" loading="lazy" referrerpolicy="no-referrer" onload="" />
}
else
{
<img src="@img.Large" loading="lazy" referrerpolicy="no-referrer" />
}
}
</FluentStack>
@code {
public Modules.PixivFavoriteDownloader.Pixiv.PixivImgInfo CurrentImgs;
protected override void OnInitialized()
{
base.OnInitialized();
RandomGet();
}
public void FirstImgLoaded()
{
}
public void RandomGet()
{
CurrentImgs = Modules.PixivFavoriteDownloader.Favorites.OrderByRandom().First();
}
}