mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Add Blazored.Modal and Blazored.Toast packages.
This commit is contained in:
parent
8b08c7eda7
commit
100b08a1c5
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
@ -8,6 +8,8 @@ using NLog.Targets;
|
|||||||
using Wabbajack.App.Blazor.State;
|
using Wabbajack.App.Blazor.State;
|
||||||
using Wabbajack.App.Blazor.Utility;
|
using Wabbajack.App.Blazor.Utility;
|
||||||
using Wabbajack.Services.OSIntegrated;
|
using Wabbajack.Services.OSIntegrated;
|
||||||
|
using Blazored.Modal;
|
||||||
|
using Blazored.Toast;
|
||||||
|
|
||||||
namespace Wabbajack.App.Blazor;
|
namespace Wabbajack.App.Blazor;
|
||||||
|
|
||||||
@ -66,6 +68,8 @@ public partial class App
|
|||||||
{
|
{
|
||||||
services.AddOSIntegrated();
|
services.AddOSIntegrated();
|
||||||
services.AddBlazorWebView();
|
services.AddBlazorWebView();
|
||||||
|
services.AddBlazoredModal();
|
||||||
|
services.AddBlazoredToast();
|
||||||
services.AddTransient<MainWindow>();
|
services.AddTransient<MainWindow>();
|
||||||
services.AddSingleton<SystemParametersConstructor>();
|
services.AddSingleton<SystemParametersConstructor>();
|
||||||
services.AddSingleton<IStateContainer, StateContainer>();
|
services.AddSingleton<IStateContainer, StateContainer>();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<Fluxor.Blazor.Web.StoreInitializer/>
|
<Fluxor.Blazor.Web.StoreInitializer/>
|
||||||
|
|
||||||
@using Wabbajack.App.Blazor.Shared
|
@using Wabbajack.App.Blazor.Shared
|
||||||
|
<CascadingBlazoredModal>
|
||||||
<Router AppAssembly="@GetType().Assembly">
|
<Router AppAssembly="@GetType().Assembly">
|
||||||
<Found Context="routeData">
|
<Found Context="routeData">
|
||||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
|
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
|
||||||
@ -11,3 +11,4 @@
|
|||||||
<p>Sorry, there's nothing here.</p>
|
<p>Sorry, there's nothing here.</p>
|
||||||
</NotFound>
|
</NotFound>
|
||||||
</Router>
|
</Router>
|
||||||
|
</CascadingBlazoredModal>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
@inherits LayoutComponentBase
|
@using Blazored.Toast.Configuration
|
||||||
|
@inherits LayoutComponentBase
|
||||||
|
|
||||||
@namespace Wabbajack.App.Blazor.Shared
|
@namespace Wabbajack.App.Blazor.Shared
|
||||||
|
<BlazoredToasts Position="ToastPosition.BottomRight"/>
|
||||||
<div id="background"></div>
|
<div id="background"></div>
|
||||||
<SideBar/>
|
<SideBar/>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
@ -14,6 +14,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Blazored.Modal" Version="6.0.1" />
|
||||||
|
<PackageReference Include="Blazored.Toast" Version="3.2.2" />
|
||||||
<PackageReference Include="DynamicData" Version="7.4.9" />
|
<PackageReference Include="DynamicData" Version="7.4.9" />
|
||||||
<PackageReference Include="GitInfo" Version="2.2.0" />
|
<PackageReference Include="GitInfo" Version="2.2.0" />
|
||||||
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.4" />
|
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.4" />
|
||||||
|
@ -6,3 +6,7 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||||
@using Microsoft.JSInterop
|
@using Microsoft.JSInterop
|
||||||
@using Wabbajack.App.Blazor.Components
|
@using Wabbajack.App.Blazor.Components
|
||||||
|
@using Blazored.Modal
|
||||||
|
@using Blazored.Modal.Services
|
||||||
|
@using Blazored.Toast
|
||||||
|
@using Blazored.Toast.Services
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@ -7,6 +7,8 @@
|
|||||||
<title>Wabbajack</title>
|
<title>Wabbajack</title>
|
||||||
<base href="/"/>
|
<base href="/"/>
|
||||||
<link href="Wabbajack.App.Blazor.styles.css" rel="stylesheet" />
|
<link href="Wabbajack.App.Blazor.styles.css" rel="stylesheet" />
|
||||||
|
<link href="_content/Blazored.Modal/blazored-modal.css" rel="stylesheet" />
|
||||||
|
<link href="_content/Blazored.Toast/blazored-toast.css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@ -32,6 +34,7 @@
|
|||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
||||||
<script src="_framework/blazor.webview.js"></script>
|
<script src="_framework/blazor.webview.js"></script>
|
||||||
|
<script src="_content/Blazored.Modal/blazored.modal.js"></script>
|
||||||
<script>
|
<script>
|
||||||
async function setImageUsingStreaming(imageElementId, imageStream) {
|
async function setImageUsingStreaming(imageElementId, imageStream) {
|
||||||
const arrayBuffer = await imageStream.arrayBuffer();
|
const arrayBuffer = await imageStream.arrayBuffer();
|
||||||
|
Loading…
Reference in New Issue
Block a user