mirror of https://github.com/jellyfin/jellyfin.git
search flyout placeholder
This commit is contained in:
parent
757cfcae8e
commit
3eaf25132c
|
@ -118,9 +118,11 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Find artists
|
||||||
var artists = items.OfType<Audio>()
|
var artists = items.OfType<Audio>()
|
||||||
.SelectMany(i => new[] { i.Artist, i.AlbumArtist })
|
.SelectMany(i => new[] { i.Artist, i.AlbumArtist })
|
||||||
.Where(i => !string.IsNullOrEmpty(i))
|
.Where(i => !string.IsNullOrEmpty(i))
|
||||||
|
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
foreach (var item in artists)
|
foreach (var item in artists)
|
||||||
|
@ -193,26 +195,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
return hints.OrderBy(i => i.Item2).Select(i => i.Item1);
|
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>
|
/// <summary>
|
||||||
/// Gets the words.
|
/// Gets the words.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -485,6 +485,7 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
"pluginupdatespage.js",
|
"pluginupdatespage.js",
|
||||||
"scheduledtaskpage.js",
|
"scheduledtaskpage.js",
|
||||||
"scheduledtaskspage.js",
|
"scheduledtaskspage.js",
|
||||||
|
"search.js",
|
||||||
"songs.js",
|
"songs.js",
|
||||||
"supporterkeypage.js",
|
"supporterkeypage.js",
|
||||||
"supporterpage.js",
|
"supporterpage.js",
|
||||||
|
@ -528,6 +529,7 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
"librarybrowser.css",
|
"librarybrowser.css",
|
||||||
"detailtable.css",
|
"detailtable.css",
|
||||||
"posteritem.css",
|
"posteritem.css",
|
||||||
|
"search.css",
|
||||||
"pluginupdates.css",
|
"pluginupdates.css",
|
||||||
"userimage.css"
|
"userimage.css"
|
||||||
};
|
};
|
||||||
|
|
|
@ -186,6 +186,9 @@
|
||||||
<Content Include="dashboard-ui\css\posteritem.css">
|
<Content Include="dashboard-ui\css\posteritem.css">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\css\search.css">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\css\userimage.css">
|
<Content Include="dashboard-ui\css\userimage.css">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -255,6 +258,9 @@
|
||||||
<Content Include="dashboard-ui\scripts\musicrecommended.js">
|
<Content Include="dashboard-ui\scripts\musicrecommended.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\scripts\search.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\songs.html">
|
<Content Include="dashboard-ui\songs.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
Loading…
Reference in New Issue