• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

なろうブックマーク分析用ツールのPrism+WPFサンプル実装


Commit MetaInfo

Revision733d12dc4d9cc29a2c33cde29a12dcb71f580369 (tree)
Time2022-08-07 15:05:57
Authoryoshy <yoshy.org.bitbucket@gz.j...>
Commiteryoshy

Log Message

[CLEAN] コードクリーンアップの適用

Change Summary

Incremental Difference

--- a/10Domain/Boundary/Service/INarouService.cs
+++ b/10Domain/Boundary/Service/INarouService.cs
@@ -1,9 +1,4 @@
1-using System;
2-using System.Collections.Generic;
3-using System.Linq;
4-using System.Text;
5-using System.Threading.Tasks;
6-using TestNarou.Domain.Model.Entity;
1+using TestNarou.Domain.Model.Entity;
72
83 namespace TestNarou.Domain.Boundary.Service
94 {
--- a/10Domain/Model/API/NarouCategoryInfo.cs
+++ b/10Domain/Model/API/NarouCategoryInfo.cs
@@ -1,10 +1,4 @@
1-using System;
2-using System.Collections.Generic;
3-using System.Linq;
4-using System.Text;
5-using System.Threading.Tasks;
6-
7-namespace TestNarou.Domain.Model.API
1+namespace TestNarou.Domain.Model.API
82 {
93 public record class NarouCategoryInfo(
104 string Name,
--- a/10Domain/Translator/BookmarkCategoryRowTranslator.cs
+++ b/10Domain/Translator/BookmarkCategoryRowTranslator.cs
@@ -1,8 +1,4 @@
11 using AutoMapper;
2-using Reactive.Bindings.Extensions;
3-using TestNarou.Adaptor.Boundary.Gateway.ViewModel.Child;
4-using TestNarou.Adaptor.Gateway.ViewModel.Child;
5-using TestNarou.Adaptor.Translator.Converter;
62 using TestNarou.Domain.Model.API;
73 using TestNarou.Domain.Model.Entity.Child;
84
--- a/20UseCase/Interactor/AppConfigLoadInteractor.cs
+++ b/20UseCase/Interactor/AppConfigLoadInteractor.cs
@@ -3,7 +3,6 @@ using CleanAuLait.UseCase.Interactor;
33 using CleanAuLait.UseCase.Response;
44 using TestNarou.Domain.Boundary.Service;
55 using TestNarou.Domain.Model.Config;
6-using TestNarou.Domain.Model.Entity;
76 using TestNarou.UseCase.Boundary.Interactor;
87 using TestNarou.UseCase.Boundary.Presenter;
98 using TestNarou.UseCase.Request;
--- a/20UseCase/Interactor/NarouLogoutInteractor.cs
+++ b/20UseCase/Interactor/NarouLogoutInteractor.cs
@@ -2,9 +2,7 @@
22 using CleanAuLait.UseCase.Interactor;
33 using CleanAuLait.UseCase.Response;
44 using TestNarou.Domain.Boundary.Service;
5-using TestNarou.Domain.Model.Entity;
65 using TestNarou.UseCase.Boundary.Interactor;
7-using TestNarou.UseCase.Boundary.Presenter;
86 using TestNarou.UseCase.Request;
97 using TestNarou.UseCase.Response;
108
--- a/20UseCase/Request/NarouLoginRequest.cs
+++ b/20UseCase/Request/NarouLoginRequest.cs
@@ -1,7 +1,6 @@
11 using CleanAuLait.UseCase.Request;
2-using TestNarou.UseCase.Boundary.Interactor;
32 using System;
4-using System.Collections.Generic;
3+using TestNarou.UseCase.Boundary.Interactor;
54
65 namespace TestNarou.UseCase.Request
76 {
--- a/20UseCase/Request/NarouRefreshBookmarkDetailListRequest.cs
+++ b/20UseCase/Request/NarouRefreshBookmarkDetailListRequest.cs
@@ -1,7 +1,6 @@
11 using CleanAuLait.UseCase.Request;
2-using TestNarou.UseCase.Boundary.Interactor;
32 using System;
4-using System.Collections.Generic;
3+using TestNarou.UseCase.Boundary.Interactor;
54
65 namespace TestNarou.UseCase.Request
76 {
--- a/30Adaptor/AdaptorMappingProfile.cs
+++ b/30Adaptor/AdaptorMappingProfile.cs
@@ -1,5 +1,4 @@
11 using AutoMapper;
2-using AutoMapper.Internal;
32 using TestNarou.Adaptor.Gateway.ViewModel.Child;
43 using TestNarou.Adaptor.Translator;
54 using TestNarou.Domain.Model.Entity.Child;
--- a/30Adaptor/Gateway/ViewModel/BookmarkDetailListViewModel.cs
+++ b/30Adaptor/Gateway/ViewModel/BookmarkDetailListViewModel.cs
@@ -4,7 +4,6 @@ using Prism.Navigation;
44 using Prism.Regions;
55 using Reactive.Bindings;
66 using Reactive.Bindings.Extensions;
7-using System.Collections.Generic;
87 using System.ComponentModel;
98 using System.Diagnostics;
109 using System.Reactive.Disposables;
--- a/30Adaptor/Gateway/ViewModel/Child/BookmarkCategoryRowViewModel.cs
+++ b/30Adaptor/Gateway/ViewModel/Child/BookmarkCategoryRowViewModel.cs
@@ -6,7 +6,6 @@ using TestNarou.Adaptor.Boundary.Gateway.ViewModel;
66 using TestNarou.Adaptor.Boundary.Gateway.ViewModel.Child;
77 using TestNarou.Domain.Model.Entity.Child;
88 using TestNarou.Infra.Core.Resource;
9-using TestNarou.UseCase.Request;
109
1110 namespace TestNarou.Adaptor.Gateway.ViewModel.Child
1211 {
--- a/30Adaptor/Gateway/ViewModel/LoginFormViewModel.cs
+++ b/30Adaptor/Gateway/ViewModel/LoginFormViewModel.cs
@@ -1,6 +1,4 @@
1-using NLog;
2-using Prism.Navigation;
3-using Prism.Regions;
1+using Prism.Navigation;
42 using Reactive.Bindings;
53 using Reactive.Bindings.Extensions;
64 using System.ComponentModel;
--- a/30Adaptor/Presenter/NarouRefreshBookmarkDetailListPresenter.cs
+++ b/30Adaptor/Presenter/NarouRefreshBookmarkDetailListPresenter.cs
@@ -1,5 +1,4 @@
11 using TestNarou.Adaptor.Boundary.Controller;
2-using TestNarou.Adaptor.Boundary.Gateway.ViewModel;
32 using TestNarou.UseCase.Boundary.Presenter;
43 using TestNarou.UseCase.Request;
54 using TestNarou.UseCase.Response;
--- a/40OuterEdge/UI/View/BookmarkCategoryView.xaml
+++ b/40OuterEdge/UI/View/BookmarkCategoryView.xaml
@@ -3,10 +3,7 @@
33 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6- xmlns:bh="http://schemas.microsoft.com/xaml/behaviors"
7- xmlns:rp="clr-namespace:Reactive.Bindings.Interactivity;assembly=ReactiveProperty.WPF"
86 xmlns:vm="clr-namespace:TestNarou.Adaptor.Boundary.Gateway.ViewModel"
9- xmlns:v="clr-namespace:TestNarou.OuterEdge.UI.View"
107 mc:Ignorable="d"
118 d:DataContext="{d:DesignInstance Type=vm:IBookmarkCategoryViewModel}"
129 d:DesignHeight="450" d:DesignWidth="200">
@@ -28,14 +25,6 @@
2825 </DataTemplate>
2926 </ListView.ItemTemplate>
3027
31- <!--
32- <bh:Interaction.Triggers>
33- <bh:EventTrigger EventName="SelectionChanged">
34- <rp:EventToReactiveCommand Command="{Binding CommandSelectionChange}" />
35- </bh:EventTrigger>
36- </bh:Interaction.Triggers>
37- -->
38-
3928 </ListView>
4029
4130 </UserControl>
--- a/40OuterEdge/UI/View/BookmarkDetailListView.xaml
+++ b/40OuterEdge/UI/View/BookmarkDetailListView.xaml
@@ -4,7 +4,6 @@
44 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66 xmlns:vm="clr-namespace:TestNarou.Adaptor.Boundary.Gateway.ViewModel"
7- xmlns:v="clr-namespace:TestNarou.OuterEdge.UI.View"
87 mc:Ignorable="d"
98 d:DataContext="{d:DesignInstance Type=vm:IBookmarkDetailListViewModel}"
109 d:DesignHeight="450" d:DesignWidth="1600">
--- a/40OuterEdge/UI/View/BookmarkView.xaml
+++ b/40OuterEdge/UI/View/BookmarkView.xaml
@@ -17,8 +17,12 @@
1717 <ColumnDefinition/>
1818 </Grid.ColumnDefinitions>
1919
20- <ContentControl Grid.Column="0" prism:RegionManager.RegionName="BookmarkCategoryPane" />
21- <ContentControl Grid.Column="1" prism:RegionManager.RegionName="BookmarkDetailListPane" />
20+ <ContentControl Grid.Column="0" prism:RegionManager.RegionName="BookmarkCategoryPane">
21+ <v:BookmarkCategoryView />
22+ </ContentControl>
23+ <ContentControl Grid.Column="1" prism:RegionManager.RegionName="BookmarkDetailListPane">
24+ <v:BookmarkDetailListView />
25+ </ContentControl>
2226 </Grid>
2327
2428 </UserControl>
--- a/40OuterEdge/UI/View/LoginFormView.xaml
+++ b/40OuterEdge/UI/View/LoginFormView.xaml
@@ -5,9 +5,7 @@
55 xmlns:bh="http://schemas.microsoft.com/xaml/behaviors"
66 xmlns:cbh="http://schemas.drillion.net/cleanaulait/xaml/behavior"
77 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8- xmlns:prism="http://prismlibrary.com/"
98 xmlns:vm="clr-namespace:TestNarou.Adaptor.Boundary.Gateway.ViewModel"
10- xmlns:v="clr-namespace:TestNarou.OuterEdge.UI.View"
119 mc:Ignorable="d"
1210 d:DataContext="{d:DesignInstance Type=vm:ILoginFormViewModel}"
1311 d:DesignHeight="180" d:DesignWidth="300"
--- a/40OuterEdge/UI/View/MainWindowView.xaml
+++ b/40OuterEdge/UI/View/MainWindowView.xaml
@@ -20,8 +20,12 @@
2020 <mbh:DataContextDisposeAction />
2121 </bh:EventTrigger>
2222 </bh:Interaction.Triggers>
23-
23+
2424 <ContentControl IsTabStop="False" Focusable="False"
25- prism:RegionManager.RegionName="MainContentPane" />
25+ prism:RegionManager.RegionName="MainContentPane">
26+ <ContentControl.Content>
27+ <v:LoginFormView />
28+ </ContentControl.Content>
29+ </ContentControl>
2630
2731 </Window>
--- a/90Infra/Core/Resource/AppCaptionFormatter.cs
+++ b/90Infra/Core/Resource/AppCaptionFormatter.cs
@@ -1,5 +1,4 @@
1-using CleanAuLait.Adaptor.Gateway.UI.Dialog;
2-using CleanAuLait.Core.Resource;
1+using CleanAuLait.Core.Resource;
32 using TestNarou.Infra.Boundary.Resource;
43
54 namespace TestNarou.Infra.Core.Resource