prop/vendor/oban_web/lib/oban/web/page.ex
Graham McIntire caad7d90a7 Mount Oban Web dashboard at /admin/oban
Vendor oban_web 2.12.1 and oban_met 1.1.0 (taken from the
towerops-web2 vendor tree), bump oban to ~> 2.21, and mount the Oban
dashboard at /admin/oban behind the existing require_admin on_mount
hook. Adds an admin-only "Oban" nav link and extends the Dockerfile
to copy vendor/ before deps.get so production builds pick up the
path dependencies.
2026-04-09 14:07:33 -05:00

26 lines
724 B
Elixir

defmodule Oban.Web.Page do
@moduledoc false
alias Phoenix.LiveView.Socket
@doc """
Called from parent live view on mount and before page changes.
"""
@callback handle_mount(socket :: Socket.t()) :: Socket.t()
@doc """
Called by parent live view on mount, and on each subsequent refresh.
"""
@callback handle_refresh(socket :: Socket.t()) :: Socket.t()
@doc """
Called by parent live view on param changes.
"""
@callback handle_params(params :: map(), uri :: String.t(), socket :: Socket.t()) ::
{:noreply, Socket.t()}
@doc """
Called by parent live view on info messages.
"""
@callback handle_info(message :: term(), socket :: Socket.t()) :: {:noreply, Socket.t()}
end