Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# put these in .gitattributes file
*.js binary
*.json binary
*.css binary
*.html binary
37 changes: 37 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2
updates:
# Configuration for GitPageBlazorWASMProgressive
- package-ecosystem: "nuget"
directory: "/GitPageBlazorWASMProgressive/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
target-branch: "Automatic_version_update_dependabot"

# Configuration for Package.BlazorComponentLibrary
- package-ecosystem: "nuget"
directory: "/Package.BlazorComponentLibrary/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
target-branch: "Automatic_version_update_dependabot"

# Configuration for TestHostPrerenderWASM
- package-ecosystem: "nuget"
directory: "/TestHostPrerenderWASM/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
target-branch: "Automatic_version_update_dependabot"

# Root-level configuration for automerge and versioning
automerge:
enable: true
allow:
- dependency-type: "all"
- update-type: "minor"
- update-type: "patch"
- update-type: "pin"
- update-type: "digest"

#versioning-strategy: auto
42 changes: 42 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2
updates:
# Configuration for minor and patch updates
# NuGet packages (.NET projects)
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
target-branch: "Automatic_version_update_dependabot"

automerge:
enable: true
allow:
- dependency-type: "all"
- update-type: "minor"
- update-type: "patch"
- update-type: "pin"
- update-type: "digest"
automerge-types: ["minor", "patch", "pin", "digest"]
# Optional: Set version requirement for automerge
versioning-strategy: auto




#ignore:
# - dependency-name: "*"
# update-types: ["version-update:semver-major"]

# Enable automatic merging
# Configuration for major updates only
#- package-ecosystem: "nuget"
# directory: "/"
# schedule:
# interval: "weekly"
# open-pull-requests-limit: 5
# target-branch: "Automatic_version_update_dependabot"
# ignore:
# - dependency-name: "*"
# update-types: ["version-update:semver-minor", "version-update:semver-patch"]
# versioning-strategy: auto
37 changes: 37 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ master ]

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore


# Add your tests here if needed
# - name: Test qqqqTODO
# run: dotnet test --no-build --verbosity normal

- name: Publish client using client release .csproj logic
run: dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs # The folder the action should deploy
branch: gh-pages # The branch the action should deploy to
83 changes: 83 additions & 0 deletions GenerateTreeStructure.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Set the output file path
$outputFile = "tree_structure.md"

# Clear the content of the output file if it exists
if (Test-Path $outputFile) {
Remove-Item $outputFile
}

# Function to generate the tree structure
function Generate-Tree {
param (
[string]$Path,
[string]$Prefix = ""
)
$spacePrefix = "$Prefix` ` ` ` " # Add four non-compressing spaces for indentation
# Relevant file extensions to include
$extensions = @(".cs", ".html", ".razor", ".cshtml")

# Directories to exclude from traversal
$excludedDirs = @("bin", "obj", ".git", ".github", ".vs", "node_modules", "packages", "Migrations", "logs", "Properties", "wwwroot", "MVCWasmNuget")

# Files to exclude
$excludedFiles = @(".csproj", ".dll", ".exe", ".pdb", ".user", ".log", ".json", ".xml")
#, "Program.cs"

# Get all directories and relevant files in the current path
$items = Get-ChildItem -Path $Path -Force | Where-Object {
($_.PSIsContainer -and ($_.Name -notin $excludedDirs)) -or
($_.Extension -in $extensions -and $_.Name -notin $excludedFiles)
} | Sort-Object Name

$outputLines = @() # Initialize an array to hold output lines

for ($i = 0; $i -lt $items.Count; $i++) {
$item = $items[$i]

# Prepare the output string for the item using square brackets
if ($i -eq $items.Count - 1) {
# Last item in the sibling group
$outputString = "$Prefix$spacePrefix┗ $($item.Name)" # Last item
} else {
# Other items
$outputString = "$Prefix$spacePrefix┣ $($item.Name)" # Sibling item
}

# Add the output string to the lines array
$outputLines += $outputString

# Recur for directories
if ($item.PSIsContainer) {

$outputLines += Generate-Tree -Path $item.FullName -Prefix $spacePrefix # Recur and append
}
}

return $outputLines # Return the generated lines
}
#style width - not tried yet in this may need tweaking
Add-Content -Path $outputFile -Value "
<style>
tr th:nth-child(2),
tr td:nth-child(2) {
white-space: nowrap; /* Prevent wrapping */
overflow: visible; /* Allow overflow */
text-overflow: unset; /* Remove ellipsis or clipping */
word-wrap: normal; /* Prevent word breaks */
word-break: normal; /* Prevent breaking within words */
}
</style>"
# Add the top-level entry for MVCWasmNuget
Add-Content -Path $outputFile -Value "# Project Structure" -Encoding UTF8 # Markdown header
Add-Content -Path $outputFile -Value "| Description | File Structure |" -Encoding UTF8 # Table header
Add-Content -Path $outputFile -Value "|----------------|-------------|" -Encoding UTF8 # Table separator
Add-Content -Path $outputFile -Value "| | &#9507; MVCBlazor |" -Encoding UTF8 # Top-level entry with tree symbol

# Generate tree structure excluding the MVCWasmNuget directory
$treeLines = Generate-Tree -Path (Get-Location) -Prefix "" # Indent all contents

# Append lines to the output file, prepending each with | for the table
$treeLinesWithTableFormat = $treeLines | ForEach-Object { "| | $_ |" } # Prepend | to each line and add a second pipe for the description
Add-Content -Path $outputFile -Value $treeLinesWithTableFormat -Encoding UTF8

