├── Client ├── wwwroot │ ├── favicon.ico │ ├── 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 ├── App.razor ├── _Imports.razor ├── Shared │ ├── MainLayout.razor │ ├── SurveyPrompt.razor │ ├── NavMenu.razor.css │ ├── NavMenu.razor │ └── MainLayout.razor.css ├── Program.cs ├── BlazorDemo.Client.csproj └── Properties │ └── launchSettings.json ├── Server ├── appsettings.Development.json ├── appsettings.json ├── BlazorDemo.Server.csproj ├── Program.cs ├── Pages │ ├── Error.cshtml.cs │ └── Error.cshtml ├── Properties │ └── launchSettings.json ├── Controllers │ └── WeatherForecastController.cs └── Startup.cs ├── Shared ├── BlazorDemo.Shared.csproj └── WeatherForecast.cs ├── BlazorDemo.sln ├── .gitattributes └── .gitignore /Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/BlazorDemo/HEAD/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Client/wwwroot/icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/BlazorDemo/HEAD/Client/wwwroot/icon-512.png -------------------------------------------------------------------------------- /Client/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/BlazorDemo/HEAD/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /Client/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/BlazorDemo/HEAD/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /Client/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/BlazorDemo/HEAD/Client/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 |
Current count: @currentCount
6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() 13 | { 14 | currentCount++; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Client/wwwroot/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BlazorDemo", 3 | "short_name": "BlazorDemo", 4 | "start_url": "./", 5 | "display": "standalone", 6 | "background_color": "#ffffff", 7 | "theme_color": "#03173d", 8 | "icons": [ 9 | { 10 | "src": "icon-512.png", 11 | "type": "image/png", 12 | "sizes": "512x512" 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /Client/App.razor: -------------------------------------------------------------------------------- 1 |Sorry, there's nothing at this address.
8 |This component demonstrates fetching data from the server.
8 | 9 | @if (forecasts == null) 10 | { 11 |Loading...
12 | } 13 | else 14 | { 15 || Date | 19 |Temp. (C) | 20 |Temp. (F) | 21 |Summary | 22 |
|---|---|---|---|
| @forecast.Date.ToShortDateString() | 29 |@forecast.TemperatureC | 30 |@forecast.TemperatureF | 31 |@forecast.Summary | 32 |
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 |