diff --git a/Pf2e/Scrapper/Importers/Implementations/Aonprd/Helpers/RuleToc.cs b/Pf2e/Scrapper/Importers/Implementations/Aonprd/Helpers/RuleToc.cs index f4b9284..fc6f4a3 100644 --- a/Pf2e/Scrapper/Importers/Implementations/Aonprd/Helpers/RuleToc.cs +++ b/Pf2e/Scrapper/Importers/Implementations/Aonprd/Helpers/RuleToc.cs @@ -108,7 +108,7 @@ public class RuleTocCollection /// /// Класс представляет собой книгу, содержащую правила. /// -internal class RuleTocBook(Source source) +public class RuleTocBook(Source source) { /// /// Идентификатор источника. @@ -222,7 +222,7 @@ internal class RuleTocBook(Source source) /// /// Класс представляет собой элемент дерева правил. /// -internal class RuleTocItem(string name, RuleTocItem? parent) +public class RuleTocItem(string name, RuleTocItem? parent) { public string? Id { get; set; } = null; diff --git a/Pf2e/Scrapper/Importers/Implementations/FoundryEn/Processors/FoundryEnAbstractProcessor.cs b/Pf2e/Scrapper/Importers/Implementations/FoundryEn/Processors/FoundryEnAbstractProcessor.cs index 70c7142..9b6d4eb 100644 --- a/Pf2e/Scrapper/Importers/Implementations/FoundryEn/Processors/FoundryEnAbstractProcessor.cs +++ b/Pf2e/Scrapper/Importers/Implementations/FoundryEn/Processors/FoundryEnAbstractProcessor.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json.Linq; +using Pf2e.Common; using Pf2e.Database; using Pf2e.Database.Model; using Pf2e.Database.Model.Base; diff --git a/Pf2e/Scrapper/Program.cs b/Pf2e/Scrapper/Program.cs deleted file mode 100644 index 24d2a75..0000000 --- a/Pf2e/Scrapper/Program.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Windows; -using Microsoft.Extensions.DependencyInjection; -using Pf2e.Scrapper.Importers.Implementations.Aonprd; -using Pf2e.Scrapper.Importers.Implementations.FoundryEn; -using Pf2e.Scrapper.WPF; - -namespace Pf2e.Scrapper; - -public static class Program -{ - /// - /// The main entry point for the application. - /// - [STAThread] - public static void Main() - { - // To customize application configuration such as set high DPI settings or default font, - // see https://aka.ms/applicationconfiguration. - ApplicationConfiguration.Initialize(); - - // Application.SetHighDpiMode(HighDpiMode.SystemAware); - /* -#pragma warning disable WFO5001 - Application.SetColorMode(SystemColorMode.System); -#pragma warning restore WFO5001 - */ - IServiceCollection services = RegisterServices(); - - IServiceProvider serviceProvider = services.BuildServiceProvider(); - - ImportApplication app = ActivatorUtilities.CreateInstance( - serviceProvider - ); - - app.Run(); - // Application.Run(app); - } - - private static IServiceCollection RegisterServices() - { - IServiceCollection services = new ServiceCollection(); - - services.RegisterWpfServices(); - - ImportApplication.RegisterServices(services); - - AonprdImporter.RegisterServices(services); - FoundryEnImporter.RegisterServices(services); - - return services; - } -} diff --git a/Pf2e/WPF/EntityViewer/EntityForm.xaml.cs b/Pf2e/WPF/EntityViewer/EntityForm.xaml.cs index 3ce53bd..633dfae 100644 --- a/Pf2e/WPF/EntityViewer/EntityForm.xaml.cs +++ b/Pf2e/WPF/EntityViewer/EntityForm.xaml.cs @@ -1,8 +1,7 @@ using System.Collections.ObjectModel; using System.Windows; using Pf2e.Database; -using Pf2e.Database.Model.Enum; -using Pf2e.Scrapper.WPF.EntityViewer.ViewModel; +using Pf2e.WPF.EntityViewer.ViewModel; namespace Pf2e.WPF.EntityViewer; diff --git a/Pf2e/WPF/EntityViewer/ViewModel/EntityFormViewModel.cs b/Pf2e/WPF/EntityViewer/ViewModel/EntityFormViewModel.cs index ed2c990..9b520d2 100644 --- a/Pf2e/WPF/EntityViewer/ViewModel/EntityFormViewModel.cs +++ b/Pf2e/WPF/EntityViewer/ViewModel/EntityFormViewModel.cs @@ -5,6 +5,7 @@ using Pf2e.Database; using Pf2e.Database.Model.Base; using Pf2e.Database.Model.Enum; using Pf2e.Scrapper.WPF.EntityViewer.Stores; +using Pf2e.WPF.EntityViewer.Stores; namespace Pf2e.WPF.EntityViewer.ViewModel; diff --git a/Pf2e/WPF/EntityViewer/ViewModel/EntityListViewModel.cs b/Pf2e/WPF/EntityViewer/ViewModel/EntityListViewModel.cs index f90f9d8..1c19f08 100644 --- a/Pf2e/WPF/EntityViewer/ViewModel/EntityListViewModel.cs +++ b/Pf2e/WPF/EntityViewer/ViewModel/EntityListViewModel.cs @@ -6,6 +6,7 @@ using Pf2e.Database; using Pf2e.Database.Model.Base; using Pf2e.Database.Model.Enum; using Pf2e.Scrapper.WPF.EntityViewer.Stores; +using Pf2e.WPF.EntityViewer.Stores; namespace Pf2e.WPF.EntityViewer.ViewModel; diff --git a/Pf2e/WPF/EntityViewer/ViewModel/ViewViewModel.cs b/Pf2e/WPF/EntityViewer/ViewModel/ViewViewModel.cs index 0be6be3..073b2d7 100644 --- a/Pf2e/WPF/EntityViewer/ViewModel/ViewViewModel.cs +++ b/Pf2e/WPF/EntityViewer/ViewModel/ViewViewModel.cs @@ -1,10 +1,13 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using Pf2e.Common; using Pf2e.Database; using Pf2e.Scrapper.Helpers; using Pf2e.Scrapper.WPF.EntityViewer.EntityViewStructure; using Pf2e.Scrapper.WPF.EntityViewer.Stores; +using Pf2e.WPF.EntityViewer.EntityViewStructure; +using Pf2e.WPF.EntityViewer.Stores; namespace Pf2e.WPF.EntityViewer.ViewModel; diff --git a/Pf2e/Scrapper/ImportApplication.cs b/Pf2e/WPF/ImportApplication.cs similarity index 98% rename from Pf2e/Scrapper/ImportApplication.cs rename to Pf2e/WPF/ImportApplication.cs index be680c6..6d413d3 100644 --- a/Pf2e/Scrapper/ImportApplication.cs +++ b/Pf2e/WPF/ImportApplication.cs @@ -3,12 +3,16 @@ using System.ComponentModel; using System.Windows; using Microsoft.Extensions.DependencyInjection; using Pf2e.Database; +using Pf2e.Scrapper; using Pf2e.Scrapper.Helpers; using Pf2e.Scrapper.Processors; using Pf2e.Scrapper.Processors.Collection; +using Pf2e.WPF.EntityViewer; +using Pf2e.WPF.Progress; +using Pf2e.WPF.Start; using Slugify; -namespace Pf2e.Scrapper; +namespace Pf2e.WPF; public sealed class ImportApplication : Application { diff --git a/Pf2e/WPF/Pf2e.WPF.csproj b/Pf2e/WPF/Pf2e.WPF.csproj index aebb669..4d593e1 100644 --- a/Pf2e/WPF/Pf2e.WPF.csproj +++ b/Pf2e/WPF/Pf2e.WPF.csproj @@ -30,13 +30,13 @@ Code - + Code - + Code - + Code diff --git a/Pf2e/WPF/Program.cs b/Pf2e/WPF/Program.cs index 24d2a75..17efe21 100644 --- a/Pf2e/WPF/Program.cs +++ b/Pf2e/WPF/Program.cs @@ -4,8 +4,9 @@ using Microsoft.Extensions.DependencyInjection; using Pf2e.Scrapper.Importers.Implementations.Aonprd; using Pf2e.Scrapper.Importers.Implementations.FoundryEn; using Pf2e.Scrapper.WPF; +using Pf2e.WPF; -namespace Pf2e.Scrapper; +namespace Pf2e.WPF; public static class Program { diff --git a/Pf2e/WPF/ProgressForm/ProgressForm.xaml b/Pf2e/WPF/Progress/ProgressForm.xaml similarity index 98% rename from Pf2e/WPF/ProgressForm/ProgressForm.xaml rename to Pf2e/WPF/Progress/ProgressForm.xaml index 467f33d..c6a0110 100644 --- a/Pf2e/WPF/ProgressForm/ProgressForm.xaml +++ b/Pf2e/WPF/Progress/ProgressForm.xaml @@ -1,5 +1,5 @@  /// Логика взаимодействия для ProgressFormWpf.xaml diff --git a/Pf2e/WPF/StartForm/Components/ProcessorCollectionControl.xaml b/Pf2e/WPF/Start/Components/ProcessorCollectionControl.xaml similarity index 99% rename from Pf2e/WPF/StartForm/Components/ProcessorCollectionControl.xaml rename to Pf2e/WPF/Start/Components/ProcessorCollectionControl.xaml index ca4be5f..9971331 100644 --- a/Pf2e/WPF/StartForm/Components/ProcessorCollectionControl.xaml +++ b/Pf2e/WPF/Start/Components/ProcessorCollectionControl.xaml @@ -1,5 +1,5 @@  /// Логика взаимодействия для ProcessorCollectionControl.xaml diff --git a/Pf2e/WPF/StartForm/StartForm.xaml b/Pf2e/WPF/Start/StartForm.xaml similarity index 94% rename from Pf2e/WPF/StartForm/StartForm.xaml rename to Pf2e/WPF/Start/StartForm.xaml index 8a53887..789afe0 100644 --- a/Pf2e/WPF/StartForm/StartForm.xaml +++ b/Pf2e/WPF/Start/StartForm.xaml @@ -1,8 +1,8 @@  /// Класс начальной формы приложения. diff --git a/Pf2e/WPF/WpfServiceProviderExtension.cs b/Pf2e/WPF/WpfServiceProviderExtension.cs index d25b7ec..0a2efd6 100644 --- a/Pf2e/WPF/WpfServiceProviderExtension.cs +++ b/Pf2e/WPF/WpfServiceProviderExtension.cs @@ -1,6 +1,8 @@ using Microsoft.Extensions.DependencyInjection; using Pf2e.Scrapper.WPF.EntityViewer.Stores; using Pf2e.Scrapper.WPF.EntityViewer.ViewModel; +using Pf2e.WPF.EntityViewer.Stores; +using Pf2e.WPF.EntityViewer.ViewModel; namespace Pf2e.WPF; diff --git a/Pf2e/Web/Pages/Entity.cshtml b/Pf2e/Web/Pages/Entity.cshtml index 304ccb5..612fda8 100644 --- a/Pf2e/Web/Pages/Entity.cshtml +++ b/Pf2e/Web/Pages/Entity.cshtml @@ -12,34 +12,34 @@
- @Html.DisplayNameFor(model => model.Class.Entity) + @Html.DisplayNameFor(model => model.Entity.Entity)
- @Html.DisplayFor(model => model.Class.Entity.Description) -
-
- @Html.DisplayNameFor(model => model.Class.Hp) -
-
- @Html.DisplayFor(model => model.Class.Hp) -
-
- @Html.DisplayNameFor(model => model.Class.Spellcasting) -
-
- @Html.DisplayFor(model => model.Class.Spellcasting) -
-
- @Html.DisplayNameFor(model => model.Class.Tradition) -
-
- @Html.DisplayFor(model => model.Class.Tradition) -
-
- @Html.DisplayNameFor(model => model.Class.AdditionalTrainedSkills) -
-
- @Html.DisplayFor(model => model.Class.AdditionalTrainedSkills) + @Html.DisplayFor(model => model.Entity.Entity.Description)
+ @*
*@ + @* @Html.DisplayNameFor(model => model.Entity.Hp) *@ + @*
*@ + @*
*@ + @* @Html.DisplayFor(model => model.Entity.Hp) *@ + @*
*@ + @*
*@ + @* @Html.DisplayNameFor(model => model.Entity.Spellcasting) *@ + @*
*@ + @*
*@ + @* @Html.DisplayFor(model => model.Entity.Spellcasting) *@ + @*
*@ + @*
*@ + @* @Html.DisplayNameFor(model => model.Entity.Tradition) *@ + @*
*@ + @*
*@ + @* @Html.DisplayFor(model => model.Entity.Tradition) *@ + @*
*@ + @*
*@ + @* @Html.DisplayNameFor(model => model.Entity.AdditionalTrainedSkills) *@ + @*
*@ + @*
*@ + @* @Html.DisplayFor(model => model.Entity.AdditionalTrainedSkills) *@ + @*
*@
\ No newline at end of file