Skip to content

Commit 7e0ca1c

Browse files
committed
bump to YAF 4.0.0
1 parent 947804d commit 7e0ca1c

14 files changed

Lines changed: 233 additions & 44 deletions

YAF.Website/Areas/Forums/Pages/Shared/_Layout.cshtml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,6 @@
273273
Support Forum
274274
</a>
275275
</li>
276-
<li>
277-
<a class="link-secondary"
278-
href="https://testforum.yetanotherforum.net/">
279-
Demo Forum
280-
</a>
281-
</li>
282276
<li>
283277
<a class="link-secondary"
284278
href="https://github.com/YAFNET/YAFNET">

YAF.Website/Pages/Downloads.cshtml

Lines changed: 105 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,29 @@
183183
</div>
184184
</div>
185185
<!-- End Recent Jobs -->
186+
187+
<!-- Sample Application -->
188+
<div class="col">
189+
<div class="card">
190+
<div class="card-body">
191+
<h5 class="card-title">
192+
@Model.ReleaseSampleApplicationTitle
193+
</h5>
194+
<p class="card-text">
195+
This Application is a Standard Visual Studio Sample ASP.NET Application (.NET Framework 4.8.1), including YAF.NET integrated as Control on a Page.
196+
</p>
197+
<p class="card-text">
198+
<small class="text-muted">
199+
<a class="btn btn-primary m-1" href="@Model.ReleaseSampleApplication">
200+
Download
201+
</a>
202+
</small>
203+
</p>
204+
</div>
205+
</div>
206+
</div>
207+
<!-- End Sample Application -->
208+
186209
</div>
187210
<!-- End Recent Jobs -->
188211
</div>
@@ -216,12 +239,15 @@
216239
</p>
217240
<p class="card-text">
218241
<small class="text-muted">
219-
<a class="btn btn-primary m-1" href="@Model.ReleaseMsSqlCoreUrl">
220-
Install/Upgrade Package <span class="badge bg-secondary">@Model.ReleaseMsSqlCoreDownloads</span>
221-
</a>
242+
<a class="btn btn-primary m-1" href="@Model.ReleaseMsSqlCoreUrl">
243+
Install/Upgrade Package <span class="badge bg-secondary">@Model.ReleaseMsSqlCoreDownloads</span>
244+
</a>
222245
<a class="btn btn-warning m-1" href="@Model.ReleaseCoreSource">
223246
Source Package
224247
</a>
248+
<a class="m-1" href="https://nuget.org/packages/YAFNET.Data.SqlServer">
249+
<img src="https://img.shields.io/nuget/v/YAFNET.Data.SqlServer.svg" alt="YAFNET.Data.SqlServer" />
250+
</a>
225251
</small>
226252
</p>
227253
</div>
@@ -250,6 +276,9 @@
250276
<a class="btn btn-warning m-1" href="@Model.ReleaseCoreSource">
251277
Source Package
252278
</a>
279+
<a class="m-1" href="https://nuget.org/packages/YAFNET.Data.MySQL">
280+
<img src="https://img.shields.io/nuget/v/YAFNET.Data.MySQL.svg" alt="YAFNET.Data.MySQL" />
281+
</a>
253282
</small>
254283
</p>
255284
</div>
@@ -278,6 +307,9 @@
278307
<a class="btn btn-warning m-1" href="@Model.ReleaseCoreSource">
279308
Source Package
280309
</a>
310+
<a class="m-1" href="https://nuget.org/packages/YAFNET.Data.PostgreSQL">
311+
<img src="https://img.shields.io/nuget/v/YAFNET.Data.PostgreSQL.svg" alt="YAFNET.Data.PostgreSQL" />
312+
</a>
281313
</small>
282314
</p>
283315
</div>
@@ -306,12 +338,82 @@
306338
<a class="btn btn-warning m-1" href="@Model.ReleaseCoreSource">
307339
Source Package
308340
</a>
341+
<a class="m-1" href="https://nuget.org/packages/YAFNET.Data.Sqlite">
342+
<img src="https://img.shields.io/nuget/v/YAFNET.Data.Sqlite.svg" alt="YAFNET.Data.Sqlite" />
343+
</a>
309344
</small>
310345
</p>
311346
</div>
312347
</div>
313348
</div>
314349
<!-- End Recent Jobs -->
350+
351+
<!-- Razor Pages Nuget Package -->
352+
<div class="col">
353+
<div class="card">
354+
<div class="card-body">
355+
<h5 class="card-title">
356+
YAFNET.RazorPages @Model.ReleaseCoreTitle Nuget Package
357+
</h5>
358+
<p class="card-text">
359+
YAF.NET Razor Pages Client Library
360+
</p>
361+
<p class="card-text">
362+
<small class="text-muted">
363+
<a class="m-1" href="https://nuget.org/packages/YAFNET.RazorPages">
364+
<img src="https://img.shields.io/nuget/v/YAFNET.RazorPages.svg" alt="YAFNET.RazorPages" />
365+
</a>
366+
</small>
367+
</p>
368+
</div>
369+
</div>
370+
</div>
371+
<!-- End Razor Pages Nuget Package -->
372+
373+
<!-- Chat Nuget Package -->
374+
<div class="col">
375+
<div class="card">
376+
<div class="card-body">
377+
<h5 class="card-title">
378+
Chat UI for @Model.ReleaseCoreTitle Nuget Package
379+
</h5>
380+
<p class="card-text">
381+
Chat UI for YAF.NET
382+
</p>
383+
<p class="card-text">
384+
<small class="text-muted">
385+
<a class="m-1" href="https://nuget.org/packages/YAFNET.UI.Chat">
386+
<img src="https://img.shields.io/nuget/v/YAFNET.UI.Chat.svg" alt="YAFNET.UI.Chat" />
387+
</a>
388+
</small>
389+
</p>
390+
</div>
391+
</div>
392+
</div>
393+
<!-- End Chat Nuget Package -->
394+
395+
<!-- Sample Application -->
396+
<div class="col">
397+
<div class="card">
398+
<div class="card-body">
399+
<h5 class="card-title">
400+
@Model.ReleaseSampleAppTitle
401+
</h5>
402+
<p class="card-text">
403+
This Application is a Standard Visual Studio Sample ASP.NET Core Application (.NET 9.0), including integrated YAF.NET v4
404+
</p>
405+
<p class="card-text">
406+
<small class="text-muted">
407+
<a class="btn btn-primary m-1" href="@Model.ReleaseSampleApp">
408+
Download
409+
</a>
410+
</small>
411+
</p>
412+
</div>
413+
</div>
414+
</div>
415+
<!-- End Sample Application -->
416+
315417
</div>
316418
<!-- End Recent Jobs -->
317419
</div>

