-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
879cfaf
commit 4398d92
Showing
36 changed files
with
231 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\DTO\UseCase\Metric; | ||
|
||
use App\Models\Anime; | ||
use Illuminate\Contracts\Support\Arrayable; | ||
use Illuminate\Database\Eloquent\Collection; | ||
|
||
/** | ||
* Class MetricDTO | ||
* @package App\DTO\UseCase\Metric | ||
* @template-implements Arrayable<string, mixed> | ||
*/ | ||
readonly class MetricDTO implements Arrayable | ||
{ | ||
/** | ||
* @param int $animeCount | ||
* @param int $usersCount | ||
* @param array<int> $animePerMonth | ||
* @param array<string, int> $animePerDomain | ||
* @param Collection<int, Anime> $latestAnime | ||
*/ | ||
public function __construct( | ||
public int $animeCount, | ||
public int $usersCount, | ||
public array $animePerMonth, | ||
public array $animePerDomain, | ||
public Collection $latestAnime, | ||
) { | ||
} | ||
|
||
/** | ||
* Get the instance as an array. | ||
* | ||
* @return array<string, mixed> | ||
*/ | ||
public function toArray(): array | ||
{ | ||
return [ | ||
'animeCount' => $this->animeCount, | ||
'usersCount' => $this->usersCount, | ||
'animePerMonth' => $this->animePerMonth, | ||
'animePerDomain' => $this->animePerDomain, | ||
'latestAnime' => $this->latestAnime, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
@import 'primevue/resources/themes/lara-dark-indigo/theme.css'; | ||
@import 'primeicons/primeicons.css'; | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<script setup lang="ts"> | ||
import InputText from 'primevue/inputtext'; | ||
import { ComponentPublicInstance, onMounted, ref } from 'vue'; | ||
const query = ref<string | null>(null); | ||
const searchInput = ref<InputText | null>(null); | ||
const focus = (event: KeyboardEvent) => { | ||
if (event.ctrlKey && event.key === 'k') { | ||
event.preventDefault(); | ||
const input = searchInput.value as ComponentPublicInstance<{ | ||
$el: HTMLInputElement; | ||
}>; | ||
input?.$el?.focus(); | ||
} | ||
}; | ||
onMounted(() => window.addEventListener('keydown', focus)); | ||
</script> | ||
|
||
<template> | ||
<span class="p-input-icon-left"> | ||
<i class="pi pi-search text-zinc-600 dark:text-white" /> | ||
|
||
<InputText | ||
ref="searchInput" | ||
v-model="query" | ||
name="search" | ||
class="text-xs ring-1 bg-transparent ring-gray-200 dark:ring-zinc-600 focus:ring-red-300 pl-10 pr-5 text-gray-600 dark:text-white py-3 rounded-full w-full outline-none focus:ring-1" | ||
placeholder="Search (CTRL + K)" | ||
/> | ||
</span> | ||
</template> | ||
|
||
<style scoped></style> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.