1
0

downgrade to kirby v3

This commit is contained in:
Philip Wagner
2024-09-01 10:47:15 +02:00
parent a4b2aece7b
commit af86acb7a1
1085 changed files with 54743 additions and 65042 deletions

View File

@@ -9,7 +9,7 @@ use Kirby\Form\Form;
return [
'default' => fn () => $this->user(),
'fields' => [
'avatar' => fn (User $user) => $user->avatar()?->crop(512),
'avatar' => fn (User $user) => $user->avatar() ? $user->avatar()->crop(512) : null,
'blueprint' => fn (User $user) => $user->blueprint(),
'content' => fn (User $user) => Form::for($user)->values(),
'email' => fn (User $user) => $user->email(),
@@ -24,10 +24,9 @@ return [
'prev' => fn (User $user) => $user->prev(),
'role' => fn (User $user) => $user->role(),
'roles' => fn (User $user) => $user->roles(),
'username' => fn (User $user) => $user->username(),
'uuid' => fn (User $user) => $user->uuid()?->toString()
'username' => fn (User $user) => $user->username()
],
'type' => User::class,
'type' => 'Kirby\Cms\User',
'views' => [
'default' => [
'avatar',
@@ -40,8 +39,7 @@ return [
'options',
'prev' => 'compact',
'role',
'username',
'uuid'
'username'
],
'compact' => [
'avatar' => 'compact',
@@ -50,8 +48,7 @@ return [
'language',
'name',
'role' => 'compact',
'username',
'uuid'
'username'
],
'auth' => [
'avatar' => 'compact',
@@ -75,7 +72,6 @@ return [
'prev' => ['id', 'name'],
'role',
'username',
'uuid'
],
]
];