Skip to content

Commit

Permalink
chore: trigger rustywind & fix failing tests (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored Jan 6, 2025
1 parent 280d8fd commit 59c7a98
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 51 deletions.
3 changes: 1 addition & 2 deletions resources/views/components/clipboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<x-ark-clipboard
:value="$value"
:tooltip-content="$tooltip"
:class="Arr::toCssClasses([
'flex items-center w-auto h-auto ml-2 transition-default',
:class="Arr::toCssClasses(['flex items-center w-auto h-auto ml-2 transition-default',
$colors,
$attributes->get('class'),
])"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
:title-color="$titleColor"
:subtitle-color="$subtitleColor"
:icon-size="$iconSize"
:arrows-class="Arr::toCssClasses([
'md-lg:bg-none md-lg:dark:bg-none',
:arrows-class="Arr::toCssClasses(['md-lg:bg-none md-lg:dark:bg-none',
'arkvault-arrows' => ! $home,
'arkvault-arrows-home' => $home,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class="text-sm font-semibold text-theme-secondary-500 dark:text-theme-dark-500"
>
<x-slot
name="button"
:class="Arr::toCssClasses([
'transition-default',
:class="Arr::toCssClasses(['transition-default',
$buttonClass,
])"
::class="{
Expand Down
3 changes: 1 addition & 2 deletions resources/views/components/delegates/vote-link.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class="text-sm font-semibold text-theme-secondary-500 dark:text-theme-dark-500"
>
<x-slot
name="button"
:class="Arr::toCssClasses([
'transition-default',
:class="Arr::toCssClasses(['transition-default',
$buttonClass,
])"
::class="{
Expand Down
9 changes: 3 additions & 6 deletions resources/views/components/general/dropdown/filter.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,17 @@ class="md:hidden"
dropdown-class="px-6 w-full md:px-8 table-filter md:w-[284px]"
:close-on-click="false"
class=""
:dropdown-wrapper-class="Arr::toCssClasses([
'w-full',
:dropdown-wrapper-class="Arr::toCssClasses(['w-full',
'hidden md:block' => ! $mobile,
])"
dropdown-background="bg-white dark:bg-theme-dark-900 dark:border dark:border-theme-dark-800"
dropdown-padding="py-1"
:button-class="Arr::toCssClasses([
'flex flex-1 justify-center items-center rounded sm:flex-none button-secondary',
:button-class="Arr::toCssClasses(['flex flex-1 justify-center items-center rounded sm:flex-none button-secondary',
'h-8 w-8 p-0' => $withoutText,
'w-full sm:py-1.5 sm:px-4 md:p-2' => ! $withoutText,
])"
active-button-class=""
:button-wrapper-class="Arr::toCssClasses([
'w-full h-5 md:h-4' => ! $withoutText,
:button-wrapper-class="Arr::toCssClasses(['w-full h-5 md:h-4' => ! $withoutText,
])"
>
<x-slot name="button">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<span {{ $attributes->class($class) }}>
@if($amountForItself !== null && $amountForItself > 0)
<div
class="flex items-center py-[4.5px] px-1.5 mr-1.5 h-full text-[#A56D4C] bg-[#F6DFB5] dark:bg-[#AA6868] dim:bg-[#AB8282] dark:text-theme-dark-50"
class="flex items-center px-1.5 mr-1.5 h-full py-[4.5px] text-[#A56D4C] bg-[#F6DFB5] dim:bg-[#AB8282] dark:bg-[#AA6868] dark:text-theme-dark-50"
data-tippy-content="{{ trans('general.fiat_excluding_self', [
'amount' => ExplorerNumberFormatter::currency($amountForItself, Network::currency())
]) }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
<x-ark-icon
:name="$icon"
size="xs"
:class="Arr::toCssClasses([
'md:hidden' => $text,
:class="Arr::toCssClasses(['md:hidden' => $text,
])"
/>

Expand Down
3 changes: 1 addition & 2 deletions resources/views/components/stats/periods-selector.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ class="px-2"

