Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 1, 2024
1 parent 82fe44e commit 65a1277
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/brokenLinks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class="text-xs font-bold text-gray-700 uppercase transition-colors dark:text-gra
<x-pulse::td
class="max-w-[25%] text-gray-700 truncate dark:text-gray-300 dark:bg-gray-800">
<a target="_blank"
href="{{ $brokenLink->foundOnUrl }}">{{ $brokenLink->foundOnUrl }}</a>
href="{{ $brokenLink->foundOnUrl }}">{{ $brokenLink->relativeFoundOnUrl }}</a>
</x-pulse::td>
<x-pulse::td class="text-gray-700 truncate dark:text-gray-300 dark:bg-gray-800">
{{ $brokenLink->linkText }}
Expand Down
2 changes: 0 additions & 2 deletions resources/views/uptime.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,4 @@ function getGradient(ctx, chartArea) {
<span>{{\Carbon\Carbon::createFromTimestamp($this->getData()[count($this->getData()) -2][0]/1000)->diffInMinutes(now(), true)}} min ago</span>
</div>
</div>

</div>
</x-pulse::card>
4 changes: 2 additions & 2 deletions src/Livewire/OhDearBrokenLinksCardComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function getBrokenLinks(): ?array
return null;
}

return $this->remember(
return ray()->pass($this->remember(
fn () => $this->ohDear()?->brokenLinks($this->siteId),
'site:'.$this->siteId,
);
));
}
}
1 change: 0 additions & 1 deletion src/Livewire/OhDearUptimePulseCardComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public function getData()

protected function getLabels(): array
{

return collect($this->getData())
->map(function (array $dataPoint) {
return Carbon::createFromTimestamp($dataPoint[0] / 1000)
Expand Down

0 comments on commit 65a1277

Please sign in to comment.