This file contains hidden or 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
| ```mermaid | |
| classDiagram | |
| class WireMockServerResource { | |
| } | |
| class ContainerResource { | |
| } | |
| class IResourceWithServiceDiscovery { | |
| } |
This file contains hidden or 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
| %YAML 1.2 | |
| --- | |
| YAML: YAML Ain't Markup Language™ | |
| What It Is: | |
| YAML is a human-friendly data serialization | |
| language for all programming languages. | |
| YAML Resources: | |
| YAML Specifications: |
This file contains hidden or 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
| using System; | |
| using FluentAssertions; | |
| using Moq; | |
| using Xunit; | |
| namespace TestProject1; | |
| public static class FluentIt | |
| { | |
| public static TValue IsEquivalentTo<TValue>(TValue expectation) |
This file contains hidden or 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
| { | |
| "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "name": { | |
| "type": "string" | |
| }, | |
| "location": { | |
| "type": "string" | |
| }, |
This file contains hidden or 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
| az group create -n test-azuredevops -l westus2 | |
| az staticwebapp create -l westus2 -n test-azuredevops -g test-azuredevops -s "" -b "" --token "-" |
This file contains hidden or 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
| pool: | |
| vmImage: ubuntu-latest | |
| steps: | |
| - task: AzureStaticWebApp@0 | |
| inputs: | |
| app_location: "Client" # App source code path | |
| api_location: "Api" # Api source code path | |
| output_location: "wwwroot" # Built app content directory | |
This file contains hidden or 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
| build_and_deploy_job: | |
| name: Build and Deploy Job | |
| steps: | |
| ... | |
| - name: Build And Deploy | |
| id: builddeploy | |
| uses: Azure/[email protected] | |
| with: | |
| azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_*** }} | |
| app_location: "Client" # App source code path |
This file contains hidden or 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
| <app> | |
| <div class="container-fluid"> | |
| <div class="row"> | |
| <div class="col-2"></div> | |
| <div class="col-8"> | |
| <p></p> | |
| Loading Blazor WebAssembly... | |
| <br /> | |
| <div class="progress"> | |
| <div id="progressbar" class="progress-bar progress-bar-striped active" role="progressbar" style="width:0"></div> |
This file contains hidden or 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
| - name: Patch blazor.webassembly.js | |
| uses: jacobtomlinson/gha-find-replace@master | |
| with: | |
| find: "return r.loadResource\\(o,t\\(o\\),e\\[o\\],n\\)" | |
| replace: "var p = r.loadResource(o,t(o),e[o],n); p.response.then((x) => { if (typeof window.loadResourceCallback === 'function') { window.loadResourceCallback(Object.keys(e).length, o, x);}}); return p;" | |
| include: "blazor.webassembly.js" |
This file contains hidden or 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
| export class WebAssemblyResourceLoader { | |
| // ... | |
| loadResources(resources: ResourceList, url: (name: string) => string, resourceType: WebAssemblyBootResourceType): LoadingResource[] { | |
| return Object.keys(resources) | |
| .map(name => this.loadResource(name, url(name), resources[name], resourceType)); | |
| } | |
| loadResource(name: string, url: string, contentHash: string, resourceType: WebAssemblyBootResourceType): LoadingResource { | |
| const response = this.cacheIfUsed |
NewerOlder