Skip to content

Beautiful Open-Source Form Builder

fix eslint (#922)

Chirag Chhatrala33a53409ab66
diff --git a/api/app/Service/AI/Prompts/Form/PresentationRules.php b/api/app/Service/AI/Prompts/Form/PresentationRules.php
index 85ce3d146..c6970c462 100644
--- a/api/app/Service/AI/Prompts/Form/PresentationRules.php
+++ b/api/app/Service/AI/Prompts/Form/PresentationRules.php
@@ -15,7 +15,24 @@ class PresentationRules
return [
'mode' => self::MODE_FOCUSED,
'allowedFieldTypes' => [
- 'text','rich_text','date','url','phone_number','email','checkbox','select','multi_select','matrix','number','rating','scale','slider','files','signature','barcode','nf-text'
+ 'text',
+ 'rich_text',
+ 'date',
+ 'url',
+ 'phone_number',
+ 'email',
+ 'checkbox',
+ 'select',
+ 'multi_select',
+ 'matrix',
+ 'number',
+ 'rating',
+ 'scale',
+ 'slider',
+ 'files',
+ 'signature',
+ 'barcode',
+ 'nf-text'
],
'constraintsText' => implode("\n", [
'Focused mode (Typeform-like):',
@@ -31,7 +48,28 @@ class PresentationRules
return [
'mode' => self::MODE_CLASSIC,
'allowedFieldTypes' => [
- 'text','rich_text','date','url','phone_number','email','checkbox','select','multi_select','matrix','number','rating','scale','slider','files','signature','barcode','nf-text','nf-page-break','nf-divider','nf-image','nf-code'
+ 'text',
+ 'rich_text',
+ 'date',
+ 'url',
+ 'phone_number',
+ 'email',
+ 'checkbox',
+ 'select',
+ 'multi_select',
+ 'matrix',
+ 'number',
+ 'rating',
+ 'scale',
+ 'slider',
+ 'files',
+ 'signature',
+ 'barcode',
+ 'nf-text',
+ 'nf-page-break',
+ 'nf-divider',
+ 'nf-image',
+ 'nf-code'
],
'constraintsText' => 'Classic mode: you can use layout widths and optional page breaks.'
];
diff --git a/client/lib/forms/composables/useFocusedStructure.js b/client/lib/forms/composables/useFocusedStructure.js
index 9bcd67ea0..4a3d5b46b 100644
--- a/client/lib/forms/composables/useFocusedStructure.js
+++ b/client/lib/forms/composables/useFocusedStructure.js
@@ -71,7 +71,7 @@ export function useFocusedStructure(formConfig, managerState, formData, fieldSta
return pageIndex
}
- const getTargetDropIndex = (relativeDropIndex, targetPageIndex) => {
+ const getTargetDropIndex = (relativeDropIndex, _targetPageIndex) => {
// In focused mode, the VueDraggable renders ALL form.properties (not filtered)
// So the indices from Vue Draggable are ALREADY absolute indices!
// We just need to clamp them to valid range