Change stats graph to vX.Y from vX.Y.Z, add star-history
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 49s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m11s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2025-06-03 20:43:20 +10:00
parent 414bf83344
commit ac5b0f3e56
2 changed files with 13 additions and 0 deletions

View File

@ -11,10 +11,17 @@ class StatsController extends Controller
{
public function home()
{
/*
$case = CaseBuilder::whenRaw("version ~ '-dev-'")->thenRaw("CONCAT(SPLIT_PART(version,'-',1),'-',SPLIT_PART(version,'-',2))")
->whenRaw("version ~ '-00000000$'")->thenRaw("CONCAT(SPLIT_PART(version,'-',1),'-GIT')")
->whenRaw("version ~ '^v[0-9]+\.[0-9]+\.[0-9]+'")->thenRaw("SPLIT_PART(version,'-',1)")
->elseRaw("'unknown'");
*/
$case = CaseBuilder::whenRaw("version ~ '-dev-'")->thenRaw("CONCAT(SPLIT_PART(SPLIT_PART(version,'-',1),'.',1),'.',SPLIT_PART(SPLIT_PART(version,'-',1),'.',2),'-',SPLIT_PART(version,'-',2))")
->whenRaw("version ~ '-00000000$'")->thenRaw("CONCAT(SPLIT_PART(SPLIT_PART(version,'-',1),'.',1),'.',SPLIT_PART(SPLIT_PART(version,'-',1),'.',2),'-GIT')")
->whenRaw("version ~ '^v[0-9]+\.[0-9]+'")->thenRaw("CONCAT(SPLIT_PART(SPLIT_PART(version,'-',1),'.',1),'.',SPLIT_PART(SPLIT_PART(version,'-',1),'.',2))")
->elseRaw("'unknown'");
$stats = SiteVersion::select([
DB::raw('DATE(site_versions.created_at) AS created_at'),

View File

@ -11,6 +11,12 @@
</p>
</figure>
<hr>
<figure class="highcharts-figure">
<img src="https://api.star-history.com/svg?repos=leenooks/phpldapadmin">
</figure>
<script>
Highcharts.chart('container', {
chart: {