├── BlazorAppReactiveExtensions
├── Client
│ ├── wwwroot
│ │ ├── favicon.png
│ │ ├── icon-192.png
│ │ ├── icon-512.png
│ │ ├── css
│ │ │ ├── open-iconic
│ │ │ │ ├── font
│ │ │ │ │ ├── fonts
│ │ │ │ │ │ ├── open-iconic.eot
│ │ │ │ │ │ ├── open-iconic.otf
│ │ │ │ │ │ ├── open-iconic.ttf
│ │ │ │ │ │ ├── open-iconic.woff
│ │ │ │ │ │ └── open-iconic.svg
│ │ │ │ │ └── css
│ │ │ │ │ │ └── open-iconic-bootstrap.min.css
│ │ │ │ ├── ICON-LICENSE
│ │ │ │ ├── README.md
│ │ │ │ └── FONT-LICENSE
│ │ │ └── app.css
│ │ ├── service-worker.js
│ │ ├── manifest.json
│ │ ├── index.html
│ │ └── service-worker.published.js
│ ├── Pages
│ │ ├── Index.razor
│ │ ├── Counter.razor
│ │ ├── FetchData.razor
│ │ └── FetchData.razor.cs
│ ├── Shared
│ │ ├── MainLayout.razor
│ │ ├── SurveyPrompt.razor
│ │ ├── NavMenu.razor
│ │ ├── NavMenu.razor.css
│ │ └── MainLayout.razor.css
│ ├── _Imports.razor
│ ├── Program.cs
│ ├── App.razor
│ ├── BlazorAppReactiveExtensions.Client.csproj
│ └── Properties
│ │ └── launchSettings.json
├── Server
│ ├── appsettings.Development.json
│ ├── appsettings.json
│ ├── BlazorAppReactiveExtensions.Server.csproj
│ ├── Pages
│ │ ├── Error.cshtml.cs
│ │ └── Error.cshtml
│ ├── Program.cs
│ ├── Controllers
│ │ └── WeatherForecastController.cs
│ └── Properties
│ │ └── launchSettings.json
└── Shared
│ ├── BlazorAppReactiveExtensions.Shared.csproj
│ └── WeatherForecast.cs
├── README.md
├── BlazorAppReactiveExtensions.sln
├── .gitattributes
└── .gitignore
/BlazorAppReactiveExtensions/Client/wwwroot/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevsharp/BlazorAppReactiveExtensions/HEAD/BlazorAppReactiveExtensions/Client/wwwroot/favicon.png
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Client/wwwroot/icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevsharp/BlazorAppReactiveExtensions/HEAD/BlazorAppReactiveExtensions/Client/wwwroot/icon-192.png
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Client/wwwroot/icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevsharp/BlazorAppReactiveExtensions/HEAD/BlazorAppReactiveExtensions/Client/wwwroot/icon-512.png
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Server/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft.AspNetCore": "Warning"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevsharp/BlazorAppReactiveExtensions/HEAD/BlazorAppReactiveExtensions/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.eot
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevsharp/BlazorAppReactiveExtensions/HEAD/BlazorAppReactiveExtensions/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.otf
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevsharp/BlazorAppReactiveExtensions/HEAD/BlazorAppReactiveExtensions/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Server/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft.AspNetCore": "Warning"
6 | }
7 | },
8 | "AllowedHosts": "*"
9 | }
10 |
--------------------------------------------------------------------------------
/BlazorAppReactiveExtensions/Client/Pages/Index.razor:
--------------------------------------------------------------------------------
1 | @page "/"
2 |
3 |
Current count: @currentCount
8 | 9 | 10 | 11 | @code { 12 | private int currentCount = 0; 13 | 14 | private void IncrementCount() 15 | { 16 | currentCount++; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BlazorAppReactiveExtensions/Shared/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | namespace BlazorAppReactiveExtensions.Shared 2 | { 3 | public class WeatherForecast 4 | { 5 | public int Id { get; set; } 6 | public DateOnly Date { get; set; } 7 | 8 | public int TemperatureC { get; set; } 9 | 10 | public string? Summary { get; set; } 11 | 12 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /BlazorAppReactiveExtensions/Client/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 |Sorry, there's nothing at this address.
10 |This component demonstrates fetching data from the server.
13 | 14 | @if (forecasts == null) 15 | { 16 |Loading...
17 | } 18 | else 19 | { 20 || Id | 24 |Date | 25 |Temp. (C) | 26 |Temp. (F) | 27 |Summary | 28 |
|---|---|---|---|---|
| @forecast.Id | 35 |@forecast.Date.ToShortDateString() | 36 |@forecast.TemperatureC | 37 |@forecast.TemperatureF | 38 |@forecast.Summary | 39 |
47 | 50 |
51 | 52 |53 | 56 |
57 | } 58 | -------------------------------------------------------------------------------- /BlazorAppReactiveExtensions/Server/Pages/Error.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model BlazorAppReactiveExtensions.Server.Pages.ErrorModel 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
24 | Request ID: @Model.RequestId
25 |
30 | Swapping to the Development environment displays detailed information about the error that occurred. 31 |
32 |33 | The Development environment shouldn't be enabled for deployed applications. 34 | It can result in displaying sensitive information from exceptions to end users. 35 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 36 | and restarting the app. 37 |
38 |