Refactored css classes to match flyonui. Switched to postgres arrays for permissions. Migrated file manager. Adjusted everything to work with the latest mooncore version
This commit is contained in:
@@ -4,6 +4,6 @@ public class ApiKeyResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string PermissionsJson { get; set; } = "[]";
|
||||
public DateTime ExpiresAt { get; set; }
|
||||
public string[] Permissions { get; set; } = [];
|
||||
public DateTimeOffset ExpiresAt { get; set; }
|
||||
}
|
||||
@@ -5,6 +5,6 @@ public class CreateApiKeyResponse
|
||||
public int Id { get; set; }
|
||||
public string Secret { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string PermissionsJson { get; set; } = "[]";
|
||||
public DateTime ExpiresAt { get; set; }
|
||||
public string[] Permissions { get; set; } = [];
|
||||
public DateTimeOffset ExpiresAt { get; set; }
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
public class FileSystemEntryResponse
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public bool IsFile { get; set; }
|
||||
public bool IsFolder { get; set; }
|
||||
public long Size { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
@@ -5,5 +5,5 @@ public class UserResponse
|
||||
public int Id { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string PermissionsJson { get; set; }
|
||||
public string[] Permissions { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user