The Free Software Media System - Server Backend & API
extract scripts
Luke Pulverentidbf3ae226222
diff --git a/MediaBrowser.Server.Implementations/Localization/Server/server.json b/MediaBrowser.Server.Implementations/Localization/Server/server.jsonindex 2d9b0e02d3..49a912012d 100644--- a/MediaBrowser.Server.Implementations/Localization/Server/server.json+++ b/MediaBrowser.Server.Implementations/Localization/Server/server.json@@ -1454,5 +1454,6 @@"OptionEnableExternalVideoPlayers": "Enable external video players","ButtonUnlockGuide": "Unlock Guide","LabelEnableFullScreen": "Enable fullscreen mode",- "LabelEnableChromecastAc3Passthrough": "Enable Chromecast AC3 Passthrough"+ "LabelEnableChromecastAc3Passthrough": "Enable Chromecast AC3 Passthrough",+ "LabelSyncPath": "Synced content path:"}diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.csindex 62acf69bc1..69643a2da9 100644--- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs+++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs@@ -274,7 +274,10 @@ namespace MediaBrowser.WebDashboard.Apivar version = GetType().Assembly.GetName().Version;- html = html.Replace("<head>", "<head>" + GetMetaTags(mode) + GetCommonCss(mode, version) + GetCommonJavascript(mode, version));+ var imports = "<link rel=\"import\" href=\"thirdparty/polymer/polymer.html\">";+ imports = "";++ html = html.Replace("<head>", "<head>" + GetMetaTags(mode) + GetCommonCss(mode, version) + GetCommonJavascript(mode, version) + imports);var bytes = Encoding.UTF8.GetBytes(html);@@ -393,6 +396,7 @@ namespace MediaBrowser.WebDashboard.Apivar files = new List<string>{+ //"thirdparty/webcomponentsjs/webcomponents-lite.min.js","scripts/all.js" + versionString};@@ -545,21 +549,16 @@ namespace MediaBrowser.WebDashboard.Api"mediaplayer-video.js","nowplayingbar.js","alphapicker.js",- "addpluginpage.js",- "dashboardpage.js","directorybrowser.js","edititemmetadata.js","indexpage.js","itemdetailpage.js","moviecollections.js","notifications.js",- "plugincatalogpage.js",- "pluginspage.js","remotecontrol.js","search.js","thememediaplayer.js",- "useredit.js",- "userprofilespage.js"+ "useredit.js"};}diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csprojindex db25ca63d0..f20b691ac0 100644--- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj+++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj@@ -138,6 +138,9 @@<Content Include="dashboard-ui\thirdparty\cordova\android\mediasession.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\thirdparty\cordova\android\nativedirectorychooser.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\thirdparty\cordova\back.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>@@ -150,9 +153,48 @@<Content Include="dashboard-ui\thirdparty\cordova\wakeonlan.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\thirdparty\polymer\LICENSE.txt">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\polymer\polymer-micro.html">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\polymer\polymer-mini.html">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\polymer\polymer.html">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\thirdparty\velocity.min.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\CustomElements.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\CustomElements.min.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\HTMLImports.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\HTMLImports.min.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\MutationObserver.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\MutationObserver.min.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\ShadowDOM.min.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\webcomponents-lite.min.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content>+ <Content Include="dashboard-ui\thirdparty\webcomponentsjs\webcomponents.min.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\voice\voice.css"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>@@ -2386,6 +2428,24 @@<None Include="dashboard-ui\thirdparty\materialicons\MaterialIcons-Regular.woff2"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>+ <None Include="dashboard-ui\thirdparty\polymer\bower.json">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None>+ <None Include="dashboard-ui\thirdparty\polymer\build.log">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None>+ <None Include="dashboard-ui\thirdparty\webcomponentsjs\bower.json">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None>+ <None Include="dashboard-ui\thirdparty\webcomponentsjs\build.log">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None>+ <None Include="dashboard-ui\thirdparty\webcomponentsjs\package.json">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None>+ <None Include="dashboard-ui\thirdparty\webcomponentsjs\README.md">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None><None Include="packages.config" /></ItemGroup><ItemGroup />