Write-Host "Tree structure has been generated and saved to $outputFile."
15 changes: 0 additions & 15 deletions GitPageBlazorWASM.Client/GitPageBlazorWASM.Client.csproj

This file was deleted.

19 changes: 0 additions & 19 deletions GitPageBlazorWASM.Client/Pages/Counter.razor

This file was deleted.

5 changes: 0 additions & 5 deletions GitPageBlazorWASM.Client/Program.cs

This file was deleted.

8 changes: 0 additions & 8 deletions GitPageBlazorWASM.Client/wwwroot/appsettings.json

This file was deleted.

48 changes: 37 additions & 11 deletions GitPageBlazorWASM.sln
Original file line number Diff line number Diff line change
@@ -1,26 +1,52 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.13.35806.99 d17.13
VisualStudioVersion = 17.13.35806.99
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitPageBlazorWASM", "GitPageBlazorWASM\GitPageBlazorWASM.csproj", "{C76D4B8C-7A7E-42F8-944C-3A592A62C3C0}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestHostPrerenderWASM", "TestHostPrerenderWASM\TestHostPrerenderWASM\TestHostPrerenderWASM.csproj", "{58F22C95-434F-4ABF-99B3-B2D1481DB0D6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitPageBlazorWASM.Client", "GitPageBlazorWASM.Client\GitPageBlazorWASM.Client.csproj", "{F0FC0A16-D1DF-479C-842A-5E109DA7E9DA}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestHostPrerenderWASM.Client", "TestHostPrerenderWASM\TestHostPrerenderWASM.Client\TestHostPrerenderWASM.Client.csproj", "{A0572B2F-4669-40C4-B501-7C8F7666CFEA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharedPages", "SharedPages\SharedPages.csproj", "{0E0B57E0-D02F-46FD-B7F6-5AB1D3218635}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Package.BlazorComponentLibrary", "Package.BlazorComponentLibrary\Package.BlazorComponentLibrary.csproj", "{2E99AC55-7D92-42AD-9D85-7AACA5022A0A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlaywrightBUnitGoesHere", "PlaywrightXUnitGoesHere\PlaywrightBUnitGoesHere.csproj", "{3A0A52E1-117C-4E4B-9731-5AAA8CED114A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitPageBlazorWASMProgressive", "GitPageBlazorWASMProgressive\GitPageBlazorWASMProgressive.csproj", "{1A4888E4-D985-4FEB-B6C4-B84EB845C6BA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C76D4B8C-7A7E-42F8-944C-3A592A62C3C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C76D4B8C-7A7E-42F8-944C-3A592A62C3C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C76D4B8C-7A7E-42F8-944C-3A592A62C3C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C76D4B8C-7A7E-42F8-944C-3A592A62C3C0}.Release|Any CPU.Build.0 = Release|Any CPU
{F0FC0A16-D1DF-479C-842A-5E109DA7E9DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F0FC0A16-D1DF-479C-842A-5E109DA7E9DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F0FC0A16-D1DF-479C-842A-5E109DA7E9DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F0FC0A16-D1DF-479C-842A-5E109DA7E9DA}.Release|Any CPU.Build.0 = Release|Any CPU
{58F22C95-434F-4ABF-99B3-B2D1481DB0D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58F22C95-434F-4ABF-99B3-B2D1481DB0D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58F22C95-434F-4ABF-99B3-B2D1481DB0D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58F22C95-434F-4ABF-99B3-B2D1481DB0D6}.Release|Any CPU.Build.0 = Release|Any CPU
{A0572B2F-4669-40C4-B501-7C8F7666CFEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0572B2F-4669-40C4-B501-7C8F7666CFEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0572B2F-4669-40C4-B501-7C8F7666CFEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0572B2F-4669-40C4-B501-7C8F7666CFEA}.Release|Any CPU.Build.0 = Release|Any CPU
{0E0B57E0-D02F-46FD-B7F6-5AB1D3218635}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0E0B57E0-D02F-46FD-B7F6-5AB1D3218635}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E0B57E0-D02F-46FD-B7F6-5AB1D3218635}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E0B57E0-D02F-46FD-B7F6-5AB1D3218635}.Release|Any CPU.Build.0 = Release|Any CPU
{2E99AC55-7D92-42AD-9D85-7AACA5022A0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2E99AC55-7D92-42AD-9D85-7AACA5022A0A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2E99AC55-7D92-42AD-9D85-7AACA5022A0A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2E99AC55-7D92-42AD-9D85-7AACA5022A0A}.Release|Any CPU.Build.0 = Release|Any CPU
{3A0A52E1-117C-4E4B-9731-5AAA8CED114A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A0A52E1-117C-4E4B-9731-5AAA8CED114A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A0A52E1-117C-4E4B-9731-5AAA8CED114A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A0A52E1-117C-4E4B-9731-5AAA8CED114A}.Release|Any CPU.Build.0 = Release|Any CPU
{1A4888E4-D985-4FEB-B6C4-B84EB845C6BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1A4888E4-D985-4FEB-B6C4-B84EB845C6BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A4888E4-D985-4FEB-B6C4-B84EB845C6BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A4888E4-D985-4FEB-B6C4-B84EB845C6BA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
20 changes: 0 additions & 20 deletions GitPageBlazorWASM/Components/App.razor

This file was deleted.

23 changes: 0 additions & 23 deletions GitPageBlazorWASM/Components/Layout/MainLayout.razor

This file was deleted.

Loading