• Operand
  • can sell console.

gram:op

> ./lib/op_web/mirror/base.ex

Lenses
(coming soon!)


defmodule OpWeb.Mirror.Base do
  use OpWeb, :live_view
  def address, do: System.get_env("MIRROR_BASE") || "../"

    # (socket |> get_connect_params)["colorscheme"] |> IO.inspect
  @impl true
  def mount(_params, _session, socket) do
    {:ok, socket}
  end

  @impl true
  def handle_params(%{"base" => base}, _, socket) do
    {:noreply,
      socket
      |> assign(:page_title, "gram:" <> base <> " | Operand")
      |> assign(:base, base)
    }
  end
end