-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Code Quality: LiteDB server and Files.Core removal #14911
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
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c238134
Move database to server
hez2010 c925022
Merge remote-tracking branch 'origin/main' into litedb_update
hez2010 f1495f5
Bump dependencies
hez2010 2e90bbc
Remove Files.Core
hez2010 28821ee
Revert WASDK bump
hez2010 0ef77d6
Remove reflection usage
hez2010 00a2013
merge from main
hez2010 d304e30
Fix nullref to array in server
hez2010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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, | ||
hez2010 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| /// <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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.