Skip to content
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

Merged
merged 5 commits into from
Dec 22, 2024
Merged

custom form #37

merged 5 commits into from
Dec 22, 2024

Conversation

do-dyco
Copy link
Contributor

@do-dyco do-dyco commented Sep 26, 2024

No description provided.

@yughoz
Copy link

yughoz commented Sep 27, 2024

Screen.Recording.2024-09-27.at.10.11.55.mov

custom logo size and correction

@atmonshi
Copy link
Member

thank you @do-dyco and @yughoz
there is two PRs with similar changes, can we agree on one and close the other :)

@yughoz
Copy link

yughoz commented Sep 27, 2024

thank you @do-dyco and @yughoz there is two PRs with similar changes, can we agree on one and close the other :)

Let me know if you need any adjustments!

Copy link
Member

@atmonshi atmonshi left a 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 Show resolved Hide resolved
@@ -84,6 +97,7 @@ public static function getFormSchema(
'9' => '9',
]),


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicated empty line :)

@@ -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')),
Copy link
Member

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

@@ -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')),
Copy link
Member

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 Show resolved Hide resolved
]),

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(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code formatting

@@ -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');
Copy link
Member

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

if (filled($logo->getPathName())) {
$maker = $maker->merge($logo->getPathName(), .4, true);

if ($logo instanceof \Illuminate\Http\UploadedFile && filled($logo->getPathName())) {
Copy link
Member

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?

@aSmodeusW
Copy link

@yughoz, @atmonshi can you tell me how you overcame issue of uploading qr code? i can upload it but when i want to view that image of an qr code in an edit,it says Call to a member function getPathName() on string

@yughoz
Copy link

yughoz commented Dec 4, 2024

@yughoz, @atmonshi can you tell me how you overcame issue of uploading qr code? i can upload it but when i want to view that image of an qr code in an edit,it says Call to a member function getPathName() on string

I have updated in my git
just waiting for the PR to be approved

@atmonshi
Copy link
Member

fix #39

@atmonshi atmonshi merged commit 40dcb6f into lara-zeus:1.x Dec 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants