Skip to content

Commit be50b9f

Browse files
committed
Add new changes.
1 parent 68ffe1e commit be50b9f

File tree

8 files changed

+23
-29
lines changed

8 files changed

+23
-29
lines changed

docs/2.2/packages/blade-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ Let's assume you want to use the **`tabs`** component on shop. You can call it l
722722
class="container"
723723
:title="Tab-2"
724724
>
725-
<div class="container mt-[60px] max-1180:px-[20px]">
726-
<p class="text-[#6E6E6E] text-[18px] max-1180:text-[14px]">
725+
<div class="container mt-[60px] max-1180:px-5">
726+
<p class="text-[#6E6E6E] text-lg max-1180:text-sm">
727727
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
728728
</p>
729729
</div>

docs/2.2/packages/controllers.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ In `packages/Webkul/Blog/src/Http/Controllers/Admin/PostController.php`, define
7979
/**
8080
* Create a controller instance.
8181
*
82-
* @param \Webkul\Blog\Repository\PostRepository $postRepository
8382
* @return void
8483
*/
8584
public function __construct(protected PostRepository $postRepository){}
@@ -151,7 +150,6 @@ In `packages/Webkul/Blog/src/Http/Controllers/Shop/PostController.php`, define t
151150
/**
152151
* Create a controller instance.
153152
*
154-
* @param \Webkul\Blog\Repository\PostRepository $postRepository
155153
* @return void
156154
*/
157155
public function __construct(protected PostRepository $postRepository){}

docs/2.2/packages/layouts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ To extend the default layout of the Bagisto admin panel, you'll create or modify
2121
@lang('blog::app.admin.index.page-title')
2222
</x-slot:title>
2323

24-
<div class="flex gap-[16px] justify-between max-sm:flex-wrap">
25-
<p class="py-[11px] text-[20px] text-gray-800 dark:text-white font-bold">
24+
<div class="flex gap-4 justify-between max-sm:flex-wrap">
25+
<p class="py-[11px] text-xl text-gray-800 dark:text-white font-bold">
2626
<!-- Section Title -->
2727
@lang('blog::app.admin.index.page-title')
2828
</p>
2929

30-
<div class="flex gap-x-[10px] items-center">
30+
<div class="flex gap-x-2.5 items-center">
3131
<!-- Action Button -->
3232
</div>
3333
</div>

