Skip to content

Code Quality: Renamed App.ServicesImplemenetation to App.Services #12702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Favorites/PinItemAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Files.App.Contexts;
using Files.App.Extensions;
using Files.App.Filesystem;
using Files.App.ServicesImplementation;
using Files.App.Services;
using Files.App.UserControls.Widgets;
using System.ComponentModel;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Favorites/UnpinItemAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Files.App.Contexts;
using Files.App.Extensions;
using Files.App.Filesystem;
using Files.App.ServicesImplementation;
using Files.App.Services;
using Files.App.UserControls.Widgets;
using System.ComponentModel;
using System.Linq;
Expand Down
9 changes: 6 additions & 3 deletions src/Files.App/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using CommunityToolkit.Mvvm.DependencyInjection;
using CommunityToolkit.WinUI;
using CommunityToolkit.WinUI.Helpers;
Expand All @@ -10,9 +13,9 @@
using Files.App.Filesystem.Cloud;
using Files.App.Filesystem.FilesystemHistory;
using Files.App.Helpers;
using Files.App.ServicesImplementation;
using Files.App.ServicesImplementation.DateTimeFormatter;
using Files.App.ServicesImplementation.Settings;
using Files.App.Services;
using Files.App.Services.DateTimeFormatter;
using Files.App.Services.Settings;
using Files.App.Shell;
using Files.App.Storage.FtpStorage;
using Files.App.Storage.NativeStorage;
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Data/Models/SidebarPinnedModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using CommunityToolkit.WinUI;
using Files.App.Data.Items;
using Files.App.ServicesImplementation;
using Files.App.Services;
using Files.App.UserControls.Widgets;
using System.Collections.Specialized;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Filesystem/QuickAccessManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using CommunityToolkit.WinUI.Helpers;
using Files.App.Data.Models;
using Files.App.Helpers;
using Files.App.ServicesImplementation;
using Files.App.Services;
using Files.App.UserControls.Widgets;
using System;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Helpers/ContextFlyoutItemHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License. See the LICENSE.

using Files.App.Commands;
using Files.App.ServicesImplementation.Settings;
using Files.App.Services.Settings;
using Files.Backend.Helpers;
using Files.Backend.Services;
using Microsoft.UI.Xaml.Media.Imaging;
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.ServicesImplementation.Settings;
using Files.App.Services.Settings;
using Files.App.UserControls.MultitaskingControl;
using Microsoft.UI;
using Microsoft.UI.Composition.SystemBackdrops;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.Extensions;
using Files.Backend.Services;
using Files.Shared;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
/// <inheritdoc cref="IAddItemService"/>
internal sealed class AddItemService : IAddItemService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Globalization;
using Windows.Globalization;

