Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Added missing icons
Browse files Browse the repository at this point in the history
Added 'go-http-client' to the list of bots
Stats pages with unique visitor counts are sorted by unique visitors count DESC by default
  • Loading branch information
AlexMordred committed Apr 10, 2018
1 parent 0121100 commit ceb0fb5
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 8 deletions.
Binary file added assets/icons/browsers/coc-coc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/browsers/go-http-client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/browsers/opera-mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/browsers/opera-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/browsers/yandex-browser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/os/unix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 5 additions & 8 deletions src/Controllers/StatisticsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,19 @@ public function summary()
{
$visits24h = VisitStats::query()->visits()
->except(['ajax', 'bots'])
->period(Carbon::now()
->subHours(24));
->period(Carbon::now()->subHours(24));

$visits1w = VisitStats::query()->visits()
->except(['ajax', 'bots'])
->period(Carbon::now()
->subDays(7));
->period(Carbon::now()->subDays(7));

$visits1m = VisitStats::query()->visits()
->except(['ajax', 'bots'])
->period(Carbon::now()
->subMonth(1));
->period(Carbon::now()->subMonth(1));

$visits1y = VisitStats::query()->visits()
->except(['ajax', 'bots'])
->period(Carbon::now()
->subYears(1));
->period(Carbon::now()->subYears(1));

return view('visitstats::summary', array_merge([
'lastVisits' => VisitStats::query()
Expand Down Expand Up @@ -134,6 +130,7 @@ protected function groupedVisits($view, $groupBy, $subtitle)
->withUsers()
->latest()
->except(['ajax', 'bots', 'login_attempts'])
->orderBy('visitors_count', 'DESC')
->groupBy($groupBy)
->paginate(config('visitortracker.results_per_page', 15)),
'visitortrackerSubtitle' => $subtitle,
Expand Down
1 change: 1 addition & 0 deletions src/Tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Tracker
'wget',
'unk',
'perl',
'go-http-client',
];

/**
Expand Down

0 comments on commit ceb0fb5

Please sign in to comment.