Skip to content

Commit 794e7e4

Browse files
authored
Code Quality: Moved App.Commands & App.Contexts to App.Data (#12887)
1 parent 471c1a0 commit 794e7e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+55
-71
lines changed

src/Files.App/Actions/FileSystem/PasteItemAction.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using CommunityToolkit.Mvvm.ComponentModel;
55
using CommunityToolkit.Mvvm.DependencyInjection;
6-
using Files.App.Commands;
7-
using Files.App.Contexts;
86
using Files.App.Data.Models;
97
using Files.App.Extensions;
108
using Files.App.Helpers;

src/Files.App/Actions/Git/GitInitAction.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.App.Contexts;
5-
64
namespace Files.App.Actions
75
{
86
sealed class GitInitAction : ObservableObject, IAction

src/Files.App/Actions/Git/GitPushAction.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.App.Commands;
5-
using Files.App.Contexts;
6-
74
namespace Files.App.Actions
85
{
96
internal class GitPushAction : ObservableObject, IAction

src/Files.App/Actions/Git/GitSyncAction.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.App.Commands;
5-
using Files.App.Contexts;
6-
74
namespace Files.App.Actions
85
{
96
internal class GitSyncAction : ObservableObject, IAction

src/Files.App/Actions/Open/OpenInVSAction.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.App.Contexts;
54
using Files.App.Utils.Shell;
65

76
namespace Files.App.Actions

src/Files.App/Actions/Open/OpenInVSCodeAction.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.App.Contexts;
54
using Files.App.Utils.Shell;
65

76
namespace Files.App.Actions

src/Files.App/Actions/Open/OpenPropertiesAction.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.App.Commands;
5-
using Files.App.Contexts;
6-
74
namespace Files.App.Actions
85
{
96
internal class OpenPropertiesAction : ObservableObject, IAction

src/Files.App/Actions/Show/ToggleSidebarAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using CommunityToolkit.Mvvm.ComponentModel;
55
using CommunityToolkit.Mvvm.DependencyInjection;
6-
using Files.App.Commands;
6+
using Files.App.Data.Commands;
77
using Files.App.Extensions;
88
using Files.App.ViewModels;
99
using System.ComponentModel;

src/Files.App/App.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using CommunityToolkit.WinUI.Helpers;
55
using CommunityToolkit.WinUI.Notifications;
6-
using Files.App.Commands;
7-
using Files.App.Contexts;
86
using Files.App.Data.Models;
97
using Files.App.Extensions;
108
using Files.App.Utils;

src/Files.App/Data/Attributes/DependencyPropertyAttribute.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using Microsoft.UI.Xaml;
55

6-
namespace Files.App.Attributes
6+
namespace Files.App.Data.Attributes
77
{
88
/// <summary>
99
/// Provides an attribute for generation of <see cref="DependencyProperty"/> and its Property.
@@ -21,9 +21,9 @@ namespace Files.App.Attributes
2121
/// <br/>
2222
/// <see langword="public"/> <typeparamref name="T"/> Field
2323
/// {
24-
/// <see langword="get"/> => (<typeparamref name="T"/>)GetValue(Property);
25-
/// <see langword="set"/> => SetValue(Property, <see langword="value"/>);
26-
/// }
24+
/// <see langword="get"/> => (<typeparamref name="T"/>)GetValue(Property);
25+
/// <see langword="set"/> => SetValue(Property, <see langword="value"/>);
26+
/// }
2727
/// </code>
2828
/// <typeparam name="T">property type (nullable value type are not allowed)</typeparam>
2929
/// </remarks>

0 commit comments

Comments
 (0)