From 5dc40b868a598b9208af90dc4ffa3235bdff97c3 Mon Sep 17 00:00:00 2001 From: Miguel Marques Date: Mon, 30 Oct 2023 15:41:04 +0000 Subject: [PATCH] fix encondings --- ReactViewControl/IViewModule.cs | 82 ++++++++++----------- Sample.Avalonia/ExtendedReactViewFactory.cs | 76 +++++++++---------- 2 files changed, 79 insertions(+), 79 deletions(-) diff --git a/ReactViewControl/IViewModule.cs b/ReactViewControl/IViewModule.cs index 058c5a5a..c4b2f92b 100644 --- a/ReactViewControl/IViewModule.cs +++ b/ReactViewControl/IViewModule.cs @@ -1,41 +1,41 @@ -using System.Collections.Generic; - -namespace ReactViewControl { - - public interface IViewModule { - - public string MainJsSource { get; } - - IModuleDependenciesProvider DependenciesProvider{ get; set; } - - string[] DependencyJsSources { get; } - - string[] CssSources { get; } - - string NativeObjectName { get; } - - string Name { get; } - - string Source { get; } - - object CreateNativeObject(); - - string[] Events { get; } - - KeyValuePair[] PropertiesValues { get; } - - void Bind(IFrame frame, IChildViewHost host = null); - - event CustomResourceRequestedEventHandler CustomResourceRequested; - - T WithPlugin(); - - void Load(); - - bool AddChildView(IViewModule childView, string frameName); - - T GetOrAddChildView(string frameName) where T : IViewModule, new(); - - ReactView Host { get; } - } -} +using System.Collections.Generic; + +namespace ReactViewControl { + + public interface IViewModule { + + public string MainJsSource { get; } + + IModuleDependenciesProvider DependenciesProvider{ get; set; } + + string[] DependencyJsSources { get; } + + string[] CssSources { get; } + + string NativeObjectName { get; } + + string Name { get; } + + string Source { get; } + + object CreateNativeObject(); + + string[] Events { get; } + + KeyValuePair[] PropertiesValues { get; } + + void Bind(IFrame frame, IChildViewHost host = null); + + event CustomResourceRequestedEventHandler CustomResourceRequested; + + T WithPlugin(); + + void Load(); + + bool AddChildView(IViewModule childView, string frameName); + + T GetOrAddChildView(string frameName) where T : IViewModule, new(); + + ReactView Host { get; } + } +} \ No newline at end of file diff --git a/Sample.Avalonia/ExtendedReactViewFactory.cs b/Sample.Avalonia/ExtendedReactViewFactory.cs index 27d7f686..836c43af 100644 --- a/Sample.Avalonia/ExtendedReactViewFactory.cs +++ b/Sample.Avalonia/ExtendedReactViewFactory.cs @@ -1,38 +1,38 @@ -using System; -using ReactViewControl; -using WebViewControl; - -namespace Sample.Avalonia { - - internal class ExtendedReactViewFactory : ReactViewFactory { - private static WebPackDependenciesProvider provider = new WebPackDependenciesProvider(new Uri("http://localhost:8080/Sample.Avalonia/")); - - public override ResourceUrl DefaultStyleSheet => - new ResourceUrl(typeof(ExtendedReactViewFactory).Assembly, "Generated", Settings.IsLightTheme ? "LightTheme.css" : "DarkTheme.css"); - - public override IViewModule[] InitializePlugins() { - var viewPlugin = new ViewPlugin(); -#if DEBUG - if (DevServerURI != null) { - viewPlugin.DependenciesProvider = ModuleDependenciesProvider; - } -#endif - return new[]{ - viewPlugin - }; - } - - public override bool ShowDeveloperTools => false; - - public override bool EnableViewPreload => true; - -#if DEBUG - public override bool EnableDebugMode => true; - - public override Uri DevServerURI => new Uri("http://localhost:8080/Sample.Avalonia/"); - - public override IModuleDependenciesProvider ModuleDependenciesProvider => - provider; -#endif - } -} +using System; +using ReactViewControl; +using WebViewControl; + +namespace Sample.Avalonia { + + internal class ExtendedReactViewFactory : ReactViewFactory { + private static WebPackDependenciesProvider provider = new WebPackDependenciesProvider(new Uri("http://localhost:8080/Sample.Avalonia/")); + + public override ResourceUrl DefaultStyleSheet => + new ResourceUrl(typeof(ExtendedReactViewFactory).Assembly, "Generated", Settings.IsLightTheme ? "LightTheme.css" : "DarkTheme.css"); + + public override IViewModule[] InitializePlugins() { + var viewPlugin = new ViewPlugin(); +#if DEBUG + if (DevServerURI != null) { + viewPlugin.DependenciesProvider = ModuleDependenciesProvider; + } +#endif + return new[]{ + viewPlugin + }; + } + + public override bool ShowDeveloperTools => false; + + public override bool EnableViewPreload => true; + +#if DEBUG + public override bool EnableDebugMode => true; + + public override Uri DevServerURI => new Uri("http://localhost:8080/Sample.Avalonia/"); + + public override IModuleDependenciesProvider ModuleDependenciesProvider => + provider; +#endif + } +} \ No newline at end of file