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

Changed review stars to blade #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JimmyHoenderdaal
Copy link
Member

@JimmyHoenderdaal JimmyHoenderdaal commented Dec 20, 2024

This changes the reviews to be without any vue templates
there is a new reviews stars component with documentation that can take php and vue data
The inputstars has also be refactored to be inside blade instead of with vue with some improved styling
image

also there is no need anymore for v-blur since nothing will jump on pageload

here is the core pr that utilizes these changes: rapidez/core#679

Comment on lines +10 to +16
<div
style="width: {{ $score }}%"
@if ($attributes->has('v-bind:score'))
v-bind:style="{ width: ({{ $attributes['v-bind:score'] }} || 0) + '%'}"
@endif
class="absolute inset-0 flex gap-0.5 overflow-hidden"
>
Copy link
Member

Choose a reason for hiding this comment

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

Could this be written cleaner with @attributes()? See: https://github.com/rapidez/blade-directives#attributes or is this the cleanest option?

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.

5 participants