namespace Files.App.ServicesImplementation.DateTimeFormatter
namespace Files.App.Services.DateTimeFormatter
{
internal abstract class AbstractDateTimeFormatter : IDateTimeFormatter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Files.App.Extensions;
using System;

namespace Files.App.ServicesImplementation.DateTimeFormatter
namespace Files.App.Services.DateTimeFormatter
{
internal class ApplicationDateTimeFormatter : AbstractDateTimeFormatter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Files.Shared.Services.DateTimeFormatter;
using System;

namespace Files.App.ServicesImplementation.DateTimeFormatter
namespace Files.App.Services.DateTimeFormatter
{
public class DateTimeFormatterFactory : IDateTimeFormatterFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Files.App.Extensions;
using System;

namespace Files.App.ServicesImplementation.DateTimeFormatter
namespace Files.App.Services.DateTimeFormatter
{
internal class SystemDateTimeFormatter : AbstractDateTimeFormatter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Files.App.Extensions;
using System;

namespace Files.App.ServicesImplementation.DateTimeFormatter
namespace Files.App.Services.DateTimeFormatter
{
internal class UniversalDateTimeFormatter : AbstractDateTimeFormatter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Files.Shared.EventArguments;
using Files.Shared.Services.DateTimeFormatter;

namespace Files.App.ServicesImplementation.DateTimeFormatter
namespace Files.App.Services.DateTimeFormatter
{
internal class UserDateTimeFormatter : IDateTimeFormatter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,12 @@
// Licensed under the MIT License. See the LICENSE.

using Files.App.Dialogs;
using Files.App.Helpers;
using Files.App.ViewModels.Dialogs;
using Files.Backend.Services;
using Files.Backend.ViewModels.Dialogs;
using Files.Backend.ViewModels.Dialogs.AddItemDialog;
using Files.Backend.ViewModels.Dialogs.FileSystemDialog;
using Files.Shared.Enums;
using Microsoft.Extensions.Logging;
using Microsoft.UI.Xaml.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Threading.Tasks;
using Windows.Foundation.Metadata;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
/// <inheritdoc cref="IDialogService"/>
internal sealed class DialogService : IDialogService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
// Licensed under the MIT License. See the LICENSE.

using Files.App.Storage.WindowsStorage;
using Files.Backend.Services;
using Files.Sdk.Storage.LocatableStorage;
using Files.Shared.Extensions;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.Storage.Pickers;
using Windows.System;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
/// <inheritdoc cref="IFileExplorerService"/>
internal sealed class FileExplorerService : IFileExplorerService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Files.Sdk.Storage.LocatableStorage;
using System.Runtime.CompilerServices;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
/// <inheritdoc cref="IFileTagsService"/>
internal sealed class FileTagsService : IFileTagsService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Files.Sdk.Storage.LocatableStorage;
using Windows.Storage.FileProperties;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
internal sealed class ImagingService : IImageService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using CommunityToolkit.Mvvm.DependencyInjection;
using Files.App.Data.Items;
using Files.App.Extensions;
using Files.App.Filesystem;
using Files.App.Helpers;
using Files.App.ViewModels;
using Files.Shared.Extensions;
using Files.Shared.Services;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.UI.StartScreen;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
public class JumpListService : IJumpListService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.Extensions;
using Files.Backend.Services;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
internal sealed class LocalizationService : ILocalizationService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.Data.Items;
using Files.App.Shell;
using Files.Backend.Services;
using Files.Sdk.Storage.LocatableStorage;
using Vanara.PInvoke;
using Vanara.Windows.Shell;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
public class NetworkDrivesService : INetworkDrivesService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.IO.Pipes;
using System.Security.Principal;

namespace Files.App.ServicesImplementation.PreviewPopupProviders
namespace Files.App.Services.PreviewPopupProviders
{
public class QuickLookProvider : IPreviewPopupProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Runtime.InteropServices;
using Vanara.PInvoke;

namespace Files.App.ServicesImplementation.PreviewPopupProviders
namespace Files.App.Services.PreviewPopupProviders
{
public struct COPYDATASTRUCT
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.ServicesImplementation.PreviewPopupProviders;
using Files.Backend.Services;
using Files.App.Services.PreviewPopupProviders;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
/// <inheritdoc cref="IPreviewPopupService"/>
internal sealed class PreviewPopupService : ObservableObject, IPreviewPopupService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@
// Licensed under the MIT License. See the LICENSE.

using Files.App.Filesystem.StorageItems;
using Files.App.Helpers;
using Files.App.Shell;
using Files.App.UserControls.Widgets;
using Files.Shared;
using Files.Shared.Extensions;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.UI.Input;

namespace Files.App.ServicesImplementation

namespace Files.App.Services
{
internal class QuickAccessService : IQuickAccessService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,19 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using CommunityToolkit.WinUI;
using Files.App.Data.Items;
using Files.App.Extensions;
using Files.App.Filesystem;
using Files.App.Helpers;
using Files.App.Storage.WindowsStorage;
using Files.Sdk.Storage.LocatableStorage;
using Files.Shared.Enums;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using static Files.App.Constants.Widgets;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
public class RemovableDrivesService : IRemovableDrivesService
{
public IStorageDeviceWatcher CreateWatcher()
{
return new WindowsStorageDeviceWatcher() as IStorageDeviceWatcher;
return new WindowsStorageDeviceWatcher();
}

public async IAsyncEnumerable<ILocatableFolder> GetDrivesAsync()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.Helpers;
using Files.Backend.Services;
using Microsoft.UI.Xaml;
using System.Drawing;

namespace Files.App.ServicesImplementation
namespace Files.App.Services
{
/// <inheritdoc cref="IResourcesService"/>
public class ResourcesService : IResourcesService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Files.Shared.EventArguments;
using Microsoft.AppCenter.Analytics;

namespace Files.App.ServicesImplementation.Settings
namespace Files.App.Services.Settings
{
internal sealed class AppSettingsService : BaseObservableJsonSettings, IAppSettingsService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Microsoft.UI.Composition.SystemBackdrops;
using System;

namespace Files.App.ServicesImplementation.Settings
namespace Files.App.Services.Settings
{
internal sealed class AppearanceSettingsService : BaseObservableJsonSettings, IAppearanceSettingsService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Files.App.Serialization;
using Files.Backend.Services.Settings;

namespace Files.App.ServicesImplementation.Settings
namespace Files.App.Services.Settings
{
internal sealed class ApplicationSettingsService : BaseObservableJsonSettings, IApplicationSettingsService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using System.Linq;
using Windows.Storage;

namespace Files.App.ServicesImplementation.Settings
namespace Files.App.Services.Settings
{
internal sealed class FileTagsSettingsService : BaseJsonSettings, IFileTagsSettingsService
{
Expand Down
Loading