a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[frontend] Give the list items names

Lunya d8efbf09 1a89c308

+15 -15
+3 -3
Iceshrimp.Frontend/Components/EmojiPicker.razor
··· 14 14 @foreach (var category in Categories) 15 15 { 16 16 <details open> 17 - <summary aria-label="category">@category.Item1</summary> 17 + <summary aria-label="category">@category.Category</summary> 18 18 <div class="emoji-list"> 19 - @foreach (var emoji in category.Item2) 19 + @foreach (var emoji in category.Emojis) 20 20 { 21 21 <div @onclick="() => Select(emoji)" class="emoji" title=":@emoji.Name:"> 22 22 <InlineEmoji Name="@emoji.Name" Url="@emoji.PublicUrl" Size="2rem"/> ··· 38 38 private double _left; 39 39 40 40 private string EmojiFilter { get; set; } = ""; 41 - private List<(string?, List<EmojiResponse>)> Categories { get; set; } = []; 41 + private List<(string? Category, List<EmojiResponse> Emojis)> Categories { get; set; } = []; 42 42 43 43 protected override void OnInitialized() 44 44 {
+12 -12
Iceshrimp.Frontend/Pages/Moderation/CustomEmojis.razor
··· 77 77 { 78 78 @foreach (var category in Categories) 79 79 { 80 - <span class="category-name">@category.Item1</span> 80 + <span class="category-name">@category.Category</span> 81 81 <div class="emoji-list"> 82 - @foreach (var emoji in category.Item2) 82 + @foreach (var emoji in category.Emojis) 83 83 { 84 84 <EmojiManagementEntry Emoji="@emoji" DeleteEmoji="DeleteEmoji" 85 85 FilterEmojis="FilterEmojis" ToggleEmoji="SelectEmoji" BatchSelection="BatchSelection" ··· 105 105 </div> 106 106 107 107 @code { 108 - private List<EmojiResponse> Emojis { get; set; } = []; 109 - private List<(string?, List<EmojiResponse>)> Categories { get; set; } = new(); 110 - private string EmojiFilter { get; set; } = ""; 111 - private State State { get; set; } 112 - private InputFile UploadInput { get; set; } = null!; 113 - private IBrowserFile UploadFile { get; set; } = null!; 114 - private InputFile ImportInput { get; set; } = null!; 115 - private IBrowserFile ImportFile { get; set; } = null!; 116 - private bool BatchSelection { get; set; } 117 - private List<EmojiResponse> Selected { get; set; } = []; 108 + private List<EmojiResponse> Emojis { get; set; } = []; 109 + private List<(string? Category, List<EmojiResponse> Emojis)> Categories { get; set; } = new(); 110 + private string EmojiFilter { get; set; } = ""; 111 + private State State { get; set; } 112 + private InputFile UploadInput { get; set; } = null!; 113 + private IBrowserFile UploadFile { get; set; } = null!; 114 + private InputFile ImportInput { get; set; } = null!; 115 + private IBrowserFile ImportFile { get; set; } = null!; 116 + private bool BatchSelection { get; set; } 117 + private List<EmojiResponse> Selected { get; set; } = []; 118 118 119 119 private void FilterEmojis() 120 120 {