BeamConsoleWeb.Assets (beam_console v0.5.3)

Copy Markdown View Source

Serves BeamConsole's self-contained, digest-addressed browser assets.

Requests with stale or unknown digests return 404; current assets are immutable and can be cached indefinitely.

Summary

Functions

Serves the stylesheet when the requested digest matches the current asset.

Returns the digest embedded in the current BeamConsole stylesheet URL.

Serves the vendored Cytoscape module when its digest matches.

Returns the digest for the vendored Cytoscape graph module.

Serves the BeamConsole browser client when its digest matches.

Returns the digest embedded in the current BeamConsole client URL.

Serves the vendored LiveView browser module when its digest matches.

Returns the digest for the vendored Phoenix LiveView browser module.

Serves the vendored Phoenix browser module when its digest matches.

Returns the digest for the vendored Phoenix browser module.

Serves BeamConsole's browser support module when its digest matches.

Returns the digest for BeamConsole's browser support module.

Serves BeamConsole's first-paint display bootstrap when its digest matches.

Returns the digest for BeamConsole's first-paint display bootstrap.

Functions

css(conn, params)

@spec css(Plug.Conn.t(), map()) :: Plug.Conn.t()

Serves the stylesheet when the requested digest matches the current asset.

css_digest()

@spec css_digest() :: String.t()

Returns the digest embedded in the current BeamConsole stylesheet URL.

cytoscape(conn, params)

@spec cytoscape(Plug.Conn.t(), map()) :: Plug.Conn.t()

Serves the vendored Cytoscape module when its digest matches.

cytoscape_digest()

@spec cytoscape_digest() :: String.t()

Returns the digest for the vendored Cytoscape graph module.

js(conn, params)

@spec js(Plug.Conn.t(), map()) :: Plug.Conn.t()

Serves the BeamConsole browser client when its digest matches.

js_digest()

@spec js_digest() :: String.t()

Returns the digest embedded in the current BeamConsole client URL.

live_view(conn, params)

@spec live_view(Plug.Conn.t(), map()) :: Plug.Conn.t()

Serves the vendored LiveView browser module when its digest matches.

live_view_digest()

@spec live_view_digest() :: String.t()

Returns the digest for the vendored Phoenix LiveView browser module.

phoenix(conn, params)

@spec phoenix(Plug.Conn.t(), map()) :: Plug.Conn.t()

Serves the vendored Phoenix browser module when its digest matches.

phoenix_digest()

@spec phoenix_digest() :: String.t()

Returns the digest for the vendored Phoenix browser module.

support(conn, params)

@spec support(Plug.Conn.t(), map()) :: Plug.Conn.t()

Serves BeamConsole's browser support module when its digest matches.

support_digest()

@spec support_digest() :: String.t()

Returns the digest for BeamConsole's browser support module.

theme(conn, params)

@spec theme(Plug.Conn.t(), map()) :: Plug.Conn.t()

Serves BeamConsole's first-paint display bootstrap when its digest matches.

theme_digest()

@spec theme_digest() :: String.t()

Returns the digest for BeamConsole's first-paint display bootstrap.