Skip to content

Commit

Permalink
Nettoie les fichiers statiques non utilisés (#3710)
Browse files Browse the repository at this point in the history
* Nettoie les fichiers statiques non utilisés

* Remove fonts folder
  • Loading branch information
AntoineAugusti authored Jan 9, 2024
1 parent 202fde3 commit 653fc23
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 216 deletions.
3 changes: 1 addition & 2 deletions apps/transport/lib/transport_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ defmodule TransportWeb do
below. Instead, define any helper function in modules
and import those modules here.
"""
def static_paths,
do: ~w(js css fonts images data favicon.ico documents BingSiteAuth.xml google5be4b09db1274976.html demo_rt.html)
def static_paths, do: ~w(css documents images js favicon.ico)

def controller do
quote do
Expand Down
4 changes: 0 additions & 4 deletions apps/transport/priv/static/BingSiteAuth.xml

This file was deleted.

208 changes: 0 additions & 208 deletions apps/transport/priv/static/demo_rt.html

This file was deleted.

1 change: 0 additions & 1 deletion apps/transport/priv/static/google5be4b09db1274976.html

This file was deleted.

9 changes: 8 additions & 1 deletion apps/transport/test/transport_web/routing/router_test.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
defmodule Transport.TransportWeb.Routing.RouterTest do
defmodule TransportWeb.Routing.RouterTest do
use ExUnit.Case, async: true
doctest TransportWeb.Router, import: true

test "static_paths documents and files exist" do
assert "../../apps/transport/priv/static/*"
|> Path.wildcard()
|> Enum.map(&Path.basename/1)
|> MapSet.new() == TransportWeb.static_paths() |> MapSet.new()
end
end

0 comments on commit 653fc23

Please sign in to comment.