From 1d173f24677b97567255bc8dcdf13454810344ff Mon Sep 17 00:00:00 2001 From: thepra Date: Wed, 1 Jul 2020 19:36:22 +0200 Subject: [PATCH] Implemented adding nginx conf file --- .../Seenginx.Components.csproj | 8 +- Seenginx.Models/NewFileForm.cs | 2 + Seenginx.Models/Template.cs | 8 ++ Seenginx/Components/FilesWithEditor.razor | 12 +-- Seenginx/Components/FilesWithEditor.razor.cs | 31 +++++--- Seenginx/Pages/Nginx.razor | 73 +++++++++++++++---- Seenginx/Pages/Nginx.razor.cs | 67 ++++++++++------- Seenginx/SCSS/override-framework.scss | 29 ++++++++ Seenginx/SCSS/template.scss | 13 ++-- Seenginx/SCSS/utility.scss | 14 ++++ Seenginx/Seenginx.csproj | 9 ++- Seenginx/Services/DmesgService.cs | 1 + Seenginx/Services/INginxService.cs | 1 + Seenginx/Services/NginxService.cs | 44 ++++++++++- Seenginx/Services/SystemDService.cs | 2 + Seenginx/Startup.cs | 5 +- Seenginx/wwwroot/css/main.css | 37 +++++++++- Seenginx/wwwroot/css/main.min.css | 2 +- .../wwwroot/templates/nginx/proxy.template | 39 ++++++++++ 19 files changed, 317 insertions(+), 80 deletions(-) create mode 100644 Seenginx.Models/Template.cs create mode 100644 Seenginx/wwwroot/templates/nginx/proxy.template diff --git a/Seenginx.Components/Seenginx.Components.csproj b/Seenginx.Components/Seenginx.Components.csproj index 6084ebc..7955aa3 100644 --- a/Seenginx.Components/Seenginx.Components.csproj +++ b/Seenginx.Components/Seenginx.Components.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 @@ -7,9 +7,9 @@ - - - + + + diff --git a/Seenginx.Models/NewFileForm.cs b/Seenginx.Models/NewFileForm.cs index 68ff445..883d57a 100644 --- a/Seenginx.Models/NewFileForm.cs +++ b/Seenginx.Models/NewFileForm.cs @@ -7,5 +7,7 @@ namespace Seenginx.Models public class NewFileForm { public string Name { get; set; } + public string SelectedTemplate { get; set; } = "0"; + public List