Updated to use the new mooncore version
This commit is contained in:
parent
685221b454
commit
d2da868b71
3 changed files with 16 additions and 28 deletions
|
@ -3,5 +3,10 @@
|
|||
<component name="DiscordProjectSettings">
|
||||
<option name="show" value="PROJECT_FILES" />
|
||||
<option name="description" value="" />
|
||||
<option name="theme" value="material" />
|
||||
<option name="button1Title" value="" />
|
||||
<option name="button1Url" value="" />
|
||||
<option name="button2Title" value="" />
|
||||
<option name="button2Url" value="" />
|
||||
</component>
|
||||
</project>
|
|
@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Components;
|
|||
using MoonCore.Abstractions;
|
||||
using MoonCore.Helpers;
|
||||
using MoonCore.Services;
|
||||
using MoonCoreUI.Extensions;
|
||||
using MoonCoreUI.Services;
|
||||
using Moonlight.Core.Configuration;
|
||||
using Moonlight.Core.Database;
|
||||
|
@ -57,12 +58,14 @@ public class CoreFeature : MoonlightFeature
|
|||
builder.Services.AddScoped<ClipboardService>();
|
||||
builder.Services.AddScoped<ModalService>();
|
||||
|
||||
// Configure interop
|
||||
ToastService.Prefix = "moonlight.toasts";
|
||||
ModalService.Prefix = "moonlight.modals";
|
||||
AlertService.Prefix = "moonlight.alerts";
|
||||
ClipboardService.Prefix = "moonlight.clipboard";
|
||||
FileDownloadService.Prefix = "moonlight.utils";
|
||||
builder.Services.AddMoonCoreUi(configuration =>
|
||||
{
|
||||
configuration.ToastJavascriptPrefix = "moonlight.toasts";
|
||||
configuration.ModalJavascriptPrefix = "moonlight.modals";
|
||||
configuration.AlertJavascriptPrefix = "moonlight.alerts";
|
||||
configuration.ClipboardJavascriptPrefix = "moonlight.clipboard";
|
||||
configuration.FileDownloadJavascriptPrefix = "moonlight.utils";
|
||||
});
|
||||
|
||||
// Add external services and blazor/asp.net stuff
|
||||
builder.Services.AddRazorPages();
|
||||
|
|
|
@ -90,31 +90,11 @@
|
|||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="MoonCore" Version="1.2.7" />
|
||||
<PackageReference Include="MoonCoreUI" Version="1.1.6" />
|
||||
<PackageReference Include="MoonCore" Version="1.3.3" />
|
||||
<PackageReference Include="MoonCoreUI" Version="1.1.7" />
|
||||
<PackageReference Include="Otp.NET" Version="1.3.0" />
|
||||
<PackageReference Include="QRCoder" Version="1.4.3" />
|
||||
<PackageReference Include="XtermBlazor" Version="1.10.2" />
|
||||
<PackageReference Include="Z.Blazor.Diagrams" Version="3.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_ContentIncludedByDefault Remove="wwwroot\fonts\boxicons.eot" />
|
||||
<_ContentIncludedByDefault Remove="wwwroot\fonts\boxicons.svg" />
|
||||
<_ContentIncludedByDefault Remove="wwwroot\fonts\boxicons.ttf" />
|
||||
<_ContentIncludedByDefault Remove="wwwroot\fonts\boxicons.woff" />
|
||||
<_ContentIncludedByDefault Remove="wwwroot\fonts\boxicons.woff2" />
|
||||
<_ContentIncludedByDefault Remove="wwwroot\fonts\Inter.woff2" />
|
||||
<_ContentIncludedByDefault Remove="Features\ScheduleDesigner\UI\Components\ScheduleEditor.razor" />
|
||||
<_ContentIncludedByDefault Remove="Features\ScheduleDesigner\UI\Components\ScheduleLinkItem.razor" />
|
||||
<_ContentIncludedByDefault Remove="Features\ScheduleDesigner\UI\Components\ScheduleNodeItem.razor" />
|
||||
<_ContentIncludedByDefault Remove="wwwroot\svg\logo.svg" />
|
||||
<_ContentIncludedByDefault Remove="Features\FileManager\UI\Components\Editor.razor" />
|
||||
<_ContentIncludedByDefault Remove="Features\FileManager\UI\Components\FileEditor.razor" />
|
||||
<_ContentIncludedByDefault Remove="Features\FileManager\UI\Components\FileManager.razor" />
|
||||
<_ContentIncludedByDefault Remove="Features\FileManager\UI\Components\FileUploader.razor" />
|
||||
<_ContentIncludedByDefault Remove="Features\FileManager\UI\Components\FileView.razor" />
|
||||
<_ContentIncludedByDefault Remove="storage\configs\core.json" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Loading…
Reference in a new issue