Skip to content

Commit 37b3945

Browse files
refactor: Update terminology from FTP to file transport across controllers, view models, and views
1 parent 29ded4e commit 37b3945

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/XtremeIdiots.Portal.Web/Controllers/BanFileMonitorsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace XtremeIdiots.Portal.Web.Controllers;
2020
/// Read-only dashboard for ban file monitor status. The monitor row itself is owned
2121
/// and upserted by the server agent — admins can no longer create, edit, or delete
2222
/// monitors. To enable / disable monitoring for a server, toggle
23-
/// <c>GameServer.BanFileSyncEnabled</c> on the GameServers/Edit page; the FTP path
23+
/// <c>GameServer.BanFileSyncEnabled</c> on the GameServers/Edit page; the file transport path
2424
/// is resolved automatically from per-game-type rules + <c>GameServer.BanFileRootPath</c>
2525
/// + the live mod observed by the agent.
2626
/// </summary>

src/XtremeIdiots.Portal.Web/Controllers/CredentialsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace XtremeIdiots.Portal.Web.Controllers;
1717
/// Manages the display and authorization of game server credentials for authenticated users
1818
/// </summary>
1919
/// <remarks>
20-
/// This controller handles FTP and RCON credentials for game servers based on user authorization levels.
20+
/// This controller handles file transport and RCON credentials for game servers based on user authorization levels.
2121
/// Users can view credentials only for servers they have explicit permission to access.
2222
/// </remarks>
2323
[Authorize(Policy = AuthPolicies.GameServers_Read)]

src/XtremeIdiots.Portal.Web/ViewModels/BanFileMonitorsDashboardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public sealed class BanFileMonitorsDashboardViewModel
1818
public required IReadOnlyDictionary<Guid, GameServerLiveStatusDto> LiveStatusLookup { get; init; }
1919

2020
/// <summary>
21-
/// Per-server config namespace lookup (used for FTP host display in the table).
21+
/// Per-server config namespace lookup (used for file transport host display in the table).
2222
/// Same shape as other admin views in this project.
2323
/// </summary>
2424
public required IReadOnlyDictionary<Guid, Dictionary<string, System.Text.Json.JsonElement>> ServerConfigs { get; init; }

src/XtremeIdiots.Portal.Web/ViewModels/GameServerViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class GameServerViewModel
6161
public RepoFileTransportType FileTransportType { get; set; } = RepoFileTransportType.Ftp;
6262

6363
/// <summary>
64-
/// Gets or sets whether FTP integration is enabled for this server
64+
/// Gets or sets whether the legacy transport flag is enabled for this server
6565
/// </summary>
6666
[DisplayName("FTP")]
6767
public bool FtpEnabled { get; set; }
@@ -79,7 +79,7 @@ public class GameServerViewModel
7979
public bool BanFileSyncEnabled { get; set; }
8080

8181
/// <summary>
82-
/// Gets or sets the FTP root path beneath which the ban file lives. The agent
82+
/// Gets or sets the file transport root path beneath which the ban file lives. The agent
8383
/// resolves the full path from this root plus per-game-type rules and the
8484
/// currently-running mod (e.g. <c>{root}/mods/&lt;mod&gt;/ban.txt</c> for CoD4/5,
8585
/// <c>{root}/ban.txt</c> for CoD2). Defaults to <c>"/"</c>.

src/XtremeIdiots.Portal.Web/Views/GameServers/ConfigurationSections/_BanFileSyncConfiguration.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<input asp-for="GameServer.BanFileRootPath" class="form-control" type="text" maxlength="255" placeholder="/" />
1818
<span asp-validation-for="GameServer.BanFileRootPath" class="text-danger"></span>
1919
<small class="form-text text-muted">
20-
FTP root path beneath which the ban file lives. The agent resolves the full path
20+
File transport root path beneath which the ban file lives. The agent resolves the full path
2121
from this root plus per-game-type rules and the currently-running mod
2222
(e.g. <code>{root}/mods/&lt;mod&gt;/ban.txt</code> for CoD4/5,
2323
<code>{root}/ban.txt</code> for CoD2). Defaults to <code>/</code>.

src/XtremeIdiots.Portal.Web/wwwroot/js/game-servers-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $(document).ready(function () {
1818
{ targets: 0, responsivePriority: 3 }, // Game Type
1919
{ targets: 1, responsivePriority: 1 }, // Title - always visible
2020
{ targets: 2, responsivePriority: 4 }, // Hostname
21-
{ targets: 3, responsivePriority: 7 }, // FtpEnabled
21+
{ targets: 3, responsivePriority: 7 }, // FileTransportEnabled
2222
{ targets: 4, responsivePriority: 8 }, // RconEnabled
2323
{ targets: 5, responsivePriority: 9 }, // AgentEnabled
2424
{ targets: 6, responsivePriority: 10 }, // BanFileSyncEnabled

0 commit comments

Comments
 (0)