├── SpawnDev.BlazorJS.QRCodeJS ├── _Imports.razor ├── Assets │ ├── icon-128.png │ └── icon-192.png ├── DataTextType.cs ├── QRCodeOptions.cs ├── SpawnDev.BlazorJS.QRCodeJS.csproj ├── QRCode.cs ├── QRCodeImage.razor ├── QRCodeJSService.cs └── wwwroot │ └── qrcode.min.js ├── SpawnDev.BlazorJS.QRCodeJS.Demo ├── wwwroot │ ├── favicon.png │ ├── icon-192.png │ ├── sample-data │ │ └── weather.json │ ├── index.html │ └── css │ │ └── app.css ├── Layout │ ├── MainLayout.razor │ ├── MainLayout.razor.css │ ├── NavMenu.razor │ └── NavMenu.razor.css ├── Pages │ ├── Counter.razor │ ├── Home.razor │ └── Weather.razor ├── _Imports.razor ├── App.razor ├── SpawnDev.BlazorJS.QRCodeJS.Demo.csproj ├── Program.cs └── Properties │ └── launchSettings.json ├── LICENSE.txt ├── README.md ├── SpawnDev.BlazorJS.QRCodeJS.sln ├── .github └── workflows │ └── main.yml ├── .gitattributes └── .gitignore /SpawnDev.BlazorJS.QRCodeJS/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Components.Web 2 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS/Assets/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LostBeard/SpawnDev.BlazorJS.QRCodeJS/master/SpawnDev.BlazorJS.QRCodeJS/Assets/icon-128.png -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS/Assets/icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LostBeard/SpawnDev.BlazorJS.QRCodeJS/master/SpawnDev.BlazorJS.QRCodeJS/Assets/icon-192.png -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/wwwroot/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LostBeard/SpawnDev.BlazorJS.QRCodeJS/master/SpawnDev.BlazorJS.QRCodeJS.Demo/wwwroot/favicon.png -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/wwwroot/icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LostBeard/SpawnDev.BlazorJS.QRCodeJS/master/SpawnDev.BlazorJS.QRCodeJS.Demo/wwwroot/icon-192.png -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/Layout/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 |
3 | 6 | 7 |
8 |
9 | About 10 |
11 | 12 |
13 | @Body 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | 3 | Counter 4 | 5 |

Counter

6 | 7 |

Current count: @currentCount

8 | 9 | 10 | 11 | 12 | 13 | @code { 14 | private int currentCount = 0; 15 | 16 | private void IncrementCount() 17 | { 18 | currentCount++; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.Web.Virtualization 7 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 8 | @using Microsoft.JSInterop 9 | @using SpawnDev.BlazorJS.QRCodeJS 10 | @using SpawnDev.BlazorJS.QRCodeJS.Demo 11 | @using SpawnDev.BlazorJS.QRCodeJS.Demo.Layout 12 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Not found 8 | 9 |

Sorry, there's nothing at this address.

10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/wwwroot/sample-data/weather.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "date": "2022-01-06", 4 | "temperatureC": 1, 5 | "summary": "Freezing" 6 | }, 7 | { 8 | "date": "2022-01-07", 9 | "temperatureC": 14, 10 | "summary": "Bracing" 11 | }, 12 | { 13 | "date": "2022-01-08", 14 | "temperatureC": -13, 15 | "summary": "Freezing" 16 | }, 17 | { 18 | "date": "2022-01-09", 19 | "temperatureC": -16, 20 | "summary": "Balmy" 21 | }, 22 | { 23 | "date": "2022-01-10", 24 | "temperatureC": -2, 25 | "summary": "Chilly" 26 | } 27 | ] 28 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/SpawnDev.BlazorJS.QRCodeJS.Demo.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | false 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS/DataTextType.cs: -------------------------------------------------------------------------------- 1 | namespace SpawnDev.BlazorJS.QRCodeJS 2 | { 3 | /// 4 | /// DataTextType options indicate how DataText should be processed before rendering 5 | /// 6 | public enum DataTextType 7 | { 8 | /// 9 | /// DataText will be used as is (default) 10 | /// 11 | Text, 12 | /// 13 | /// DataText is a url relative to NavigationManager.Uri
14 | /// The QRCode will automatically update on NavigationManager.LocationChanged events 15 | ///
16 | UriRelativeUrl, 17 | /// 18 | /// DataText is a url relative to NavigationManager.BaseUri 19 | /// 20 | BaseUriRelativeUrl, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.QRCodeJS.Demo/Pages/Home.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | @inject NavigationManager NavigationManager 3 | 4 | Generate QRCode 5 | 6 |

Generate QRCode

7 |
8 |