YAF.Website/Pages/Downloads.cshtml.cs

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2024 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
66
*
77
* Licensed to the Apache Software Foundation (ASF) under one
@@ -53,6 +53,20 @@ public class DownloadsModel : PageModel, IHaveServiceLocator
5353
[BindProperty]
5454
public string ReleaseDnnInstall { get; set; }
5555

56+
/// <summary>
57+
/// Gets or sets the release sample application.
58+
/// </summary>
59+
/// <value>The release sample application.</value>
60+
[BindProperty]
61+
public string ReleaseSampleApplication { get; set; }
62+
63+
/// <summary>
64+
/// Gets or sets the release sample application.
65+
/// </summary>
66+
/// <value>The release sample application.</value>
67+
[BindProperty]
68+
public string ReleaseSampleApp { get; set; }
69+
5670
/// <summary>
5771
/// Gets or sets the release DNN install downloads.
5872
/// </summary>
@@ -74,6 +88,21 @@ public class DownloadsModel : PageModel, IHaveServiceLocator
7488
[BindProperty]
7589
public string ReleaseDnnTitle { get; set; }
7690

91+
/// <summary>
92+
/// Gets or sets the release sample application title.
93+
/// </summary>
94+
/// <value>The release sample application title.</value>
95+
[BindProperty]
96+
public string ReleaseSampleApplicationTitle { get; set; }
97+
98+
99+
/// <summary>
100+
/// Gets or sets the release sample application title.
101+
/// </summary>
102+
/// <value>The release sample application title.</value>
103+
[BindProperty]
104+
public string ReleaseSampleAppTitle { get; set; }
105+
77106
/// <summary>
78107
/// Gets or sets the release source.
79108
/// </summary>
@@ -278,6 +307,10 @@ public async Task OnGetAsync()
278307
{
279308
await this.GetDnnReleases();
280309

310+
await this.GetSampleApplicationReleases();
311+
312+
await this.GetSampleAppReleases();
313+
281314
await this.GetMySqlReleases();
282315

283316
await this.GetMsSqlReleases();
@@ -453,10 +486,58 @@ private async Task GetDnnReleases()
453486
dnnRelease = this.Get<IDataCache>().Get("DnnRelease").ToType<Release>();
454487
}
455488

