Skip to content

Commit

Permalink
update number type to integer or string from 2.0 branch to master
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-webkul committed Sep 17, 2024
1 parent e02c422 commit 565b4a8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions docs/2.0/packages/create-system-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ return [
], [
'name' => 'items',
'title' => 'blog::app.admin.system.settings.items_per_page',
'type' => 'number',
'type' => 'integer',
'validation' => 'numeric'
]
]
Expand Down Expand Up @@ -169,7 +169,7 @@ return [
[
'name' => 'number_type',
'title' => 'admin::app.admin.system.number-type',
'type' => 'number',
'type' => 'integer',
],
],
],
Expand Down Expand Up @@ -309,7 +309,7 @@ return [
], [
'name' => 'minimum_order_amount',
'title' => 'admin::app.configuration.index.sales.order-settings.minimum-order.minimum-order-amount',
'type' => 'number',
'type' => 'integer',
'validation' => 'required_if:enable,1|numeric',
'depends' => 'enable:1',
'channel_based' => true,
Expand Down Expand Up @@ -391,7 +391,7 @@ return [
[
'name' => 'max_upload_size',
'title' => 'admin::app.admin.system.max-upload-size',
'type' => 'number',
'type' => 'integer',
'validation' => 'required|integer|min:1|max:1024',
],
[
Expand Down
4 changes: 2 additions & 2 deletions docs/2.0/packages/datagrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ In **`Webkul\DataGrid\DataGrid\DataGrid.php`** abstract class, two abstract meth
$this->addColumn([
'index' => 'id',
'label' => trans('blog::app.admin.datagrid.id'),
'type' => 'number',
'type' => 'integer',
'searchable' => false,
'sortable' => true,
'filterable' => true
Expand Down Expand Up @@ -203,7 +203,7 @@ class PostDataGrid extends DataGrid
$this->addColumn([
'index' => 'id',
'label' => trans('blog::app.admin.datagrid.id'),
'type' => 'number',
'type' => 'integer',
'searchable' => false,
'sortable' => true,
'filterable' => true,
Expand Down
8 changes: 4 additions & 4 deletions docs/2.1/packages/create-system-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ return [
], [
'name' => 'items',
'title' => 'blog::app.admin.system.settings.items_per_page',
'type' => 'number',
'type' => 'integer',
'validation' => 'numeric'
]
]
Expand Down Expand Up @@ -171,7 +171,7 @@ return [
[
'name' => 'number_type',
'title' => 'admin::app.admin.system.number-type',
'type' => 'number',
'type' => 'Integer',
],
],
],
Expand Down Expand Up @@ -315,7 +315,7 @@ return [
], [
'name' => 'minimum_order_amount',
'title' => 'admin::app.configuration.index.sales.order-settings.minimum-order.minimum-order-amount',
'type' => 'number',
'type' => 'integer',
'validation' => 'required_if:enable,1|numeric',
'depends' => 'enable:1',
'channel_based' => true,
Expand Down Expand Up @@ -398,7 +398,7 @@ return [
[
'name' => 'max_upload_size',
'title' => 'admin::app.admin.system.max-upload-size',
'type' => 'number',
'type' => 'integer',
'validation' => 'required|integer|min:1|max:1024',
],
[
Expand Down
4 changes: 2 additions & 2 deletions docs/2.1/packages/datagrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ In **`Webkul\DataGrid\DataGrid\DataGrid.php`** abstract class, two abstract meth
$this->addColumn([
'index' => 'id',
'label' => trans('blog::app.admin.datagrid.id'),
'type' => 'number',
'type' => 'integer',
'searchable' => false,
'sortable' => true,
'filterable' => true
Expand Down Expand Up @@ -203,7 +203,7 @@ class PostDataGrid extends DataGrid
$this->addColumn([
'index' => 'id',
'label' => trans('blog::app.admin.datagrid.id'),
'type' => 'number',
'type' => 'integer',
'searchable' => false,
'sortable' => true,
'filterable' => true,
Expand Down
8 changes: 4 additions & 4 deletions docs/2.2/packages/create-system-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ return [
], [
'name' => 'items',
'title' => 'blog::app.admin.system.settings.items_per_page',
'type' => 'number',
'type' => 'integer',
'validation' => 'numeric'
]
]
Expand Down Expand Up @@ -171,7 +171,7 @@ return [
[
'name' => 'number_type',
'title' => 'admin::app.admin.system.number-type',
'type' => 'number',
'type' => 'integer',
],
],
],
Expand Down Expand Up @@ -315,7 +315,7 @@ return [
], [
'name' => 'minimum_order_amount',
'title' => 'admin::app.configuration.index.sales.order-settings.minimum-order.minimum-order-amount',
'type' => 'number',
'type' => 'integer',
'validation' => 'required_if:enable,1|numeric',
'depends' => 'enable:1',
'channel_based' => true,
Expand Down Expand Up @@ -398,7 +398,7 @@ return [
[
'name' => 'max_upload_size',
'title' => 'admin::app.admin.system.max-upload-size',
'type' => 'number',
'type' => 'integer',
'validation' => 'required|integer|min:1|max:1024',
],
[
Expand Down
8 changes: 4 additions & 4 deletions docs/2.x/packages/create-system-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ return [
], [
'name' => 'items',
'title' => 'blog::app.admin.system.settings.items_per_page',
'type' => 'number',
'type' => 'integer',
'validation' => 'numeric'
]
]
Expand Down Expand Up @@ -169,7 +169,7 @@ return [
[
'name' => 'number_type',
'title' => 'admin::app.admin.system.number-type',
'type' => 'number',
'type' => 'integer',
],
],
],
Expand Down Expand Up @@ -309,7 +309,7 @@ return [
], [
'name' => 'minimum_order_amount',
'title' => 'admin::app.configuration.index.sales.order-settings.minimum-order.minimum-order-amount',
'type' => 'number',
'type' => 'integer',
'validation' => 'required_if:enable,1|numeric',
'depends' => 'enable:1',
'channel_based' => true,
Expand Down Expand Up @@ -391,7 +391,7 @@ return [
[
'name' => 'max_upload_size',
'title' => 'admin::app.admin.system.max-upload-size',
'type' => 'number',
'type' => 'integer',
'validation' => 'required|integer|min:1|max:1024',
],
[
Expand Down
4 changes: 2 additions & 2 deletions docs/2.x/packages/datagrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ In **`Webkul\DataGrid\DataGrid\DataGrid.php`** abstract class, two abstract meth
$this->addColumn([
'index' => 'id',
'label' => trans('blog::app.admin.datagrid.id'),
'type' => 'number',
'type' => 'integer',
'searchable' => false,
'sortable' => true,
'filterable' => true
Expand Down Expand Up @@ -203,7 +203,7 @@ class PostDataGrid extends DataGrid
$this->addColumn([
'index' => 'id',
'label' => trans('blog::app.admin.datagrid.id'),
'type' => 'number',
'type' => 'integer',
'searchable' => false,
'sortable' => true,
'filterable' => true,
Expand Down
8 changes: 4 additions & 4 deletions docs/master/packages/create-system-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ return [
], [
'name' => 'items',
'title' => 'blog::app.admin.system.settings.items_per_page',
'type' => 'number',
'type' => 'integer',
'validation' => 'numeric'
]
]
Expand Down Expand Up @@ -169,7 +169,7 @@ return [
[
'name' => 'number_type',
'title' => 'admin::app.admin.system.number-type',
'type' => 'number',
'type' => 'string',
],
],
],
Expand Down Expand Up @@ -309,7 +309,7 @@ return [
], [
'name' => 'minimum_order_amount',
'title' => 'admin::app.configuration.index.sales.order-settings.minimum-order.minimum-order-amount',
'type' => 'number',
'type' => 'integer',
'validation' => 'required_if:enable,1|numeric',
'depends' => 'enable:1',
'channel_based' => true,
Expand Down Expand Up @@ -391,7 +391,7 @@ return [
[
'name' => 'max_upload_size',
'title' => 'admin::app.admin.system.max-upload-size',
'type' => 'number',
'type' => 'integer',
'validation' => 'required|integer|min:1|max:1024',
],
[
Expand Down

0 comments on commit 565b4a8

Please sign in to comment.