Advertisement · 728 × 90

Posts by Josh Hanley 🇦🇺

Preview
Making the Livewire Flux Editor component return JSON instead of HTML

Flux uses Tiptap for its Editor component - offering incredible interoperability with Statamic's Bard fieldtype. With one catch: Flux's implementation returns HTML.

Never fear, @joshhanley.au paired with me to help tweak the getter to get JSON instead.

www.martyfriedel.com/blog/making-...

5 months ago 13 1 0 0
Preview
Release v4.0.0-beta.1 · livewire/livewire Livewire v4 beta release ⚡️ We’re excited to announce the first beta release of Livewire v4! This version brings major improvements, internal rewrites, and new features. Things are still in progres...

Livewire v4 beta has been tagged! Go forth ⚡️ github.com/livewire/liv...

Docs can be found here livewire.laravel.com/docs/4.x/upg...

5 months ago 33 4 0 0

Agreed!

5 months ago 6 0 0 0

You might be waiting a while, it’s not something we plan to change. What’s wrong with tables?

7 months ago 2 0 1 0

Yep! All in the matter of time 😁

7 months ago 0 0 1 0
Video

We've just fixed up how sidebar groups are handled, so make sure to upgrade to v2.3.1!

7 months ago 5 0 2 0
Video

We just shipped a ton of improvements to Flux's sidebar! 👌

- Collapsible sidebars
- Collapsed state auto-persisted in localStorage
- Sidebar item group icons
- New `sidebar.search` component
- + like 5 other new sidebar components

Checkout the blog post: fluxui.dev/blog

7 months ago 14 1 1 0
Advertisement

Love it! 😁 yep it’s a default for all projects for me now 😊

8 months ago 2 0 0 0
Post image

New Flux release: v2.2.4 with a bunch more fixes! 😁

8 months ago 17 0 2 0

And how are you going?

Yep, a good friend will always want to know. There have been times when I've got so much going on in my world, when I call my best friend, I rant for a bit. But then I always ask, so how're you doing? No matter how long into the conversation we may be. But it goes both ways.

8 months ago 2 0 1 0

Soon ™️

8 months ago 1 0 0 0

To all of those social butterflies in Denver - enjoy Laracon!

Don’t forget to keep an eye out for someone seeming on the outer, someone needing to feel included, someone needing a smile.

There are lots of invisible developers out there.

Try to do something that can help others feel seen.

8 months ago 31 8 0 0
How to save datetimes for future events - (when UTC is not the right answer) Imagine that it’s January 2015 and you’re making an appointment in a calendar application for ameeting that will take place in Santiago, Chile on the April 3...

Here's another great article that changed how I viewed storing dates/times www.creativedeletion.com/2015/03/19/p...

8 months ago 2 0 0 0

Thankfully, while events aren't fun to deal with, they are definitely reliable. I've been using this pattern even since v2 for shared modals.

8 months ago 0 0 0 0

Yep! Just tested this and yeah it works as I was hoping 😁

8 months ago 1 0 2 0

I think I know what you want and it's coming in v4 🤫👀 (if it works the way I'm hoping it will 😆)

8 months ago 1 0 1 0
Advertisement

Yeah the main reason for the dispatch is, what if you click edit on one user, then escape out and then click edit on a different user? The modal comp can't mount twice. You could potentially do that if you had inline modals but that adds to the DOM. I just have one edit-user modal comp for the page.

8 months ago 1 0 1 0

I'd love to know the answer to this too 😅

8 months ago 0 0 0 0

I then have loading inside the modal, which `wire:target` the edit method, to show the loading state and hide the modal contents.

8 months ago 0 0 1 0

Yep, that's how I do it. I have a button that has `wire:click="$dispatch('edit-user', {{$user->id}})"` and it is wrapped in a `flux:modal.trigger` component, which opens the modal.

My modal component has a listener for the edit-user event on my `edit($userId)` method.

8 months ago 2 0 1 0

One component for the page and another for the modal 😁

8 months ago 0 0 1 0

Ahh! Yep, that'll do it. What do you use that for?

8 months ago 0 0 0 0

Actually those dates are off by a day in comparison to the date inside the element 🤔

8 months ago 0 0 1 0

Yeah Flux uses browser locale based date objects to get the individual dates. But it should only be rendering the day and not the rest of it.

8 months ago 0 0 1 0
Advertisement

Sadly not. If you can’t work it out, happy to jump on a call to see if we can get to the bottom of it.

8 months ago 1 0 2 0

Very strange! Just tested locally and I couldn’t get it to break 😅 thought maybe it was an issue with date picker after flux scripts or something. But it doesn’t function at all then 😂

8 months ago 0 0 1 0

Ok thanks. I’ll have a quick play and see if I can replicate it. Does seem odd styles wouldn’t be there initially but be fine after any interaction

9 months ago 0 0 1 0

Nope! I’ll test it out. Assuming it’s nothing fancy, just date picker inside a fly out modal?

9 months ago 0 0 1 0

Haha was just keeping them for a little while after I migrated to digital ocean. Probably should clean them up but yeah it’s not worth it 😂

9 months ago 0 0 0 0

Yeah same, mines like $1 for some old RDS snapshots 😂

9 months ago 0 0 1 0