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.
21 lines
403 B
Elixir
21 lines
403 B
Elixir
defmodule Oban.Web.Timezones do
|
|
@moduledoc false
|
|
|
|
database = :oban_web |> :code.priv_dir() |> Path.join("timezones.txt")
|
|
|
|
@external_resource database
|
|
|
|
@timezones database
|
|
|> File.read!()
|
|
|> String.split("\n", trim: true)
|
|
|
|
def all, do: @timezones
|
|
|
|
def options do
|
|
Enum.map(all(), &{&1, &1})
|
|
end
|
|
|
|
def options_with_blank do
|
|
[{"", ""} | options()]
|
|
end
|
|
end
|