-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
678602e
commit bb0d294
Showing
74 changed files
with
471 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
name: publish demo | ||
on: | ||
push: | ||
branches: [ main ] | ||
name: publish demo | ||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'samples/**' | ||
- 'samples/**' | ||
workflow_dispatch: | ||
inputs: | ||
reason: | ||
description: 'The reason for running the workflow' | ||
required: true | ||
default: 'Manual run' | ||
jobs: | ||
deploy-to-github-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
default: 'Manual run' | ||
jobs: | ||
deploy-to-github-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: 'Print manual run reason' | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
run: | | ||
echo 'Reason: ${{ github.event.inputs.reason }}' | ||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@main | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Publish .NET Core Project | ||
run: dotnet publish samples/Blazor.ExampleConsumer/Blazor.ExampleConsumer.csproj -c Release -o release --nologo | ||
|
||
# Changes the base-tag in index.html from '/' to '/blazorators' to match GitHub Pages repository subdirectory | ||
- name: Change base-tag in index.html from / to /blazorators | ||
run: sed -i 's/<base href="\/" \/>/<base href="\/blazorators\/" \/>/g' release/wwwroot/index.html | ||
|
||
# Copy index.html to 404.html to serve the same file when a file is not found | ||
- name: copy index.html to 404.html | ||
run: cp release/wwwroot/index.html release/wwwroot/404.html | ||
|
||
# Add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. | ||
# Allow files and folders starting with an underscore | ||
- name: Add .nojekyll file | ||
run: touch release/wwwroot/.nojekyll | ||
|
||
- name: Commit wwwroot to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
echo 'Reason: ${{ github.event.inputs.reason }}' | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@main | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-quality: preview | ||
- name: Publish .NET Core Project | ||
run: dotnet publish samples/Blazor.ExampleConsumer/Blazor.ExampleConsumer.csproj -c Release -o release --nologo | ||
|
||
# Changes the base-tag in index.html from '/' to '/blazorators' to match GitHub Pages repository subdirectory | ||
- name: Change base-tag in index.html from / to /blazorators | ||
run: sed -i 's/<base href="\/" \/>/<base href="\/blazorators\/" \/>/g' release/wwwroot/index.html | ||
|
||
# Copy index.html to 404.html to serve the same file when a file is not found | ||
- name: copy index.html to 404.html | ||
run: cp release/wwwroot/index.html release/wwwroot/404.html | ||
|
||
# Add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. | ||
# Allow files and folders starting with an underscore | ||
- name: Add .nojekyll file | ||
run: touch release/wwwroot/.nojekyll | ||
|
||
- name: Commit wwwroot to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: release/wwwroot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<_ParentDirectoryBuildPropsPath Condition="'$(_DirectoryBuildPropsFile)' != ''">$([System.IO.Path]::Combine('..', '$(_DirectoryBuildPropsFile)'))</_ParentDirectoryBuildPropsPath> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(_ParentDirectoryBuildPropsPath)" Condition="Exists('$(_ParentDirectoryBuildPropsPath)')"/> | ||
|
||
<PropertyGroup> | ||
<WarningLevel>3</WarningLevel> | ||
<AnalysisLevel>preview</AnalysisLevel> | ||
<Features>strict</Features> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DefaultTargetFrameworks>net7.0</DefaultTargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<SourceLinkCreate>true</SourceLinkCreate> | ||
<SourceLinkOriginUrl>https://github.com/IEvangelist/azure-cosmos-dotnet-repository</SourceLinkOriginUrl> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<_ParentDirectoryBuildPropsPath Condition="'$(_DirectoryBuildPropsFile)' != ''">$([System.IO.Path]::Combine('..', '$(_DirectoryBuildPropsFile)'))</_ParentDirectoryBuildPropsPath> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(_ParentDirectoryBuildPropsPath)" Condition="Exists('$(_ParentDirectoryBuildPropsPath)')"/> | ||
|
||
<PropertyGroup> | ||
<WarningLevel>3</WarningLevel> | ||
<AnalysisLevel>preview</AnalysisLevel> | ||
<Features>strict</Features> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DefaultTargetFrameworks>net7.0;net8.0</DefaultTargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<!-- .NET 7 package reference versions --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0'"> | ||
<DependencyInjectionVersion>7.0.0</DependencyInjectionVersion> | ||
<PrimitivesVersion>7.0.0</PrimitivesVersion> | ||
<JSInteropVersion>7.0.12</JSInteropVersion> | ||
<ComponentsWebVersion>7.0.12</ComponentsWebVersion> | ||
</PropertyGroup> | ||
|
||
<!-- .NET 8 package reference versions --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'"> | ||
<DependencyInjectionVersion>8.0.0-rc.2.23479.6</DependencyInjectionVersion> | ||
<PrimitivesVersion>8.0.0-rc.2.23479.6</PrimitivesVersion> | ||
<JSInteropVersion>8.0.0-rc.2.23480.2</JSInteropVersion> | ||
<ComponentsWebVersion>8.0.0-rc.2.23480.2</ComponentsWebVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<SourceLinkCreate>true</SourceLinkCreate> | ||
<SourceLinkOriginUrl>https://github.com/IEvangelist/azure-cosmos-dotnet-repository</SourceLinkOriginUrl> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
samples/Blazor.ExampleConsumer/Components/Layout/MainLayout.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@using System.Runtime.InteropServices | ||
@inherits LayoutComponentBase | ||
|
||
<div class="page"> | ||
<div class="sidebar"> | ||
<NavMenu /> | ||
</div> | ||
|
||
<main> | ||
<div class="top-row px-4 text-muted"> | ||
Powered by @RuntimeInformation.FrameworkDescription | ||
</div> | ||
|
||
<article class="content px-4 col-xl-8"> | ||
@Body | ||
</article> | ||
|
||
</main> | ||
</div> |
Oops, something went wrong.