Skip to content

Commit

Permalink
Replace local config code with library config code
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Oct 10, 2023
1 parent 78dee5e commit 5eb738a
Show file tree
Hide file tree
Showing 177 changed files with 240 additions and 2,836 deletions.
3 changes: 2 additions & 1 deletion lib/screens/bus_screen_data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ defmodule Screens.BusScreenData do
alias Screens.LogScreenData
alias Screens.NearbyConnections
alias Screens.Schedules.Schedule
alias Screens.Config.{Bus, State}
alias ScreensConfig.Bus
alias Screens.Config.State
alias Screens.Util

def by_screen_id(screen_id, is_screen, now \\ DateTime.utc_now()) do
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/config.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Screens.Config do
@moduledoc false

alias Screens.Config.{Devops, Screen}
alias ScreensConfig.{Devops, Screen}

@type t :: %__MODULE__{
screens: %{
Expand All @@ -16,7 +16,7 @@ defmodule Screens.Config do
defstruct screens: nil,
devops: Devops.from_json(:default)

use Screens.Config.Struct, children: [screens: {:map, Screen}, devops: Devops]
use ScreensConfig.Struct, children: [screens: {:map, Screen}, devops: Devops]

@spec schedule_refresh_for_screen_ids(t(), list(String.t()), DateTime.t()) :: t()
def schedule_refresh_for_screen_ids(config, screen_ids, now \\ DateTime.utc_now()) do
Expand Down
67 changes: 0 additions & 67 deletions lib/screens/config/audio_psa.ex

This file was deleted.

16 changes: 0 additions & 16 deletions lib/screens/config/behaviour.ex

This file was deleted.

26 changes: 0 additions & 26 deletions lib/screens/config/bus.ex

This file was deleted.

26 changes: 0 additions & 26 deletions lib/screens/config/devops.ex

This file was deleted.

34 changes: 0 additions & 34 deletions lib/screens/config/dup.ex

This file was deleted.

19 changes: 0 additions & 19 deletions lib/screens/config/dup/departures.ex

This file was deleted.

81 changes: 0 additions & 81 deletions lib/screens/config/dup/override.ex

This file was deleted.

47 changes: 0 additions & 47 deletions lib/screens/config/dup/override/fullscreen_alert.ex

This file was deleted.

21 changes: 0 additions & 21 deletions lib/screens/config/dup/override/fullscreen_image.ex

This file was deleted.

Loading

0 comments on commit 5eb738a

Please sign in to comment.