18
18
<x-admin::breadcrumbs name =" settings.webhooks.create" />
19
19
20
20
{!! view_render_event (' admin.settings.webhook.edit.breadrumbs.after' ) ! !}
21
-
21
+
22
22
<div class =" text-xl font-bold dark:text-white" >
23
23
@lang (' admin::app.settings.webhooks.create.title' )
24
24
</div >
25
25
</div >
26
-
26
+
27
27
<div class =" flex items-center gap-x-2.5" >
28
28
<div class =" flex items-center gap-x-2.5" >
29
29
{!! view_render_event (' admin.settings.webhook.edit.save_button.before' ) ! !}
@@ -63,7 +63,7 @@ class="primary-button"
63
63
< p class = " text-base font-semibold text-gray-800 dark:text-white" >
64
64
@lang (' admin::app.settings.webhooks.create.title' )
65
65
< / p>
66
-
66
+
67
67
< p class = " text-sm text-gray-600 dark:text-white" >
68
68
@lang (' admin::app.settings.webhooks.create.info' )
69
69
< / p>
@@ -89,7 +89,7 @@ class="!w-1/6 rounded-r-none"
89
89
: label= " trans('admin::app.settings.webhooks.create.method')"
90
90
>
91
91
< option value= " post" > @lang (' admin::app.settings.webhooks.create.post' )< / option>
92
-
92
+
93
93
< option value= " put" > @lang (' admin::app.settings.webhooks.create.put' )< / option>
94
94
< / x- admin:: form .control - group .control >
95
95
@@ -164,7 +164,7 @@ class="ms-2 cursor-pointer text-xs font-normal text-gray-900 dark:text-gray-300"
164
164
@lang (' admin::app.settings.webhooks.create.default' )
165
165
< / label>
166
166
< / div>
167
-
167
+
168
168
< div class = " flex cursor-pointer items-center justify-center" >
169
169
< input
170
170
id= " x-www-form-urlencoded"
@@ -212,7 +212,7 @@ class="ms-2 cursor-pointer text-xs font-normal text-gray-900 dark:text-gray-300"
212
212
< i class = " icon-down-arrow -mt-px text-xs text-brandColor" >< / i>
213
213
< / div>
214
214
< / x- slot>
215
-
215
+
216
216
< x- slot: menu class = " !p-0 dark:border-gray-800" >
217
217
< input
218
218
type= " hidden"
@@ -242,7 +242,7 @@ class="whitespace-no-wrap flex cursor-pointer items-center justify-between gap-1
242
242
< / template>
243
243
< / div>
244
244
< / div>
245
-
245
+
246
246
< template v- if = " showEditor" >
247
247
< textarea
248
248
ref= " payload"
@@ -281,7 +281,7 @@ class="whitespace-no-wrap flex cursor-pointer items-center justify-between gap-1
281
281
< / p>
282
282
< / div>
283
283
< / x- slot>
284
-
284
+
285
285
< x- slot: content>
286
286
<!-- Name -->
287
287
< x- admin:: form .control - group>
@@ -358,9 +358,9 @@ class="whitespace-no-wrap flex cursor-pointer items-center justify-between gap-1
358
358
< x- admin:: form .control - group .label class = " required" >
359
359
@ {{ title }}
360
360
< / x- admin:: form .control - group .label >
361
-
361
+
362
362
< div class = " flex flex-col" >
363
- < div
363
+ < div
364
364
class = " group my-2 flex items-center justify-between gap-3"
365
365
v- for = " (field, index) in fields"
366
366
: key= " index"
@@ -391,7 +391,7 @@ class="group my-2 flex items-center justify-between gap-3"
391
391
< x- admin:: form .control - group .error :: name= " `${name}[${index}][value]`" / >
392
392
< / div>
393
393
394
- < i
394
+ < i
395
395
class = " icon-delete ml-1 cursor-pointer rounded-md p-1.5 text-2xl transition-all hover:bg-gray-100 dark:hover:bg-gray-950"
396
396
@click = " remove(index)"
397
397
v- if = " fields.length > 1"
@@ -406,7 +406,7 @@ class="invisible cursor-pointer py-2 text-xs text-brandColor hover:text-brandCol
406
406
@lang (' admin::app.settings.webhooks.create.insert-placeholder' )
407
407
< / span>
408
408
< / x- slot>
409
-
409
+
410
410
< x- slot: menu class = " max-h-80 overflow-y-auto !p-0 dark:border-gray-800" >
411
411
< div
412
412
v- for = " entity in placeholders"
@@ -430,12 +430,12 @@ class="whitespace-no-wrap flex cursor-pointer items-center justify-between gap-1
430
430
< / x- admin:: dropdown>
431
431
< / div>
432
432
< / div>
433
-
433
+
434
434
< div class = " inline-block" >
435
435
< button
436
436
type= " button"
437
437
class = " flex max-w-max items-center gap-2 text-brandColor"
438
- @click = " add(index)"
438
+ @click = " add(index)"
439
439
>
440
440
< i class = " icon-add text-md !text-brandColor" >< / i>
441
441
@@ -466,7 +466,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
466
466
467
467
tempPayload: [{ key: ' ' , value: ' ' }],
468
468
469
- headers: [{ key: ' Content Type' , value: ' text/plain;charset=UTF' , readOnly: true }],
469
+ headers: [{ key: ' Content- Type' , value: ' text/plain;charset=UTF' , readOnly: true }],
470
470
471
471
placeholders: @json ($placeholders ),
472
472
};
@@ -485,7 +485,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
485
485
watch: {
486
486
/**
487
487
* Watch the raw type and update the tempPayload.
488
- *
488
+ *
489
489
* @return {void}
490
490
*/
491
491
rawType (newValue , oldValue ) {
@@ -494,7 +494,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
494
494
495
495
/**
496
496
* Watch the content type and update the tempPayload.
497
- *
497
+ *
498
498
* @return {void}
499
499
*/
500
500
contentType (newValue , oldValue ) {
@@ -522,7 +522,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
522
522
methods: {
523
523
/**
524
524
* Handle editor display.
525
- *
525
+ *
526
526
* @returns {void}
527
527
*/
528
528
handleEditorDisplay () {
@@ -539,7 +539,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
539
539
540
540
/**
541
541
* Initiate Editor.
542
- *
542
+ *
543
543
* @param {string} rawType
544
544
* @return {void}
545
545
*/
@@ -567,7 +567,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
567
567
568
568
/**
569
569
* Get the URL endpoint with the parameters
570
- *
570
+ *
571
571
* @returns {string}
572
572
*/
573
573
urlEndPoint () {
@@ -585,7 +585,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
585
585
586
586
this .parameters .forEach (param => {
587
587
if (
588
- param .key
588
+ param .key
589
589
&& param .value
590
590
) {
591
591
url .searchParams .append (param .key , param .value );
@@ -616,7 +616,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
616
616
methods: {
617
617
/**
618
618
* Add a new fields.
619
- *
619
+ *
620
620
* @returns {void}
621
621
*/
622
622
add () {
@@ -625,7 +625,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
625
625
626
626
/**
627
627
* Remove a fields.
628
- *
628
+ *
629
629
* @returns {void}
630
630
*/
631
631
remove (index ) {
@@ -634,7 +634,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
634
634
635
635
/**
636
636
* Save the cursor position when the input is focused.
637
- *
637
+ *
638
638
* @param {Event} event
639
639
* @returns {void}
640
640
*/
@@ -644,7 +644,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
644
644
645
645
/**
646
646
* Insert the selected placeholder into the subject.
647
- *
647
+ *
648
648
* @returns {void}
649
649
*/
650
650
insertPlaceholder (index , value ) {
@@ -673,8 +673,8 @@ class="flex max-w-max items-center gap-2 text-brandColor"
673
673
src= " https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.30.0/codemirror.js"
674
674
>< / script>
675
675
676
- <!--
677
- Html mixed and xml cnd both are dependent
676
+ <!--
677
+ Html mixed and xml cnd both are dependent
678
678
Used for html and css theme
679
679
-->
680
680
< script
@@ -685,7 +685,7 @@ class="flex max-w-max items-center gap-2 text-brandColor"
685
685
686
686
@pushOnce (' styles' )
687
687
<!-- Code mirror style cdn -->
688
- < link
688
+ < link
689
689
rel= " stylesheet"
690
690
href= " https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.13.4/codemirror.css"
691
691
>< / link>
0 commit comments