2 Commits

Author SHA1 Message Date
ba5e364c05 Merge pull request 'Adjusted project to be compatible with the latest moonlight refactoring' (#1) from feat/AdjustToParentRefactor into v2.1
All checks were successful
Dev Publish: Nuget / Publish MoonlightServers.Api (push) Successful in 22s
Dev Publish: Nuget / Publish MoonlightServers.DaemonShared (push) Successful in 11s
Dev Publish: Nuget / Publish MoonlightServers.Frontend (push) Successful in 37s
Dev Publish: Nuget / Publish MoonlightServers.Shared (push) Successful in 12s
Reviewed-on: #1
2026-03-13 08:23:02 +00:00
2a2ce28b5f Refactored imports to use the latest moonlight core structure 2026-03-13 09:21:35 +01:00
26 changed files with 41 additions and 53 deletions

View File

@@ -8,15 +8,14 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.3"/> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.5"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.3"> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.5">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="SimplePlugin" Version="1.0.2"/> <PackageReference Include="SimplePlugin" Version="1.0.2"/>
<PackageReference Include="SimplePlugin.Abstractions" Version="1.0.2"/> <PackageReference Include="SimplePlugin.Abstractions" Version="1.0.2"/>
</ItemGroup> </ItemGroup>

View File

@@ -8,8 +8,8 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.3"/> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.5"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.3" PrivateAssets="all"/> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.5" PrivateAssets="all"/>
<PackageReference Include="SimplePlugin" Version="1.0.2"/> <PackageReference Include="SimplePlugin" Version="1.0.2"/>
<PackageReference Include="SimplePlugin.Abstractions" Version="1.0.2"/> <PackageReference Include="SimplePlugin.Abstractions" Version="1.0.2"/>
</ItemGroup> </ItemGroup>

View File

@@ -5,7 +5,7 @@
@import "../bin/ShadcnBlazor/default-theme.css"; @import "../bin/ShadcnBlazor/default-theme.css";
@import "./theme.css"; @import "./theme.css";
@source "../bin/Moonlight.Frontend/*.map"; @source "../bin/**/*.map";
@source "../../../MoonlightServers.Api/**/*.razor"; @source "../../../MoonlightServers.Api/**/*.razor";
@source "../../../MoonlightServers.Api/**/*.cs"; @source "../../../MoonlightServers.Api/**/*.cs";

View File

@@ -3,8 +3,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Hybrid; using Microsoft.Extensions.Caching.Hybrid;
using Moonlight.Shared.Http.Requests; using Moonlight.Shared.Shared;
using Moonlight.Shared.Http.Responses;
using MoonlightServers.Api.Infrastructure.Database; using MoonlightServers.Api.Infrastructure.Database;
using MoonlightServers.Api.Infrastructure.Database.Entities; using MoonlightServers.Api.Infrastructure.Database.Entities;
using MoonlightServers.Api.Infrastructure.Implementations.NodeToken; using MoonlightServers.Api.Infrastructure.Implementations.NodeToken;

View File

@@ -1,8 +1,7 @@
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Moonlight.Shared.Http.Requests; using Moonlight.Shared.Shared;
using Moonlight.Shared.Http.Responses;
using MoonlightServers.Api.Infrastructure.Database; using MoonlightServers.Api.Infrastructure.Database;
using MoonlightServers.Api.Infrastructure.Database.Entities; using MoonlightServers.Api.Infrastructure.Database.Entities;
using MoonlightServers.Api.Infrastructure.Database.Json; using MoonlightServers.Api.Infrastructure.Database.Json;

View File

@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Moonlight.Shared.Http.Responses; using Moonlight.Shared.Shared;
using MoonlightServers.Api.Infrastructure.Database; using MoonlightServers.Api.Infrastructure.Database;
using MoonlightServers.Api.Infrastructure.Database.Entities; using MoonlightServers.Api.Infrastructure.Database.Entities;
using MoonlightServers.Shared; using MoonlightServers.Shared;

View File

@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Moonlight.Shared.Http.Responses; using Moonlight.Shared.Shared;
using MoonlightServers.Api.Infrastructure.Database; using MoonlightServers.Api.Infrastructure.Database;
using MoonlightServers.Api.Infrastructure.Database.Entities; using MoonlightServers.Api.Infrastructure.Database.Entities;
using MoonlightServers.Shared; using MoonlightServers.Shared;

View File

@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
using Moonlight.Api.Configuration; using Moonlight.Api.Infrastructure.Database;
using MoonlightServers.Api.Infrastructure.Database.Entities; using MoonlightServers.Api.Infrastructure.Database.Entities;
namespace MoonlightServers.Api.Infrastructure.Database; namespace MoonlightServers.Api.Infrastructure.Database;

View File

@@ -23,8 +23,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.3" />
<PackageReference Include="Moonlight.Api" Version="2.1.0"> <PackageReference Include="Moonlight.Api" Version="2.1.0">
<ExcludeAssets>content;contentfiles</ExcludeAssets> <ExcludeAssets>content;contentfiles</ExcludeAssets>
</PackageReference> </PackageReference>

View File

@@ -8,8 +8,8 @@ using MoonlightServers.Api.Admin.Templates;
using MoonlightServers.Api.Infrastructure.Configuration; using MoonlightServers.Api.Infrastructure.Configuration;
using MoonlightServers.Api.Infrastructure.Database; using MoonlightServers.Api.Infrastructure.Database;
using MoonlightServers.Api.Infrastructure.Implementations.NodeToken; using MoonlightServers.Api.Infrastructure.Implementations.NodeToken;
using MoonlightServers.Shared;
using SimplePlugin.Abstractions; using SimplePlugin.Abstractions;
using SerializationContext = MoonlightServers.Shared.SerializationContext;
namespace MoonlightServers.Api; namespace MoonlightServers.Api;

View File

@@ -1,7 +1,7 @@
@page "/admin/servers/nodes/create" @page "/admin/servers/nodes/create"
@using LucideBlazor @using LucideBlazor
@using Moonlight.Frontend.Helpers @using Moonlight.Frontend.Infrastructure.Helpers
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Nodes @using MoonlightServers.Shared.Admin.Nodes
@using ShadcnBlazor.Buttons @using ShadcnBlazor.Buttons

View File

@@ -2,7 +2,7 @@
@using System.Net @using System.Net
@using LucideBlazor @using LucideBlazor
@using Moonlight.Frontend.Helpers @using Moonlight.Frontend.Infrastructure.Helpers
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Nodes @using MoonlightServers.Shared.Admin.Nodes
@using ShadcnBlazor.Buttons @using ShadcnBlazor.Buttons

View File

@@ -1,13 +1,11 @@
@using LucideBlazor @using LucideBlazor
@using Moonlight.Shared.Http.Requests @using Moonlight.Shared.Shared
@using Moonlight.Shared.Http.Responses
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Nodes @using MoonlightServers.Shared.Admin.Nodes
@using ShadcnBlazor.DataGrids @using ShadcnBlazor.DataGrids
@using ShadcnBlazor.Buttons @using ShadcnBlazor.Buttons
@using ShadcnBlazor.Dropdowns @using ShadcnBlazor.Dropdowns
@using ShadcnBlazor.Extras.AlertDialogs @using ShadcnBlazor.Extras.AlertDialogs
@using ShadcnBlazor.Extras.Dialogs
@using ShadcnBlazor.Extras.Toasts @using ShadcnBlazor.Extras.Toasts
@using ShadcnBlazor.Tabels @using ShadcnBlazor.Tabels

View File

@@ -1,7 +1,7 @@
@page "/admin/servers/templates/create" @page "/admin/servers/templates/create"
@using LucideBlazor @using LucideBlazor
@using Moonlight.Frontend.Helpers @using Moonlight.Frontend.Infrastructure.Helpers
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.Buttons @using ShadcnBlazor.Buttons
@@ -10,7 +10,6 @@
@using ShadcnBlazor.Extras.Toasts @using ShadcnBlazor.Extras.Toasts
@using ShadcnBlazor.Fields @using ShadcnBlazor.Fields
@using ShadcnBlazor.Inputs @using ShadcnBlazor.Inputs
@using ShadcnBlazor.Tab
@inject HttpClient HttpClient @inject HttpClient HttpClient
@inject NavigationManager Navigation @inject NavigationManager Navigation

View File

@@ -1,4 +1,4 @@
@using Moonlight.Frontend.Helpers @using Moonlight.Frontend.Infrastructure.Helpers
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.Dialogs @using ShadcnBlazor.Dialogs

View File

@@ -1,4 +1,4 @@
@using Moonlight.Frontend.Helpers @using Moonlight.Frontend.Infrastructure.Helpers
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.Dialogs @using ShadcnBlazor.Dialogs

View File

@@ -1,6 +1,6 @@
@using System.Text.Json @using System.Text.Json
@using LucideBlazor @using LucideBlazor
@using Moonlight.Shared.Http.Responses @using Moonlight.Shared.Shared
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.Extras.Common @using ShadcnBlazor.Extras.Common
@@ -206,7 +206,7 @@
try try
{ {
var problemDetails = await response.Content.ReadFromJsonAsync<ProblemDetails>( var problemDetails = await response.Content.ReadFromJsonAsync<ProblemDetails>(
Moonlight.Shared.Http.SerializationContext.Default.Options Moonlight.Shared.SerializationContext.Default.Options
); );
if (problemDetails == null) if (problemDetails == null)

View File

@@ -1,6 +1,5 @@
@using LucideBlazor @using LucideBlazor
@using Moonlight.Shared.Http.Requests @using Moonlight.Shared.Shared
@using Moonlight.Shared.Http.Responses
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.DataGrids @using ShadcnBlazor.DataGrids

View File

@@ -1,9 +1,8 @@
@page "/admin/servers/templates/{Id:int}" @page "/admin/servers/templates/{Id:int}"
@using System.Net @using System.Net
@using System.Text.Json
@using LucideBlazor @using LucideBlazor
@using Moonlight.Frontend.Helpers @using Moonlight.Frontend.Infrastructure.Helpers
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.Buttons @using ShadcnBlazor.Buttons

View File

@@ -1,5 +1,5 @@
@using LucideBlazor @using LucideBlazor
@using Moonlight.Frontend.Helpers @using Moonlight.Frontend.Infrastructure.Helpers
@using MoonlightServers.Shared @using MoonlightServers.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.Accordions @using ShadcnBlazor.Accordions

View File

@@ -1,12 +1,9 @@
@using LucideBlazor @using LucideBlazor
@using Moonlight.Shared.Http.Responses @using Moonlight.Shared.Shared
@using MoonlightServers.Shared.Admin.Templates @using MoonlightServers.Shared.Admin.Templates
@using ShadcnBlazor.Accordions
@using ShadcnBlazor.Buttons @using ShadcnBlazor.Buttons
@using ShadcnBlazor.Extras.Common @using ShadcnBlazor.Extras.Common
@using ShadcnBlazor.Extras.Dialogs @using ShadcnBlazor.Extras.Dialogs
@using ShadcnBlazor.Fields
@using ShadcnBlazor.Inputs
@inject HttpClient HttpClient @inject HttpClient HttpClient
@inject DialogService DialogService @inject DialogService DialogService

View File

@@ -1,6 +1,6 @@
using LucideBlazor; using LucideBlazor;
using Moonlight.Frontend.Interfaces; using Moonlight.Frontend.Admin.Users.Shared;
using Moonlight.Frontend.Models; using Moonlight.Frontend.Infrastructure.Hooks;
using MoonlightServers.Shared; using MoonlightServers.Shared;
namespace MoonlightServers.Frontend.Infrastructure; namespace MoonlightServers.Frontend.Infrastructure;

View File

@@ -1,6 +1,6 @@
using LucideBlazor; using LucideBlazor;
using Moonlight.Frontend.Interfaces; using Moonlight.Frontend.Infrastructure.Hooks;
using Moonlight.Frontend.Models; using Moonlight.Frontend.Infrastructure.Models;
using MoonlightServers.Shared; using MoonlightServers.Shared;
namespace MoonlightServers.Frontend.Infrastructure; namespace MoonlightServers.Frontend.Infrastructure;

View File

@@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Moonlight.Frontend; using Moonlight.Frontend;
using Moonlight.Frontend.Configuration; using Moonlight.Frontend.Infrastructure.Configuration;
using Moonlight.Frontend.Interfaces; using Moonlight.Frontend.Infrastructure.Hooks;
using MoonlightServers.Frontend.Infrastructure; using MoonlightServers.Frontend.Infrastructure;
using SimplePlugin.Abstractions; using SimplePlugin.Abstractions;

View File

@@ -1,6 +1,6 @@
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using Moonlight.Shared.Http.Responses; using Moonlight.Shared.Shared;
using MoonlightServers.Shared.Admin.Nodes; using MoonlightServers.Shared.Admin.Nodes;
using MoonlightServers.Shared.Admin.Templates; using MoonlightServers.Shared.Admin.Templates;
@@ -21,19 +21,18 @@ namespace MoonlightServers.Shared;
[JsonSerializable(typeof(DetailedTemplateDto))] [JsonSerializable(typeof(DetailedTemplateDto))]
[JsonSerializable(typeof(PagedData<TemplateDto>))] [JsonSerializable(typeof(PagedData<TemplateDto>))]
[JsonSerializable(typeof(VariableDto))] // - Template - Variables
[JsonSerializable(typeof(PagedData<VariableDto>))] [JsonSerializable(typeof(VariableDto))]
[JsonSerializable(typeof(CreateVariableDto))] [JsonSerializable(typeof(PagedData<VariableDto>))]
[JsonSerializable(typeof(UpdateVariableDto))] [JsonSerializable(typeof(CreateVariableDto))]
[JsonSerializable(typeof(UpdateVariableDto))]
// - Template - Docker Image
[JsonSerializable(typeof(DockerImageDto))] [JsonSerializable(typeof(DockerImageDto))]
[JsonSerializable(typeof(PagedData<DockerImageDto>))] [JsonSerializable(typeof(PagedData<DockerImageDto>))]
[JsonSerializable(typeof(CreateDockerImageDto))] [JsonSerializable(typeof(CreateDockerImageDto))]
[JsonSerializable(typeof(UpdateDockerImageDto))] [JsonSerializable(typeof(UpdateDockerImageDto))]
[JsonSourceGenerationOptions(JsonSerializerDefaults.Web)] [JsonSourceGenerationOptions(JsonSerializerDefaults.Web)]
public partial class SerializationContext : JsonSerializerContext public partial class SerializationContext : JsonSerializerContext
{ {
} }

View File

@@ -7,7 +7,9 @@
<Project Path="Hosts\MoonlightServers.Api.Host\MoonlightServers.Api.Host.csproj" /> <Project Path="Hosts\MoonlightServers.Api.Host\MoonlightServers.Api.Host.csproj" />
<Project Path="Hosts\MoonlightServers.Frontend.Host\MoonlightServers.Frontend.Host.csproj" /> <Project Path="Hosts\MoonlightServers.Frontend.Host\MoonlightServers.Frontend.Host.csproj" />
</Folder> </Folder>
<Folder Name="/Panel/">
<Project Path="MoonlightServers.Api\MoonlightServers.Api.csproj" /> <Project Path="MoonlightServers.Api\MoonlightServers.Api.csproj" />
<Project Path="MoonlightServers.Frontend\MoonlightServers.Frontend.csproj" /> <Project Path="MoonlightServers.Frontend\MoonlightServers.Frontend.csproj" />
<Project Path="MoonlightServers.Shared\MoonlightServers.Shared.csproj" /> <Project Path="MoonlightServers.Shared\MoonlightServers.Shared.csproj" />
</Folder>
</Solution> </Solution>