-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: LiteDB server and Files.Core removal (#14911)
- Loading branch information
Showing
237 changed files
with
781 additions
and
926 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.230706.1" targetFramework="native" /> | ||
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.231028.1" targetFramework="native" /> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.240111.5" targetFramework="native" /> | ||
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.240122.1" targetFramework="native" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) 2024 Files Community | ||
// Licensed under the MIT License. See the LICENSE. | ||
|
||
namespace Files.App.Server.Data | ||
{ | ||
public sealed class ColumnPreferences | ||
{ | ||
public ColumnPreferencesItem GitStatusColumn { get; set; } = new(); | ||
public ColumnPreferencesItem GitLastCommitDateColumn { get; set; } = new(); | ||
public ColumnPreferencesItem GitLastCommitMessageColumn { get; set; } = new(); | ||
public ColumnPreferencesItem GitCommitAuthorColumn { get; set; } = new(); | ||
public ColumnPreferencesItem GitLastCommitShaColumn { get; set; } = new(); | ||
public ColumnPreferencesItem TagColumn { get; set; } = new(); | ||
public ColumnPreferencesItem NameColumn { get; set; } = new(); | ||
public ColumnPreferencesItem StatusColumn { get; set; } = new(); | ||
public ColumnPreferencesItem DateModifiedColumn { get; set; } = new(); | ||
public ColumnPreferencesItem PathColumn { get; set; } = new(); | ||
public ColumnPreferencesItem OriginalPathColumn { get; set; } = new(); | ||
public ColumnPreferencesItem ItemTypeColumn { get; set; } = new(); | ||
public ColumnPreferencesItem DateDeletedColumn { get; set; } = new(); | ||
public ColumnPreferencesItem DateCreatedColumn { get; set; } = new(); | ||
public ColumnPreferencesItem SizeColumn { get; set; } = new(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) 2024 Files Community | ||
// Licensed under the MIT License. See the LICENSE. | ||
|
||
namespace Files.App.Server.Data | ||
{ | ||
public sealed class ColumnPreferencesItem | ||
{ | ||
public double UserLengthPixels { get; set; } | ||
public double NormalMaxLength { get; set; } = 800; | ||
public bool UserCollapsed { get; set; } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...iles.Core/Data/Enums/FolderLayoutModes.cs → ...pp.Server/Data/Enums/FolderLayoutModes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Files.Core/Data/Enums/GroupByDateUnit.cs → ....App.Server/Data/Enums/GroupByDateUnit.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
src/Files.Core/Data/Enums/GroupOption.cs → ...iles.App.Server/Data/Enums/GroupOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,75 @@ | ||
// Copyright (c) 2024 Files Community | ||
// Licensed under the MIT License. See the LICENSE. | ||
|
||
namespace Files.Core.Data.Enums | ||
namespace Files.App.Server.Data.Enums | ||
{ | ||
public enum GroupOption : byte | ||
public enum GroupOption | ||
{ | ||
/// <summary> | ||
/// No grouping. | ||
/// </summary> | ||
None, | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Group by name | ||
/// </summary> | ||
Name, | ||
Name = 1, | ||
|
||
/// <summary> | ||
/// Group by date modified. | ||
/// </summary> | ||
DateModified, | ||
DateModified = 2, | ||
|
||
/// <summary> | ||
/// Group by date created. | ||
/// </summary> | ||
DateCreated, | ||
DateCreated = 3, | ||
|
||
/// <summary> | ||
/// Group by size. | ||
/// </summary> | ||
Size, | ||
Size = 4, | ||
|
||
/// <summary> | ||
/// Group by file type. | ||
/// </summary> | ||
FileType, | ||
FileType = 5, | ||
|
||
/// <summary> | ||
/// Group by sync status. | ||
/// </summary> | ||
/// <remarks> | ||
/// Preserved for cloud drives. | ||
/// </remarks> | ||
SyncStatus, | ||
SyncStatus = 6, | ||
|
||
/// <summary> | ||
/// Group by file tags. | ||
/// </summary> | ||
FileTag, | ||
FileTag = 7, | ||
|
||
/// <summary> | ||
/// Group by original folder. | ||
/// </summary> | ||
/// <remarks> | ||
/// Preserved for recycle bin. | ||
/// </remarks> | ||
OriginalFolder, | ||
OriginalFolder = 8, | ||
|
||
/// <summary> | ||
/// Group by date deleted. | ||
/// </summary> | ||
/// <remarks> | ||
/// Preserved for recycle bin. | ||
/// </remarks> | ||
DateDeleted, | ||
DateDeleted = 9, | ||
|
||
/// <summary> | ||
/// Group by folder path. | ||
/// </summary> | ||
/// <remarks> | ||
/// Preserved for libraries. | ||
/// </remarks> | ||
FolderPath, | ||
FolderPath = 10, | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/Files.Core/Data/Enums/SortDirection.cs → ...es.App.Server/Data/Enums/SortDirection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
src/Files.Core/Data/Enums/SortOption.cs → ...Files.App.Server/Data/Enums/SortOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
// Copyright (c) 2024 Files Community | ||
// Licensed under the MIT License. See the LICENSE. | ||
|
||
namespace Files.Core.Data.Enums | ||
namespace Files.App.Server.Data.Enums | ||
{ | ||
public enum SortOption : byte | ||
public enum SortOption | ||
{ | ||
/// <summary> | ||
/// Sort by name. | ||
/// </summary> | ||
Name, | ||
Name = 0, | ||
|
||
/// <summary> | ||
/// Sort by date modified. | ||
/// </summary> | ||
DateModified, | ||
DateModified = 1, | ||
|
||
/// <summary> | ||
/// Sort by date created. | ||
/// </summary> | ||
DateCreated, | ||
DateCreated = 2, | ||
|
||
/// <summary> | ||
/// Sort by size. | ||
/// </summary> | ||
Size, | ||
Size = 3, | ||
|
||
/// <summary> | ||
/// Sort by file type. | ||
/// </summary> | ||
FileType, | ||
FileType = 4, | ||
|
||
/// <summary> | ||
/// Sort by sync status. | ||
/// </summary> | ||
/// <remarks> | ||
/// Reserved for cloud drives. | ||
/// </remarks> | ||
SyncStatus, | ||
SyncStatus = 5, | ||
|
||
/// <summary> | ||
/// Sort by file tags. | ||
/// </summary> | ||
FileTag, | ||
FileTag = 6, | ||
|
||
/// <summary> | ||
/// Sort by original folder. | ||
/// </summary> | ||
/// <remarks> | ||
/// Preserved for recycle bin. | ||
/// </remarks> | ||
OriginalFolder, | ||
OriginalFolder = 7, | ||
|
||
/// <summary> | ||
/// Sort by date deleted. | ||
/// </summary> | ||
/// <remarks> | ||
/// Preserved for recycle bin. | ||
/// </remarks> | ||
DateDeleted, | ||
DateDeleted = 8, | ||
|
||
/// <summary> | ||
/// Sort by path. | ||
/// </summary> | ||
/// <remarks> | ||
/// Preserved for search results. | ||
/// </remarks> | ||
Path | ||
Path = 9 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2024 Files Community | ||
// Licensed under the MIT License. See the LICENSE. | ||
|
||
using LiteDB; | ||
|
||
namespace Files.App.Server.Data | ||
{ | ||
public sealed class LayoutPreferences | ||
{ | ||
[BsonId] | ||
public int Id { get; set; } | ||
public ulong? Frn { get; set; } | ||
public string FilePath { get; set; } = string.Empty; | ||
|
||
public LayoutPreferencesItem LayoutPreferencesManager { get; set; } = new(); | ||
} | ||
} |
Oops, something went wrong.