<x-tabs.tab
:name="$val"
:class="Arr::toCssClasses([
'pl-2' => ! $loop->first,
:class="Arr::toCssClasses(['pl-2' => ! $loop->first,
])"
>
{{ $label }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ class="whitespace-nowrap"
<x-tables.rows.desktop.encapsulated.address
:model="$delegate->wallet()"
without-clipboard
:delegate-name-class="Arr::toCssClasses([
'md-lg:w-auto',
:delegate-name-class="Arr::toCssClasses(['md-lg:w-auto',
'md:w-[200px]' => ! $delegate->keepsMissing(),
])"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
:name="$name"
:livewire-sort="$livewireSort"
:sorting-id="$sortingId"
:class="Arr::toCssClasses([
'text-left',
:class="Arr::toCssClasses(['text-left',
$class,
])"
/>
Expand All @@ -29,8 +28,7 @@
:breakpoint="$breakpoint"
:first-on="$firstOn"
:last-on="$lastOn"
:class="Arr::toCssClasses([
'text-left',
:class="Arr::toCssClasses(['text-left',
$class,
])"
:name="$name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
:first-on="$firstOn"
:last-on="$lastOn"
:width="$width"
:class="Arr::toCssClasses([
'text-left',
:class="Arr::toCssClasses(['text-left',
'group/header cursor-pointer' => $sortingId !== null,
'flex-row-reverse space-x-0' => $livewireSort && $sortingId !== null,
$class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@
<x-ark-icon
name="arrows.caret-up"
size="w-2 h-2"
:class="Arr::toCssClasses([
'group-[.disabled]/header:text-theme-secondary-300 group-[.disabled]/header:dark:text-theme-dark-800',
:class="Arr::toCssClasses(['group-[.disabled]/header:text-theme-secondary-300 group-[.disabled]/header:dark:text-theme-dark-800',
'text-theme-primary-600 dark:text-theme-dark-blue-400' => $this->sortKey === $id && $this->sortDirection === SortDirection::ASC,
])"
/>

<x-ark-icon
name="arrows.caret-down"
size="w-2 h-2"
:class="Arr::toCssClasses([
'group-[.disabled]/header:text-theme-secondary-300 group-[.disabled]/header:dark:text-theme-dark-800',
:class="Arr::toCssClasses(['group-[.disabled]/header:text-theme-secondary-300 group-[.disabled]/header:dark:text-theme-dark-800',
'text-theme-primary-600 dark:text-theme-dark-blue-400' => $this->sortKey === $id && $this->sortDirection === SortDirection::DESC,
'text-theme-secondary-500 dark:text-theme-dark-500' => $this->sortKey !== $id,
])"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
:initial-sort="$initialSort"
:sort-disabled="$sortDisabled"
sort-icon-alignment="left"
:class="Arr::toCssClasses([
'leading-4.25 items-center',
:class="Arr::toCssClasses(['leading-4.25 items-center',
'text-right' => $livewireSort || $sortingId === null,
$class,
])"
Expand All @@ -44,8 +43,7 @@
:breakpoint="$breakpoint"
:first-on="$firstOn"
:last-on="$lastOn"
:class="Arr::toCssClasses([
'text-right',
:class="Arr::toCssClasses(['text-right',
$class,
])"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
:first-on="$firstOn"
:last-on="$lastOn"
:width="$width"
:class="Arr::toCssClasses([
'group/header' => ! $hideSorting && $sortingId !== null,
:class="Arr::toCssClasses(['group/header' => ! $hideSorting && $sortingId !== null,
'cursor-pointer' => ! $hideSorting && $sortingId !== null && (($livewireSort && $this->isReady) || ! $livewireSort),
'flex-row-reverse space-x-0' => ! $hideSorting && $livewireSort && $sortingId !== null,
'disabled' => $sortDisabled || (! $hideSorting && $livewireSort && $sortingId !== null && ! $this->isReady),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
@foreach ($delegates as $delegate)
<x-tables.rows.mobile
wire:key="{{ Helpers::generateId('delegate-mobile', $delegate->address()) }}"
:expand-class="Arr::toCssClasses([
'space-x-3 divide-x divide-theme-secondary-300 dark:divide-theme-dark-700' => ! $delegate->isResigned(),
:expand-class="Arr::toCssClasses(['space-x-3 divide-x divide-theme-secondary-300 dark:divide-theme-dark-700' => ! $delegate->isResigned(),
])"
expandable
:content-class="config('arkscan.arkconnect.enabled') ? '!pb-0 sm:!pb-3' : ''"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class="delegate-monitor-mobile"
isExpanded: false,
})"
wire:key="{{ Helpers::generateId('delegate-mobile', $delegate->order(), $delegate->wallet()->address(), $delegate->roundNumber(), microtime(true)) }}"
:expand-class="Arr::toCssClasses([
'space-x-3 divide-x divide-theme-secondary-300 dark:divide-theme-dark-700' => ! $delegate->wallet()->isResigned(),
:expand-class="Arr::toCssClasses(['space-x-3 divide-x divide-theme-secondary-300 dark:divide-theme-dark-700' => ! $delegate->wallet()->isResigned(),
])"
::class="{
'delegate-monitor-favorite': isFavorite === true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
<div class="flex flex-col sm:flex-row sm:flex-1 leading-4.25">
<x-tables.rows.mobile.encapsulated.username
:model="$wallet"
:class="Arr::toCssClasses([
'sm:flex-1 mb-4 sm:mb-0' => $wallet->username(),
:class="Arr::toCssClasses(['sm:flex-1 mb-4 sm:mb-0' => $wallet->username(),
'sm:flex-1 hidden sm:block' => ! $wallet->username(),
])"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
@unless ($withoutFee)
<x-tables.rows.desktop.encapsulated.fee
:model="$model"
:class="Arr::toCssClasses([
'hidden text-xs md:block text-theme-secondary-700 dark:text-theme-dark-200',
:class="Arr::toCssClasses(['hidden text-xs md:block text-theme-secondary-700 dark:text-theme-dark-200',
$feeBreakpointClass,
])"
without-styling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

