Packages
phosphor_live_view
2.1.0
Typed Phosphor icons for Phoenix LiveView with compile-time SVG components and dynamic helpers.
Current section
Files
Jump to
Current section
Files
lib/phosphor/generated/manifest.ex
defmodule Phosphor.Generated.Manifest do
@moduledoc false
@weights [:thin, :light, :regular, :bold, :fill, :duotone]
@data_file Path.expand("manifest_data.exs", __DIR__)
@external_resource @data_file
@icons (
if File.exists?(@data_file) do
case Code.eval_file(@data_file, []) do
{icons, _binding} when is_list(icons) -> icons
other -> raise "invalid manifest data at #{@data_file}: #{inspect(other)}"
end
else
IO.warn("Phosphor manifest not found; run `mix phosphor.gen`. Using empty manifest for now.")
[]
end
)
def weights, do: @weights
def icons, do: @icons
end