├── MyComponents
├── _Imports.razor
├── wwwroot
│ └── background.png
├── Component1.razor
├── Component1.razor.css
└── MyComponents.csproj
├── Server
├── wwwroot
│ ├── icon.ico
│ ├── favicon.ico
│ ├── icon-unread.ico
│ └── 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
├── .config
│ └── dotnet-tools.json
├── appsettings.Development.json
├── appsettings.json
├── _Imports.razor
├── App.razor
├── Pages
│ ├── Shared
│ │ └── _Layout.cshtml
│ ├── Error.cshtml.cs
│ ├── Error.cshtml
│ ├── _Host.cshtml
│ └── PersistedCounter.razor
├── BlazorNet5Samples.Server.csproj
├── Program.cs
├── Properties
│ ├── launchSettings.json
│ └── ServiceDependencies
│ │ └── BlazorNet5Samples - Web Deploy
│ │ └── profile.arm.json
├── Controllers
│ └── WeatherForecastController.cs
├── Data
│ └── WeatherForecastService.cs
└── Startup.cs
├── Shared
├── ForecastTable.razor.css
├── Pages
│ ├── Virtualization.razor.css
│ ├── FileUpload.razor.css
│ ├── UIFocus.razor
│ ├── CatchAllRouteParam.razor
│ ├── Index.razor
│ ├── JsIsolation.razor
│ ├── Counter.razor
│ ├── CssIsolation.razor
│ ├── InfluenceHtmlHead.razor
│ ├── FileUpload.razor
│ ├── FetchData.razor
│ ├── InputRadioExample.razor
│ └── Virtualization.razor
├── IWeatherForecastService.cs
├── MainLayout.razor
├── WeatherForecast.cs
├── _Imports.razor
├── ForecastTable.razor
├── SurveyPrompt.razor
├── BlazorNet5Samples.Shared.csproj
├── NavMenu.razor.css
├── MainLayout.razor.css
└── NavMenu.razor
├── BrowserStorage
├── BrowserStorage.csproj
├── IBrowserLocalStorage.cs
└── IBrowserStorage.cs
├── MyJSInterop
├── wwwroot
│ └── exampleJsInterop.js
├── MyJSInterop.csproj
└── ExampleJsInterop.cs
├── Client
├── _Imports.razor
├── Pages
│ ├── WasmPrerendering.razor
│ └── LazyLoading.razor
├── BlazorNet5Samples.Client.csproj
├── Data
│ └── WeatherForecastService.cs
├── Properties
│ └── launchSettings.json
├── Program.cs
└── App.razor
├── README.md
├── LICENSE
├── BlazorNet5Samples.sln
└── .gitignore
/MyComponents/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using Microsoft.AspNetCore.Components.Web
2 |
--------------------------------------------------------------------------------
/Server/wwwroot/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/Server/wwwroot/icon.ico
--------------------------------------------------------------------------------
/Server/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/Server/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/Server/wwwroot/icon-unread.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/Server/wwwroot/icon-unread.ico
--------------------------------------------------------------------------------
/Shared/ForecastTable.razor.css:
--------------------------------------------------------------------------------
1 | .virtualized {
2 | overflow: auto;
3 | width: 100%;
4 | height: 600px;
5 | }
6 |
--------------------------------------------------------------------------------
/MyComponents/wwwroot/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/MyComponents/wwwroot/background.png
--------------------------------------------------------------------------------
/Shared/Pages/Virtualization.razor.css:
--------------------------------------------------------------------------------
1 | .weather-container {
2 | display: flex;
3 | }
4 |
5 | .weather-table {
6 | width: 100%;
7 | }
8 |
--------------------------------------------------------------------------------
/MyComponents/Component1.razor:
--------------------------------------------------------------------------------
1 |
2 | This Blazor component is defined in the MyComponents package.
3 |
4 |
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.eot
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.otf
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danroth27/BlazorNet5Samples/HEAD/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.woff
--------------------------------------------------------------------------------
/Shared/Pages/FileUpload.razor.css:
--------------------------------------------------------------------------------
1 |
2 | .image-list {
3 | display: grid;
4 | grid-template-columns: repeat(5, 100px);
5 | grid-gap: 10px;
6 | margin-top: 10px;
7 | }
--------------------------------------------------------------------------------
/BrowserStorage/BrowserStorage.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Server/.config/dotnet-tools.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "isRoot": true,
4 | "tools": {
5 | "dotnet-ef": {
6 | "version": "3.1.7",
7 | "commands": [
8 | "dotnet-ef"
9 | ]
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/Server/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Server/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | },
9 | "AllowedHosts": "*"
10 | }
11 |
--------------------------------------------------------------------------------
/Shared/Pages/UIFocus.razor:
--------------------------------------------------------------------------------
1 | @page "/ui-focus"
2 |
3 | Set UI focus
4 |
5 | input.FocusAsync()">Focus the input!
6 |
7 |
8 | @code {
9 | ElementReference input;
10 | }
--------------------------------------------------------------------------------
/MyJSInterop/wwwroot/exampleJsInterop.js:
--------------------------------------------------------------------------------
1 | // This is a JavaScript module that is loaded on demand. It can export any number of
2 | // functions, and may import other JavaScript modules if required.
3 |
4 | export function showPrompt(message) {
5 | return prompt(message, 'Type anything here');
6 | }
--------------------------------------------------------------------------------
/Client/_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.JSInterop
7 | @using BlazorNet5Samples.Shared
8 | @using MyComponents
--------------------------------------------------------------------------------
/BrowserStorage/IBrowserLocalStorage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace BlazorNet5Samples.Shared
8 | {
9 | public interface IBrowserLocalStorage : IBrowserStorage
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/MyComponents/Component1.razor.css:
--------------------------------------------------------------------------------
1 | /*
2 | This file is to show how CSS and other static resources (such as images) can be
3 | used from a library project/package.
4 | */
5 |
6 | .my-component {
7 | border: 2px dashed red;
8 | padding: 1em;
9 | margin: 1em 0;
10 | background-image: url('background.png');
11 | }
12 |
--------------------------------------------------------------------------------
/MyComponents/MyComponents.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Client/Pages/WasmPrerendering.razor:
--------------------------------------------------------------------------------
1 | @page "/wasm-prerendering"
2 |
3 | Blazor WebAssembly prerendering
4 |
5 | When this app is run on WebAssembly, the initial render is handled on the server to speed up the perceived load time and improve static page analysis.
6 |
7 | View the source of this page to see that it was prerendered.
8 |
--------------------------------------------------------------------------------
/MyJSInterop/MyJSInterop.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Server/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using System.Net.Http
2 | @using System.Net.Http.Json
3 | @using Microsoft.AspNetCore.Components.Forms
4 | @using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage
5 | @using Microsoft.AspNetCore.Components.Routing
6 | @using Microsoft.AspNetCore.Components.Web
7 | @using Microsoft.JSInterop
8 | @using BlazorNet5Samples.Shared
9 |
--------------------------------------------------------------------------------
/Shared/IWeatherForecastService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Threading;
4 | using System.Threading.Tasks;
5 |
6 | namespace BlazorNet5Samples.Shared
7 | {
8 | public interface IWeatherForecastService
9 | {
10 | Task GetForecastAsync(int daysFromNow = 1, int count = 5);
11 | }
12 | }
--------------------------------------------------------------------------------
/Shared/Pages/CatchAllRouteParam.razor:
--------------------------------------------------------------------------------
1 | @page "/catch-all-route-parameters"
2 | @page "/catch-all-route-parameters/{*path}"
3 |
4 | Catch-all route parameters
5 |
6 | Try appending to the address path and refreshing the page.
7 |
8 | Path: @Path
9 |
10 |
11 | @code {
12 | [Parameter]
13 | public string Path { get; set; }
14 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Blazor samples for .NET 5
2 |
3 | Run the app and try out the new Blazor features in .NET 5.
4 |
5 | - CSS isolation
6 | - JS isolation
7 | - File upload
8 | - InputRadio
9 | - Virtualization
10 | - Protected browser storage
11 | - Lazy loading
12 | - Set UI focus
13 | - Influencing the HTML Head
14 | - Catch-all route parameters
15 | - Blazor WebAssembly prerendering
16 |
--------------------------------------------------------------------------------
/Shared/Pages/Index.razor:
--------------------------------------------------------------------------------
1 | @page "/"
2 |
3 | Hello, world!
4 |
5 | Welcome to your new app.
6 |
7 | Use the tabs in the nav to learn about the new Blazor features in .NET 5.
8 |
9 | By default, these samples run as a Blazor Server app. Use the switch in the navigation bar to reload this app on WebAssembly.
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Shared/Pages/JsIsolation.razor:
--------------------------------------------------------------------------------
1 | @page "/js-isolation"
2 |
3 | @inject ExampleJsInterop ExampleJsInterop
4 |
5 | JavaScript isolation
6 |
7 | Prompt
8 |
9 | @message
10 |
11 | @code {
12 | string message;
13 |
14 | async Task Prompt()
15 | {
16 | message = await ExampleJsInterop.Prompt("What is your favorite color?");
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Shared/MainLayout.razor:
--------------------------------------------------------------------------------
1 | @inherits LayoutComponentBase
2 |
3 |
4 |
7 |
8 |
9 |
12 |
13 |
14 | @Body
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Shared/Pages/Counter.razor:
--------------------------------------------------------------------------------
1 | @page "/counter"
2 |
3 | Counter
4 |
5 | Current count: @currentCount
6 |
7 | Click me
8 |
9 | @code {
10 | private int currentCount = 0;
11 |
12 | [Parameter]
13 | public int IncrementAmount {get; set; } = 1;
14 |
15 | private void IncrementCount()
16 | {
17 | currentCount += IncrementAmount;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Shared/WeatherForecast.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace BlazorNet5Samples.Shared
6 | {
7 | public class WeatherForecast
8 | {
9 | public DateTime Date { get; set; }
10 |
11 | public int TemperatureC { get; set; }
12 |
13 | public string Summary { get; set; }
14 |
15 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Server/App.razor:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Sorry, there's nothing at this address.
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Shared/_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.Extensions.Head
7 | @using Microsoft.AspNetCore.Components.Web.Virtualization
8 | @using Microsoft.JSInterop
9 | @using BlazorNet5Samples.Shared
10 | @using MyComponents
11 | @using MyJSInterop
12 |
--------------------------------------------------------------------------------
/BrowserStorage/IBrowserStorage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace BlazorNet5Samples.Shared
8 | {
9 | public interface IBrowserStorage
10 | {
11 | ValueTask DeleteAsync(string key);
12 | ValueTask<(bool success, TValue value)> GetAsync(string key);
13 | ValueTask SetAsync(string key, object value);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Shared/ForecastTable.razor:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Date
6 | Temp. (C)
7 | Temp. (F)
8 | Summary
9 |
10 |
11 |
12 | @ChildContent
13 |
14 |
15 |
16 |
17 | @code {
18 | [Parameter]
19 | public RenderFragment ChildContent { get; set; }
20 | }
21 |
--------------------------------------------------------------------------------
/Server/Pages/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | @ViewBag.Title
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | @RenderBody()
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Shared/SurveyPrompt.razor:
--------------------------------------------------------------------------------
1 |
2 |
3 |
@Title
4 |
5 |
6 | Please take our
7 | brief survey
8 |
9 | and tell us what you think.
10 |
11 |
12 | @code {
13 | // Demonstrates how a parent component can supply parameters
14 | [Parameter]
15 | public string Title { get; set; }
16 | }
17 |
--------------------------------------------------------------------------------
/Server/BlazorNet5Samples.Server.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 | 939b0596-e14c-47d7-866c-c9e4811e90e3
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Shared/Pages/CssIsolation.razor:
--------------------------------------------------------------------------------
1 | @page "/css-isolation"
2 |
3 | CSS isolation
4 |
5 | Blazor components can have component-specific styles. Component-specific styles are isolated to impact only that component.
6 |
7 | Define component specific styles in a .razor.css file. Component-specific styles are processed and bundled at build time and then made available to the app as a static web asset at the path {project_name}.styles.css.
8 |
9 | Both the MainLayout and NavMenu components in this sample app use component-specific styles found at Shared/MainLayout.razor.css and Shared/NavMenu.razor.css.
10 |
--------------------------------------------------------------------------------
/Shared/BlazorNet5Samples.Shared.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Shared/Pages/InfluenceHtmlHead.razor:
--------------------------------------------------------------------------------
1 | @page "/influence-html-head"
2 |
3 | Influence the HTML head
4 |
5 | Notice how the title and icon in the browser tab changes when you click the button below to trigger a notification.
6 | @if (hasUnreadNotification)
7 | {
8 | hasUnreadNotification = false">Read notifcation
9 |
10 |
11 | }
12 | else
13 | {
14 | hasUnreadNotification = true">Trigger notification
15 |
16 |
17 | }
18 |
19 | @code {
20 | bool hasUnreadNotification = false;
21 | }
--------------------------------------------------------------------------------
/Server/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using Microsoft.AspNetCore.Hosting;
6 | using Microsoft.Extensions.Configuration;
7 | using Microsoft.Extensions.Hosting;
8 | using Microsoft.Extensions.Logging;
9 |
10 | namespace BlazorNet5Samples.Server
11 | {
12 | public class Program
13 | {
14 | public static void Main(string[] args)
15 | {
16 | CreateHostBuilder(args).Build().Run();
17 | }
18 |
19 | public static IHostBuilder CreateHostBuilder(string[] args) =>
20 | Host.CreateDefaultBuilder(args)
21 | .ConfigureWebHostDefaults(webBuilder =>
22 | {
23 | webBuilder.UseStartup();
24 | });
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Client/BlazorNet5Samples.Client.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Client/Data/WeatherForecastService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Net.Http;
6 | using System.Net.Http.Json;
7 | using System.Threading;
8 | using System.Threading.Tasks;
9 | using BlazorNet5Samples.Shared;
10 |
11 | namespace BlazorNet5Samples.Client.Data
12 | {
13 | public class WeatherForecastService : IWeatherForecastService
14 | {
15 | private readonly HttpClient _httpClient;
16 |
17 | public WeatherForecastService(HttpClient httpClient)
18 | {
19 | _httpClient = httpClient;
20 | }
21 |
22 | public async Task GetForecastAsync(int daysFromNow = 1, int count = 5)
23 | {
24 | return await _httpClient.GetFromJsonAsync($"api/WeatherForecasts?daysFromNow={daysFromNow}&count={count}");
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Server/Pages/Error.cshtml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using System.Linq;
5 | using System.Threading.Tasks;
6 | using Microsoft.AspNetCore.Mvc;
7 | using Microsoft.AspNetCore.Mvc.RazorPages;
8 | using Microsoft.Extensions.Logging;
9 |
10 | namespace BlazorNet5Samples.Server.Pages
11 | {
12 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
13 | [IgnoreAntiforgeryToken]
14 | public class ErrorModel : PageModel
15 | {
16 | public string RequestId { get; set; }
17 |
18 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
19 |
20 | private readonly ILogger _logger;
21 |
22 | public ErrorModel(ILogger logger)
23 | {
24 | _logger = logger;
25 | }
26 |
27 | public void OnGet()
28 | {
29 | RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Client/Pages/LazyLoading.razor:
--------------------------------------------------------------------------------
1 | @page "/lazy-loading"
2 |
3 | Lazy loading
4 |
5 | Normally, Blazor downloads and loads all dependencies of the app when it’s first loaded. To delay the loading of a .NET assembly, you add it to the BlazorWebAssemblyLazyLoad item group in your project file
6 |
7 | Assemblies marked for lazy loading must be explicitly loaded by the app before they’re used. To lazy load assemblies at runtime, use the LazyAssemblyLoader service
8 |
9 | Often, assembles need to be loaded when the user navigates to a particular page. The Router component has a new OnNavigateAsync event that’s fired on every page navigation and can be used to lazy load assemblies for a particular route. You can also lazily load the entire page for a route by passing any loaded assemblies as additional assemblies to the Router.
10 |
11 | The following component is lazily loaded from MyComponents.dll:
12 |
13 |
--------------------------------------------------------------------------------
/Shared/Pages/FileUpload.razor:
--------------------------------------------------------------------------------
1 | @page "/file-upload"
2 |
3 | File upload
4 |
5 |
6 |
7 |
8 | @foreach (var imageDataUrl in imageDataUrls)
9 | {
10 |
11 | }
12 |
13 |
14 | @code {
15 | IList imageDataUrls = new List();
16 |
17 | async Task OnInputFileChange(InputFileChangeEventArgs e)
18 | {
19 | var imageFiles = e.GetMultipleFiles();
20 |
21 | var format = "image/png";
22 | foreach (var imageFile in imageFiles)
23 | {
24 | var resizedImageFile = await imageFile.RequestImageFileAsync(format, 100, 100);
25 | var buffer = new byte[resizedImageFile.Size];
26 | await resizedImageFile.OpenReadStream().ReadAsync(buffer);
27 | var imageDataUrl = $"data:{format};base64,{Convert.ToBase64String(buffer)}";
28 | imageDataUrls.Add(imageDataUrl);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Server/Pages/Error.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model BlazorNet5Samples.Server.Pages.ErrorModel
3 | @{
4 | Layout = "_Layout";
5 | ViewData["Title"] = "Error";
6 | }
7 |
8 | Error.
9 | An error occurred while processing your request.
10 |
11 | @if (Model.ShowRequestId)
12 | {
13 |
14 | Request ID: @Model.RequestId
15 |
16 | }
17 |
18 | Development Mode
19 |
20 | Swapping to the Development environment displays detailed information about the error that occurred.
21 |
22 |
23 | The Development environment shouldn't be enabled for deployed applications.
24 | It can result in displaying sensitive information from exceptions to end users.
25 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
26 | and restarting the app.
27 |
28 |
--------------------------------------------------------------------------------
/Client/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:61540/",
7 | "sslPort": 44307
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | },
17 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
18 | },
19 | "BlazorNet5Samples": {
20 | "commandName": "Project",
21 | "launchBrowser": true,
22 | "environmentVariables": {
23 | "ASPNETCORE_ENVIRONMENT": "Development"
24 | },
25 | "dotnetRunMessages": "true",
26 | "applicationUrl": "https://localhost:5001;http://localhost:5000",
27 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/Client/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Net.Http;
3 | using System.Collections.Generic;
4 | using System.Threading.Tasks;
5 | using System.Text;
6 | using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
7 | using Microsoft.Extensions.Configuration;
8 | using Microsoft.Extensions.DependencyInjection;
9 | using Microsoft.Extensions.Logging;
10 | using BlazorNet5Samples.Client.Data;
11 | using BlazorNet5Samples.Shared;
12 | using MyJSInterop;
13 |
14 | namespace BlazorNet5Samples.Client
15 | {
16 | public class Program
17 | {
18 | public static async Task Main(string[] args)
19 | {
20 | var builder = WebAssemblyHostBuilder.CreateDefault(args);
21 |
22 | builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
23 | builder.Services.AddScoped();
24 | builder.Services.AddScoped();
25 |
26 | await builder.Build().RunAsync();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Server/wwwroot/css/app.css:
--------------------------------------------------------------------------------
1 | @import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
2 |
3 | html, body {
4 | font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
5 | }
6 |
7 | a, .btn-link {
8 | color: #0366d6;
9 | }
10 |
11 | .btn-primary {
12 | color: #fff;
13 | background-color: #1b6ec2;
14 | border-color: #1861ac;
15 | }
16 |
17 | .content {
18 | padding-top: 1.1rem;
19 | }
20 |
21 | .valid.modified:not([type=checkbox]) {
22 | outline: 1px solid #26b050;
23 | }
24 |
25 | .invalid {
26 | outline: 1px solid red;
27 | }
28 |
29 | .validation-message {
30 | color: red;
31 | }
32 |
33 | #blazor-error-ui {
34 | background: lightyellow;
35 | bottom: 0;
36 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
37 | display: none;
38 | left: 0;
39 | padding: 0.6rem 1.25rem 0.7rem 1.25rem;
40 | position: fixed;
41 | width: 100%;
42 | z-index: 1000;
43 | }
44 |
45 | #blazor-error-ui .dismiss {
46 | cursor: pointer;
47 | position: absolute;
48 | right: 0.75rem;
49 | top: 0.5rem;
50 | }
51 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Daniel Roth
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Server/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:10273",
7 | "sslPort": 44352
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | //"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
15 | "environmentVariables": {
16 | "ASPNETCORE_ENVIRONMENT": "Development"
17 | }
18 | },
19 | "BlazorNet5Samples.Server": {
20 | "commandName": "Project",
21 | "dotnetRunMessages": "true",
22 | "launchBrowser": true,
23 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
24 | "applicationUrl": "https://localhost:5001;http://localhost:5000",
25 | "environmentVariables": {
26 | "ASPNETCORE_ENVIRONMENT": "Development"
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Client/App.razor:
--------------------------------------------------------------------------------
1 | @using System.Reflection
2 | @using Microsoft.AspNetCore.Components.Routing
3 | @using Microsoft.AspNetCore.Components.WebAssembly.Services
4 | @inject LazyAssemblyLoader LazyAssemblyLoader
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Sorry, there's nothing at this address.
13 |
14 |
15 |
16 |
17 | @code {
18 | private List lazyLoadedAssemblies = new List(new[] { typeof(MainLayout).Assembly });
19 |
20 | private async Task OnNavigateAsync(NavigationContext args)
21 | {
22 | if (args.Path.Contains("lazy-loading"))
23 | {
24 | var assemblies = await LazyAssemblyLoader.LoadAssembliesAsync(new string[] { "MyComponents.dll" });
25 | lazyLoadedAssemblies.AddRange(assemblies);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/ICON-LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Waybury
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/Server/Controllers/WeatherForecastController.cs:
--------------------------------------------------------------------------------
1 | using BlazorNet5Samples.Client.Data;
2 | using BlazorNet5Samples.Shared;
3 | using Microsoft.AspNetCore.Mvc;
4 | using System;
5 | using System.Collections;
6 | using System.Collections.Generic;
7 | using System.Linq;
8 | using System.Threading;
9 | using System.Threading.Tasks;
10 |
11 | namespace BlazorNet5Samples.Server.Controllers
12 | {
13 | [ApiController]
14 | [Route("api/[controller]")]
15 | public class WeatherForecastsController : Controller
16 | {
17 | private readonly IWeatherForecastService _weatherForecastService;
18 |
19 | public WeatherForecastsController(IWeatherForecastService weatherForecastService)
20 | {
21 | _weatherForecastService = weatherForecastService;
22 | }
23 |
24 | [HttpGet]
25 | public async Task> Get(int daysFromNow, int count)
26 | {
27 | if (daysFromNow + count > 10000)
28 | {
29 | return BadRequest("The weather can only be predicted 10,000 days in the future!");
30 | }
31 | return await _weatherForecastService.GetForecastAsync(daysFromNow, count);
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/Shared/Pages/FetchData.razor:
--------------------------------------------------------------------------------
1 | @page "/fetchdata"
2 | @using BlazorNet5Samples.Shared
3 | @inject IWeatherForecastService WeatherForecastService
4 |
5 | Weather forecast
6 |
7 | This component demonstrates fetching data from the server.
8 |
9 | @if (forecasts == null)
10 | {
11 | Loading...
12 | }
13 | else
14 | {
15 |
16 |
17 |
18 | Date
19 | Temp. (C)
20 | Temp. (F)
21 | Summary
22 |
23 |
24 |
25 | @foreach (var forecast in forecasts)
26 | {
27 |
28 | @forecast.Date.ToShortDateString()
29 | @forecast.TemperatureC
30 | @forecast.TemperatureF
31 | @forecast.Summary
32 |
33 | }
34 |
35 |
36 | }
37 |
38 | @code {
39 | WeatherForecast[] forecasts;
40 |
41 | protected override async Task OnInitializedAsync()
42 | {
43 | forecasts = await WeatherForecastService.GetForecastAsync();
44 | }
45 | }
--------------------------------------------------------------------------------
/Server/Data/WeatherForecastService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading;
5 | using System.Threading.Tasks;
6 | using BlazorNet5Samples.Shared;
7 |
8 | namespace BlazorNet5Samples.Server.Data
9 | {
10 | public class WeatherForecastService : IWeatherForecastService
11 | {
12 | private static string[] Summaries = new[]
13 | {
14 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
15 | };
16 |
17 | private readonly List forecasts = new List();
18 |
19 | public async Task GetForecastAsync(int daysFromNow, int count)
20 | {
21 | await Task.Delay(Math.Min(count * 20, 2000));
22 |
23 | var rng = new Random();
24 |
25 | while (forecasts.Count < daysFromNow + count)
26 | {
27 | forecasts.Add(new WeatherForecast
28 | {
29 | Date = DateTime.Today.AddDays(forecasts.Count),
30 | TemperatureC = rng.Next(-20, 55),
31 | Summary = Summaries[rng.Next(Summaries.Length)]
32 | });
33 | }
34 |
35 | return forecasts.Skip(daysFromNow).Take(count).ToArray();
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/Shared/NavMenu.razor.css:
--------------------------------------------------------------------------------
1 | .navbar-toggler {
2 | background-color: rgba(255, 255, 255, 0.1);
3 | }
4 |
5 | .top-row {
6 | height: 4.5rem;
7 | background-color: rgba(0,0,0,0.4);
8 | }
9 |
10 | .navbar-brand {
11 | font-size: 1.1rem;
12 | }
13 |
14 | .custom-switch label {
15 | color: rgba(255, 255, 255, 0.8);
16 | }
17 |
18 | .oi {
19 | width: 2rem;
20 | font-size: 1.1rem;
21 | vertical-align: text-top;
22 | top: -2px;
23 | }
24 |
25 | .nav-item {
26 | font-size: 0.9rem;
27 | padding-bottom: 0.5rem;
28 | }
29 |
30 | .nav-item:first-of-type {
31 | padding-top: 1rem;
32 | }
33 |
34 | .nav-item:last-of-type {
35 | padding-bottom: 1rem;
36 | }
37 |
38 | .nav-item ::deep a {
39 | color: #d7d7d7;
40 | border-radius: 4px;
41 | height: 3rem;
42 | display: flex;
43 | align-items: center;
44 | line-height: 3rem;
45 | }
46 |
47 | .nav-item ::deep a.active {
48 | background-color: rgba(255,255,255,0.25);
49 | color: white;
50 | }
51 |
52 | .nav-item ::deep a:hover {
53 | background-color: rgba(255,255,255,0.1);
54 | color: white;
55 | }
56 |
57 | @media (min-width: 768px) {
58 | .navbar-toggler {
59 | display: none;
60 | }
61 |
62 | .collapse {
63 | /* Never collapse the sidebar for wide screens */
64 | display: block;
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/MyJSInterop/ExampleJsInterop.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using Microsoft.JSInterop;
4 |
5 | namespace MyJSInterop
6 | {
7 | // This class provides an example of how JavaScript functionality can be wrapped
8 | // in a .NET class for easy consumption. The associated JavaScript module is
9 | // loaded on demand when first needed.
10 | //
11 | // This class can be registered as scoped DI service and then injected into Blazor
12 | // components for use.
13 |
14 | public class ExampleJsInterop : IAsyncDisposable
15 | {
16 | private readonly Lazy> moduleTask;
17 |
18 | public ExampleJsInterop(IJSRuntime jsRuntime)
19 | {
20 | moduleTask = new(() => jsRuntime.InvokeAsync(
21 | "import", "./_content/MyJSInterop/exampleJsInterop.js").AsTask());
22 | }
23 |
24 | public async ValueTask Prompt(string message)
25 | {
26 | var module = await moduleTask.Value;
27 | return await module.InvokeAsync("showPrompt", message);
28 | }
29 |
30 | public async ValueTask DisposeAsync()
31 | {
32 | if (moduleTask.IsValueCreated)
33 | {
34 | var module = await moduleTask.Value;
35 | await module.DisposeAsync();
36 | }
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/Shared/MainLayout.razor.css:
--------------------------------------------------------------------------------
1 | .page {
2 | position: relative;
3 | display: flex;
4 | flex-direction: column;
5 | }
6 |
7 | .main {
8 | flex: 1;
9 | }
10 |
11 | .sidebar {
12 | background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
13 | }
14 |
15 | .top-row {
16 | background-color: #f7f7f7;
17 | border-bottom: 1px solid #d6d5d5;
18 | justify-content: flex-end;
19 | height: 4.5rem;
20 | display: flex;
21 | align-items: center;
22 | }
23 |
24 | .top-row ::deep a, .top-row .btn-link {
25 | white-space: nowrap;
26 | margin-left: 1.5rem;
27 | }
28 |
29 | .top-row a:first-child {
30 | overflow: hidden;
31 | text-overflow: ellipsis;
32 | }
33 |
34 | @media (max-width: 767.98px) {
35 | .top-row:not(.auth) {
36 | display: none;
37 | }
38 |
39 | .top-row.auth {
40 | justify-content: space-between;
41 | }
42 |
43 | .top-row a, .top-row .btn-link {
44 | margin-left: 0;
45 | }
46 | }
47 |
48 | @media (min-width: 768px) {
49 | .page {
50 | flex-direction: row;
51 | }
52 |
53 | .sidebar {
54 | width: 320px;
55 | height: 100vh;
56 | position: sticky;
57 | top: 0;
58 | }
59 |
60 | .top-row {
61 | position: sticky;
62 | top: 0;
63 | z-index: 1;
64 | }
65 |
66 | .main > div {
67 | padding-left: 2rem !important;
68 | padding-right: 1.5rem !important;
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/Server/Pages/_Host.cshtml:
--------------------------------------------------------------------------------
1 | @page "/"
2 | @namespace BlazorNet5Samples.Pages
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 | @{
5 | Layout = null;
6 | var wasm = Request.Query.ContainsKey("wasm");
7 | }
8 |
9 |
10 |
11 |
12 |
13 |
14 | BlazorServerApp1
15 |
16 |
17 |
18 |
19 |
20 |
21 | @if (wasm)
22 | {
23 |
24 | }
25 | else
26 | {
27 |
28 | }
29 |
30 |
31 |
32 |
33 | An error has occurred. This application may no longer respond until reloaded.
34 |
35 |
36 | An unhandled exception has occurred. See browser dev tools for details.
37 |
38 |
Reload
39 |
🗙
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/Server/Pages/PersistedCounter.razor:
--------------------------------------------------------------------------------
1 | @page "/persisted-counter"
2 |
3 | @inject ProtectedLocalStorage ProtectedLocalStore
4 | @inject ProtectedSessionStorage ProtectedSessionStore
5 |
6 | Protected browser storage
7 |
8 | Local count: @localCount
9 | Session count: @sessionCount
10 |
11 | Increment local count
12 | Increment session count
13 |
14 | @code {
15 | int localCount = 0;
16 | int sessionCount = 0;
17 |
18 | protected override async Task OnAfterRenderAsync(bool firstRender)
19 | {
20 | if (firstRender)
21 | {
22 | await UpdateLocalCount();
23 | await UpdateSessionCount();
24 | }
25 | }
26 |
27 | async Task IncrementLocalCount()
28 | {
29 | await ProtectedLocalStore.SetAsync("localCount", localCount + 1);
30 | await UpdateLocalCount();
31 | }
32 |
33 | async Task IncrementSessionCount()
34 | {
35 | await ProtectedSessionStore.SetAsync("sessionCount", sessionCount + 1);
36 | await UpdateSessionCount();
37 | }
38 |
39 | async Task UpdateLocalCount()
40 | {
41 | var localResult = await ProtectedLocalStore.GetAsync("localCount");
42 | localCount = localResult.Success ? localResult.Value : 0;
43 |
44 | StateHasChanged();
45 | }
46 |
47 | async Task UpdateSessionCount()
48 | {
49 | var sessionResult = await ProtectedSessionStore.GetAsync("sessionCount");
50 | sessionCount = sessionResult.Success ? sessionResult.Value : 0;
51 |
52 | StateHasChanged();
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Shared/Pages/InputRadioExample.razor:
--------------------------------------------------------------------------------
1 | @page "/input-radio"
2 | @using System.ComponentModel.DataAnnotations
3 |
4 | InputRadio component
5 |
6 | Please take a moment to tell us what you think about Blazor.
7 |
8 |
9 |
10 | Name:
11 |
12 | Opinion about blazor:
13 |
14 | @foreach (var opinion in opinions)
15 | {
16 |
17 |
18 | @opinion.label
19 |
20 | }
21 |
22 |
23 |
24 | Submit
25 |
26 |
27 | @message
28 |
29 | @code {
30 | BlazorSurvey survey = new BlazorSurvey();
31 | string message;
32 | (string id, string label)[] opinions = new[]
33 | {
34 | ("terrible", "Terrible, I prefer vanilla JS."),
35 | ("ok", "It's ok I guess..."),
36 | ("awesome", "It's awesome!!!")
37 | };
38 |
39 | void HandleSubmit()
40 | {
41 | message = $"Thanks {survey.Name} for trying out Blazor!";
42 | }
43 |
44 | public class BlazorSurvey
45 | {
46 | [Required(ErrorMessage = "Please enter a name.")]
47 | public string Name { get; set; }
48 |
49 | [Required(ErrorMessage = "Tell us what you think!")]
50 | [RegularExpression("awesome", ErrorMessage = "...are you sure?")]
51 | public string OpinionAboutBlazor { get; set; }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Server/Startup.cs:
--------------------------------------------------------------------------------
1 | using BlazorNet5Samples.Server.Data;
2 | using BlazorNet5Samples.Shared;
3 | using Microsoft.AspNetCore.Builder;
4 | using Microsoft.AspNetCore.Components.WebAssembly.Services;
5 | using Microsoft.AspNetCore.Hosting;
6 | using Microsoft.Extensions.Configuration;
7 | using Microsoft.Extensions.DependencyInjection;
8 | using Microsoft.Extensions.Hosting;
9 | using MyJSInterop;
10 |
11 | namespace BlazorNet5Samples.Server
12 | {
13 | public class Startup
14 | {
15 | public Startup(IConfiguration configuration)
16 | {
17 | Configuration = configuration;
18 | }
19 |
20 | public IConfiguration Configuration { get; }
21 |
22 | // This method gets called by the runtime. Use this method to add services to the container.
23 | // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
24 | public void ConfigureServices(IServiceCollection services)
25 | {
26 | services.AddControllersWithViews();
27 | services.AddServerSideBlazor();
28 | services.AddRazorPages();
29 | services.AddSingleton();
30 | services.AddScoped();
31 | services.AddScoped();
32 | }
33 |
34 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
35 | public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
36 | {
37 | if (env.IsDevelopment())
38 | {
39 | app.UseDeveloperExceptionPage();
40 | app.UseWebAssemblyDebugging();
41 | }
42 | else
43 | {
44 | app.UseExceptionHandler("/Error");
45 | // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
46 | app.UseHsts();
47 | }
48 |
49 | app.UseHttpsRedirection();
50 | app.UseBlazorFrameworkFiles();
51 | app.UseStaticFiles();
52 |
53 | app.UseRouting();
54 |
55 | app.UseEndpoints(endpoints =>
56 | {
57 | endpoints.MapRazorPages();
58 | endpoints.MapControllers();
59 | endpoints.MapBlazorHub();
60 | endpoints.MapFallbackToPage("/_Host");
61 | });
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/README.md:
--------------------------------------------------------------------------------
1 | [Open Iconic v1.1.1](http://useiconic.com/open)
2 | ===========
3 |
4 | ### Open Iconic is the open source sibling of [Iconic](http://useiconic.com). It is a hyper-legible collection of 223 icons with a tiny footprint—ready to use with Bootstrap and Foundation. [View the collection](http://useiconic.com/open#icons)
5 |
6 |
7 |
8 | ## What's in Open Iconic?
9 |
10 | * 223 icons designed to be legible down to 8 pixels
11 | * Super-light SVG files - 61.8 for the entire set
12 | * SVG sprite—the modern replacement for icon fonts
13 | * Webfont (EOT, OTF, SVG, TTF, WOFF), PNG and WebP formats
14 | * Webfont stylesheets (including versions for Bootstrap and Foundation) in CSS, LESS, SCSS and Stylus formats
15 | * PNG and WebP raster images in 8px, 16px, 24px, 32px, 48px and 64px.
16 |
17 |
18 | ## Getting Started
19 |
20 | #### For code samples and everything else you need to get started with Open Iconic, check out our [Icons](http://useiconic.com/open#icons) and [Reference](http://useiconic.com/open#reference) sections.
21 |
22 | ### General Usage
23 |
24 | #### Using Open Iconic's SVGs
25 |
26 | We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest you display them like you would any other image (don't forget the `alt` attribute).
27 |
28 | ```
29 |
30 | ```
31 |
32 | #### Using Open Iconic's SVG Sprite
33 |
34 | Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's like an icon font, without being a hack.
35 |
36 | Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip: To make your icons easily style able, we suggest adding a general class to the* `` *tag and a unique class name for each different icon in the* `` *tag.*
37 |
38 | ```
39 |
40 |
41 |
42 | ```
43 |
44 | Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `` tag with equal width and height dimensions.
45 |
46 | ```
47 | .icon {
48 | width: 16px;
49 | height: 16px;
50 | }
51 | ```
52 |
53 | Coloring icons is even easier. All you need to do is set the `fill` rule on the `` tag.
54 |
55 | ```
56 | .icon-account-login {
57 | fill: #f00;
58 | }
59 | ```
60 |
61 | To learn more about SVG Sprites, read [Chris Coyier's guide](http://css-tricks.com/svg-sprites-use-better-icon-fonts/).
62 |
63 | #### Using Open Iconic's Icon Font...
64 |
65 |
66 | ##### …with Bootstrap
67 |
68 | You can find our Bootstrap stylesheets in `font/css/open-iconic-bootstrap.{css, less, scss, styl}`
69 |
70 |
71 | ```
72 |
73 | ```
74 |
75 |
76 | ```
77 |
78 | ```
79 |
80 | ##### …with Foundation
81 |
82 | You can find our Foundation stylesheets in `font/css/open-iconic-foundation.{css, less, scss, styl}`
83 |
84 | ```
85 |
86 | ```
87 |
88 |
89 | ```
90 |
91 | ```
92 |
93 | ##### …on its own
94 |
95 | You can find our default stylesheets in `font/css/open-iconic.{css, less, scss, styl}`
96 |
97 | ```
98 |
99 | ```
100 |
101 | ```
102 |
103 | ```
104 |
105 |
106 | ## License
107 |
108 | ### Icons
109 |
110 | All code (including SVG markup) is under the [MIT License](http://opensource.org/licenses/MIT).
111 |
112 | ### Fonts
113 |
114 | All fonts are under the [SIL Licensed](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web).
115 |
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/FONT-LICENSE:
--------------------------------------------------------------------------------
1 | SIL OPEN FONT LICENSE Version 1.1
2 |
3 | Copyright (c) 2014 Waybury
4 |
5 | PREAMBLE
6 | The goals of the Open Font License (OFL) are to stimulate worldwide
7 | development of collaborative font projects, to support the font creation
8 | efforts of academic and linguistic communities, and to provide a free and
9 | open framework in which fonts may be shared and improved in partnership
10 | with others.
11 |
12 | The OFL allows the licensed fonts to be used, studied, modified and
13 | redistributed freely as long as they are not sold by themselves. The
14 | fonts, including any derivative works, can be bundled, embedded,
15 | redistributed and/or sold with any software provided that any reserved
16 | names are not used by derivative works. The fonts and derivatives,
17 | however, cannot be released under any other type of license. The
18 | requirement for fonts to remain under this license does not apply
19 | to any document created using the fonts or their derivatives.
20 |
21 | DEFINITIONS
22 | "Font Software" refers to the set of files released by the Copyright
23 | Holder(s) under this license and clearly marked as such. This may
24 | include source files, build scripts and documentation.
25 |
26 | "Reserved Font Name" refers to any names specified as such after the
27 | copyright statement(s).
28 |
29 | "Original Version" refers to the collection of Font Software components as
30 | distributed by the Copyright Holder(s).
31 |
32 | "Modified Version" refers to any derivative made by adding to, deleting,
33 | or substituting -- in part or in whole -- any of the components of the
34 | Original Version, by changing formats or by porting the Font Software to a
35 | new environment.
36 |
37 | "Author" refers to any designer, engineer, programmer, technical
38 | writer or other person who contributed to the Font Software.
39 |
40 | PERMISSION & CONDITIONS
41 | Permission is hereby granted, free of charge, to any person obtaining
42 | a copy of the Font Software, to use, study, copy, merge, embed, modify,
43 | redistribute, and sell modified and unmodified copies of the Font
44 | Software, subject to the following conditions:
45 |
46 | 1) Neither the Font Software nor any of its individual components,
47 | in Original or Modified Versions, may be sold by itself.
48 |
49 | 2) Original or Modified Versions of the Font Software may be bundled,
50 | redistributed and/or sold with any software, provided that each copy
51 | contains the above copyright notice and this license. These can be
52 | included either as stand-alone text files, human-readable headers or
53 | in the appropriate machine-readable metadata fields within text or
54 | binary files as long as those fields can be easily viewed by the user.
55 |
56 | 3) No Modified Version of the Font Software may use the Reserved Font
57 | Name(s) unless explicit written permission is granted by the corresponding
58 | Copyright Holder. This restriction only applies to the primary font name as
59 | presented to the users.
60 |
61 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
62 | Software shall not be used to promote, endorse or advertise any
63 | Modified Version, except to acknowledge the contribution(s) of the
64 | Copyright Holder(s) and the Author(s) or with their explicit written
65 | permission.
66 |
67 | 5) The Font Software, modified or unmodified, in part or in whole,
68 | must be distributed entirely under this license, and must not be
69 | distributed under any other license. The requirement for fonts to
70 | remain under this license does not apply to any document created
71 | using the Font Software.
72 |
73 | TERMINATION
74 | This license becomes null and void if any of the above conditions are
75 | not met.
76 |
77 | DISCLAIMER
78 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
79 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
80 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
81 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
82 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
83 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
84 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
85 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
86 | OTHER DEALINGS IN THE FONT SOFTWARE.
87 |
--------------------------------------------------------------------------------
/Server/Properties/ServiceDependencies/BlazorNet5Samples - Web Deploy/profile.arm.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
3 | "contentVersion": "1.0.0.0",
4 | "metadata": {
5 | "_dependencyType": "appService.windows"
6 | },
7 | "parameters": {
8 | "resourceGroupName": {
9 | "type": "string",
10 | "defaultValue": "Test-Resources",
11 | "metadata": {
12 | "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking."
13 | }
14 | },
15 | "resourceGroupLocation": {
16 | "type": "string",
17 | "defaultValue": "westus",
18 | "metadata": {
19 | "description": "Location of the resource group. Resource groups could have different location than resources, however by default we use API versions from latest hybrid profile which support all locations for resource types we support."
20 | }
21 | },
22 | "resourceName": {
23 | "type": "string",
24 | "defaultValue": "BlazorNet5Samples",
25 | "metadata": {
26 | "description": "Name of the main resource to be created by this template."
27 | }
28 | },
29 | "resourceLocation": {
30 | "type": "string",
31 | "defaultValue": "[parameters('resourceGroupLocation')]",
32 | "metadata": {
33 | "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there."
34 | }
35 | }
36 | },
37 | "variables": {
38 | "appServicePlan_name": "[concat('Plan', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]",
39 | "appServicePlan_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/serverFarms/', variables('appServicePlan_name'))]"
40 | },
41 | "resources": [
42 | {
43 | "type": "Microsoft.Resources/resourceGroups",
44 | "name": "[parameters('resourceGroupName')]",
45 | "location": "[parameters('resourceGroupLocation')]",
46 | "apiVersion": "2019-10-01"
47 | },
48 | {
49 | "type": "Microsoft.Resources/deployments",
50 | "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]",
51 | "resourceGroup": "[parameters('resourceGroupName')]",
52 | "apiVersion": "2019-10-01",
53 | "dependsOn": [
54 | "[parameters('resourceGroupName')]"
55 | ],
56 | "properties": {
57 | "mode": "Incremental",
58 | "template": {
59 | "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
60 | "contentVersion": "1.0.0.0",
61 | "resources": [
62 | {
63 | "location": "[parameters('resourceLocation')]",
64 | "name": "[parameters('resourceName')]",
65 | "type": "Microsoft.Web/sites",
66 | "apiVersion": "2015-08-01",
67 | "tags": {
68 | "[concat('hidden-related:', variables('appServicePlan_ResourceId'))]": "empty"
69 | },
70 | "dependsOn": [
71 | "[variables('appServicePlan_ResourceId')]"
72 | ],
73 | "kind": "app",
74 | "properties": {
75 | "name": "[parameters('resourceName')]",
76 | "kind": "app",
77 | "httpsOnly": true,
78 | "reserved": false,
79 | "serverFarmId": "[variables('appServicePlan_ResourceId')]",
80 | "siteConfig": {
81 | "metadata": [
82 | {
83 | "name": "CURRENT_STACK",
84 | "value": "dotnetcore"
85 | }
86 | ]
87 | }
88 | },
89 | "identity": {
90 | "type": "SystemAssigned"
91 | }
92 | },
93 | {
94 | "location": "[parameters('resourceLocation')]",
95 | "name": "[variables('appServicePlan_name')]",
96 | "type": "Microsoft.Web/serverFarms",
97 | "apiVersion": "2015-08-01",
98 | "sku": {
99 | "name": "S1",
100 | "tier": "Standard",
101 | "family": "S",
102 | "size": "S1"
103 | },
104 | "properties": {
105 | "name": "[variables('appServicePlan_name')]"
106 | }
107 | }
108 | ]
109 | }
110 | }
111 | }
112 | ]
113 | }
--------------------------------------------------------------------------------
/Shared/Pages/Virtualization.razor:
--------------------------------------------------------------------------------
1 | @page "/virtualization"
2 |
3 | @using System.Threading
4 | @inject IWeatherForecastService ForecastService
5 |
6 | Virtualization
7 |
8 |
9 |
10 |
11 |
12 |
Loaded all at once:
13 |
14 | @if (forecasts == null)
15 | {
16 |
Loading...
17 | }
18 | else
19 | {
20 |
21 |
22 |
23 | @context.Date.ToShortDateString()
24 | @context.TemperatureC
25 | @context.TemperatureF
26 | @context.Summary
27 |
28 |
29 |
30 | }
31 |
32 |
33 |
34 |
Loaded on-the-fly:
35 |
36 |
37 |
38 |
39 | @context.Date.ToShortDateString()
40 | @context.TemperatureC
41 | @context.TemperatureF
42 | @context.Summary
43 |
44 |
45 |
46 |
47 | @(DateTime.Now.AddDays(context.Index).ToShortDateString())
48 | Loading...
49 | Loading...
50 | Loading...
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
Loaded on-the-fly and cached:
59 |
60 |
61 |
62 |
63 |
64 | @context.Date.ToShortDateString()
65 | @context.TemperatureC
66 | @context.TemperatureF
67 | @context.Summary
68 |
69 |
70 |
71 |
72 | @(DateTime.Now.AddDays(context.Index).ToShortDateString())
73 | Loading...
74 | Loading...
75 | Loading...
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 | @code {
84 | float itemHeight = 50;
85 | int totalForecastCount = 10000;
86 |
87 | WeatherForecast[] forecasts;
88 |
89 | Dictionary cachedForecasts = new Dictionary();
90 |
91 | string ItemStyle => $"height: {itemHeight}px;";
92 |
93 | protected override async Task OnInitializedAsync()
94 | {
95 | forecasts = await ForecastService.GetForecastAsync(0, totalForecastCount);
96 | }
97 |
98 | async ValueTask> LoadForecast(ItemsProviderRequest request)
99 | {
100 | var numForecasts = Math.Min(request.Count, totalForecastCount - request.StartIndex);
101 | var forecasts = await ForecastService.GetForecastAsync(request.StartIndex, numForecasts);
102 |
103 | return new ItemsProviderResult(forecasts, totalForecastCount);
104 | }
105 |
106 | async ValueTask> LoadAndCacheForecast(ItemsProviderRequest request)
107 | {
108 | var forecasts = new List();
109 |
110 | var numForecasts = Math.Min(request.Count, totalForecastCount - request.StartIndex);
111 |
112 | foreach (var i in Enumerable.Range(request.StartIndex, numForecasts))
113 | {
114 | WeatherForecast forecast;
115 |
116 | if (!cachedForecasts.TryGetValue(i, out forecast))
117 | {
118 | forecast = (await ForecastService.GetForecastAsync(i, 1)).Single();
119 | cachedForecasts[i] = forecast;
120 | }
121 |
122 | forecasts.Add(forecast);
123 | }
124 |
125 | return new ItemsProviderResult(forecasts, totalForecastCount);
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/Shared/NavMenu.razor:
--------------------------------------------------------------------------------
1 | @inject NavigationManager NavigationManager
2 |
3 |
13 |
14 |
88 |
89 | @code {
90 | private bool collapseNavMenu = true;
91 | private bool wasm;
92 | private string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
93 |
94 | protected override void OnInitialized()
95 | {
96 | wasm = new Uri(NavigationManager.Uri).Query.Contains("wasm");
97 | }
98 |
99 | private bool Wasm
100 | {
101 | get => wasm;
102 | set
103 | {
104 | if (wasm == value) return;
105 | wasm = value;
106 | var uriBuilder = new UriBuilder(NavigationManager.Uri);
107 | if (wasm)
108 | {
109 | uriBuilder.Query = "wasm";
110 | }
111 | else
112 | {
113 | uriBuilder.Query = String.Empty;
114 | }
115 | NavigationManager.NavigateTo(uriBuilder.ToString(), forceLoad: true);
116 | }
117 | }
118 |
119 | private void ToggleNavMenu()
120 | {
121 | collapseNavMenu = !collapseNavMenu;
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/BlazorNet5Samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.0.0
5 | MinimumVisualStudioVersion = 16.0.0.0
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorNet5Samples.Server", "Server\BlazorNet5Samples.Server.csproj", "{D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}"
7 | EndProject
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorNet5Samples.Client", "Client\BlazorNet5Samples.Client.csproj", "{848A0A8A-8845-462F-8DBD-9E509E7060B5}"
9 | EndProject
10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorNet5Samples.Shared", "Shared\BlazorNet5Samples.Shared.csproj", "{BFFF9A2B-3B54-498E-9F87-0326ED829DEC}"
11 | EndProject
12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyComponents", "MyComponents\MyComponents.csproj", "{B83173D8-83FD-4298-93B2-FAE90DC64598}"
13 | EndProject
14 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyJSInterop", "MyJSInterop\MyJSInterop.csproj", "{2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}"
15 | EndProject
16 | Global
17 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
18 | Debug|Any CPU = Debug|Any CPU
19 | Debug|x64 = Debug|x64
20 | Debug|x86 = Debug|x86
21 | Release|Any CPU = Release|Any CPU
22 | Release|x64 = Release|x64
23 | Release|x86 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
26 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Debug|x64.ActiveCfg = Debug|Any CPU
29 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Debug|x64.Build.0 = Debug|Any CPU
30 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Debug|x86.ActiveCfg = Debug|Any CPU
31 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Debug|x86.Build.0 = Debug|Any CPU
32 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Release|Any CPU.ActiveCfg = Release|Any CPU
33 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Release|Any CPU.Build.0 = Release|Any CPU
34 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Release|x64.ActiveCfg = Release|Any CPU
35 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Release|x64.Build.0 = Release|Any CPU
36 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Release|x86.ActiveCfg = Release|Any CPU
37 | {D1ECF1C9-7629-4D9C-AAA6-40C1C311A04C}.Release|x86.Build.0 = Release|Any CPU
38 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
40 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Debug|x64.ActiveCfg = Debug|Any CPU
41 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Debug|x64.Build.0 = Debug|Any CPU
42 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Debug|x86.ActiveCfg = Debug|Any CPU
43 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Debug|x86.Build.0 = Debug|Any CPU
44 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
45 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Release|Any CPU.Build.0 = Release|Any CPU
46 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Release|x64.ActiveCfg = Release|Any CPU
47 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Release|x64.Build.0 = Release|Any CPU
48 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Release|x86.ActiveCfg = Release|Any CPU
49 | {848A0A8A-8845-462F-8DBD-9E509E7060B5}.Release|x86.Build.0 = Release|Any CPU
50 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Debug|Any CPU.Build.0 = Debug|Any CPU
52 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Debug|x64.ActiveCfg = Debug|Any CPU
53 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Debug|x64.Build.0 = Debug|Any CPU
54 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Debug|x86.ActiveCfg = Debug|Any CPU
55 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Debug|x86.Build.0 = Debug|Any CPU
56 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Release|Any CPU.ActiveCfg = Release|Any CPU
57 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Release|Any CPU.Build.0 = Release|Any CPU
58 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Release|x64.ActiveCfg = Release|Any CPU
59 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Release|x64.Build.0 = Release|Any CPU
60 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Release|x86.ActiveCfg = Release|Any CPU
61 | {BFFF9A2B-3B54-498E-9F87-0326ED829DEC}.Release|x86.Build.0 = Release|Any CPU
62 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Debug|Any CPU.Build.0 = Debug|Any CPU
64 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Debug|x64.ActiveCfg = Debug|Any CPU
65 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Debug|x64.Build.0 = Debug|Any CPU
66 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Debug|x86.ActiveCfg = Debug|Any CPU
67 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Debug|x86.Build.0 = Debug|Any CPU
68 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Release|Any CPU.ActiveCfg = Release|Any CPU
69 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Release|Any CPU.Build.0 = Release|Any CPU
70 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Release|x64.ActiveCfg = Release|Any CPU
71 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Release|x64.Build.0 = Release|Any CPU
72 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Release|x86.ActiveCfg = Release|Any CPU
73 | {B83173D8-83FD-4298-93B2-FAE90DC64598}.Release|x86.Build.0 = Release|Any CPU
74 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
75 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
76 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Debug|x64.ActiveCfg = Debug|Any CPU
77 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Debug|x64.Build.0 = Debug|Any CPU
78 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Debug|x86.ActiveCfg = Debug|Any CPU
79 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Debug|x86.Build.0 = Debug|Any CPU
80 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
81 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Release|Any CPU.Build.0 = Release|Any CPU
82 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Release|x64.ActiveCfg = Release|Any CPU
83 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Release|x64.Build.0 = Release|Any CPU
84 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Release|x86.ActiveCfg = Release|Any CPU
85 | {2D0ADACE-5C3B-462D-9C9B-8BC2C98E4FAC}.Release|x86.Build.0 = Release|Any CPU
86 | EndGlobalSection
87 | GlobalSection(SolutionProperties) = preSolution
88 | HideSolutionNode = FALSE
89 | EndGlobalSection
90 | GlobalSection(ExtensibilityGlobals) = postSolution
91 | SolutionGuid = {05D98D78-BD24-486D-ACA1-86CD07C212F7}
92 | EndGlobalSection
93 | EndGlobal
94 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Aa][Rr][Mm]/
27 | [Aa][Rr][Mm]64/
28 | bld/
29 | [Bb]in/
30 | [Oo]bj/
31 | [Ll]og/
32 | [Ll]ogs/
33 |
34 | # Visual Studio 2015/2017 cache/options directory
35 | .vs/
36 |
37 | # Visual Studio Code options directory
38 | .vscode/
39 |
40 | # Uncomment if you have tasks that create the project's static files in wwwroot
41 | #wwwroot/
42 |
43 | # Visual Studio 2017 auto generated files
44 | Generated\ Files/
45 |
46 | # MSTest test Results
47 | [Tt]est[Rr]esult*/
48 | [Bb]uild[Ll]og.*
49 |
50 | # NUnit
51 | *.VisualState.xml
52 | TestResult.xml
53 | nunit-*.xml
54 |
55 | # Build Results of an ATL Project
56 | [Dd]ebugPS/
57 | [Rr]eleasePS/
58 | dlldata.c
59 |
60 | # Benchmark Results
61 | BenchmarkDotNet.Artifacts/
62 |
63 | # .NET Core
64 | project.lock.json
65 | project.fragment.lock.json
66 | artifacts/
67 |
68 | # StyleCop
69 | StyleCopReport.xml
70 |
71 | # Files built by Visual Studio
72 | *_i.c
73 | *_p.c
74 | *_h.h
75 | *.ilk
76 | *.meta
77 | *.obj
78 | *.iobj
79 | *.pch
80 | *.pdb
81 | *.ipdb
82 | *.pgc
83 | *.pgd
84 | *.rsp
85 | *.sbr
86 | *.tlb
87 | *.tli
88 | *.tlh
89 | *.tmp
90 | *.tmp_proj
91 | *_wpftmp.csproj
92 | *.log
93 | *.vspscc
94 | *.vssscc
95 | .builds
96 | *.pidb
97 | *.svclog
98 | *.scc
99 |
100 | # Chutzpah Test files
101 | _Chutzpah*
102 |
103 | # Visual C++ cache files
104 | ipch/
105 | *.aps
106 | *.ncb
107 | *.opendb
108 | *.opensdf
109 | *.sdf
110 | *.cachefile
111 | *.VC.db
112 | *.VC.VC.opendb
113 |
114 | # Visual Studio profiler
115 | *.psess
116 | *.vsp
117 | *.vspx
118 | *.sap
119 |
120 | # Visual Studio Trace Files
121 | *.e2e
122 |
123 | # TFS 2012 Local Workspace
124 | $tf/
125 |
126 | # Guidance Automation Toolkit
127 | *.gpState
128 |
129 | # ReSharper is a .NET coding add-in
130 | _ReSharper*/
131 | *.[Rr]e[Ss]harper
132 | *.DotSettings.user
133 |
134 | # TeamCity is a build add-in
135 | _TeamCity*
136 |
137 | # DotCover is a Code Coverage Tool
138 | *.dotCover
139 |
140 | # AxoCover is a Code Coverage Tool
141 | .axoCover/*
142 | !.axoCover/settings.json
143 |
144 | # Visual Studio code coverage results
145 | *.coverage
146 | *.coveragexml
147 |
148 | # NCrunch
149 | _NCrunch_*
150 | .*crunch*.local.xml
151 | nCrunchTemp_*
152 |
153 | # MightyMoose
154 | *.mm.*
155 | AutoTest.Net/
156 |
157 | # Web workbench (sass)
158 | .sass-cache/
159 |
160 | # Installshield output folder
161 | [Ee]xpress/
162 |
163 | # DocProject is a documentation generator add-in
164 | DocProject/buildhelp/
165 | DocProject/Help/*.HxT
166 | DocProject/Help/*.HxC
167 | DocProject/Help/*.hhc
168 | DocProject/Help/*.hhk
169 | DocProject/Help/*.hhp
170 | DocProject/Help/Html2
171 | DocProject/Help/html
172 |
173 | # Click-Once directory
174 | publish/
175 |
176 | # Publish Web Output
177 | *.[Pp]ublish.xml
178 | *.azurePubxml
179 | # Note: Comment the next line if you want to checkin your web deploy settings,
180 | # but database connection strings (with potential passwords) will be unencrypted
181 | *.pubxml
182 | *.publishproj
183 |
184 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
185 | # checkin your Azure Web App publish settings, but sensitive information contained
186 | # in these scripts will be unencrypted
187 | PublishScripts/
188 |
189 | # NuGet Packages
190 | *.nupkg
191 | # NuGet Symbol Packages
192 | *.snupkg
193 | # The packages folder can be ignored because of Package Restore
194 | **/[Pp]ackages/*
195 | # except build/, which is used as an MSBuild target.
196 | !**/[Pp]ackages/build/
197 | # Uncomment if necessary however generally it will be regenerated when needed
198 | #!**/[Pp]ackages/repositories.config
199 | # NuGet v3's project.json files produces more ignorable files
200 | *.nuget.props
201 | *.nuget.targets
202 |
203 | # Microsoft Azure Build Output
204 | csx/
205 | *.build.csdef
206 |
207 | # Microsoft Azure Emulator
208 | ecf/
209 | rcf/
210 |
211 | # Windows Store app package directories and files
212 | AppPackages/
213 | BundleArtifacts/
214 | Package.StoreAssociation.xml
215 | _pkginfo.txt
216 | *.appx
217 | *.appxbundle
218 | *.appxupload
219 |
220 | # Visual Studio cache files
221 | # files ending in .cache can be ignored
222 | *.[Cc]ache
223 | # but keep track of directories ending in .cache
224 | !?*.[Cc]ache/
225 |
226 | # Others
227 | ClientBin/
228 | ~$*
229 | *~
230 | *.dbmdl
231 | *.dbproj.schemaview
232 | *.jfm
233 | *.pfx
234 | *.publishsettings
235 | orleans.codegen.cs
236 |
237 | # Including strong name files can present a security risk
238 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
239 | #*.snk
240 |
241 | # Since there are multiple workflows, uncomment next line to ignore bower_components
242 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
243 | #bower_components/
244 |
245 | # RIA/Silverlight projects
246 | Generated_Code/
247 |
248 | # Backup & report files from converting an old project file
249 | # to a newer Visual Studio version. Backup files are not needed,
250 | # because we have git ;-)
251 | _UpgradeReport_Files/
252 | Backup*/
253 | UpgradeLog*.XML
254 | UpgradeLog*.htm
255 | ServiceFabricBackup/
256 | *.rptproj.bak
257 |
258 | # SQL Server files
259 | *.mdf
260 | *.ldf
261 | *.ndf
262 |
263 | # Business Intelligence projects
264 | *.rdl.data
265 | *.bim.layout
266 | *.bim_*.settings
267 | *.rptproj.rsuser
268 | *- [Bb]ackup.rdl
269 | *- [Bb]ackup ([0-9]).rdl
270 | *- [Bb]ackup ([0-9][0-9]).rdl
271 |
272 | # Microsoft Fakes
273 | FakesAssemblies/
274 |
275 | # GhostDoc plugin setting file
276 | *.GhostDoc.xml
277 |
278 | # Node.js Tools for Visual Studio
279 | .ntvs_analysis.dat
280 | node_modules/
281 |
282 | # Visual Studio 6 build log
283 | *.plg
284 |
285 | # Visual Studio 6 workspace options file
286 | *.opt
287 |
288 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
289 | *.vbw
290 |
291 | # Visual Studio LightSwitch build output
292 | **/*.HTMLClient/GeneratedArtifacts
293 | **/*.DesktopClient/GeneratedArtifacts
294 | **/*.DesktopClient/ModelManifest.xml
295 | **/*.Server/GeneratedArtifacts
296 | **/*.Server/ModelManifest.xml
297 | _Pvt_Extensions
298 |
299 | # Paket dependency manager
300 | .paket/paket.exe
301 | paket-files/
302 |
303 | # FAKE - F# Make
304 | .fake/
305 |
306 | # CodeRush personal settings
307 | .cr/personal
308 |
309 | # Python Tools for Visual Studio (PTVS)
310 | __pycache__/
311 | *.pyc
312 |
313 | # Cake - Uncomment if you are using it
314 | # tools/**
315 | # !tools/packages.config
316 |
317 | # Tabs Studio
318 | *.tss
319 |
320 | # Telerik's JustMock configuration file
321 | *.jmconfig
322 |
323 | # BizTalk build output
324 | *.btp.cs
325 | *.btm.cs
326 | *.odx.cs
327 | *.xsd.cs
328 |
329 | # OpenCover UI analysis results
330 | OpenCover/
331 |
332 | # Azure Stream Analytics local run output
333 | ASALocalRun/
334 |
335 | # MSBuild Binary and Structured Log
336 | *.binlog
337 |
338 | # NVidia Nsight GPU debugger configuration file
339 | *.nvuser
340 |
341 | # MFractors (Xamarin productivity tool) working folder
342 | .mfractor/
343 |
344 | # Local History for Visual Studio
345 | .localhistory/
346 |
347 | # BeatPulse healthcheck temp database
348 | healthchecksdb
349 |
350 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
351 | MigrationBackup/
352 |
353 | # Ionide (cross platform F# VS Code tools) working folder
354 | .ionide/
355 |
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css:
--------------------------------------------------------------------------------
1 | @font-face{font-family:Icons;src:url(../fonts/open-iconic.eot);src:url(../fonts/open-iconic.eot?#iconic-sm) format('embedded-opentype'),url(../fonts/open-iconic.woff) format('woff'),url(../fonts/open-iconic.ttf) format('truetype'),url(../fonts/open-iconic.otf) format('opentype'),url(../fonts/open-iconic.svg#iconic-sm) format('svg');font-weight:400;font-style:normal}.oi{position:relative;top:1px;display:inline-block;speak:none;font-family:Icons;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.oi:empty:before{width:1em;text-align:center;box-sizing:content-box}.oi.oi-align-center:before{text-align:center}.oi.oi-align-left:before{text-align:left}.oi.oi-align-right:before{text-align:right}.oi.oi-flip-horizontal:before{-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.oi.oi-flip-vertical:before{-webkit-transform:scale(1,-1);-ms-transform:scale(-1,1);transform:scale(1,-1)}.oi.oi-flip-horizontal-vertical:before{-webkit-transform:scale(-1,-1);-ms-transform:scale(-1,1);transform:scale(-1,-1)}.oi-account-login:before{content:'\e000'}.oi-account-logout:before{content:'\e001'}.oi-action-redo:before{content:'\e002'}.oi-action-undo:before{content:'\e003'}.oi-align-center:before{content:'\e004'}.oi-align-left:before{content:'\e005'}.oi-align-right:before{content:'\e006'}.oi-aperture:before{content:'\e007'}.oi-arrow-bottom:before{content:'\e008'}.oi-arrow-circle-bottom:before{content:'\e009'}.oi-arrow-circle-left:before{content:'\e00a'}.oi-arrow-circle-right:before{content:'\e00b'}.oi-arrow-circle-top:before{content:'\e00c'}.oi-arrow-left:before{content:'\e00d'}.oi-arrow-right:before{content:'\e00e'}.oi-arrow-thick-bottom:before{content:'\e00f'}.oi-arrow-thick-left:before{content:'\e010'}.oi-arrow-thick-right:before{content:'\e011'}.oi-arrow-thick-top:before{content:'\e012'}.oi-arrow-top:before{content:'\e013'}.oi-audio-spectrum:before{content:'\e014'}.oi-audio:before{content:'\e015'}.oi-badge:before{content:'\e016'}.oi-ban:before{content:'\e017'}.oi-bar-chart:before{content:'\e018'}.oi-basket:before{content:'\e019'}.oi-battery-empty:before{content:'\e01a'}.oi-battery-full:before{content:'\e01b'}.oi-beaker:before{content:'\e01c'}.oi-bell:before{content:'\e01d'}.oi-bluetooth:before{content:'\e01e'}.oi-bold:before{content:'\e01f'}.oi-bolt:before{content:'\e020'}.oi-book:before{content:'\e021'}.oi-bookmark:before{content:'\e022'}.oi-box:before{content:'\e023'}.oi-briefcase:before{content:'\e024'}.oi-british-pound:before{content:'\e025'}.oi-browser:before{content:'\e026'}.oi-brush:before{content:'\e027'}.oi-bug:before{content:'\e028'}.oi-bullhorn:before{content:'\e029'}.oi-calculator:before{content:'\e02a'}.oi-calendar:before{content:'\e02b'}.oi-camera-slr:before{content:'\e02c'}.oi-caret-bottom:before{content:'\e02d'}.oi-caret-left:before{content:'\e02e'}.oi-caret-right:before{content:'\e02f'}.oi-caret-top:before{content:'\e030'}.oi-cart:before{content:'\e031'}.oi-chat:before{content:'\e032'}.oi-check:before{content:'\e033'}.oi-chevron-bottom:before{content:'\e034'}.oi-chevron-left:before{content:'\e035'}.oi-chevron-right:before{content:'\e036'}.oi-chevron-top:before{content:'\e037'}.oi-circle-check:before{content:'\e038'}.oi-circle-x:before{content:'\e039'}.oi-clipboard:before{content:'\e03a'}.oi-clock:before{content:'\e03b'}.oi-cloud-download:before{content:'\e03c'}.oi-cloud-upload:before{content:'\e03d'}.oi-cloud:before{content:'\e03e'}.oi-cloudy:before{content:'\e03f'}.oi-code:before{content:'\e040'}.oi-cog:before{content:'\e041'}.oi-collapse-down:before{content:'\e042'}.oi-collapse-left:before{content:'\e043'}.oi-collapse-right:before{content:'\e044'}.oi-collapse-up:before{content:'\e045'}.oi-command:before{content:'\e046'}.oi-comment-square:before{content:'\e047'}.oi-compass:before{content:'\e048'}.oi-contrast:before{content:'\e049'}.oi-copywriting:before{content:'\e04a'}.oi-credit-card:before{content:'\e04b'}.oi-crop:before{content:'\e04c'}.oi-dashboard:before{content:'\e04d'}.oi-data-transfer-download:before{content:'\e04e'}.oi-data-transfer-upload:before{content:'\e04f'}.oi-delete:before{content:'\e050'}.oi-dial:before{content:'\e051'}.oi-document:before{content:'\e052'}.oi-dollar:before{content:'\e053'}.oi-double-quote-sans-left:before{content:'\e054'}.oi-double-quote-sans-right:before{content:'\e055'}.oi-double-quote-serif-left:before{content:'\e056'}.oi-double-quote-serif-right:before{content:'\e057'}.oi-droplet:before{content:'\e058'}.oi-eject:before{content:'\e059'}.oi-elevator:before{content:'\e05a'}.oi-ellipses:before{content:'\e05b'}.oi-envelope-closed:before{content:'\e05c'}.oi-envelope-open:before{content:'\e05d'}.oi-euro:before{content:'\e05e'}.oi-excerpt:before{content:'\e05f'}.oi-expand-down:before{content:'\e060'}.oi-expand-left:before{content:'\e061'}.oi-expand-right:before{content:'\e062'}.oi-expand-up:before{content:'\e063'}.oi-external-link:before{content:'\e064'}.oi-eye:before{content:'\e065'}.oi-eyedropper:before{content:'\e066'}.oi-file:before{content:'\e067'}.oi-fire:before{content:'\e068'}.oi-flag:before{content:'\e069'}.oi-flash:before{content:'\e06a'}.oi-folder:before{content:'\e06b'}.oi-fork:before{content:'\e06c'}.oi-fullscreen-enter:before{content:'\e06d'}.oi-fullscreen-exit:before{content:'\e06e'}.oi-globe:before{content:'\e06f'}.oi-graph:before{content:'\e070'}.oi-grid-four-up:before{content:'\e071'}.oi-grid-three-up:before{content:'\e072'}.oi-grid-two-up:before{content:'\e073'}.oi-hard-drive:before{content:'\e074'}.oi-header:before{content:'\e075'}.oi-headphones:before{content:'\e076'}.oi-heart:before{content:'\e077'}.oi-home:before{content:'\e078'}.oi-image:before{content:'\e079'}.oi-inbox:before{content:'\e07a'}.oi-infinity:before{content:'\e07b'}.oi-info:before{content:'\e07c'}.oi-italic:before{content:'\e07d'}.oi-justify-center:before{content:'\e07e'}.oi-justify-left:before{content:'\e07f'}.oi-justify-right:before{content:'\e080'}.oi-key:before{content:'\e081'}.oi-laptop:before{content:'\e082'}.oi-layers:before{content:'\e083'}.oi-lightbulb:before{content:'\e084'}.oi-link-broken:before{content:'\e085'}.oi-link-intact:before{content:'\e086'}.oi-list-rich:before{content:'\e087'}.oi-list:before{content:'\e088'}.oi-location:before{content:'\e089'}.oi-lock-locked:before{content:'\e08a'}.oi-lock-unlocked:before{content:'\e08b'}.oi-loop-circular:before{content:'\e08c'}.oi-loop-square:before{content:'\e08d'}.oi-loop:before{content:'\e08e'}.oi-magnifying-glass:before{content:'\e08f'}.oi-map-marker:before{content:'\e090'}.oi-map:before{content:'\e091'}.oi-media-pause:before{content:'\e092'}.oi-media-play:before{content:'\e093'}.oi-media-record:before{content:'\e094'}.oi-media-skip-backward:before{content:'\e095'}.oi-media-skip-forward:before{content:'\e096'}.oi-media-step-backward:before{content:'\e097'}.oi-media-step-forward:before{content:'\e098'}.oi-media-stop:before{content:'\e099'}.oi-medical-cross:before{content:'\e09a'}.oi-menu:before{content:'\e09b'}.oi-microphone:before{content:'\e09c'}.oi-minus:before{content:'\e09d'}.oi-monitor:before{content:'\e09e'}.oi-moon:before{content:'\e09f'}.oi-move:before{content:'\e0a0'}.oi-musical-note:before{content:'\e0a1'}.oi-paperclip:before{content:'\e0a2'}.oi-pencil:before{content:'\e0a3'}.oi-people:before{content:'\e0a4'}.oi-person:before{content:'\e0a5'}.oi-phone:before{content:'\e0a6'}.oi-pie-chart:before{content:'\e0a7'}.oi-pin:before{content:'\e0a8'}.oi-play-circle:before{content:'\e0a9'}.oi-plus:before{content:'\e0aa'}.oi-power-standby:before{content:'\e0ab'}.oi-print:before{content:'\e0ac'}.oi-project:before{content:'\e0ad'}.oi-pulse:before{content:'\e0ae'}.oi-puzzle-piece:before{content:'\e0af'}.oi-question-mark:before{content:'\e0b0'}.oi-rain:before{content:'\e0b1'}.oi-random:before{content:'\e0b2'}.oi-reload:before{content:'\e0b3'}.oi-resize-both:before{content:'\e0b4'}.oi-resize-height:before{content:'\e0b5'}.oi-resize-width:before{content:'\e0b6'}.oi-rss-alt:before{content:'\e0b7'}.oi-rss:before{content:'\e0b8'}.oi-script:before{content:'\e0b9'}.oi-share-boxed:before{content:'\e0ba'}.oi-share:before{content:'\e0bb'}.oi-shield:before{content:'\e0bc'}.oi-signal:before{content:'\e0bd'}.oi-signpost:before{content:'\e0be'}.oi-sort-ascending:before{content:'\e0bf'}.oi-sort-descending:before{content:'\e0c0'}.oi-spreadsheet:before{content:'\e0c1'}.oi-star:before{content:'\e0c2'}.oi-sun:before{content:'\e0c3'}.oi-tablet:before{content:'\e0c4'}.oi-tag:before{content:'\e0c5'}.oi-tags:before{content:'\e0c6'}.oi-target:before{content:'\e0c7'}.oi-task:before{content:'\e0c8'}.oi-terminal:before{content:'\e0c9'}.oi-text:before{content:'\e0ca'}.oi-thumb-down:before{content:'\e0cb'}.oi-thumb-up:before{content:'\e0cc'}.oi-timer:before{content:'\e0cd'}.oi-transfer:before{content:'\e0ce'}.oi-trash:before{content:'\e0cf'}.oi-underline:before{content:'\e0d0'}.oi-vertical-align-bottom:before{content:'\e0d1'}.oi-vertical-align-center:before{content:'\e0d2'}.oi-vertical-align-top:before{content:'\e0d3'}.oi-video:before{content:'\e0d4'}.oi-volume-high:before{content:'\e0d5'}.oi-volume-low:before{content:'\e0d6'}.oi-volume-off:before{content:'\e0d7'}.oi-warning:before{content:'\e0d8'}.oi-wifi:before{content:'\e0d9'}.oi-wrench:before{content:'\e0da'}.oi-x:before{content:'\e0db'}.oi-yen:before{content:'\e0dc'}.oi-zoom-in:before{content:'\e0dd'}.oi-zoom-out:before{content:'\e0de'}
--------------------------------------------------------------------------------
/Server/wwwroot/css/open-iconic/font/fonts/open-iconic.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 | Created by FontForge 20120731 at Tue Jul 1 20:39:22 2014
9 | By P.J. Onori
10 | Created by P.J. Onori with FontForge 2.0 (http://fontforge.sf.net)
11 |
12 |
13 |
14 |
27 |
28 |
30 |
32 |
34 |
36 |
38 |
40 |
42 |
45 |
47 |
49 |
51 |
53 |
55 |
57 |
59 |
61 |
63 |
65 |
67 |
69 |
71 |
74 |
76 |
79 |
81 |
84 |
86 |
88 |
91 |
93 |
95 |
98 |
100 |
102 |
104 |
106 |
109 |
112 |
115 |
117 |
121 |
123 |
125 |
127 |
130 |
132 |
134 |
136 |
138 |
141 |
143 |
145 |
147 |
149 |
151 |
153 |
155 |
157 |
159 |
162 |
165 |
167 |
169 |
172 |
174 |
177 |
179 |
181 |
183 |
185 |
189 |
191 |
194 |
196 |
198 |
200 |
202 |
205 |
207 |
209 |
211 |
213 |
215 |
218 |
220 |
222 |
224 |
226 |
228 |
230 |
232 |
234 |
236 |
238 |
241 |
243 |
245 |
247 |
249 |
251 |
253 |
256 |
259 |
261 |
263 |
265 |
267 |
269 |
272 |
274 |
276 |
280 |
282 |
285 |
287 |
289 |
292 |
295 |
298 |
300 |
302 |
304 |
306 |
309 |
312 |
314 |
316 |
318 |
320 |
322 |
324 |
326 |
330 |
334 |
338 |
340 |
343 |
345 |
347 |
349 |
351 |
353 |
355 |
358 |
360 |
363 |
365 |
367 |
369 |
371 |
373 |
375 |
377 |
379 |
381 |
383 |
386 |
388 |
390 |
392 |
394 |
396 |
399 |
401 |
404 |
406 |
408 |
410 |
412 |
414 |
416 |
419 |
421 |
423 |
425 |
428 |
431 |
435 |
438 |
440 |
442 |
444 |
446 |
448 |
451 |
453 |
455 |
457 |
460 |
462 |
464 |
466 |
468 |
471 |
473 |
477 |
479 |
481 |
483 |
486 |
488 |
490 |
492 |
494 |
496 |
499 |
501 |
504 |
506 |
509 |
512 |
515 |
517 |
520 |
522 |
524 |
526 |
529 |
532 |
534 |
536 |
539 |
542 |
543 |
544 |
--------------------------------------------------------------------------------