Skip to content

Commit da7a372

Browse files
committed
AnimateCss updated
1 parent 1fc72ff commit da7a372

38 files changed

Lines changed: 5577 additions & 5292 deletions

app/Concerns/HasAnimate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
trait HasAnimate
88
{
9-
public const ASSET_TYPES = [
9+
public const array ASSET_TYPES = [
1010
'attention',
1111
'bounce',
1212
'fade-in',

app/Http/Controllers/AnimateController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ class AnimateController extends Controller
1010
{
1111
public function index()
1212
{
13-
$animates = Animate::all()->map(fn (Animate $a) => [
13+
$animates = Animate::all()->map(fn(Animate $a) => [
1414
'name' => $a->name,
15+
'title' => $a->title,
1516
'text' => Str::title(Str::replace('-', ' ', Str::after($a->name, 'animate-'))),
1617
'category' => $a->meta['category'] ?? 'animations',
1718
]);

app/Models/Animate.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,16 @@
33
namespace App\Models;
44

55
use App\Concerns\HasAnimate;
6+
use Illuminate\Database\Eloquent\Attributes\Fillable;
67
use Illuminate\Database\Eloquent\Model;
78
use Illuminate\Database\Eloquent\Relations\BelongsTo;
89
use Illuminate\Database\Eloquent\SoftDeletes;
910

11+
#[Fillable(['name', 'title', 'description', 'author', 'user_id', 'type', 'meta', 'css_vars', 'css', 'registryDependencies'])]
1012
class Animate extends Model
1113
{
1214
use HasAnimate, SoftDeletes;
13-
14-
protected $fillable = [
15-
'name', 'title', 'description', 'author',
16-
'user_id',
17-
'type',
18-
'meta',
19-
'css_vars', 'css',
20-
'registryDependencies',
21-
];
22-
15+
2316
public function user(): BelongsTo
2417
{
2518
return $this->belongsTo(User::class);

public/build/assets/animate-css-CdF61fdh.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/build/assets/animate-css-D2kkQJIA.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/assets/app-B7dxLK3Z.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/assets/app-D9N3hBZ8.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/build/assets/appearance-CSMoGVZA.js renamed to public/build/assets/appearance-5QqRZx_B.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/assets/confirm-password-CUHatG27.js renamed to public/build/assets/confirm-password-BHPc_KEt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)