From 37541e45d325a8a10e83829ca07fec43e98a99cd Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 13 Dec 2024 14:47:34 -0500 Subject: [PATCH] ok, we set up template manually. hint: rg -i -l REPO_NAME > .gitea/template and then add $REPO_NAME.csproj, rg checks contents. --- .gitea/template | 18 ++++++++++++++++-- Components/App.razor | 2 +- Components/Layout/NavMenu.razor | 2 +- Components/_Imports.razor | 4 ++-- Configuration.cs | 2 +- appsettings.sample.json | 2 +- 6 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.gitea/template b/.gitea/template index 66bfa39..02a3367 100644 --- a/.gitea/template +++ b/.gitea/template @@ -1,2 +1,16 @@ - -**/*.* +$REPO_NAME.csproj +$REPO_NAME.service +$REPO_NAMEDBContext.cs +appsettings.sample.json +Components/_Imports.razor +Components/App.razor +Components/Layout/NavMenu.razor +Configuration.cs +devuitls.sh +Jenkinsfile +Migrations/20241213175020_greets.cs +Migrations/20241213175020_greets.Designer.cs +Migrations/Test236DBContextModelSnapshot.cs +Models/GreetCounter.cs +Program.cs +README.md diff --git a/Components/App.razor b/Components/App.razor index ea6632a..8364967 100644 --- a/Components/App.razor +++ b/Components/App.razor @@ -7,7 +7,7 @@ - + diff --git a/Components/Layout/NavMenu.razor b/Components/Layout/NavMenu.razor index fe5041e..e86da74 100644 --- a/Components/Layout/NavMenu.razor +++ b/Components/Layout/NavMenu.razor @@ -1,6 +1,6 @@  diff --git a/Components/_Imports.razor b/Components/_Imports.razor index f42f586..2b6b08f 100644 --- a/Components/_Imports.razor +++ b/Components/_Imports.razor @@ -6,5 +6,5 @@ @using static Microsoft.AspNetCore.Components.Web.RenderMode @using Microsoft.AspNetCore.Components.Web.Virtualization @using Microsoft.JSInterop -@using test236 -@using test236.Components +@using $REPO_NAME +@using $REPO_NAME.Components diff --git a/Configuration.cs b/Configuration.cs index 3bfddcf..12db475 100644 --- a/Configuration.cs +++ b/Configuration.cs @@ -1,4 +1,4 @@ -namespace test236 +namespace $REPO_NAME { public class Configuration { diff --git a/appsettings.sample.json b/appsettings.sample.json index ebdecef..1f8eeb4 100644 --- a/appsettings.sample.json +++ b/appsettings.sample.json @@ -5,5 +5,5 @@ "Microsoft.AspNetCore": "Warning" } }, - "DBConnectionString": "Host=localhost;Database=$REPO_NAME_dev;Username=test236;Password=wnmhOttjA0wCiR9hVoG7jjrf90SxWvAV;IncludeErrorDetail=true;" + "DBConnectionString": "Host=localhost;Database=$REPO_NAME_dev;Username=$REPO_NAME;Password=wnmhOttjA0wCiR9hVoG7jjrf90SxWvAV;IncludeErrorDetail=true;" }