Upgrade to 3.8.2

This commit is contained in:
Bastian Allgeier
2022-11-15 13:26:12 +01:00
parent fe2baa1b7a
commit f9e812cb0c
45 changed files with 760 additions and 346 deletions

View File

@@ -57,6 +57,7 @@ return [
},
'type' => fn (File $file) => $file->type(),
'url' => fn (File $file) => $file->url(),
'uuid' => fn (File $file) => $file->uuid()?->toString()
],
'type' => 'Kirby\Cms\File',
'views' => [
@@ -79,7 +80,8 @@ return [
'size',
'template',
'type',
'url'
'url',
'uuid'
],
'compact' => [
'filename',
@@ -87,6 +89,7 @@ return [
'link',
'type',
'url',
'uuid'
],
'panel' => [
'blueprint',
@@ -109,7 +112,8 @@ return [
'prevWithTemplate' => 'compact',
'template',
'type',
'url'
'url',
'uuid'
]
],
];

View File

@@ -38,6 +38,7 @@ return [
'template' => fn (Page $page) => $page->intendedTemplate()->name(),
'title' => fn (Page $page) => $page->title()->value(),
'url' => fn (Page $page) => $page->url(),
'uuid' => fn (Page $page) => $page->uuid()?->toString()
],
'type' => 'Kirby\Cms\Page',
'views' => [
@@ -45,7 +46,8 @@ return [
'id',
'title',
'url',
'num'
'num',
'uuid'
],
'default' => [
'content',
@@ -57,7 +59,8 @@ return [
'slug',
'template',
'title',
'url'
'url',
'uuid'
],
'panel' => [
'id',
@@ -71,7 +74,8 @@ return [
'previewUrl',
'slug',
'title',
'url'
'url',
'uuid'
],
'selector' => [
'id',

View File

@@ -35,11 +35,8 @@ return [
$code = $this->user()?->language() ??
$this->kirby()->panelLanguage();
if ($translation = $this->kirby()->translation($code)) {
return $translation;
}
return $this->kirby()->translation('en');
return $this->kirby()->translation($code) ??
$this->kirby()->translation('en');
},
'kirbytext' => fn () => $this->kirby()->option('panel.kirbytext') ?? true,
'user' => fn () => $this->user(),

View File

@@ -24,7 +24,8 @@ 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()
'username' => fn (User $user) => $user->username(),
'uuid' => fn (User $user) => $user->uuid()?->toString()
],
'type' => 'Kirby\Cms\User',
'views' => [
@@ -39,7 +40,8 @@ return [
'options',
'prev' => 'compact',
'role',
'username'
'username',
'uuid'
],
'compact' => [
'avatar' => 'compact',
@@ -48,7 +50,8 @@ return [
'language',
'name',
'role' => 'compact',
'username'
'username',
'uuid'
],
'auth' => [
'avatar' => 'compact',
@@ -72,6 +75,7 @@ return [
'prev' => ['id', 'name'],
'role',
'username',
'uuid'
],
]
];