Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
88cdb415
Commit
88cdb415
authored
Jul 23, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEAN] warnings
parent
aff12f91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
Config.purs
src/Gargantext/Config.purs
+3
-8
Main.purs
src/Main.purs
+4
-5
No files found.
src/Gargantext/Config.purs
View file @
88cdb415
...
@@ -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/")
src/Main.purs
View file @
88cdb415
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" ])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment