Skip to content

Commit

Permalink
add screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 2, 2024
1 parent 6057e35 commit 83f69de
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
build
composer.lock
coverage
docs
phpunit.xml
phpstan.neon
testbench.yaml
Expand Down
Binary file added docs/broken-links.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 docs/cron.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 docs/uptime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Livewire/Concerns/RemembersApiCalls.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

trait RemembersApiCalls
{
public function remember(callable $apiCall, string $key, ?CarbonInterval $interval = null): mixed
public function rememberApiCall(callable $apiCall, string $key, ?CarbonInterval $interval = null): mixed
{
$interval ??= CarbonInterval::minute();

Expand Down
2 changes: 1 addition & 1 deletion src/Livewire/OhDearBrokenLinksCardComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getBrokenLinks(): ?array
return null;
}

return $this->remember(
return $this->rememberApiCall(
fn () => $this->ohDear()?->brokenLinks($this->siteId),
'site:'.$this->siteId,
CarbonInterval::minutes(15)
Expand Down
2 changes: 1 addition & 1 deletion src/Livewire/OhDearCronPulseCardComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getCronChecks(): ?array
return null;
}

return $this->remember(
return $this->rememberApiCall(
fn () => $this->ohDear()?->cronChecks($this->siteId),
'site:'.$this->siteId,
);
Expand Down
2 changes: 1 addition & 1 deletion src/Livewire/OhDearUptimePulseCardComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getSite(): ?Site
return null;
}

$siteAttributes = $this->remember(
$siteAttributes = $this->rememberApiCall(
fn () => $this->ohDear()?->site($this->siteId)?->attributes,
'site:'.$this->siteId,
CarbonInterval::seconds(10),
Expand Down

0 comments on commit 83f69de

Please sign in to comment.