Change stats graph to vX.Y from vX.Y.Z, add star-history
This commit is contained in:
parent
414bf83344
commit
ac5b0f3e56
@ -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'),
|
||||
|
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user