Skip to content

Commit d88376f

Browse files
committed
Refactored css classes to match flyonui. Switched to postgres arrays for permissions. Migrated file manager. Adjusted everything to work with the latest mooncore version
1 parent eaece9e commit d88376f

File tree

72 files changed

+2849
-2206
lines changed

Some content is hidden

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

72 files changed

+2849
-2206
lines changed

Moonlight.ApiServer.Runtime/Moonlight.ApiServer.Runtime.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.7" />
1717
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.7" />
18-
<PackageReference Include="MoonCore.PluginFramework" Version="1.0.7" />
18+
<PackageReference Include="MoonCore.PluginFramework" Version="1.0.8" />
1919
</ItemGroup>
2020

2121
</Project>

Moonlight.ApiServer/Database/Entities/ApiKey.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ public class ApiKey
88

99
public string Description { get; set; }
1010

11-
[Column(TypeName="jsonb")]
12-
public string PermissionsJson { get; set; } = "[]";
11+
public string[] Permissions { get; set; } = [];
1312

14-
[Column(TypeName = "timestamp with time zone")]
15-
public DateTime ExpiresAt { get; set; }
13+
public DateTimeOffset ExpiresAt { get; set; }
1614

17-
[Column(TypeName = "timestamp with time zone")]
18-
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
15+
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
1916
}

Moonlight.ApiServer/Database/Entities/User.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ public class User
99
public string Username { get; set; }
1010
public string Email { get; set; }
1111
public string Password { get; set; }
12-
13-
[Column(TypeName="timestamp with time zone")]
14-
public DateTime TokenValidTimestamp { get; set; } = DateTime.MinValue;
15-
16-
[Column(TypeName="jsonb")]
17-
public string PermissionsJson { get; set; } = "[]";
12+
public DateTimeOffset TokenValidTimestamp { get; set; } = DateTimeOffset.MinValue;
13+
public string[] Permissions { get; set; } = [];
1814
}

0 commit comments

Comments
 (0)