diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..250aab4
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,5 @@
+# put these in .gitattributes file
+*.js binary
+*.json binary
+*.css binary
+*.html binary
\ No newline at end of file
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..2f47c62
--- /dev/null
+++ b/.github/dependabot.yml
@@ -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
\ No newline at end of file
diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml
new file mode 100644
index 0000000..178cc5f
--- /dev/null
+++ b/.github/workflows/dependabot.yml
@@ -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
diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml
new file mode 100644
index 0000000..89dcc12
--- /dev/null
+++ b/.github/workflows/deploy-gh-pages.yml
@@ -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
\ No newline at end of file
diff --git a/GenerateTreeStructure.ps1 b/GenerateTreeStructure.ps1
new file mode 100644
index 0000000..781078f
--- /dev/null
+++ b/GenerateTreeStructure.ps1
@@ -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 "
+"
+# 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 "| | ┣ 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."
diff --git a/GitPageBlazorWASM.Client/GitPageBlazorWASM.Client.csproj b/GitPageBlazorWASM.Client/GitPageBlazorWASM.Client.csproj
deleted file mode 100644
index 1020741..0000000
--- a/GitPageBlazorWASM.Client/GitPageBlazorWASM.Client.csproj
+++ /dev/null
@@ -1,15 +0,0 @@
-
Current count: @currentCount
- - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount++; - } -} diff --git a/GitPageBlazorWASM.Client/Program.cs b/GitPageBlazorWASM.Client/Program.cs deleted file mode 100644 index 519269f..0000000 --- a/GitPageBlazorWASM.Client/Program.cs +++ /dev/null @@ -1,5 +0,0 @@ -using Microsoft.AspNetCore.Components.WebAssembly.Hosting; - -var builder = WebAssemblyHostBuilder.CreateDefault(args); - -await builder.Build().RunAsync(); diff --git a/GitPageBlazorWASM.Client/wwwroot/appsettings.json b/GitPageBlazorWASM.Client/wwwroot/appsettings.json deleted file mode 100644 index 0c208ae..0000000 --- a/GitPageBlazorWASM.Client/wwwroot/appsettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/GitPageBlazorWASM.sln b/GitPageBlazorWASM.sln index bade6e3..7c3ccf1 100644 --- a/GitPageBlazorWASM.sln +++ b/GitPageBlazorWASM.sln @@ -1,11 +1,21 @@ 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 @@ -13,14 +23,30 @@ Global 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 diff --git a/GitPageBlazorWASM/Components/App.razor b/GitPageBlazorWASM/Components/App.razor deleted file mode 100644 index 32ee548..0000000 --- a/GitPageBlazorWASM/Components/App.razor +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - -This component demonstrates showing data.
- -@if (forecasts == null) -{ -Loading...
-} -else -{ -| Date | -Temp. (C) | -Temp. (F) | -Summary | -
|---|---|---|---|
| @forecast.Date.ToShortDateString() | -@forecast.TemperatureC | -@forecast.TemperatureF | -@forecast.Summary | -
`s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\n\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n\n// Abbreviations\n//\n// 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin\n// 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Prevent the text-decoration to be skipped.\n\nabbr[title],\nabbr[data-bs-original-title] { // 1\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n text-decoration-skip-ink: none; // 4\n}\n\n\n// Address\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\n\n// Lists\n\nol,\nul {\n padding-left: 2rem;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\n// 1. Undo browser default\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // 1\n}\n\n\n// Blockquote\n\nblockquote {\n margin: 0 0 1rem;\n}\n\n\n// Strong\n//\n// Add the correct font weight in Chrome, Edge, and Safari\n\nb,\nstrong {\n font-weight: $font-weight-bolder;\n}\n\n\n// Small\n//\n// Add the correct font size in all browsers\n\nsmall {\n @include font-size($small-font-size);\n}\n\n\n// Mark\n\nmark {\n padding: $mark-padding;\n background-color: $mark-bg;\n}\n\n\n// Sub and Sup\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n\nsub,\nsup {\n position: relative;\n @include font-size($sub-sup-font-size);\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n// Links\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n\n &:hover {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([class]) {\n &,\n &:hover {\n color: inherit;\n text-decoration: none;\n }\n}\n\n\n// Code\n\npre,\ncode,\nkbd,\nsamp {\n font-family: $font-family-code;\n @include font-size(1em); // Correct the odd `em` font sizing in all browsers.\n direction: ltr #{\"/* rtl:ignore */\"};\n unicode-bidi: bidi-override;\n}\n\n// 1. Remove browser default top margin\n// 2. Reset browser default of `1em` to use `rem`s\n// 3. Don't allow content to break outside\n\npre {\n display: block;\n margin-top: 0; // 1\n margin-bottom: 1rem; // 2\n overflow: auto; // 3\n @include font-size($code-font-size);\n color: $pre-color;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n @include font-size(inherit);\n color: inherit;\n word-break: normal;\n }\n}\n\ncode {\n @include font-size($code-font-size);\n color: $code-color;\n word-wrap: break-word;\n\n // Streamline the style when inside anchors to avoid broken underline and more\n a > & {\n color: inherit;\n }\n}\n\nkbd {\n padding: $kbd-padding-y $kbd-padding-x;\n @include font-size($kbd-font-size);\n color: $kbd-color;\n background-color: $kbd-bg;\n @include border-radius($border-radius-sm);\n\n kbd {\n padding: 0;\n @include font-size(1em);\n font-weight: $nested-kbd-font-weight;\n }\n}\n\n\n// Figures\n//\n// Apply a consistent margin strategy (matches our type styles).\n\nfigure {\n margin: 0 0 1rem;\n}\n\n\n// Images and content\n\nimg,\nsvg {\n vertical-align: middle;\n}\n\n\n// Tables\n//\n// Prevent double borders\n\ntable {\n caption-side: bottom;\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: $table-cell-padding-y;\n padding-bottom: $table-cell-padding-y;\n color: $table-caption-color;\n text-align: left;\n}\n\n// 1. Removes font-weight bold by inheriting\n// 2. Matches default `