Skip to content

Commit 57b8c6e

Browse files
committed
Merge branch 'main' into load-on-demand-and-fix-index-query
2 parents 9e2ee88 + 785f8f8 commit 57b8c6e

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

src/app/Library/CrudPanel/Traits/Settings.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait Settings
1515
* Getter for the settings key-value store.
1616
*
1717
* @param string $key Usually operation.name (ex: list.exportButtons)
18-
* @return mixed [description]
18+
* @return mixed Setting value or null
1919
*/
2020
public function get(string $key)
2121
{
@@ -96,7 +96,7 @@ public function operationSetting(string $key, $value = null, $operation = null)
9696
* Defaults to the current operation.
9797
*
9898
* @param string $key Has no operation prepended. (ex: exportButtons)
99-
* @return mixed [description]
99+
* @return mixed Setting value or null
100100
*/
101101
public function getOperationSetting(string $key, $operation = null)
102102
{
@@ -110,7 +110,7 @@ public function getOperationSetting(string $key, $operation = null)
110110
* Defaults to the current operation.
111111
*
112112
* @param string $key Has no operation prepended. (ex: exportButtons)
113-
* @return mixed [description]
113+
* @return bool
114114
*/
115115
public function hasOperationSetting(string $key, $operation = null)
116116
{
@@ -124,7 +124,7 @@ public function hasOperationSetting(string $key, $operation = null)
124124
* Defaults to the current operation.
125125
*
126126
* @param string $key Has no operation prepended. (ex: max_level)
127-
* @param bool $value True/false depending on success.
127+
* @param mixed $value The value you want to store.
128128
*/
129129
public function setOperationSetting(string $key, $value, $operation = null)
130130
{

src/resources/lang/vi/base.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'update_account_info' => 'Cập Nhật Thông Tin Tài Khoản',
4242
'save' => 'Lưu',
4343
'cancel' => 'Huỷ bỏ',
44+
'error' => 'Lỗi',
4445
'success' => 'Thành công',
4546
'warning' => 'Cảnh báo',
4647
'notice' => 'Thông báo',

src/resources/lang/vi/crud.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@
111111
'print' => 'In',
112112
'column_visibility' => 'Ẩn/hiện cột',
113113
],
114+
'custom_views' => [
115+
'title' => 'Chế độ xem tuỳ chỉnh',
116+
'title_short' => 'lượt xem',
117+
'default' => 'mặc định',
118+
],
114119

115120
// global crud - errors
116121
'unauthorized_access' => 'Truy cập chưa được cấp phép - bạn cần được cấp quyền để xem trang này.',

src/resources/views/ui/dashboard.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
$widgets['before_content'][] = [
1111
'type' => 'jumbotron',
1212
'heading' => trans('backpack::base.welcome'),
13+
'heading_class' => 'display-3 '.(backpack_theme_config('layout') === 'horizontal_overlap' ? ' text-white' : ''),
1314
'content' => trans('backpack::base.use_sidebar'),
15+
'content_class' => backpack_theme_config('layout') === 'horizontal_overlap' ? 'text-white' : '',
1416
'button_link' => backpack_url('logout'),
1517
'button_text' => trans('backpack::base.logout'),
1618
];

src/resources/views/ui/widgets/jumbotron.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
@endphp
77

88
@includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_start'))
9-
<div class="jumbotron mb-2">
9+
<div class="jumbotron mb-2 ">
1010

1111
@if (isset($widget['heading']))
12-
<h1 class="display-3">{!! $widget['heading'] !!}</h1>
12+
<h1 class="{{ $widget['heading_class'] ?? 'display-3'}}">{!! $widget['heading'] !!}</h1>
1313
@endif
1414

1515
@if (isset($widget['content']))
16-
<p>{!! $widget['content'] !!}</p>
16+
<p class="{{ $widget['content_class'] ?? ''}}">{!! $widget['content'] !!}</p>
1717
@endif
1818

1919
@if (isset($widget['button_link']))

0 commit comments

Comments
 (0)