Sfoglia il codice sorgente

Implement review feedback

Joshua Boniface 6 anni fa
parent
commit
3c4043199a

+ 2 - 2
Emby.Server.Implementations/AppBase/BaseApplicationPaths.cs

@@ -36,9 +36,9 @@ namespace Emby.Server.Implementations.AppBase
         public string ProgramDataPath { get; private set; }
 
         /// <summary>
-        /// Gets the path to the web resources folder
+        /// Gets the path to the web UI resources folder
         /// </summary>
-        /// <value>The web resources path.</value>
+        /// <value>The web UI resources path.</value>
         public string WebPath { get; set; }
 
         /// <summary>

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -621,7 +621,7 @@ namespace Emby.Server.Implementations
             string contentRoot = ServerConfigurationManager.Configuration.DashboardSourcePath;
             if (string.IsNullOrEmpty(contentRoot))
             {
-                contentRoot = Path.Combine(ServerConfigurationManager.ApplicationPaths.WebPath, "src");
+                contentRoot = ServerConfigurationManager.ApplicationPaths.WebPath;
             }
 
             var host = new WebHostBuilder()

+ 1 - 1
Jellyfin.Server/Program.cs

@@ -277,7 +277,7 @@ namespace Jellyfin.Server
                 if (string.IsNullOrEmpty(webDir))
                 {
                     // Use default location under ResourcesPath
-                    webDir = Path.Combine(AppContext.BaseDirectory, "jellyfin-web");
+                    webDir = Path.Combine(AppContext.BaseDirectory, "jellyfin-web", "src");
                 }
             }
 

+ 1 - 1
Jellyfin.Server/StartupOptions.cs

@@ -11,7 +11,7 @@ namespace Jellyfin.Server
         [Option('d', "datadir", Required = false, HelpText = "Path to use for the data folder (database files, etc.).")]
         public string DataDir { get; set; }
 
-        [Option('w', "webdir", Required = false, HelpText = "Path to the Jellyfin web resources.")]
+        [Option('w', "webdir", Required = false, HelpText = "Path to the Jellyfin web UI resources.")]
         public string WebDir { get; set; }
 
         [Option('C', "cachedir", Required = false, HelpText = "Path to use for caching.")]

+ 2 - 2
MediaBrowser.Common/Configuration/IApplicationPaths.cs

@@ -12,9 +12,9 @@ namespace MediaBrowser.Common.Configuration
         string ProgramDataPath { get; }
 
         /// <summary>
-        /// Gets the path to the web resources folder
+        /// Gets the path to the web UI resources folder
         /// </summary>
-        /// <value>The web resources path.</value>
+        /// <value>The web UI resources path.</value>
         string WebPath { get; }
 
         /// <summary>

+ 2 - 2
MediaBrowser.Model/System/SystemInfo.cs

@@ -84,9 +84,9 @@ namespace MediaBrowser.Model.System
         public string ProgramDataPath { get; set; }
 
         /// <summary>
-        /// Gets or sets the web resources path.
+        /// Gets or sets the web UI resources path.
         /// </summary>
-        /// <value>The web resources path.</value>
+        /// <value>The web UI resources path.</value>
         public string WebPath { get; set; }
 
         /// <summary>

+ 1 - 1
MediaBrowser.WebDashboard/Api/DashboardService.cs

@@ -149,7 +149,7 @@ namespace MediaBrowser.WebDashboard.Api
                     return _serverConfigurationManager.Configuration.DashboardSourcePath;
                 }
 
-                return Path.Combine(_serverConfigurationManager.ApplicationPaths.WebPath, "src");
+                return _serverConfigurationManager.ApplicationPaths.WebPath;
             }
         }