diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..c82b4269 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..9e9519b3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +# Path-based git attributes +# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html + +# Ignore all test and documentation with "export-ignore". +/.github export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/phpunit.xml.dist export-ignore +/art export-ignore +/docs export-ignore +/tests export-ignore +/.editorconfig export-ignore +/.php_cs.dist.php export-ignore +/psalm.xml export-ignore +/psalm.xml.dist export-ignore +/testbench.yaml export-ignore +/UPGRADING.md export-ignore +/phpstan.neon.dist export-ignore +/phpstan-baseline.neon export-ignore diff --git a/composer.lock b/composer.lock index 5946f5a9..583fdc49 100644 --- a/composer.lock +++ b/composer.lock @@ -1553,16 +1553,16 @@ }, { "name": "lara-zeus/core", - "version": "2.4.4", + "version": "2.4.5", "source": { "type": "git", "url": "https://github.com/lara-zeus/core.git", - "reference": "8e0ecbf14de8172037f0587096ab0e9fcde292b1" + "reference": "e2652d4edfb741685382870d607e82dabc841e00" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/core/zipball/8e0ecbf14de8172037f0587096ab0e9fcde292b1", - "reference": "8e0ecbf14de8172037f0587096ab0e9fcde292b1", + "url": "https://api.github.com/repos/lara-zeus/core/zipball/e2652d4edfb741685382870d607e82dabc841e00", + "reference": "e2652d4edfb741685382870d607e82dabc841e00", "shasum": "" }, "require": { @@ -1625,7 +1625,7 @@ ], "support": { "issues": "https://github.com/lara-zeus/core/issues", - "source": "https://github.com/lara-zeus/core/tree/2.4.4" + "source": "https://github.com/lara-zeus/core/tree/2.4.5" }, "funding": [ { @@ -1633,7 +1633,7 @@ "type": "github" } ], - "time": "2023-05-28T15:12:06+00:00" + "time": "2023-05-28T16:31:11+00:00" }, { "name": "laravel/framework", @@ -8123,16 +8123,16 @@ }, { "name": "phpstan/phpstan-phpunit", - "version": "1.3.12", + "version": "1.3.13", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "c44246879d692d3b2cf2a21d65be4b4715d6ef21" + "reference": "d8bdab0218c5eb0964338d24a8511b65e9c94fa5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/c44246879d692d3b2cf2a21d65be4b4715d6ef21", - "reference": "c44246879d692d3b2cf2a21d65be4b4715d6ef21", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/d8bdab0218c5eb0964338d24a8511b65e9c94fa5", + "reference": "d8bdab0218c5eb0964338d24a8511b65e9c94fa5", "shasum": "" }, "require": { @@ -8169,9 +8169,9 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.12" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.13" }, - "time": "2023-05-23T11:58:47+00:00" + "time": "2023-05-26T11:05:59+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/resources/views/themes/zeus/fill-forms.blade.php b/resources/views/themes/zeus/fill-forms.blade.php index 77a1ecbd..06548575 100644 --- a/resources/views/themes/zeus/fill-forms.blade.php +++ b/resources/views/themes/zeus/fill-forms.blade.php @@ -33,9 +33,9 @@ @if(!empty($zeusForm->details))
- + {!! nl2br($zeusForm->details) !!} - +
@endif diff --git a/resources/views/themes/zeus/list-forms.blade.php b/resources/views/themes/zeus/list-forms.blade.php index a77a4384..349d3e0a 100644 --- a/resources/views/themes/zeus/list-forms.blade.php +++ b/resources/views/themes/zeus/list-forms.blade.php @@ -8,7 +8,7 @@
@foreach($categories as $category) - + @if($category->logo !== null) {{ $category->name }} {{ __('Logo') }} @endif @@ -28,7 +28,7 @@ @endforeach - + @endforeach
diff --git a/resources/views/themes/zeus/submitted.blade.php b/resources/views/themes/zeus/submitted.blade.php index f9ca1b07..bd49482b 100644 --- a/resources/views/themes/zeus/submitted.blade.php +++ b/resources/views/themes/zeus/submitted.blade.php @@ -3,8 +3,8 @@

{{ __('form submitted successfully') }}

-
- +
+ @if(isset($form->options['confirmationMessage']) && !empty($form->options['confirmationMessage'])) {!! $form->options['confirmationMessage'] !!} @else @@ -13,6 +13,6 @@
@endif - +
diff --git a/src/Filament/Resources/FormResource/Schemata.php b/src/Filament/Resources/FormResource/Schemata.php index 3e633a03..5cce0ce8 100644 --- a/src/Filament/Resources/FormResource/Schemata.php +++ b/src/Filament/Resources/FormResource/Schemata.php @@ -91,8 +91,6 @@ public static function getTabsSchema(): array ->label(__('Form Details')) ->helperText(__('a highlighted section above the form, to show some instructions or more details')), RichEditor::make('options.confirmation-message') - //->hint(__('Translatable')) - //->hintIcon('heroicon-s-translate') ->label(__('Confirmation Message')) ->helperText(__('optional, show a massage whenever any one submit a new entery')), ]), diff --git a/src/Filament/Resources/ResponseResource/Pages/BrowseResponses.php b/src/Filament/Resources/ResponseResource/Pages/BrowseResponses.php index 54887783..c7d5725c 100644 --- a/src/Filament/Resources/ResponseResource/Pages/BrowseResponses.php +++ b/src/Filament/Resources/ResponseResource/Pages/BrowseResponses.php @@ -48,10 +48,9 @@ protected function getViewData(): array if (request()->filled('form_id')) { $form = $form->where('form_id', request('form_id')); } - $form = $form->paginate(1); return [ - 'rows' => $form, + 'rows' => $form->paginate(1), ]; } }