Commit 88cdb415 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CLEAN] warnings

parent aff12f91
...@@ -4,9 +4,8 @@ import Data.Array as A ...@@ -4,9 +4,8 @@ import Data.Array as A
import Data.Array.NonEmpty as AN import Data.Array.NonEmpty as AN
import Data.Maybe (Maybe) import Data.Maybe (Maybe)
import Data.NonEmpty (NonEmpty, (:|), head) import Data.NonEmpty (NonEmpty, (:|), head)
import Data.String as S import Data.String (Pattern(..), Replacement(..), replace) as S
import Data.String.Utils as S import Data.String.Utils (startsWith) as S
import Data.Tuple.Nested ((/\))
import Effect (Effect) import Effect (Effect)
import Gargantext.Ends import Gargantext.Ends
import Gargantext.Prelude (bind, pure, ($)) import Gargantext.Prelude (bind, pure, ($))
...@@ -42,7 +41,6 @@ localUrl = "http://localhost:8008" ...@@ -42,7 +41,6 @@ localUrl = "http://localhost:8008"
backend_local :: Backend backend_local :: Backend
backend_local = backend V10 "/api/" localUrl "local.cnrs" backend_local = backend V10 "/api/" localUrl "local.cnrs"
matchCurrentLocation :: Effect (Maybe Backend) matchCurrentLocation :: Effect (Maybe Backend)
matchCurrentLocation = do matchCurrentLocation = do
href <- href href <- href
...@@ -55,7 +53,6 @@ matchCurrentLocation = do ...@@ -55,7 +53,6 @@ matchCurrentLocation = do
publicBackend :: Backend publicBackend :: Backend
publicBackend = backend_local publicBackend = backend_local
publicBackend' :: Effect Backend publicBackend' :: Effect Backend
publicBackend' = do publicBackend' = do
href <- href href <- href
...@@ -65,9 +62,8 @@ publicBackend' = do ...@@ -65,9 +62,8 @@ publicBackend' = do
, version : V10 , version : V10
} }
defaultApps :: NonEmpty Array Frontend defaultApps :: NonEmpty Array Frontend
defaultApps = relative :| [prod, dev, demo, haskell, caddy] defaultApps = relative :| [prod, dev, demo, haskell, python, caddy]
where where
relative = frontend "/#/" "" "Relative" relative = frontend "/#/" "" "Relative"
prod = frontend "/#/" "https://v4.gargantext.org" "v4.gargantext.org" prod = frontend "/#/" "https://v4.gargantext.org" "v4.gargantext.org"
...@@ -94,4 +90,3 @@ defaultFrontends = Frontends { app: defaultApp, static: defaultStatic } ...@@ -94,4 +90,3 @@ defaultFrontends = Frontends { app: defaultApp, static: defaultStatic }
changePort :: String -> String changePort :: String -> String
changePort = S.replace (S.Pattern "http://localhost:8000/") (S.Replacement "http://localhost:8008/") changePort = S.replace (S.Pattern "http://localhost:8000/") (S.Replacement "http://localhost:8008/")
module Main (main) where module Main (main) where
import Prelude (Unit, ($))
import Data.Maybe (Maybe(..))
import Data.Nullable (toMaybe)
import DOM.Simple (Element) import DOM.Simple (Element)
import DOM.Simple.Document (document)
import DOM.Simple.Console (log) import DOM.Simple.Console (log)
import DOM.Simple.Document (document)
import Data.Maybe (Maybe(..))
import Data.Nullable (toMaybe)
import Effect (Effect) import Effect (Effect)
import FFI.Simple ((...)) import FFI.Simple ((...))
import Gargantext.Components.App (app) import Gargantext.Components.App (app)
import Gargantext.Utils.Reactix as R2 import Gargantext.Utils.Reactix as R2
import Prelude (Unit, ($))
main :: Effect Unit main :: Effect Unit
main = paint $ toMaybe (document ... "getElementById" $ [ "app" ]) main = paint $ toMaybe (document ... "getElementById" $ [ "app" ])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment