--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/edgesharp.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/wpf/EdgeSharp.Wpf.RazorPages.Sample/edgesharp.ico
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/MvcMovie.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.React.Sample/MvcMovie.db
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/edgesharp.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.Vue.Sample/edgesharp.ico
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/MvcMovie.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/winform/EdgeSharp.WinForms.Razor.Sample/MvcMovie.db
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/edgesharp.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/winform/EdgeSharp.WinForms.Razor.Sample/edgesharp.ico
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/MvcMovie.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.Angular.Sample/MvcMovie.db
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/edgesharp.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.React.Sample/edgesharp.ico
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/assets/img/edgesharp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/win-32/EdgeSharp.Razor.Sample/assets/img/edgesharp.png
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/assets/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/wpf/EdgeSharp.Wpf.RazorPages.Sample/assets/favicon.ico
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/edgesharp.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.Angular.Sample/edgesharp.ico
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using EdgeSharp.Shared
2 | @using EdgeSharp.Shared.Models
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/assets/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/winform/EdgeSharp.WinForms.Razor.Sample/assets/favicon.ico
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/assets/img/edgesharp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/wpf/EdgeSharp.Wpf.RazorPages.Sample/assets/img/edgesharp.png
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/public/favicon.ico
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/src/assets/logo.png
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/assets/img/edgesharp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/winform/EdgeSharp.WinForms.Razor.Sample/assets/img/edgesharp.png
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/Pages/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using EdgeSharp.Wpf.RazorPages.Sample
2 | @namespace EdgeSharp.Wpf.RazorPages.Sample.Pages
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/assets/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/webview2/EdgeSharp.Samples/HEAD/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/assets/img/favicon.ico
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/app/services/service.config.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@angular/core';
2 |
3 | Injectable()
4 | export class ServiceConfig{
5 | public ipcoption = 'hostobject';
6 | }
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/reactapp/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "sourceType": "unambiguous",
3 | "presets": ["@babel/preset-env", "@babel/preset-react"],
4 | "plugins": [
5 | ["@babel/transform-runtime"]
6 | ]
7 | }
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/src/main.js:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 |
5 | window.$ipcoption = 'hostobject';
6 |
7 | createApp(App).use(router).mount('#app')
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using EdgeSharp.Shared.Models
2 | @using EdgeSharp.WinForms.Razor.Sample
3 | @using EdgeSharp.WinForms.Razor.Sample.Models
4 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
5 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/Views/Shared/_ValidationScriptsPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/Views/Shared/_ValidationScriptsPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/Pages/Shared/_ValidationScriptsPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Shared/Models/ErrorViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace EdgeSharp.Shared.Models
2 | {
3 | public class ErrorViewModel
4 | {
5 | public string RequestId { get; set; }
6 |
7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Shared/Models/ErrorViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace EdgeSharp.Shared.Models
2 | {
3 | public class ErrorViewModel
4 | {
5 | public string RequestId { get; set; }
6 |
7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.Shared/Models/ErrorViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace EdgeSharp.Shared.Models
2 | {
3 | public class ErrorViewModel
4 | {
5 | public string RequestId { get; set; }
6 |
7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/Form1.cs:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms;
2 |
3 | namespace EdgeSharp.WinForms.Sample
4 | {
5 | public partial class Form1 : Form
6 | {
7 | public Form1()
8 | {
9 | InitializeComponent();
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Shared/Models/ErrorViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace EdgeSharp.Shared.Models
2 | {
3 | public class ErrorViewModel
4 | {
5 | public string RequestId { get; set; }
6 |
7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/Form1.cs:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms;
2 |
3 | namespace EdgeSharp.WinForms.Razor.Sample
4 | {
5 | public partial class Form1 : Form
6 | {
7 | public Form1()
8 | {
9 | InitializeComponent();
10 | }
11 |
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/reactapp/dist/index.html:
--------------------------------------------------------------------------------
1 | EdgeSharp React Demo
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Shared/Models/Info.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class Info
6 | {
7 | [Display(Name = "SDK Version")]
8 | public string SdkVersion { get; set; }
9 |
10 | [Display(Name = "Runtime Version")]
11 | public string RuntimeVersion { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | namespace EdgeSharp.Wpf.Sample
4 | {
5 | ///
6 | /// Interaction logic for MainWindow.xaml
7 | ///
8 | public partial class MainWindow : Window
9 | {
10 | public MainWindow()
11 | {
12 | InitializeComponent();
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Shared/Models/Info.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class Info
6 | {
7 | [Display(Name = "SDK Version")]
8 | public string SdkVersion { get; set; }
9 |
10 | [Display(Name = "Runtime Version")]
11 | public string RuntimeVersion { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.Shared/Models/Info.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class Info
6 | {
7 | [Display(Name = "SDK Version")]
8 | public string SdkVersion { get; set; }
9 |
10 | [Display(Name = "Runtime Version")]
11 | public string RuntimeVersion { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Angularapp
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Shared/Models/Info.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class Info
6 | {
7 | [Display(Name = "SDK Version")]
8 | public string SdkVersion { get; set; }
9 |
10 | [Display(Name = "Runtime Version")]
11 | public string RuntimeVersion { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Shared/Models/MoviesViewModel.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class MoviesViewModel
6 | {
7 | public List Movies { get; set; }
8 | public List Genres { get; set; }
9 | public string MovieGenre { get; set; }
10 | public string SearchString { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see https://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.ts]
12 | quote_type = single
13 |
14 | [*.md]
15 | max_line_length = off
16 | trim_trailing_whitespace = false
17 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Shared/Models/MoviesViewModel.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class MoviesViewModel
6 | {
7 | public List Movies { get; set; }
8 | public List Genres { get; set; }
9 | public string MovieGenre { get; set; }
10 | public string SearchString { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.Shared/Models/MoviesViewModel.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class MoviesViewModel
6 | {
7 | public List Movies { get; set; }
8 | public List Genres { get; set; }
9 | public string MovieGenre { get; set; }
10 | public string SearchString { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | namespace EdgeSharp.Wpf.RazorPages.Sample
4 | {
5 | ///
6 | /// Interaction logic for MainWindow.xaml
7 | ///
8 | public partial class MainWindow : Window
9 | {
10 | public MainWindow()
11 | {
12 | InitializeComponent();
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Shared/Models/MoviesViewModel.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace EdgeSharp.Shared.Models
4 | {
5 | public class MoviesViewModel
6 | {
7 | public List Movies { get; set; }
8 | public List Genres { get; set; }
9 | public string MovieGenre { get; set; }
10 | public string SearchString { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/app",
6 | "types": []
7 | },
8 | "files": [
9 | "src/main.ts",
10 | "src/polyfills.ts"
11 | ],
12 | "include": [
13 | "src/**/*.d.ts"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Shared/Data/MovieContext.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Shared.Models;
2 | using Microsoft.EntityFrameworkCore;
3 |
4 | namespace EdgeSharp.Shared.Data
5 | {
6 | public class MovieContext : DbContext
7 | {
8 | protected override void OnConfiguring(DbContextOptionsBuilder options)
9 | => options.UseSqlite("Data Source=MvcMovie.db");
10 |
11 | public DbSet Movie { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Shared/Data/MovieContext.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Shared.Models;
2 | using Microsoft.EntityFrameworkCore;
3 |
4 | namespace EdgeSharp.Shared.Data
5 | {
6 | public class MovieContext : DbContext
7 | {
8 | protected override void OnConfiguring(DbContextOptionsBuilder options)
9 | => options.UseSqlite("Data Source=MvcMovie.db");
10 |
11 | public DbSet Movie { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.Shared/Data/MovieContext.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Shared.Models;
2 | using Microsoft.EntityFrameworkCore;
3 |
4 | namespace EdgeSharp.Shared.Data
5 | {
6 | public class MovieContext : DbContext
7 | {
8 | protected override void OnConfiguring(DbContextOptionsBuilder options)
9 | => options.UseSqlite("Data Source=MvcMovie.db");
10 |
11 | public DbSet Movie { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/reactapp/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | EdgeSharp React Demo
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Shared/Data/MovieContext.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Shared.Models;
2 | using Microsoft.EntityFrameworkCore;
3 |
4 | namespace EdgeSharp.Shared.Data
5 | {
6 | public class MovieContext : DbContext
7 | {
8 | protected override void OnConfiguring(DbContextOptionsBuilder options)
9 | => options.UseSqlite("Data Source=MvcMovie.db");
10 |
11 | public DbSet Movie { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/main.ts:
--------------------------------------------------------------------------------
1 | import { enableProdMode } from '@angular/core';
2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3 |
4 | import { AppModule } from './app/app.module';
5 | import { environment } from './environments/environment';
6 |
7 | if (environment.production) {
8 | enableProdMode();
9 | }
10 |
11 | platformBrowserDynamic().bootstrapModule(AppModule)
12 | .catch(err => console.error(err));
13 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/spec",
6 | "types": [
7 | "jasmine"
8 | ]
9 | },
10 | "files": [
11 | "src/test.ts",
12 | "src/polyfills.ts"
13 | ],
14 | "include": [
15 | "src/**/*.spec.ts",
16 | "src/**/*.d.ts"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/README.md:
--------------------------------------------------------------------------------
1 | # vueapp
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Lints and fixes files
19 | ```
20 | npm run lint
21 | ```
22 |
23 | ### Customize configuration
24 | See [Configuration Reference](https://cli.vuejs.org/config/).
25 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/Models/MovieGenreViewModel.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Shared.Models;
2 | using Microsoft.AspNetCore.Mvc.Rendering;
3 | using System.Collections.Generic;
4 |
5 | namespace EdgeSharp.WinForms.Razor.Sample.Models
6 | {
7 | public class MovieGenreViewModel
8 | {
9 | public List Movies { get; set; }
10 | public SelectList Genres { get; set; }
11 | public string MovieGenre { get; set; }
12 | public string SearchString { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/reactapp/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom'
3 | import "./assets/css/bootstrap.min.css";
4 | import "./assets/css/prism-okaidia.css";
5 | import "./assets/js/jquery.min.js";
6 | import "./assets/js/bootstrap.bundle.min.js";
7 | import "./assets/js/jquery.min.js";
8 | import "./assets/js/prism.js";
9 |
10 | import App from './App'
11 |
12 | window.$ipcoption = 'hostobject';
13 |
14 | ReactDOM.render(
15 | ,
16 | document.getElementById('root')
17 | );
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/app/services/action.controller.client.service.spec.ts:
--------------------------------------------------------------------------------
1 | import { TestBed } from '@angular/core/testing';
2 |
3 | import { ActionClientService } from './action.controller.client.service';
4 |
5 | describe('ActionClientService', () => {
6 | let service: ActionClientService;
7 |
8 | beforeEach(() => {
9 | TestBed.configureTestingModule({});
10 | service = TestBed.inject(ActionClientService);
11 | });
12 |
13 | it('should be created', () => {
14 | expect(service).toBeTruthy();
15 | });
16 | });
17 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/Helper.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 | using System.Windows.Forms;
3 |
4 | namespace EdgeSharp.WinForms.Sample
5 | {
6 | public static class Helper
7 | {
8 | public static void SetAppIcon(this Form form)
9 | {
10 | var executable = System.Reflection.Assembly.GetExecutingAssembly();
11 | var iconStream = executable.GetManifestResourceStream("EdgeSharp.WinForms.Sample.edgesharp.ico");
12 | if (iconStream != null)
13 | {
14 | form.Icon = new Icon(iconStream);
15 | }
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/Models/MovieGenreViewModel.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Shared.Models;
2 | using Microsoft.AspNetCore.Mvc;
3 | using Microsoft.AspNetCore.Mvc.Rendering;
4 | using System.Collections.Generic;
5 |
6 | namespace EdgeSharp.Razor.Sample.Models
7 | {
8 | public class MovieGenreViewModel
9 | {
10 | public List Movies { get; set; }
11 | public SelectList Genres { get; set; }
12 | [BindProperty(SupportsGet = true)]
13 | public string MovieGenre { get; set; }
14 | [BindProperty(SupportsGet = true)]
15 | public string SearchString { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/Helper.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 | using System.Windows.Forms;
3 |
4 | namespace EdgeSharp.WinForms.Razor.Sample
5 | {
6 | public static class Helper
7 | {
8 | public static void SetAppIcon(this Form form)
9 | {
10 | var executable = System.Reflection.Assembly.GetExecutingAssembly();
11 | var iconStream = executable.GetManifestResourceStream("EdgeSharp.WinForms.Razor.Sample.edgesharp.ico");
12 | if (iconStream != null)
13 | {
14 | form.Icon = new Icon(iconStream);
15 | }
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(
4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5 | //(used if a resource is not found in the page,
6 | // or application resource dictionaries)
7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8 | //(used if a resource is not found in the page,
9 | // app, or any theme specific resource dictionaries)
10 | )]
11 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(
4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5 | //(used if a resource is not found in the page,
6 | // or application resource dictionaries)
7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8 | //(used if a resource is not found in the page,
9 | // app, or any theme specific resource dictionaries)
10 | )]
11 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Sample/app/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/app/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Sample/SampleWindow.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Browser;
2 | using Microsoft.Web.WebView2.Core;
3 | using System;
4 |
5 | namespace EdgeSharp.Sample
6 | {
7 | public class SampleWindow : BrowserWindow
8 | {
9 | protected override void OnInitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
10 | {
11 | base.OnInitializationCompleted(sender, e);
12 | CoreWebView2.NavigationCompleted += CoreWebView2_NavigationCompleted;
13 | }
14 |
15 | private void CoreWebView2_NavigationCompleted(object sender, CoreWebView2NavigationCompletedEventArgs e)
16 | {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/assets/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/app/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/Program.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core.Owin;
2 | using System;
3 |
4 | namespace EdgeSharp.Razor.Sample
5 | {
6 | public class Program
7 | {
8 | /// Main entry-point for this application.
9 | /// The arguments to pass in.
10 | [STAThread]
11 | public static void Main(string[] args)
12 | {
13 | OwinAppBuilder
14 | .Create(args)
15 | .UseConfig()
16 | .UseWindow()
17 | .UseApp()
18 | .Build()
19 | .Run();
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/SampleWindow.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Browser;
2 | using Microsoft.Web.WebView2.Core;
3 | using System;
4 |
5 | namespace EdgeSharp.Razor.Sample
6 | {
7 | public class SampleWindow : BrowserWindow
8 | {
9 | protected override void OnInitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
10 | {
11 | base.OnInitializationCompleted(sender, e);
12 | CoreWebView2.NavigationCompleted += CoreWebView2_NavigationCompleted;
13 | }
14 |
15 | private void CoreWebView2_NavigationCompleted(object sender, CoreWebView2NavigationCompletedEventArgs e)
16 | {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/assets/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/assets/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/SampleWindow.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Browser;
2 | using Microsoft.Web.WebView2.Core;
3 | using System;
4 |
5 | namespace EdgeSharp.Vue.Sample
6 | {
7 | public class SampleWindow : BrowserWindow
8 | {
9 | protected override void OnInitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
10 | {
11 | base.OnInitializationCompleted(sender, e);
12 | CoreWebView2.NavigationCompleted += CoreWebView2_NavigationCompleted;
13 | }
14 |
15 | private void CoreWebView2_NavigationCompleted(object sender, CoreWebView2NavigationCompletedEventArgs e)
16 | {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/SampleWindow.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Browser;
2 | using Microsoft.Web.WebView2.Core;
3 | using System;
4 |
5 | namespace EdgeSharp.Angular.Sample
6 | {
7 | public class SampleWindow : BrowserWindow
8 | {
9 | protected override void OnInitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
10 | {
11 | base.OnInitializationCompleted(sender, e);
12 | CoreWebView2.NavigationCompleted += CoreWebView2_NavigationCompleted;
13 | }
14 |
15 | private void CoreWebView2_NavigationCompleted(object sender, CoreWebView2NavigationCompletedEventArgs e)
16 | {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/app/app-routing.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 | import { RouterModule, Routes } from '@angular/router';
3 |
4 | import { HomeComponent } from './components/home/home.component';
5 | import { TmdbMoviesComponent } from './components/tmdbmovies/tmdb-movies.component';
6 |
7 | const routes: Routes = [
8 | { path: '', redirectTo: 'home', pathMatch: 'full' },
9 | { path: 'home', component: HomeComponent },
10 | { path: 'tmdbmovies', component: TmdbMoviesComponent}
11 | ];
12 |
13 | @NgModule({
14 | imports: [RouterModule.forRoot(routes)],
15 | exports: [RouterModule]
16 | })
17 | export class AppRoutingModule { }
18 |
19 |
20 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/SampleWindow.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Browser;
2 | using Microsoft.Web.WebView2.Core;
3 | using System;
4 |
5 | namespace EdgeSharp.React.Sample
6 | {
7 | public class SampleWindow : BrowserWindow
8 | {
9 | protected override void OnInitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
10 | {
11 | base.OnInitializationCompleted(sender, e);
12 | CoreWebView2.NavigationCompleted += CoreWebView2_NavigationCompleted;
13 | }
14 |
15 | private void CoreWebView2_NavigationCompleted(object sender, CoreWebView2NavigationCompletedEventArgs e)
16 | {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Vue.Sample/vueapp/src/router/index.js:
--------------------------------------------------------------------------------
1 | import { createWebHistory, createRouter } from "vue-router";
2 | import Home from "@/components/Home.vue";
3 | import TmdbMovies from "@/components/TmdbMovies.vue";
4 |
5 | const routes = [
6 | {
7 | path: '/',
8 | redirect: '/home'
9 | },
10 | {
11 | path: "/home",
12 | name: "Home",
13 | component: Home,
14 | },
15 | {
16 | path: "/tmdbmovies",
17 | name: "Tmdb Movies",
18 | component: TmdbMovies,
19 | },
20 | {
21 | path: '/:pathMatch(.*)*',
22 | component: Home
23 | }
24 | ];
25 |
26 | const router = createRouter({
27 | history: createWebHistory(),
28 | routes,
29 | });
30 |
31 | export default router;
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { ServiceConfig } from './services/service.config';
3 |
4 | @Component({
5 | selector: 'app-root',
6 | templateUrl: './app.component.html',
7 | styleUrls: ['./app.component.css']
8 | })
9 | export class AppComponent {
10 |
11 | _ipcoption: string = '';
12 |
13 | constructor(private _serviceConfig: ServiceConfig) {
14 | }
15 |
16 | public changeIpcOption(ipcOption: string) {
17 | this._serviceConfig.ipcoption = ipcOption;
18 | this._ipcoption = this._serviceConfig.ipcoption;
19 | }
20 |
21 | ngOnInit(): void {
22 | this._ipcoption = this._serviceConfig.ipcoption;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/environments/environment.ts:
--------------------------------------------------------------------------------
1 | // This file can be replaced during build by using the `fileReplacements` array.
2 | // `ng build` replaces `environment.ts` with `environment.prod.ts`.
3 | // The list of file replacements can be found in `angular.json`.
4 |
5 | export const environment = {
6 | production: false
7 | };
8 |
9 | /*
10 | * For easier debugging in development mode, you can import the following file
11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12 | *
13 | * This import should be commented out in production mode because it will have a negative impact
14 | * on performance if an error is thrown.
15 | */
16 | // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
17 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/app/components/home/home.component.spec.ts:
--------------------------------------------------------------------------------
1 | import { ComponentFixture, TestBed } from '@angular/core/testing';
2 |
3 | import { HomeComponent } from './home.component';
4 |
5 | describe('HomeComponent', () => {
6 | let component: HomeComponent;
7 | let fixture: ComponentFixture;
8 |
9 | beforeEach(async () => {
10 | await TestBed.configureTestingModule({
11 | declarations: [ HomeComponent ]
12 | })
13 | .compileComponents();
14 | });
15 |
16 | beforeEach(() => {
17 | fixture = TestBed.createComponent(HomeComponent);
18 | component = fixture.componentInstance;
19 | fixture.detectChanges();
20 | });
21 |
22 | it('should create', () => {
23 | expect(component).toBeTruthy();
24 | });
25 | });
26 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/SampleWindow.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System.ComponentModel;
3 |
4 | namespace EdgeSharp.Wpf.Sample
5 | {
6 | public class SampleWindow : BrowserWindow
7 | {
8 | private AppBuilder _appBuilder;
9 |
10 | public SampleWindow()
11 | {
12 | Width = 1200;
13 | Height = 900;
14 |
15 | //_appBuilder = new AppBuilder();
16 | }
17 |
18 | protected override void Bootstrap()
19 | {
20 | //ServiceLocator.Bootstrap(_appBuilder);
21 | //base.Bootstrap();
22 | }
23 |
24 | protected override void OnClosing(CancelEventArgs e)
25 | {
26 | //_appBuilder?.Stop();
27 | base.OnClosing(e);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/.browserslistrc:
--------------------------------------------------------------------------------
1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2 | # For additional information regarding the format and rule options, please see:
3 | # https://github.com/browserslist/browserslist#queries
4 |
5 | # For the full list of supported browsers by the Angular framework, please see:
6 | # https://angular.io/guide/browser-support
7 |
8 | # You can see what browsers were selected by your queries by running:
9 | # npx browserslist
10 |
11 | last 1 Chrome version
12 | last 1 Firefox version
13 | last 2 Edge major versions
14 | last 2 Safari major versions
15 | last 2 iOS major versions
16 | Firefox ESR
17 | not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
18 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/SampleWindow.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System.ComponentModel;
3 |
4 | namespace EdgeSharp.Wpf.RazorPages.Sample
5 | {
6 | public class SampleWindow : BrowserWindow
7 | {
8 | private AppBuilder _appBuilder;
9 |
10 | public SampleWindow()
11 | {
12 | Width = 1200;
13 | Height = 900;
14 |
15 | //_appBuilder = new AppBuilder();
16 | }
17 |
18 | protected override void Bootstrap()
19 | {
20 | //ServiceLocator.Bootstrap(_appBuilder);
21 | //base.Bootstrap();
22 | }
23 |
24 | protected override void OnClosing(CancelEventArgs e)
25 | {
26 | //_appBuilder?.Stop();
27 | base.OnClosing(e);
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 | # Only exists if Bazel was run
8 | /bazel-out
9 |
10 | # dependencies
11 | /node_modules
12 |
13 | # profiling files
14 | chrome-profiler-events*.json
15 |
16 | # IDEs and editors
17 | /.idea
18 | .project
19 | .classpath
20 | .c9/
21 | *.launch
22 | .settings/
23 | *.sublime-workspace
24 |
25 | # IDE - VSCode
26 | .vscode/*
27 | !.vscode/settings.json
28 | !.vscode/tasks.json
29 | !.vscode/launch.json
30 | !.vscode/extensions.json
31 | .history/*
32 |
33 | # misc
34 | /.sass-cache
35 | /connect.lock
36 | /coverage
37 | /libpeerconnection.log
38 | npm-debug.log
39 | yarn-error.log
40 | testem.log
41 | /typings
42 |
43 | # System Files
44 | .DS_Store
45 | Thumbs.db
46 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/app/components/tmdbmovies/tmdb-movies.component.spec.ts:
--------------------------------------------------------------------------------
1 | import { ComponentFixture, TestBed } from '@angular/core/testing';
2 |
3 | import { TmdbMoviesComponent } from './tmdb-movies.component';
4 |
5 | describe('TmdbMoviesComponent', () => {
6 | let component: TmdbMoviesComponent;
7 | let fixture: ComponentFixture;
8 |
9 | beforeEach(async () => {
10 | await TestBed.configureTestingModule({
11 | declarations: [ TmdbMoviesComponent ]
12 | })
13 | .compileComponents();
14 | });
15 |
16 | beforeEach(() => {
17 | fixture = TestBed.createComponent(TmdbMoviesComponent);
18 | component = fixture.componentInstance;
19 | fixture.detectChanges();
20 | });
21 |
22 | it('should create', () => {
23 | expect(component).toBeTruthy();
24 | });
25 | });
26 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/SampleBrowserForm.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System.ComponentModel;
3 |
4 | namespace EdgeSharp.WinForms.Sample
5 | {
6 | public class SampleBrowserForm : BrowserForm
7 | {
8 | private AppBuilder _appBuilder;
9 |
10 | public SampleBrowserForm()
11 | {
12 | Width = 1200;
13 | Height = 900;
14 | this.SetAppIcon();
15 | }
16 |
17 | protected override void Bootstrap()
18 | {
19 | //_appBuilder = new AppBuilder();
20 | //ServiceLocator.Bootstrap(_appBuilder);
21 | //base.Bootstrap();
22 | }
23 |
24 | protected override void OnClosing(CancelEventArgs e)
25 | {
26 | //_appBuilder?.Stop();
27 | base.OnClosing(e);
28 | }
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System.Windows;
3 |
4 | namespace EdgeSharp.Wpf.Sample
5 | {
6 | ///
7 | /// Interaction logic for App.xaml
8 | ///
9 | public partial class App : Application
10 | {
11 | private AppBuilder _appBuilder;
12 | protected override void OnStartup(StartupEventArgs e)
13 | {
14 | _appBuilder = new AppBuilder();
15 | ServiceLocator.Bootstrap(_appBuilder);
16 |
17 | // MainWindow mainWindow = new MainWindow();
18 | SampleWindow mainWindow = new SampleWindow();
19 | mainWindow.Show();
20 | }
21 |
22 | protected override void OnExit(ExitEventArgs e)
23 | {
24 | _appBuilder?.Stop();
25 | base.OnExit(e);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/SampleBrowserForm.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System.ComponentModel;
3 |
4 | namespace EdgeSharp.WinForms.Razor.Sample
5 | {
6 | public class SampleBrowserForm : BrowserForm
7 | {
8 | private AppBuilder _appBuilder;
9 |
10 | public SampleBrowserForm()
11 | {
12 | Width = 1200;
13 | Height = 900;
14 | this.SetAppIcon();
15 | }
16 |
17 | protected override void Bootstrap()
18 | {
19 | //_appBuilder = new AppBuilder();
20 | //ServiceLocator.Bootstrap(_appBuilder);
21 | //base.Bootstrap();
22 | }
23 |
24 | protected override void OnClosing(CancelEventArgs e)
25 | {
26 | //_appBuilder?.Stop();
27 | base.OnClosing(e);
28 | }
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/Pages/Error.cshtml.cs:
--------------------------------------------------------------------------------
1 | using System.Diagnostics;
2 | using Microsoft.AspNetCore.Mvc;
3 | using Microsoft.AspNetCore.Mvc.RazorPages;
4 | using Microsoft.Extensions.Logging;
5 |
6 | namespace EdgeSharp.Wpf.RazorPages.Sample.Pages
7 | {
8 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
9 | public class ErrorModel : PageModel
10 | {
11 | public string RequestId { get; set; }
12 |
13 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
14 |
15 | private readonly ILogger _logger;
16 |
17 | public ErrorModel(ILogger logger)
18 | {
19 | _logger = logger;
20 | }
21 |
22 | public void OnGet()
23 | {
24 | RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/test.ts:
--------------------------------------------------------------------------------
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2 |
3 | import 'zone.js/testing';
4 | import { getTestBed } from '@angular/core/testing';
5 | import {
6 | BrowserDynamicTestingModule,
7 | platformBrowserDynamicTesting
8 | } from '@angular/platform-browser-dynamic/testing';
9 |
10 | declare const require: {
11 | context(path: string, deep?: boolean, filter?: RegExp): {
12 | keys(): string[];
13 | (id: string): T;
14 | };
15 | };
16 |
17 | // First, initialize the Angular testing environment.
18 | getTestBed().initTestEnvironment(
19 | BrowserDynamicTestingModule,
20 | platformBrowserDynamicTesting()
21 | );
22 | // Then we find all the tests.
23 | const context = require.context('./', true, /\.spec\.ts$/);
24 | // And load the modules.
25 | context.keys().map(context);
26 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System.Windows;
3 |
4 | namespace EdgeSharp.Wpf.RazorPages.Sample
5 | {
6 | ///
7 | /// Interaction logic for App.xaml
8 | ///
9 | public partial class App : Application
10 | {
11 | private OwinAppBuilder _owinAppBuilder;
12 | protected override void OnStartup(StartupEventArgs e)
13 | {
14 | _owinAppBuilder = new OwinAppBuilder();
15 | ServiceLocator.Bootstrap(_owinAppBuilder);
16 |
17 | //MainWindow mainWindow = new MainWindow();
18 | SampleWindow mainWindow = new SampleWindow();
19 | mainWindow.Show();
20 | }
21 |
22 | protected override void OnExit(ExitEventArgs e)
23 | {
24 | _owinAppBuilder?.Stop();
25 |
26 | base.OnExit(e);
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/tsconfig.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "compileOnSave": false,
4 | "compilerOptions": {
5 | "baseUrl": "./",
6 | "outDir": "./dist/out-tsc",
7 | "forceConsistentCasingInFileNames": true,
8 | "strict": true,
9 | "noImplicitReturns": true,
10 | "noFallthroughCasesInSwitch": true,
11 | "sourceMap": true,
12 | "declaration": false,
13 | "downlevelIteration": true,
14 | "experimentalDecorators": true,
15 | "moduleResolution": "node",
16 | "importHelpers": true,
17 | "target": "es2017",
18 | "module": "es2020",
19 | "lib": [
20 | "es2018",
21 | "dom"
22 | ]
23 | },
24 | "angularCompilerOptions": {
25 | "enableI18nLegacyMessageIdFormat": false,
26 | "strictInjectionParameters": true,
27 | "strictInputAccessModifiers": true,
28 | "strictTemplates": true
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/Program.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System;
3 | using System.Windows.Forms;
4 |
5 | namespace EdgeSharp.WinForms.Sample
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.SetHighDpiMode(HighDpiMode.SystemAware);
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 |
19 | var appBuilder = new AppBuilder();
20 | ServiceLocator.Bootstrap(appBuilder);
21 |
22 | var bowserForm = (BrowserForm)ServiceLocator.Current.GetInstance();
23 | Application.Run(bowserForm);
24 |
25 | // Application.Run(new Form1());
26 |
27 | appBuilder?.Stop();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Sample/app/pages/moviedetails.js:
--------------------------------------------------------------------------------
1 | async function loadMovie() {
2 | try {
3 | var query = '';
4 | if (tempData.urlQueryPart !== null) {
5 | query = tempData.urlQueryPart;
6 | tempData.urlQueryPart = null;
7 | }
8 |
9 | let remObject = await window.chrome.webview.hostObjects.execute;
10 | let result = await remObject.Send('/moviedetails/get' + query, null);
11 |
12 | if (result !== null) {
13 | var jsonData = JSON.parse(result);
14 | document.getElementById("detTitle").innerHTML = jsonData.Title;
15 | document.getElementById("detReleaseDate").innerHTML = jsonData.ReleaseDate;
16 | document.getElementById("detGenre").innerHTML = jsonData.Genre;
17 | document.getElementById("detPrice").innerHTML = jsonData.Price;
18 | }
19 |
20 | } catch (err) {
21 | console.error(error);
22 | }
23 | }
24 |
25 | loadMovie();
26 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/app/pages/moviedetails.js:
--------------------------------------------------------------------------------
1 | async function loadMovie() {
2 | try {
3 | var query = '';
4 | if (tempData.urlQueryPart !== null) {
5 | query = tempData.urlQueryPart;
6 | tempData.urlQueryPart = null;
7 | }
8 |
9 | let remObject = await window.chrome.webview.hostObjects.execute;
10 | let result = await remObject.Send('/moviedetails/get' + query, null);
11 |
12 | if (result !== null) {
13 | var jsonData = JSON.parse(result);
14 | document.getElementById("detTitle").innerHTML = jsonData.Title;
15 | document.getElementById("detReleaseDate").innerHTML = jsonData.ReleaseDate;
16 | document.getElementById("detGenre").innerHTML = jsonData.Genre;
17 | document.getElementById("detPrice").innerHTML = jsonData.Price;
18 | }
19 |
20 | } catch (err) {
21 | console.error(error);
22 | }
23 | }
24 |
25 | loadMovie();
26 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Sample/app/pages/moviecreate.js:
--------------------------------------------------------------------------------
1 | async function createMovie() {
2 | try {
3 | var movie = {};
4 | movie.Title = document.getElementById("createTitle").value;
5 | movie.Rating = document.getElementById("createRating").value;
6 | movie.ReleaseDate = document.getElementById("createReleaseDate").valueAsDate;
7 | movie.Genre = document.getElementById("createGenre").value;
8 | var price = document.getElementById("createPrice").value;
9 | movie.Price = parseFloat(price);
10 |
11 | var request = {};
12 | request.movie = movie;
13 |
14 | let remObject = await window.chrome.webview.hostObjects.execute;
15 | let result = await remObject.Send('/moviecreate/post', JSON.stringify(request));
16 |
17 | if (result === true || result === 'true') {
18 | navigateTo('/movies');
19 | }
20 |
21 | } catch (err) {
22 | console.error(error);
23 | }
24 | }
25 |
26 |
27 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/Program.cs:
--------------------------------------------------------------------------------
1 | using EdgeSharp.Core;
2 | using System;
3 | using System.Windows.Forms;
4 |
5 | namespace EdgeSharp.WinForms.Razor.Sample
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.SetHighDpiMode(HighDpiMode.SystemAware);
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 |
19 | var appBuilder = new OwinAppBuilder();
20 | ServiceLocator.Bootstrap(appBuilder);
21 |
22 | var bowserForm = (BrowserForm)ServiceLocator.Current.GetInstance();
23 | Application.Run(bowserForm);
24 |
25 | //Application.Run(new Form1());
26 |
27 | appBuilder?.Stop();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/app/pages/moviedetails.js:
--------------------------------------------------------------------------------
1 | async function loadMovie() {
2 | try {
3 | var query = '';
4 | if (tempData.urlQueryPart !== null) {
5 | query = tempData.urlQueryPart;
6 | tempData.urlQueryPart = null;
7 | }
8 |
9 | let remObject = await window.chrome.webview.hostObjects.execute;
10 | let result = await remObject.Send('/moviedetails/get' + query, null);
11 |
12 | if (result !== null) {
13 | var jsonData = JSON.parse(result);
14 | document.getElementById("detTitle").innerHTML = jsonData.Title;
15 | document.getElementById("detReleaseDate").innerHTML = jsonData.ReleaseDate;
16 | document.getElementById("detGenre").innerHTML = jsonData.Genre;
17 | document.getElementById("detPrice").innerHTML = jsonData.Price;
18 | }
19 |
20 | } catch (err) {
21 | console.error(error);
22 | }
23 | }
24 |
25 | loadMovie();
26 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/app/pages/moviecreate.js:
--------------------------------------------------------------------------------
1 | async function createMovie() {
2 | try {
3 | var movie = {};
4 | movie.Title = document.getElementById("createTitle").value;
5 | movie.Rating = document.getElementById("createRating").value;
6 | movie.ReleaseDate = document.getElementById("createReleaseDate").valueAsDate;
7 | movie.Genre = document.getElementById("createGenre").value;
8 | var price = document.getElementById("createPrice").value;
9 | movie.Price = parseFloat(price);
10 |
11 | var request = {};
12 | request.movie = movie;
13 |
14 | let remObject = await window.chrome.webview.hostObjects.execute;
15 | let result = await remObject.Send('/moviecreate/post', JSON.stringify(request));
16 |
17 | if (result === true || result === 'true') {
18 | navigateTo('/movies');
19 | }
20 |
21 | } catch (err) {
22 | console.error(error);
23 | }
24 | }
25 |
26 |
27 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 | import { BrowserModule } from '@angular/platform-browser';
3 | import { FormsModule } from '@angular/forms';
4 |
5 | import { AppRoutingModule } from './app-routing.module';
6 | import { AppComponent } from './app.component';
7 | import { HomeComponent } from './components/home/home.component';
8 | import { TmdbMoviesComponent } from './components/tmdbmovies/tmdb-movies.component';
9 | import { ServiceConfig } from './services/service.config';
10 | import { ActionClientService } from './services/action.controller.client.service';
11 |
12 | @NgModule({
13 | declarations: [
14 | AppComponent,
15 | HomeComponent,
16 | TmdbMoviesComponent
17 | ],
18 | imports: [
19 | BrowserModule,
20 | FormsModule,
21 | AppRoutingModule
22 | ],
23 | providers: [ServiceConfig, ActionClientService],
24 | bootstrap: [AppComponent]
25 | })
26 | export class AppModule { }
27 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/app/pages/moviecreate.js:
--------------------------------------------------------------------------------
1 | async function createMovie() {
2 | try {
3 | var movie = {};
4 | movie.Title = document.getElementById("createTitle").value;
5 | movie.Rating = document.getElementById("createRating").value;
6 | movie.ReleaseDate = document.getElementById("createReleaseDate").valueAsDate;
7 | movie.Genre = document.getElementById("createGenre").value;
8 | var price = document.getElementById("createPrice").value;
9 | movie.Price = parseFloat(price);
10 |
11 | var request = {};
12 | request.movie = movie;
13 |
14 | let remObject = await window.chrome.webview.hostObjects.execute;
15 | let result = await remObject.Send('/moviecreate/post', JSON.stringify(request));
16 |
17 | if (result === true || result === 'true') {
18 | navigateTo('/movies');
19 | }
20 |
21 | } catch (err) {
22 | console.error(error);
23 | }
24 | }
25 |
26 |
27 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Shared/EdgeSharp.Shared.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 | AnyCPU
6 | true
7 | embedded
8 | true
9 | true
10 | true
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/reactapp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reactapp",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "build": "webpack --mode production",
8 | "start": "webpack serve --mode development"
9 | },
10 | "keywords": [],
11 | "author": "",
12 | "license": "ISC",
13 | "dependencies": {
14 | "@babel/runtime": "^7.14.6",
15 | "axios": "^0.21.1",
16 | "jquery": "^3.6.0",
17 | "popper.js": "^1.16.1",
18 | "react": "^17.0.2",
19 | "react-dom": "^17.0.2",
20 | "react-router-dom": "^5.2.0",
21 | "react-scripts": "^4.0.3"
22 | },
23 | "devDependencies": {
24 | "@babel/core": "^7.14.6",
25 | "@babel/plugin-transform-runtime": "^7.14.5",
26 | "@babel/preset-env": "^7.14.7",
27 | "@babel/preset-react": "^7.14.5",
28 | "babel-loader": "^8.2.2",
29 | "html-webpack-plugin": "^5.3.2",
30 | "webpack": "^5.40.0",
31 | "webpack-cli": "^4.7.2"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Shared/EdgeSharp.Shared.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net5.0
5 | AnyCPU
6 | true
7 | embedded
8 | true
9 | true
10 | true
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/Pages/Error.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model ErrorModel
3 | @{
4 | ViewData["Title"] = "Error";
5 | }
6 |
7 |
Error.
8 |
An error occurred while processing your request.
9 |
10 | @if (Model.ShowRequestId)
11 | {
12 |
13 | Request ID:@Model.RequestId
14 |
15 | }
16 |
17 |
Development Mode
18 |
19 | Swapping to the Development environment displays detailed information about the error that occurred.
20 |
21 |
22 | The Development environment shouldn't be enabled for deployed applications.
23 | It can result in displaying sensitive information from exceptions to end users.
24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
25 | and restarting the app.
26 |
18 | Swapping to Development environment will display more detailed information about the error that occurred.
19 |
20 |
21 | The Development environment shouldn't be enabled for deployed applications.
22 | It can result in displaying sensitive information from exceptions to end users.
23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
24 | and restarting the app.
25 |
18 | Swapping to Development environment will display more detailed information about the error that occurred.
19 |
20 |
21 | The Development environment shouldn't be enabled for deployed applications.
22 | It can result in displaying sensitive information from exceptions to end users.
23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
24 | and restarting the app.
25 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.Angular.Sample/angularapp/README.md:
--------------------------------------------------------------------------------
1 | # Angularapp
2 |
3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.5.
4 |
5 | ## Development server
6 |
7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8 |
9 | ## Code scaffolding
10 |
11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12 |
13 | ## Build
14 |
15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16 |
17 | ## Running unit tests
18 |
19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20 |
21 | ## Running end-to-end tests
22 |
23 | Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24 |
25 | ## Further help
26 |
27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
28 |
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Sample/app/jquery-validation/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright Jörn Zaefferer
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/app/jquery-validation/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright Jörn Zaefferer
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/angular-react-vue/EdgeSharp.React.Sample/reactapp/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require("path");
2 | const HtmlWebPackPlugin = require("html-webpack-plugin");
3 |
4 | module.exports = {
5 | entry: "/src/index.js",
6 | output: {
7 | path: path.resolve(__dirname, "dist"),
8 | },
9 | devServer: {
10 | publicPath: "/",
11 | contentBase: "./dist",
12 | hot: true,
13 | open: true,
14 | watchOptions: {
15 | ignored: /node_modules/,
16 | poll: 1000,
17 | },
18 | port: 9000,
19 | historyApiFallback: true,
20 | },
21 | module: {
22 | rules: [
23 | {
24 | test: /\.(js|jsx)$/,
25 | exclude: /node_modules/,
26 | use: {
27 | loader: "babel-loader",
28 | options: {
29 | presets: ["@babel/preset-env", "@babel/preset-react"],
30 | plugins: ['@babel/plugin-transform-runtime']
31 | },
32 | },
33 | },
34 | {
35 | test: /\.css$/,
36 | include: path.resolve(__dirname, "src"),
37 | use: ["style-loader", "css-loader"],
38 | },
39 | ],
40 | },
41 | plugins: [
42 | new HtmlWebPackPlugin({
43 | template: "./src/index.html",
44 | }),
45 | ],
46 | };
--------------------------------------------------------------------------------
/win-32/EdgeSharp.Razor.Sample/assets/jquery-validation/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright Jörn Zaefferer
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Sample/app/jquery-validation/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright Jörn Zaefferer
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.RazorPages.Sample/assets/jquery-validation/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright Jörn Zaefferer
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/assets/jquery-validation/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright Jörn Zaefferer
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/wpf/EdgeSharp.Wpf.Sample/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/winform/EdgeSharp.WinForms.Razor.Sample/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{ ViewData["Title"] = "Home Page"; }
2 |
3 |