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
b1ff0afb
Commit
b1ff0afb
authored
Oct 03, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CONFIG] Default node to load the tree with shared database (before authentication implementation).
parent
e467737c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Tree.purs
src/Gargantext/Components/Tree.purs
+2
-2
Config.purs
src/Gargantext/Config.purs
+5
-0
No files found.
src/Gargantext/Components/Tree.purs
View file @
b1ff0afb
...
@@ -21,7 +21,7 @@ import React.DOM (a, div, i, li, text, ul)
...
@@ -21,7 +21,7 @@ import React.DOM (a, div, i, li, text, ul)
import React.DOM.Props (Props, className, href, onClick)
import React.DOM.Props (Props, className, href, onClick)
import Thermite (PerformAction, Render, Spec, modifyState, simpleSpec)
import Thermite (PerformAction, Render, Spec, modifyState, simpleSpec)
import Gargantext.Config (NodeType(..), toUrl, readNodeType, End(..), ApiVersion)
import Gargantext.Config (NodeType(..), toUrl, readNodeType, End(..), ApiVersion
, defaultRoot
)
type Name = String
type Name = String
type Open = Boolean
type Open = Boolean
...
@@ -162,7 +162,7 @@ instance decodeJsonFTree :: DecodeJson (NTree LNode) where
...
@@ -162,7 +162,7 @@ instance decodeJsonFTree :: DecodeJson (NTree LNode) where
loadDefaultNode :: Aff (Either String (NTree LNode))
loadDefaultNode :: Aff (Either String (NTree LNode))
loadDefaultNode = do
loadDefaultNode = do
res <- request $ defaultRequest
res <- request $ defaultRequest
{ url = toUrl Back Tree
1
{ url = toUrl Back Tree
defaultRoot
, responseFormat = ResponseFormat.json
, responseFormat = ResponseFormat.json
, method = Left GET
, method = Left GET
, headers = []
, headers = []
...
...
src/Gargantext/Config.purs
View file @
b1ff0afb
...
@@ -24,6 +24,11 @@ endConfig' :: ApiVersion -> EndConfig
...
@@ -24,6 +24,11 @@ endConfig' :: ApiVersion -> EndConfig
endConfig' v = { front : frontCaddy
endConfig' v = { front : frontCaddy
, back : backDev v }
, back : backDev v }
-- | Default Root on shared database to develop
-- until authentication implementation
-- (Default Root will be given after authentication)
defaultRoot :: Int
defaultRoot = 347474
------------------------------------------------------------------------
------------------------------------------------------------------------
frontCaddy :: Config
frontCaddy :: Config
frontCaddy = { proto : "http://"
frontCaddy = { proto : "http://"
...
...
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