PhoenixKitWeb.Live.Users.Media (phoenix_kit v1.7.130)

Copy Markdown View Source

Media management LiveView — thin wrapper around MediaBrowser LiveComponent.

This LiveView owns the page layout and assigns required by LayoutWrapper.app_layout. All media browser state and logic live in PhoenixKitWeb.Components.MediaBrowser.

URL sync (shareable …/admin/media?folder=<uuid> deep links) is provided by the MediaBrowser.Embed macro's url_sync option — it injects the handle_params / {:navigate}push_patch round-trip and parses :initial_params from the URL in on_mount, so this module only owns the page-chrome assigns.

Summary

Functions

handle_event(binary, params, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

handle_info(msg, socket)

Callback implementation for Phoenix.LiveView.handle_info/2.

handle_params(params, uri, socket)

Callback implementation for Phoenix.LiveView.handle_params/3.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.