Skip to content

Commit

Permalink
bump to beta 9
Browse files Browse the repository at this point in the history
  • Loading branch information
w8tcha committed May 19, 2024
1 parent c50bb6e commit 7ffce06
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
*.cache
YAF.SampleWebApplication/package-lock.json
YAF.SampleApp/package-lock.json
/YAF.SampleApp/bin
/YAF.SampleApp/obj
23 changes: 12 additions & 11 deletions YAF.SampleApp/Areas/Chat/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<link href="~/favicons/site.webmanifest" rel="manifest" />
<link href="~/favicons/safari-pinned-tab.svg" rel="mask-icon" color="#5bbad5" />
<link href="~/favicons/favicon.ico" rel="shortcut icon" />
<script src="~/js/themeSelector.min.js"></script>
</head>
<body>
<header>
Expand All @@ -30,21 +31,21 @@
</button>
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link" asp-area="" asp-page="/Index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" asp-area="Forums" asp-page="/Index">Forums</a>
</li>
<li class="nav-item">
<a class="nav-link" asp-area="Chat" asp-page="/Index">Chat</a>
</li>
<li class="nav-item">
<a class="nav-link" asp-area="" asp-page="/Index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" asp-area="Forums" asp-page="/Index">Forums</a>
</li>
<li class="nav-item">
<a class="nav-link active" asp-area="Chat" asp-page="/Index">Chat</a>
</li>
</ul>
<div class="form-inline mt-2 mt-md-0">
@if (Current.IsGuest)
{
<a class="btn btn-outline-success my-2 my-sm-0 me-sm-2" asp-page="/Account/Login" asp-area="Forums">Login</a>
<a class="btn btn-outline-success my-2 my-sm-0" asp-page="@(Current.BoardSettings.ShowRulesForRegistration ? "/Privacy" : "/Account/Register")" asp-area="Forums">Register</a>
<a class="btn btn-outline-primary my-2 my-sm-0 me-sm-2" asp-page="/Account/Login" asp-area="Forums">Login</a>
<a class="btn btn-outline-secondary my-2 my-sm-0" asp-page="@(Current.BoardSettings.ShowRulesForRegistration ? "/Privacy" : "/Account/Register")" asp-area="Forums">Register</a>
}
else
{
Expand Down
4 changes: 4 additions & 0 deletions YAF.SampleApp/Areas/Chat/Pages/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@using YAF.SampleApp
@namespace YAF.SampleApp.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper YAF.Web.TagHelpers.*, YAF.Web
9 changes: 7 additions & 2 deletions YAF.SampleApp/Areas/Forums/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
type="text/css" />
<link rel="stylesheet"
href="~/css/@Html.Raw($"{ViewBag.ForumCss}.css?v={ViewBag.CdvVersion}")" />
@await RenderSectionAsync("StyleSheets", required: false)
@await RenderSectionAsync("StyleSheets", required: false)
<script src="~/js/themeSelector.min.js"></script>
<link href="~/favicons/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
<link href="~/favicons/favicon-32x32.png" rel="icon" sizes="32x32" />
<link href="~/favicons/favicon-16x16.png" rel="icon" sizes="16x16" />
Expand Down Expand Up @@ -182,7 +183,6 @@
@title
</span>
</span>
// this.GetTextFormatted("MODERATE_NEW", this.PageContext.ModeratePosts)
}
</a>
</li>
Expand All @@ -197,6 +197,11 @@

</ul>
@await Html.PartialAsync("_QuickSearch")

@if (Current.BoardSettings.AllowUserTheme)
{
@await Html.PartialAsync("_ThemeModeSelector")
}
</div>
</div>
</nav>
Expand Down
7 changes: 4 additions & 3 deletions YAF.SampleApp/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<link href="~/favicons/site.webmanifest" rel="manifest" />
<link href="~/favicons/safari-pinned-tab.svg" rel="mask-icon" color="#5bbad5" />
<link href="~/favicons/favicon.ico" rel="shortcut icon" />
<script src="~/js/themeSelector.min.js"></script>
</head>
<body>
<header>
Expand All @@ -33,7 +34,7 @@
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link" asp-area="" asp-page="/Index">Home</a>
<a class="nav-link" asp-page="/Index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" asp-area="Forums" asp-page="/Index">Forums</a>
Expand All @@ -45,8 +46,8 @@
<div class="form-inline mt-2 mt-md-0">
@if (Current.IsGuest)
{
<a class="btn btn-outline-success my-2 my-sm-0 me-sm-2" asp-page="/Account/Login" asp-area="Forums">Login</a>
<a class="btn btn-outline-success my-2 my-sm-0" asp-page="@(Current.BoardSettings.ShowRulesForRegistration ? "/Privacy" : "/Account/Register")" asp-area="Forums">Register</a>
<a class="btn btn-outline-primary my-2 my-sm-0 me-sm-2" asp-page="/Account/Login" asp-area="Forums">Login</a>
<a class="btn btn-outline-secondary my-2 my-sm-0" asp-page="@(Current.BoardSettings.ShowRulesForRegistration ? "/Privacy" : "/Account/Register")" asp-area="Forums">Register</a>
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions YAF.SampleApp/YAF.SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="YAFNET.Data.SqlServer" Version="4.0.0-beta07" />
<PackageReference Include="YAFNET.RazorPages" Version="4.0.0-beta07" />
<PackageReference Include="YAFNET.UI.Chat" Version="4.0.0-beta07" />
<PackageReference Include="YAFNET.Data.SqlServer" Version="4.0.0-beta09" />
<PackageReference Include="YAFNET.RazorPages" Version="4.0.0-beta09" />
<PackageReference Include="YAFNET.UI.Chat" Version="4.0.0-beta09" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions YAF.SampleApp/libman.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": []
}

0 comments on commit 7ffce06

Please sign in to comment.