-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom form #37
custom form #37
Conversation
Screen.Recording.2024-09-27.at.10.11.55.movcustom logo size and correction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you so much for the PR, these are small code refactoring
src/Facades/Qr.php
Outdated
@@ -84,6 +97,7 @@ public static function getFormSchema( | |||
'9' => '9', | |||
]), | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated empty line :)
src/Facades/Qr.php
Outdated
@@ -146,7 +160,7 @@ public static function getFormSchema( | |||
]) | |||
->columnSpan(['sm' => 2]) | |||
->columns(['sm' => 2]) | |||
->visible(fn (Get $get) => $get('hasGradient')), | |||
->visible(fn(Get $get) => $get('hasGradient')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you revert the code formatting
src/Facades/Qr.php
Outdated
@@ -182,21 +196,38 @@ public static function getFormSchema( | |||
]) | |||
->columnSpan(['sm' => 2]) | |||
->columns(['sm' => 2]) | |||
->visible(fn (Get $get) => $get('hasEyeColor')), | |||
->visible(fn(Get $get) => $get('hasEyeColor')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you revert the code formatting and empty line
src/Facades/Qr.php
Outdated
]), | ||
|
||
Placeholder::make('preview') | ||
->label(__('Preview')) | ||
->columns(['sm' => 2]) | ||
->columnSpan(['sm' => 2, 'lg' => 1]) | ||
->key('preview_placeholder') | ||
->content(fn (Get $get) => Qr::render( | ||
->content(fn(Get $get) => Qr::render( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code formatting
src/Facades/Qr.php
Outdated
@@ -210,6 +241,8 @@ public static function getFormSchema( | |||
public static function output(?string $data = null, ?array $options = null): HtmlString | |||
{ | |||
$maker = new Generator; | |||
// $maker->errorCorrection('L'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we added the percentage
to the default array we dont need this default variable
src/Facades/Qr.php
Outdated
if (filled($logo->getPathName())) { | ||
$maker = $maker->merge($logo->getPathName(), .4, true); | ||
|
||
if ($logo instanceof \Illuminate\Http\UploadedFile && filled($logo->getPathName())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not following this part and why we need it?
if the image loaded from a storage path I dont think we need to upload it again, right?
fix #39 |
No description provided.