456-
457489
ReleaseDnnInstall = dnnRelease.Assets[1].BrowserDownloadUrl;
458490
ReleaseDnnInstallDownloads = $"{dnnRelease.Assets[1].DownloadCount} downloads";
459491
ReleaseDnnSource = dnnRelease.Assets[0].BrowserDownloadUrl;
460492
ReleaseDnnTitle = dnnRelease.Name;
461493
}
494+
495+
/// <summary>
496+
/// Gets the Sample Application releases.
497+
/// </summary>
498+
private async Task GetSampleApplicationReleases()
499+
{
500+
var github = new GitHubClient(new ProductHeaderValue("YAF.NET"));
501+
502+
Release release;
503+
504+
if (this.Get<IDataCache>().Get("SampleApplicationRelease") == null)
505+
{
506+
release = await github.Repository.Release.GetLatest("YAFNET", "YAF.SampleWebApplication");
507+
this.Get<IDataCache>().Set("SampleApplicationRelease", release);
508+
}
509+
else
510+
{
511+
release = this.Get<IDataCache>().Get("SampleApplicationRelease").ToType<Release>();
512+
}
513+
514+
ReleaseSampleApplication = release.ZipballUrl;
515+
ReleaseSampleApplicationTitle = release.Name;
516+
}
517+
518+
/// <summary>
519+
/// Gets the Sample App releases.
520+
/// </summary>
521+
private async Task GetSampleAppReleases()
522+
{
523+
var github = new GitHubClient(new ProductHeaderValue("YAF.NET"));
524+
525+
Release release;
526+
527+
if (this.Get<IDataCache>().Get("SampleAppRelease") == null)
528+
{
529+
var releases = await github.Repository.Release.GetAll("YAFNET", "YAF.SampleWebApplication");
530+
531+
release = releases.First(r => r.Prerelease);
532+
533+
this.Get<IDataCache>().Set("SampleAppRelease", release);
534+
}
535+
else
536+
{
537+
release = this.Get<IDataCache>().Get("SampleAppRelease").ToType<Release>();
538+
}
539+
540+
ReleaseSampleApp = release.ZipballUrl;
541+
ReleaseSampleAppTitle = release.Name;
542+
}
462543
}

YAF.Website/Pages/Error.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2024 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
66
*
77
* Licensed to the Apache Software Foundation (ASF) under one

YAF.Website/Pages/Features.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2024 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
66
*
77
* Licensed to the Apache Software Foundation (ASF) under one

YAF.Website/Pages/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" />
5555
<path d="M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z" />
5656
</svg>
57-
100% Managed C# ASP.NET (Core) .NET 8 and Above
57+
100% Managed C# ASP.NET (Core) .NET 9 and Above
5858
</li>
5959
<li class="list-group-item">
6060
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">

YAF.Website/Pages/Index.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2024 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
66
*
77
* Licensed to the Apache Software Foundation (ASF) under one

YAF.Website/Pages/Key.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2024 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
66
*
77
* Licensed to the Apache Software Foundation (ASF) under one

0 commit comments

Comments
 (0)