diff --git a/src/Lumina.Presentation.Web/Controllers/Library/WrittenContentLibrary/BookLibrary/BooksController.cs b/src/Lumina.Presentation.Web/Controllers/Library/WrittenContentLibrary/BookLibrary/BooksController.cs new file mode 100644 index 00000000..0cd52639 --- /dev/null +++ b/src/Lumina.Presentation.Web/Controllers/Library/WrittenContentLibrary/BookLibrary/BooksController.cs @@ -0,0 +1,20 @@ +using Microsoft.AspNetCore.Mvc; +using System; + +namespace Lumina.Presentation.Web.Controllers.Library.WrittenContentLibrary.BookLibrary; + +[Route("/library/written-content-library/books-library/books/")] +public class BooksController : Controller +{ + [HttpGet("")] + public IActionResult Index() + { + return View("/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml"); + } + + [HttpGet("{id}")] + public IActionResult EditBook(Guid id) + { + return View("/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml"); + } +} diff --git a/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs b/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs index 271c6d12..c7b98f62 100644 --- a/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs +++ b/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs @@ -35,7 +35,7 @@ public class FileSystemBrowserViewComponent : ViewComponent { return View(new { - Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? @"/" : @"C:\", + Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? @"/" : @"C:\Users\", ServerBasePath = $"{_serverConfigurationModel.BaseAddress}:{_serverConfigurationModel.Port}/api/v{_serverConfigurationModel.ApiVersion}/", ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment ViewMode = FileSystemViewMode.List, diff --git a/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml b/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml new file mode 100644 index 00000000..b706dcc1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml @@ -0,0 +1 @@ +
All books
one diff --git a/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml b/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml new file mode 100644 index 00000000..a25adbc1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml @@ -0,0 +1 @@ +A book
diff --git a/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml b/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml index d954e569..ead54e48 100644 --- a/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml +++ b/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml @@ -25,6 +25,16 @@ @RenderBody() + +