mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
break up jquery mobile
This commit is contained in:
parent
82ba09273d
commit
0255b6a553
2 changed files with 12 additions and 3 deletions
|
@ -281,7 +281,7 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
"thirdparty/paper-toast/paper-toast.html",
|
"thirdparty/paper-toast/paper-toast.html",
|
||||||
"thirdparty/paper-spinner/paper-spinner.html",
|
"thirdparty/paper-spinner/paper-spinner.html",
|
||||||
//"thirdparty/paper-icon-button/paper-icon-button.html",
|
//"thirdparty/paper-icon-button/paper-icon-button.html",
|
||||||
//"thirdparty/iron-icons/iron-icons.html"
|
"thirdparty/iron-icons/iron-icons.html"
|
||||||
};
|
};
|
||||||
var importsHtml = string.Join("", imports.Select(i => "<link rel=\"import\" href=\"" + i + "\">").ToArray());
|
var importsHtml = string.Join("", imports.Select(i => "<link rel=\"import\" href=\"" + i + "\">").ToArray());
|
||||||
|
|
||||||
|
@ -383,7 +383,6 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
|
|
||||||
var files = new[]
|
var files = new[]
|
||||||
{
|
{
|
||||||
"thirdparty/jquerymobile-1.4.5/jquery.mobile-1.4.5.min.css",
|
|
||||||
"thirdparty/fontawesome/css/font-awesome.min.css" + versionString,
|
"thirdparty/fontawesome/css/font-awesome.min.css" + versionString,
|
||||||
"thirdparty/materialicons/style.css" + versionString,
|
"thirdparty/materialicons/style.css" + versionString,
|
||||||
"css/all.css" + versionString
|
"css/all.css" + versionString
|
||||||
|
@ -627,6 +626,12 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
/// <returns>Task{Stream}.</returns>
|
/// <returns>Task{Stream}.</returns>
|
||||||
private async Task<Stream> GetAllCss(bool enableMinification)
|
private async Task<Stream> GetAllCss(bool enableMinification)
|
||||||
{
|
{
|
||||||
|
var memoryStream = new MemoryStream();
|
||||||
|
var newLineBytes = Encoding.UTF8.GetBytes(Environment.NewLine);
|
||||||
|
|
||||||
|
await AppendResource(memoryStream, "thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.theme.min.css", newLineBytes).ConfigureAwait(false);
|
||||||
|
await AppendResource(memoryStream, "thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.structure.min.css", newLineBytes).ConfigureAwait(false);
|
||||||
|
|
||||||
var files = new[]
|
var files = new[]
|
||||||
{
|
{
|
||||||
"site.css",
|
"site.css",
|
||||||
|
@ -690,7 +695,8 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(css));
|
var bytes = Encoding.UTF8.GetBytes(css);
|
||||||
|
memoryStream.Write(bytes, 0, bytes.Length);
|
||||||
|
|
||||||
memoryStream.Position = 0;
|
memoryStream.Position = 0;
|
||||||
return memoryStream;
|
return memoryStream;
|
||||||
|
|
|
@ -192,6 +192,9 @@
|
||||||
<Content Include="dashboard-ui\thirdparty\iron-meta\iron-meta.html">
|
<Content Include="dashboard-ui\thirdparty\iron-meta\iron-meta.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jquery.mobile.custom.icons.css" />
|
||||||
|
<Content Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jquery.mobile.custom.structure.min.css" />
|
||||||
|
<Content Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jquery.mobile.custom.theme.min.css" />
|
||||||
<Content Include="dashboard-ui\thirdparty\paper-behaviors\paper-button-behavior.html">
|
<Content Include="dashboard-ui\thirdparty\paper-behaviors\paper-button-behavior.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
Loading…
Reference in a new issue