Refactor project files for improved readability and structure
CI / Backend (build + test) (push) Successful in 1m18s
CI / Frontend (lint + typecheck + build) (push) Successful in 31s

- Cleaned up whitespace in Directory.Build.props and Directory.Packages.props for consistency.
- Reformatted project file references in PnvPanel.Api.csproj for better clarity.
- Enhanced code readability in various endpoint files by adjusting line breaks and indentation.
- Standardized method signatures and improved formatting in ResultExtensions and multiple endpoint classes for better maintainability.
This commit is contained in:
Leonid Pershin committed 2026-07-14 07:24:13 +03:00
1 parent 9d5424bb9c
commit df137ca5a7
285 files changed
+6911 -2063

No files matched your search

@@ -21,11 +21,15 @@ public sealed class Inbound : Entity
public IReadOnlyList<Guid> AllowedRoleIds { get; private set; } = [];
public DateTimeOffset? LastSyncAt { get; private set; }
private Inbound()
{
}
private Inbound() { }
public static Inbound FromRemote(Guid nodeId, string remoteInboundId, VpnProtocol protocol, string remark, int port)
public static Inbound FromRemote(
Guid nodeId,
string remoteInboundId,
VpnProtocol protocol,
string remark,
int port
)
{
return new Inbound
{
@@ -48,7 +52,11 @@ public sealed class Inbound : Entity
LastSyncAt = DateTimeOffset.UtcNow;
}
public void Publish(string? displayName, IReadOnlyCollection<Guid> allowedRoleIds, int? maxClients)
public void Publish(
string? displayName,
IReadOnlyCollection<Guid> allowedRoleIds,
int? maxClients
)
{
IsPublished = true;
DisplayName = displayName;