From 653fc233935724c0a8940277ae65d7e93af8c162 Mon Sep 17 00:00:00 2001 From: Antoine Augusti Date: Tue, 9 Jan 2024 15:07:51 +0100 Subject: [PATCH] =?UTF-8?q?Nettoie=20les=20fichiers=20statiques=20non=20ut?= =?UTF-8?q?ilis=C3=A9s=20(#3710)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Nettoie les fichiers statiques non utilisés * Remove fonts folder --- apps/transport/lib/transport_web.ex | 3 +- apps/transport/priv/static/BingSiteAuth.xml | 4 - apps/transport/priv/static/demo_rt.html | 208 ------------------ .../priv/static/google5be4b09db1274976.html | 1 - .../transport_web/routing/router_test.exs | 9 +- 5 files changed, 9 insertions(+), 216 deletions(-) delete mode 100644 apps/transport/priv/static/BingSiteAuth.xml delete mode 100644 apps/transport/priv/static/demo_rt.html delete mode 100644 apps/transport/priv/static/google5be4b09db1274976.html diff --git a/apps/transport/lib/transport_web.ex b/apps/transport/lib/transport_web.ex index 49f54031e2..4f9105546b 100644 --- a/apps/transport/lib/transport_web.ex +++ b/apps/transport/lib/transport_web.ex @@ -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 diff --git a/apps/transport/priv/static/BingSiteAuth.xml b/apps/transport/priv/static/BingSiteAuth.xml deleted file mode 100644 index 92227d498c..0000000000 --- a/apps/transport/priv/static/BingSiteAuth.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - 54A811D50227E6E0D29ED7A7B6536A2E - \ No newline at end of file diff --git a/apps/transport/priv/static/demo_rt.html b/apps/transport/priv/static/demo_rt.html deleted file mode 100644 index 6b4e0ad0e9..0000000000 --- a/apps/transport/priv/static/demo_rt.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - Temps réel - - - - - - - - - - -
-

Exemple d’appel à l’api temps réel

-

-

Requête

-

-        

Réponse

-
-            
-        
-
-
- - - - diff --git a/apps/transport/priv/static/google5be4b09db1274976.html b/apps/transport/priv/static/google5be4b09db1274976.html deleted file mode 100644 index 1374c60711..0000000000 --- a/apps/transport/priv/static/google5be4b09db1274976.html +++ /dev/null @@ -1 +0,0 @@ -google-site-verification: google5be4b09db1274976.html \ No newline at end of file diff --git a/apps/transport/test/transport_web/routing/router_test.exs b/apps/transport/test/transport_web/routing/router_test.exs index 8fc4cb8c70..7e27dea5e6 100644 --- a/apps/transport/test/transport_web/routing/router_test.exs +++ b/apps/transport/test/transport_web/routing/router_test.exs @@ -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