mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
search flyout placeholder
This commit is contained in:
parent
757cfcae8e
commit
3eaf25132c
3 changed files with 10 additions and 20 deletions
|
@ -118,9 +118,11 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
}
|
||||
}
|
||||
|
||||
// Find artists
|
||||
var artists = items.OfType<Audio>()
|
||||
.SelectMany(i => new[] { i.Artist, i.AlbumArtist })
|
||||
.Where(i => !string.IsNullOrEmpty(i))
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.ToList();
|
||||
|
||||
foreach (var item in artists)
|
||||
|
@ -193,26 +195,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
return hints.OrderBy(i => i.Item2).Select(i => i.Item1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hints.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="searchTerm">The search term.</param>
|
||||
/// <returns>IEnumerable{Tuple{SearchHintResultSystem.Int32}}.</returns>
|
||||
private async Task<IEnumerable<Tuple<BaseItem, int>>> GetHints(BaseItem item, string searchTerm)
|
||||
{
|
||||
var hints = new List<Tuple<BaseItem, int>>();
|
||||
|
||||
var index = IndexOf(item.Name, searchTerm);
|
||||
|
||||
if (index != -1)
|
||||
{
|
||||
hints.Add(new Tuple<BaseItem, int>(item, index));
|
||||
}
|
||||
|
||||
return hints;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the words.
|
||||
/// </summary>
|
||||
|
|
|
@ -485,6 +485,7 @@ namespace MediaBrowser.WebDashboard.Api
|
|||
"pluginupdatespage.js",
|
||||
"scheduledtaskpage.js",
|
||||
"scheduledtaskspage.js",
|
||||
"search.js",
|
||||
"songs.js",
|
||||
"supporterkeypage.js",
|
||||
"supporterpage.js",
|
||||
|
@ -528,6 +529,7 @@ namespace MediaBrowser.WebDashboard.Api
|
|||
"librarybrowser.css",
|
||||
"detailtable.css",
|
||||
"posteritem.css",
|
||||
"search.css",
|
||||
"pluginupdates.css",
|
||||
"userimage.css"
|
||||
};
|
||||
|
|
|
@ -186,6 +186,9 @@
|
|||
<Content Include="dashboard-ui\css\posteritem.css">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\css\search.css">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\css\userimage.css">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
@ -255,6 +258,9 @@
|
|||
<Content Include="dashboard-ui\scripts\musicrecommended.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\scripts\search.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\songs.html">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
|
Loading…
Reference in a new issue