import Config

config :mime, :types, %{
  "text/gameboy" => ["gameboy"],
  "text/switch" => ["switch"]
}

config :live_view_native, plugins: [
  LiveViewNativeTest.GameBoy,
  LiveViewNativeTest.Switch
]

config :phoenix_template, format_encoders: [
  gameboy: Phoenix.HTML.Engine,
  switch: Phoenix.HTML.Engine
]

config :phoenix, template_engines: [
  neex: LiveViewNative.Template.Engine
]

config :live_view_native_test_endpoint,
  formats: [:html, :gameboy, :switch],
  otp_app: :live_view_native,
  routes: [
    %{path: "/inline", module: LiveViewNativeTest.InlineLive},
    %{path: "/template", module: LiveViewNativeTest.TemplateLive},
    %{path: "/components", module: LiveViewNativeTest.WithComponentLive},
    %{path: "/component_in_live", module: LiveViewNativeTest.ComponentInLive.Root},
    %{path: "/component_and_nested_in_live", module: LiveViewNativeTest.ComponentAndNestedInLive},
    %{path: "/cids_destroyed", module: LiveViewNativeTest.CidsDestroyedLive},
    %{path: "/multi-targets", module: LiveViewNativeTest.WithMultipleTargets},
    %{path: "/thermo", module: LiveViewNativeTest.ThermostatLive},
    %{path: "/assign_async", module: LiveViewNativeTest.AssignAsyncLive},
    %{path: "/interface", module: LiveViewNativeTest.NestedFunctionComponents}
  ]

config :phoenix, :plug_init_mode, :runtime
