diff --git a/.cursor/rules/coding-standards.mdc b/.cursor/rules/coding-standards.mdc index 852bbd5..a90ddcb 100644 --- a/.cursor/rules/coding-standards.mdc +++ b/.cursor/rules/coding-standards.mdc @@ -27,6 +27,10 @@ alwaysApply: true - Use Swagger/OpenAPI for API documentation for your backend API services - Ensure XML documentation for models and API methods for enhancing Swagger documentation +# Services implementation +- Arguments of the service methods, when exceeding 2, must be wrapped in a dedicated request record. The request record is created as a model. +- Result of the service methods must be wrapped in a dedicated result record. The result record is created as a model. + ## Utils - For JSON processing and utils, we are using Newtonsoft exclusively diff --git a/CaddyManager/Components/App.razor b/CaddyManager/Components/App.razor index 79fa896..39d632b 100644 --- a/CaddyManager/Components/App.razor +++ b/CaddyManager/Components/App.razor @@ -9,6 +9,7 @@ + diff --git a/CaddyManager/Components/Pages/Caddy/CaddyReverseProxies/CaddyReverseProxiesPage.razor b/CaddyManager/Components/Pages/Caddy/CaddyReverseProxies/CaddyReverseProxiesPage.razor index 2a92d39..8c1e99a 100644 --- a/CaddyManager/Components/Pages/Caddy/CaddyReverseProxies/CaddyReverseProxiesPage.razor +++ b/CaddyManager/Components/Pages/Caddy/CaddyReverseProxies/CaddyReverseProxiesPage.razor @@ -4,39 +4,41 @@ Reverse proxy configurations - - New... - - Delete - - Restart Caddy - - @if (_isProcessing) - { - - } - - - - - - @foreach (var (index, caddyConfig) in _availableCaddyConfigurations.Index()) - { - - - @if (index < _availableCaddyConfigurations.Count - 1) + + + New... + + Delete + + Restart Caddy + + @if (_isProcessing) { - + } - } - - \ No newline at end of file + + + + + + + @foreach (var (index, caddyConfig) in _availableCaddyConfigurations.Index()) + { + + + @if (index < _availableCaddyConfigurations.Count - 1) + { + + } + } + +