├── .gitignore ├── BlazorDemo ├── .gitignore ├── wwwroot │ ├── get.png │ ├── get2.png │ ├── icon.png │ ├── favicon.ico │ ├── header_small.png │ ├── background_small.png │ ├── css │ │ └── open-iconic │ │ │ ├── font │ │ │ └── fonts │ │ │ │ ├── open-iconic.eot │ │ │ │ ├── open-iconic.otf │ │ │ │ ├── open-iconic.ttf │ │ │ │ └── open-iconic.woff │ │ │ ├── ICON-LICENSE │ │ │ └── README.md │ ├── monaco-editor │ │ ├── min │ │ │ └── vs │ │ │ │ ├── base │ │ │ │ └── browser │ │ │ │ │ └── ui │ │ │ │ │ └── codicons │ │ │ │ │ └── codicon │ │ │ │ │ └── codicon.ttf │ │ │ │ └── basic-languages │ │ │ │ ├── azcli │ │ │ │ └── azcli.js │ │ │ │ ├── ini │ │ │ │ └── ini.js │ │ │ │ ├── csp │ │ │ │ └── csp.js │ │ │ │ ├── xml │ │ │ │ └── xml.js │ │ │ │ ├── scheme │ │ │ │ └── scheme.js │ │ │ │ ├── sb │ │ │ │ └── sb.js │ │ │ │ ├── bat │ │ │ │ └── bat.js │ │ │ │ ├── dockerfile │ │ │ │ └── dockerfile.js │ │ │ │ ├── pascaligo │ │ │ │ └── pascaligo.js │ │ │ │ ├── cameligo │ │ │ │ └── cameligo.js │ │ │ │ ├── lua │ │ │ │ └── lua.js │ │ │ │ ├── graphql │ │ │ │ └── graphql.js │ │ │ │ ├── objective-c │ │ │ │ └── objective-c.js │ │ │ │ ├── lexon │ │ │ │ └── lexon.js │ │ │ │ ├── mips │ │ │ │ └── mips.js │ │ │ │ ├── go │ │ │ │ └── go.js │ │ │ │ ├── sophia │ │ │ │ └── sophia.js │ │ │ │ ├── r │ │ │ │ └── r.js │ │ │ │ ├── shell │ │ │ │ └── shell.js │ │ │ │ ├── java │ │ │ │ └── java.js │ │ │ │ ├── fsharp │ │ │ │ └── fsharp.js │ │ │ │ ├── pascal │ │ │ │ └── pascal.js │ │ │ │ ├── python │ │ │ │ └── python.js │ │ │ │ ├── powershell │ │ │ │ └── powershell.js │ │ │ │ ├── kotlin │ │ │ │ └── kotlin.js │ │ │ │ ├── yaml │ │ │ │ └── yaml.js │ │ │ │ ├── redis │ │ │ │ └── redis.js │ │ │ │ ├── tcl │ │ │ │ └── tcl.js │ │ │ │ ├── hcl │ │ │ │ └── hcl.js │ │ │ │ └── coffee │ │ │ │ └── coffee.js │ │ ├── LICENSE │ │ └── package.json │ └── sample-data │ │ ├── SampleCode.txt │ │ └── weather.json ├── 2do.txt ├── App.razor ├── _Imports.razor ├── Shared │ ├── MainLayout.razor │ ├── SurveyPrompt.razor │ └── NavMenu.razor ├── BlazorDemo.csproj ├── Program.cs └── Properties │ └── launchSettings.json ├── RoslynWeb ├── .gitignore ├── Properties │ └── PublishProfiles │ │ └── FolderProfile.pubxml └── RoslynWeb.csproj ├── BlazorDemoServer ├── .gitignore ├── wwwroot │ ├── get.png │ ├── get2.png │ ├── icon.png │ ├── favicon.ico │ ├── header_small.png │ ├── background_small.png │ ├── css │ │ └── open-iconic │ │ │ ├── font │ │ │ └── fonts │ │ │ │ ├── open-iconic.eot │ │ │ │ ├── open-iconic.otf │ │ │ │ ├── open-iconic.ttf │ │ │ │ └── open-iconic.woff │ │ │ └── ICON-LICENSE │ ├── monaco-editor │ │ ├── min │ │ │ └── vs │ │ │ │ ├── base │ │ │ │ └── browser │ │ │ │ │ └── ui │ │ │ │ │ └── codicons │ │ │ │ │ └── codicon │ │ │ │ │ └── codicon.ttf │ │ │ │ └── basic-languages │ │ │ │ ├── azcli │ │ │ │ └── azcli.js │ │ │ │ ├── ini │ │ │ │ └── ini.js │ │ │ │ ├── csp │ │ │ │ └── csp.js │ │ │ │ ├── xml │ │ │ │ └── xml.js │ │ │ │ ├── scheme │ │ │ │ └── scheme.js │ │ │ │ ├── sb │ │ │ │ └── sb.js │ │ │ │ ├── bat │ │ │ │ └── bat.js │ │ │ │ ├── dockerfile │ │ │ │ └── dockerfile.js │ │ │ │ ├── pascaligo │ │ │ │ └── pascaligo.js │ │ │ │ ├── cameligo │ │ │ │ └── cameligo.js │ │ │ │ ├── lua │ │ │ │ └── lua.js │ │ │ │ ├── graphql │ │ │ │ └── graphql.js │ │ │ │ ├── objective-c │ │ │ │ └── objective-c.js │ │ │ │ ├── lexon │ │ │ │ └── lexon.js │ │ │ │ ├── mips │ │ │ │ └── mips.js │ │ │ │ ├── go │ │ │ │ └── go.js │ │ │ │ ├── sophia │ │ │ │ └── sophia.js │ │ │ │ ├── r │ │ │ │ └── r.js │ │ │ │ ├── shell │ │ │ │ └── shell.js │ │ │ │ ├── java │ │ │ │ └── java.js │ │ │ │ ├── fsharp │ │ │ │ └── fsharp.js │ │ │ │ ├── pascal │ │ │ │ └── pascal.js │ │ │ │ ├── python │ │ │ │ └── python.js │ │ │ │ ├── powershell │ │ │ │ └── powershell.js │ │ │ │ ├── kotlin │ │ │ │ └── kotlin.js │ │ │ │ ├── yaml │ │ │ │ └── yaml.js │ │ │ │ ├── redis │ │ │ │ └── redis.js │ │ │ │ ├── tcl │ │ │ │ └── tcl.js │ │ │ │ ├── hcl │ │ │ │ └── hcl.js │ │ │ │ └── coffee │ │ │ │ └── coffee.js │ │ ├── LICENSE │ │ └── package.json │ └── sample-data │ │ ├── SampleCode.txt │ │ └── weather.json ├── appsettings.json ├── appsettings.Development.json ├── BlazorDemoServer.csproj ├── Data │ ├── WeatherForecast.cs │ └── WeatherForecastService.cs ├── App.razor ├── _Imports.razor ├── Shared │ ├── MainLayout.razor │ └── NavMenu.razor ├── Properties │ └── launchSettings.json ├── Program.cs ├── Pages │ ├── Error.cshtml.cs │ └── Error.cshtml └── Startup.cs ├── README.md ├── LICENSE └── BlazorDemo.sln /.gitignore: -------------------------------------------------------------------------------- 1 | /.vs/ 2 | /packages/ 3 | -------------------------------------------------------------------------------- /BlazorDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /obj/ 3 | -------------------------------------------------------------------------------- /RoslynWeb/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /obj/ 3 | -------------------------------------------------------------------------------- /BlazorDemoServer/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /obj/ 3 | -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/get.png -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/get2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/get2.png -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/icon.png -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/favicon.ico -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/get.png -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/header_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/header_small.png -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/get2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/get2.png -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/icon.png -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/favicon.ico -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/background_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/background_small.png -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/header_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/header_small.png -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/background_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/background_small.png -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/monaco-editor/min/vs/base/browser/ui/codicons/codicon/codicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemo/wwwroot/monaco-editor/min/vs/base/browser/ui/codicons/codicon/codicon.ttf -------------------------------------------------------------------------------- /BlazorDemo/2do.txt: -------------------------------------------------------------------------------- 1 | drag&drop 2 | 3 | tabs for multiple files 4 | 5 | query for debugline 6 | 7 | blazor loading bar (for init) 8 | 9 | custom context menu 10 | 11 | mobile test 12 | 13 | cookie for theme 14 | 15 | options -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/monaco-editor/min/vs/base/browser/ui/codicons/codicon/codicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapsari/website-blazor-demo/HEAD/BlazorDemoServer/wwwroot/monaco-editor/min/vs/base/browser/ui/codicons/codicon/codicon.ttf -------------------------------------------------------------------------------- /BlazorDemoServer/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /BlazorDemoServer/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "DetailedErrors": true, 3 | "Logging": { 4 | "LogLevel": { 5 | "Default": "Information", 6 | "Microsoft": "Warning", 7 | "Microsoft.Hosting.Lifetime": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/sample-data/SampleCode.txt: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ConsoleApplication1 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | var self = new Program(); 10 | Console.WriteLine("Hello World!"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /BlazorDemoServer/BlazorDemoServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/sample-data/SampleCode.txt: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ConsoleApplication1 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | var self = new Program(); 10 | Console.WriteLine("Hello World!"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /BlazorDemo/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /BlazorDemoServer/Data/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BlazorDemoServer.Data 4 | { 5 | public class WeatherForecast 6 | { 7 | public DateTime Date { get; set; } 8 | 9 | public int TemperatureC { get; set; } 10 | 11 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 12 | 13 | public string Summary { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /BlazorDemoServer/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /BlazorDemo/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.Web.Virtualization 7 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 8 | @using Microsoft.JSInterop 9 | @using BlazorDemo 10 | @using BlazorDemo.Shared 11 | -------------------------------------------------------------------------------- /BlazorDemoServer/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Authorization 3 | @using Microsoft.AspNetCore.Components.Authorization 4 | @using Microsoft.AspNetCore.Components.Forms 5 | @using Microsoft.AspNetCore.Components.Routing 6 | @using Microsoft.AspNetCore.Components.Web 7 | @using Microsoft.AspNetCore.Components.Web.Virtualization 8 | @using Microsoft.JSInterop 9 | @using BlazorDemoServer 10 | @using BlazorDemoServer.Shared 11 | -------------------------------------------------------------------------------- /BlazorDemoServer/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 7 | 8 |
9 | 10 |
11 | 16 |
17 | @Body 18 |
19 |
20 | -------------------------------------------------------------------------------- /BlazorDemo/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 7 | 8 |
9 | 10 |
11 | 16 |
17 | @Body 18 |
19 |
20 | -------------------------------------------------------------------------------- /RoslynWeb/Properties/PublishProfiles/FolderProfile.pubxml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | FileSystem 8 | Release 9 | Any CPU 10 | netstandard2.0 11 | bin\Release\netstandard2.0\publish\ 12 | 13 | -------------------------------------------------------------------------------- /BlazorDemo/Shared/SurveyPrompt.razor: -------------------------------------------------------------------------------- 1 | 11 | 12 | @code { 13 | // Demonstrates how a parent component can supply parameters 14 | [Parameter] public string Title { get; set; } 15 | } 16 | -------------------------------------------------------------------------------- /RoslynWeb/RoslynWeb.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.1 5 | MerryYellow.RoslynWeb 6 | 7 | Exe 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/sample-data/weather.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "date": "2018-05-06", 4 | "temperatureC": 1, 5 | "summary": "Freezing", 6 | "temperatureF": 33 7 | }, 8 | { 9 | "date": "2018-05-07", 10 | "temperatureC": 14, 11 | "summary": "Bracing", 12 | "temperatureF": 57 13 | }, 14 | { 15 | "date": "2018-05-08", 16 | "temperatureC": -13, 17 | "summary": "Freezing", 18 | "temperatureF": 9 19 | }, 20 | { 21 | "date": "2018-05-09", 22 | "temperatureC": -16, 23 | "summary": "Balmy", 24 | "temperatureF": 4 25 | }, 26 | { 27 | "date": "2018-05-10", 28 | "temperatureC": -2, 29 | "summary": "Chilly", 30 | "temperatureF": 29 31 | } 32 | ] 33 | -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/sample-data/weather.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "date": "2018-05-06", 4 | "temperatureC": 1, 5 | "summary": "Freezing", 6 | "temperatureF": 33 7 | }, 8 | { 9 | "date": "2018-05-07", 10 | "temperatureC": 14, 11 | "summary": "Bracing", 12 | "temperatureF": 57 13 | }, 14 | { 15 | "date": "2018-05-08", 16 | "temperatureC": -13, 17 | "summary": "Freezing", 18 | "temperatureF": 9 19 | }, 20 | { 21 | "date": "2018-05-09", 22 | "temperatureC": -16, 23 | "summary": "Balmy", 24 | "temperatureF": 4 25 | }, 26 | { 27 | "date": "2018-05-10", 28 | "temperatureC": -2, 29 | "summary": "Chilly", 30 | "temperatureF": 29 31 | } 32 | ] 33 | -------------------------------------------------------------------------------- /BlazorDemo/BlazorDemo.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /BlazorDemoServer/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:62172", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "BlazorDemoServer": { 19 | "commandName": "Project", 20 | "dotnetRunMessages": "true", 21 | "launchBrowser": true, 22 | "applicationUrl": "http://localhost:5000", 23 | "environmentVariables": { 24 | "ASPNETCORE_ENVIRONMENT": "Development" 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /BlazorDemoServer/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 BlazorDemoServer 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Blazor Demo with Roslyn 3 | 4 | ### [Try online](https://patternmaker.netlify.com) 5 | 6 | ### [2nd demo](https://enchanter.netlify.com) (cloned from this, with IL Code view) 7 | 8 | This is a sample website that uses cliend-side Blazor (WebAssembly) to run Roslyn based projects on the browser with Monaco Editor. 9 | 10 | Latest version uses .NET 5 11 | 12 | Also there is a duplicate project which uses server-side Blazor (BlazorServer), which is unloaded by default. 13 | 14 | **How to use:** 15 | 16 | * In project RoslynWeb, remove PatternMaker from the references, add your own Roslyn based project or dll. Also cleanup method calls to PatternMaker. 17 | 18 | Also don't forget that Webassembly has some restrictions since it runs on browsers. So be prepared to receive some errors on your Roslyn based project. 19 | 20 | -------------------------------------------------------------------------------- /BlazorDemo/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 | 11 | namespace BlazorDemo 12 | { 13 | public class Program 14 | { 15 | public static async Task Main(string[] args) 16 | { 17 | var builder = WebAssemblyHostBuilder.CreateDefault(args); 18 | builder.RootComponents.Add("#app"); 19 | 20 | builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); 21 | 22 | await builder.Build().RunAsync(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /BlazorDemoServer/Data/WeatherForecastService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Threading.Tasks; 4 | 5 | namespace BlazorDemoServer.Data 6 | { 7 | public class WeatherForecastService 8 | { 9 | private static readonly string[] Summaries = new[] 10 | { 11 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" 12 | }; 13 | 14 | public Task GetForecastAsync(DateTime startDate) 15 | { 16 | var rng = new Random(); 17 | return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast 18 | { 19 | Date = startDate.AddDays(index), 20 | TemperatureC = rng.Next(-20, 55), 21 | Summary = Summaries[rng.Next(Summaries.Length)] 22 | }).ToArray()); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /BlazorDemoServer/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 BlazorDemoServer.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 | -------------------------------------------------------------------------------- /BlazorDemo/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:20887", 7 | "sslPort": 0 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 | "BlazorDemo": { 20 | "commandName": "Project", 21 | "dotnetRunMessages": "true", 22 | "launchBrowser": true, 23 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 24 | "applicationUrl": "http://localhost:5000", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 sapsari 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 | -------------------------------------------------------------------------------- /BlazorDemo/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. -------------------------------------------------------------------------------- /BlazorDemoServer/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. -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/monaco-editor/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 - present Microsoft Corporation 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 | -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/monaco-editor/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 - present Microsoft Corporation 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 | -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/monaco-editor/min/vs/basic-languages/azcli/azcli.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * monaco-languages version: 2.1.1(425b0e3c9ea2067410b8f90e0f30de383188c418) 4 | * Released under the MIT license 5 | * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/azcli/azcli",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.language=t.conf=void 0,t.conf={comments:{lineComment:"#"}},t.language={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}})); -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/monaco-editor/min/vs/basic-languages/azcli/azcli.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * monaco-languages version: 2.1.1(425b0e3c9ea2067410b8f90e0f30de383188c418) 4 | * Released under the MIT license 5 | * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/azcli/azcli",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.language=t.conf=void 0,t.conf={comments:{lineComment:"#"}},t.language={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}})); -------------------------------------------------------------------------------- /BlazorDemo/Shared/NavMenu.razor: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 | 26 |
27 | 28 | @code { 29 | bool collapseNavMenu = true; 30 | 31 | string NavMenuCssClass => collapseNavMenu ? "collapse" : null; 32 | 33 | void ToggleNavMenu() 34 | { 35 | collapseNavMenu = !collapseNavMenu; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /BlazorDemoServer/Shared/NavMenu.razor: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 | 26 |
27 | 28 | @code { 29 | private bool collapseNavMenu = true; 30 | 31 | private string NavMenuCssClass => collapseNavMenu ? "collapse" : null; 32 | 33 | private void ToggleNavMenu() 34 | { 35 | collapseNavMenu = !collapseNavMenu; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/monaco-editor/min/vs/basic-languages/ini/ini.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * monaco-languages version: 2.1.1(425b0e3c9ea2067410b8f90e0f30de383188c418) 4 | * Released under the MIT license 5 | * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/ini/ini",["require","exports"],(function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.language=n.conf=void 0,n.conf={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n.language={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}})); -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/monaco-editor/min/vs/basic-languages/ini/ini.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * monaco-languages version: 2.1.1(425b0e3c9ea2067410b8f90e0f30de383188c418) 4 | * Released under the MIT license 5 | * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/ini/ini",["require","exports"],(function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.language=n.conf=void 0,n.conf={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n.language={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}})); -------------------------------------------------------------------------------- /BlazorDemoServer/Pages/Error.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model BlazorDemoServer.Pages.ErrorModel 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Error 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 |

Error.

19 |

An error occurred while processing your request.

20 | 21 | @if (Model.ShowRequestId) 22 | { 23 |

24 | Request ID: @Model.RequestId 25 |

26 | } 27 | 28 |

Development Mode

29 |

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 |
39 |
40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/monaco-editor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "monaco-editor", 3 | "private": false, 4 | "version": "0.21.2", 5 | "description": "A browser based code editor", 6 | "author": "Microsoft Corporation", 7 | "license": "MIT", 8 | "scripts": { 9 | "simpleserver": "gulp simpleserver", 10 | "release": "gulp release", 11 | "website": "gulp website", 12 | "build-website": "gulp build-website", 13 | "build-test": "tsc -b ./ci/tsconfig.json --preserveWatchOutput", 14 | "bundle": "webpack --config ci/webpack.config.js --display-error-details --bail", 15 | "test": "mocha \"out-ci/*.test.js\" --headless", 16 | "ciserver": "gulp ciserver" 17 | }, 18 | "typings": "./esm/vs/editor/editor.api.d.ts", 19 | "module": "./esm/vs/editor/editor.main.js", 20 | "repository": { 21 | "type": "git", 22 | "url": "https://github.com/Microsoft/monaco-editor" 23 | }, 24 | "devDependencies": { 25 | "@types/chai": "^4.2.12", 26 | "@types/mocha": "^8.0.3", 27 | "chai": "^4.2.0", 28 | "clean-css": "^4.2.3", 29 | "css-loader": "^4.3.0", 30 | "event-stream": "4.0.1", 31 | "file-loader": "^6.1.0", 32 | "gulp": "^4.0.2", 33 | "gulp-typedoc": "^2.2.5", 34 | "mocha": "^8.1.3", 35 | "monaco-css": "3.1.1", 36 | "monaco-editor-core": "0.21.2", 37 | "monaco-html": "3.1.1", 38 | "monaco-json": "3.2.1", 39 | "monaco-languages": "2.1.1", 40 | "monaco-typescript": "4.1.1", 41 | "playwright": "1.3.0", 42 | "rimraf": "^3.0.2", 43 | "style-loader": "^1.2.1", 44 | "typedoc": "^0.19.1", 45 | "typescript": "^4.0.3", 46 | "uncss": "^0.17.3", 47 | "vinyl": "^2.2.0", 48 | "webpack": "^4.44.2", 49 | "webpack-cli": "^3.3.12", 50 | "yaserver": "^0.3.0" 51 | } 52 | } -------------------------------------------------------------------------------- /BlazorDemoServer/wwwroot/monaco-editor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "monaco-editor", 3 | "private": false, 4 | "version": "0.21.2", 5 | "description": "A browser based code editor", 6 | "author": "Microsoft Corporation", 7 | "license": "MIT", 8 | "scripts": { 9 | "simpleserver": "gulp simpleserver", 10 | "release": "gulp release", 11 | "website": "gulp website", 12 | "build-website": "gulp build-website", 13 | "build-test": "tsc -b ./ci/tsconfig.json --preserveWatchOutput", 14 | "bundle": "webpack --config ci/webpack.config.js --display-error-details --bail", 15 | "test": "mocha \"out-ci/*.test.js\" --headless", 16 | "ciserver": "gulp ciserver" 17 | }, 18 | "typings": "./esm/vs/editor/editor.api.d.ts", 19 | "module": "./esm/vs/editor/editor.main.js", 20 | "repository": { 21 | "type": "git", 22 | "url": "https://github.com/Microsoft/monaco-editor" 23 | }, 24 | "devDependencies": { 25 | "@types/chai": "^4.2.12", 26 | "@types/mocha": "^8.0.3", 27 | "chai": "^4.2.0", 28 | "clean-css": "^4.2.3", 29 | "css-loader": "^4.3.0", 30 | "event-stream": "4.0.1", 31 | "file-loader": "^6.1.0", 32 | "gulp": "^4.0.2", 33 | "gulp-typedoc": "^2.2.5", 34 | "mocha": "^8.1.3", 35 | "monaco-css": "3.1.1", 36 | "monaco-editor-core": "0.21.2", 37 | "monaco-html": "3.1.1", 38 | "monaco-json": "3.2.1", 39 | "monaco-languages": "2.1.1", 40 | "monaco-typescript": "4.1.1", 41 | "playwright": "1.3.0", 42 | "rimraf": "^3.0.2", 43 | "style-loader": "^1.2.1", 44 | "typedoc": "^0.19.1", 45 | "typescript": "^4.0.3", 46 | "uncss": "^0.17.3", 47 | "vinyl": "^2.2.0", 48 | "webpack": "^4.44.2", 49 | "webpack-cli": "^3.3.12", 50 | "yaserver": "^0.3.0" 51 | } 52 | } -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/monaco-editor/min/vs/basic-languages/csp/csp.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * monaco-languages version: 2.1.1(425b0e3c9ea2067410b8f90e0f30de383188c418) 4 | * Released under the MIT license 5 | * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/csp/csp",["require","exports"],(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.language=e.conf=void 0,e.conf={brackets:[],autoClosingPairs:[],surroundingPairs:[]},e.language={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=> 50 | { 51 | endpoints.MapBlazorHub(); 52 | endpoints.MapFallbackToPage("/_Host"); 53 | }); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /BlazorDemo/wwwroot/monaco-editor/min/vs/basic-languages/xml/xml.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * monaco-languages version: 2.1.1(425b0e3c9ea2067410b8f90e0f30de383188c418) 4 | * Released under the MIT license 5 | * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/xml/xml",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.language=t.conf=void 0,t.conf={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},t.language={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,{token:"comment",next:"@pop"}],[/