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
a850d993
Commit
a850d993
authored
Jul 13, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIXME] window location
parent
8e0cb957
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
Public.purs
src/Gargantext/Components/Nodes/Home/Public.purs
+15
-3
No files found.
src/Gargantext/Components/Nodes/Home/Public.purs
View file @
a850d993
module Gargantext.Components.Nodes.Home.Public where
import DOM.Simple.Console (log)
import Effect (Effect)
import Effect.Class (liftEffect)
import DOM.Simple.Window (window)
import FFI.Simple.Functions ((...), delay)
import Data.Tuple (fst)
import Data.Argonaut as Argonaut
import Data.Generic.Rep (class Generic)
...
...
@@ -51,9 +56,16 @@ type LoadData = ()
type LoadProps = (reload :: Int)
loadPublicData :: Record LoadProps -> Aff (Array PublicData)
loadPublicData _l = get Nothing (backendUrl backend "public")
where
backend = head defaultBackends
--loadPublicData _l = get Nothing (backendUrl backend "public")
loadPublicData _l = do
-- let backend = head defaultBackends
let windowLocation = "localhost:8008/"
windowLocation' <- liftEffect (location {})
_ <- liftEffect $ log windowLocation'
get Nothing (windowLocation <> "public")
location :: forall a. a -> Effect String
location _ = window ... "location" $ []
renderPublic :: R.Element
renderPublic = R.createElement renderPublicCpt {} []
...
...
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