<x-tables.rows.desktop.encapsulated.age
:model="$model"
:class="Arr::toCssClasses([
'text-theme-secondary-700 dark:text-theme-dark-200',
:class="Arr::toCssClasses(['text-theme-secondary-700 dark:text-theme-dark-200',
$attributes->get('class'),
])"
/>
6 changes: 2 additions & 4 deletions resources/views/livewire/navbar/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ class="w-full"
id="search"
name="search"
model="query"
:class="Arr::toCssClasses([
'rounded-md border border-transparent w-[340px] md:w-full md-lg:w-[340px] group transition-default bg-theme-secondary-200 search-dropdown',
:class="Arr::toCssClasses(['rounded-md border border-transparent w-[340px] md:w-full md-lg:w-[340px] group transition-default bg-theme-secondary-200 search-dropdown',
'dark:bg-theme-dark-800 cursor-not-allowed' => $isDisabled,
'focus-within:bg-white hover:bg-white dark:bg-theme-dark-900 focus-within:border-theme-primary-600 focus-within:dark:border-theme-primary-600 hover:[&:not(:focus-within)]:border-theme-primary-600 hover:[&:not(:focus-within)]:dark:border-theme-dark-700' => ! $isDisabled,
])"
:placeholder="trans('general.navbar.search_placeholder')"
:container-class="Arr::toCssClasses([
'flex pl-1 border border-transparent dark:border-theme-dark-700',
:container-class="Arr::toCssClasses(['flex pl-1 border border-transparent dark:border-theme-dark-700',
'cursor-not-allowed' => $isDisabled,
'group-hover:[&:not(:focus-within)]:dark:border-theme-dark-700 focus-within:border-theme-primary-600 focus-within:dark:border-theme-primary-600 hover:[&:not(:focus-within)]:border-theme-primary-600' => ! $isDisabled,
])"
Expand Down
4 changes: 4 additions & 0 deletions tests/Unit/Console/Commands/CacheMarketDataStatisticsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Event;

beforeEach(function () {
$this->travelTo('2024-08-01 01:00:00');
});

it('should cache market data statistics', function () {
$this->travelTo('2024-06-24 16:55:23');

Expand Down

0 comments on commit 59c7a98

Please sign in to comment.