docs/2.2/packages/store-data-through-repositories.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ Copy the following code into your newly created repository file.
6969
{
7070
/**
7171
* Specify the Model class name
72-
*
73-
* @return string
7472
*/
7573
function model(): string
7674
{

docs/2.2/packages/validation.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,12 @@ import { createApp } from "vue/dist/vue.esm-bundler";
113113
import { configure, defineRule } from "vee-validate";
114114
import { localize } from "@vee-validate/i18n";
115115
import en from "@vee-validate/i18n/dist/locale/en.json";
116-
import * as AllRules from '@vee-validate/rules';
116+
import { all } from '@vee-validate/rules';
117117

118118
/**
119119
* Registration of all global validators.
120120
*/
121-
Object.keys(AllRules).forEach(rule => {
122-
defineRule(rule, AllRules[rule]);
123-
});
121+
Object.entries(all).forEach(([name, rule]) => defineRule(name, rule));
124122

125123
/**
126124
* This regular expression allows phone numbers with the following conditions:
@@ -131,7 +129,7 @@ Object.keys(AllRules).forEach(rule => {
131129
* someone wants to customize it, they can override this rule.
132130
*/
133131
defineRule("phone", (value) => {
134-
if (!value || !value.length) {
132+
if (! value || ! value.length) {
135133
return true;
136134
}
137135

@@ -195,7 +193,7 @@ configure({
195193
Below are examples of how to use VeeValidate for validation in Vue components within Bagisto:
196194

197195
```html
198-
<x-admin::form.control-group class="w-full mb-[10px]">
196+
<x-admin::form.control-group class="w-full mb-2.5">
199197
<x-admin::form.control-group.label class="required">
200198
@lang('blog::app.admin.blog.create.title')
201199
</x-admin::form.control-group.label>
@@ -223,11 +221,11 @@ Below are examples of how to use VeeValidate for validation in Vue components wi
223221

224222
```javascript
225223
defineRule("phone", (value) => {
226-
if (!value || !value.length) {
224+
if (! value || ! value.length) {
227225
return true;
228226
}
229227

230-
if (!/^\+?\d+$/.test(value)) {
228+
if (! /^\+?\d+$/.test(value)) {
231229
return false;
232230
}
233231

@@ -238,12 +236,12 @@ defineRule("phone", (value) => {
238236

239237
```javascript
240238
defineRule("address", (value) => {
241-
if (!value || !value.length) {
239+
if (! value || ! value.length) {
242240
return true;
243241
}
244242

245243
if (
246-
!/^[a-zA-Z0-9\s.\/*'\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u0590-\u05FF\u3040-\u309F\u30A0-\u30FF\u0400-\u04FF\u0D80-\u0DFF\u3400-\u4DBF\u2000-\u2A6D\u00C0-\u017F\u0980-\u09FF\u0900-\u097F\u4E00-\u9FFF,\(\)-]{1,60}$/iu.test(
244+
! /^[a-zA-Z0-9\s.\/*'\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u0590-\u05FF\u3040-\u309F\u30A0-\u30FF\u0400-\u04FF\u0D80-\u0DFF\u3400-\u4DBF\u2000-\u2A6D\u00C0-\u017F\u0980-\u09FF\u0900-\u097F\u4E00-\u9FFF,\(\)-]{1,60}$/iu.test(
247245
value
248246
)
249247
) {

docs/master/packages/blade-components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Let's assume you want to use the **`tabs`** component on shop. You can call it l
251251
:title="Tab-1"
252252
:is-selected="true"
253253
>
254-
<div class="container mt-[60px] max-1180:px-[20px]">
254+
<div class="container mt-[60px] max-1180:px-5">
255255
<p class="text-[#6E6E6E] text-lg max-1180:text-sm">
256256
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
257257
</p>
@@ -262,7 +262,7 @@ Let's assume you want to use the **`tabs`** component on shop. You can call it l
262262
class="container"
263263
:title="Tab-2"
264264
>
265-
<div class="container mt-[60px] max-1180:px-[20px]">
265+
<div class="container mt-[60px] max-1180:px-5">
266266
<p class="text-[#6E6E6E] text-lg max-1180:text-sm">
267267
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
268268
</p>
@@ -711,8 +711,8 @@ Let's assume you want to use the **`tabs`** component on shop. You can call it l
711711
:title="Tab-1"
712712
:is-selected="true"
713713
>
714-
<div class="container mt-[60px] max-1180:px-[20px]">
715-
<p class="text-[#6E6E6E] text-[18px] max-1180:text-[14px]">
714+
<div class="container mt-[60px] max-1180:px-5">
715+
<p class="text-[#6E6E6E] text-lg max-1180:text-sm">
716716
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
717717
</p>
718718
</div>
@@ -722,8 +722,8 @@ Let's assume you want to use the **`tabs`** component on shop. You can call it l
722722
class="container"
723723
:title="Tab-2"
724724
>
725-
<div class="container mt-[60px] max-1180:px-[20px]">
726-
<p class="text-[#6E6E6E] text-[18px] max-1180:text-[14px]">
725+
<div class="container mt-[60px] max-1180:px-5">
726+
<p class="text-[#6E6E6E] text-lg max-1180:text-sm">
727727
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
728728
</p>
729729
</div>

docs/master/packages/layouts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ To extend the default layout of the Bagisto admin panel, you'll create or modify
2121
@lang('blog::app.admin.index.page-title')
2222
</x-slot:title>
2323

24-
<div class="flex gap-[16px] justify-between max-sm:flex-wrap">
25-
<p class="py-[11px] text-[20px] text-gray-800 dark:text-white font-bold">
24+
<div class="flex gap-4 justify-between max-sm:flex-wrap">
25+
<p class="py-[11px] text-xl text-gray-800 dark:text-white font-bold">
2626
<!-- Section Title -->
2727
@lang('blog::app.admin.index.page-title')
2828
</p>
2929

30-
<div class="flex gap-x-[10px] items-center">
30+
<div class="flex gap-x-2.5 items-center">
3131
<!-- Action Button -->
3232
</div>
3333
</div>

docs/master/packages/validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ configure({
193193
Below are examples of how to use VeeValidate for validation in Vue components within Bagisto:
194194

195195
```html
196-
<x-admin::form.control-group class="w-full mb-[10px]">
196+
<x-admin::form.control-group class="w-full mb-2.5">
197197
<x-admin::form.control-group.label class="required">
198198
@lang('blog::app.admin.blog.create.title')
199199
</x-admin::form.control-group.label>

0 commit comments

Comments
 (0)