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
740e7237
Commit
740e7237
authored
Jun 09, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REFACT|Types] type name conflict (search and action)
parent
8096c7db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Tree.purs
src/Gargantext/Components/Forest/Tree.purs
+2
-2
Action.purs
src/Gargantext/Components/Forest/Tree/Node/Action.purs
+3
-3
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+1
-1
No files found.
src/Gargantext/Components/Forest/Tree.purs
View file @
740e7237
...
@@ -187,9 +187,9 @@ performAction p@{ openNodes: (_ /\ setOpenNodes)
...
@@ -187,9 +187,9 @@ performAction p@{ openNodes: (_ /\ setOpenNodes)
performAction { reload: (_ /\ setReload)
performAction { reload: (_ /\ setReload)
, session
, session
, tasks: { onTaskAdd }
, tasks: { onTaskAdd }
, tree: (NTree (LNode {id}) _) } (
SearchQuery
task) = do
, tree: (NTree (LNode {id}) _) } (
DoSearch
task) = do
liftEffect $ onTaskAdd task
liftEffect $ onTaskAdd task
liftEffect $ log2 "[performAction]
SearchQuery
task:" task
liftEffect $ log2 "[performAction]
DoSearch
task:" task
performAction { reload: (_ /\ setReload)
performAction { reload: (_ /\ setReload)
, session
, session
...
...
src/Gargantext/Components/Forest/Tree/Node/Action.purs
View file @
740e7237
...
@@ -19,7 +19,7 @@ data Action = AddNode String GT.NodeType
...
@@ -19,7 +19,7 @@ data Action = AddNode String GT.NodeType
| DeleteNode
| DeleteNode
| UpdateNode GT.AsyncTaskWithType
| UpdateNode GT.AsyncTaskWithType
| RenameNode String
| RenameNode String
|
SearchQuery
GT.AsyncTaskWithType
|
DoSearch
GT.AsyncTaskWithType
| UploadFile GT.NodeType FileType (Maybe String) UploadFileContents
| UploadFile GT.NodeType FileType (Maybe String) UploadFileContents
| RefreshTree
| RefreshTree
| ShareNode String
| ShareNode String
...
@@ -31,7 +31,7 @@ instance showShow :: Show Action where
...
@@ -31,7 +31,7 @@ instance showShow :: Show Action where
show (ShareNode _) = "ShareNode"
show (ShareNode _) = "ShareNode"
show (UpdateNode _) = "UpdateNode"
show (UpdateNode _) = "UpdateNode"
show (RenameNode _) = "RenameNode"
show (RenameNode _) = "RenameNode"
show (
SearchQuery
_) = "SearchQuery"
show (
DoSearch
_) = "SearchQuery"
show (AddNode _ _) = "AddNode"
show (AddNode _ _) = "AddNode"
show (UploadFile _ _ _ _)= "UploadFile"
show (UploadFile _ _ _ _)= "UploadFile"
...
@@ -51,7 +51,7 @@ text DeleteNode = "Delete !"
...
@@ -51,7 +51,7 @@ text DeleteNode = "Delete !"
text (AddNode _ _) = "Add !"
text (AddNode _ _) = "Add !"
text (UpdateNode _) = "Update !"
text (UpdateNode _) = "Update !"
text (RenameNode _) = "Rename !"
text (RenameNode _) = "Rename !"
text (
SearchQuery
_) = "Launch search !"
text (
DoSearch
_) = "Launch search !"
text (UploadFile _ _ _ _)= "Upload File !"
text (UploadFile _ _ _ _)= "Upload File !"
text RefreshTree = "Refresh Tree !"
text RefreshTree = "Refresh Tree !"
text (ShareNode _) = "Share !"
text (ShareNode _) = "Share !"
...
...
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
740e7237
...
@@ -625,7 +625,7 @@ actionSearch search session dispatch nodePopup =
...
@@ -625,7 +625,7 @@ actionSearch search session dispatch nodePopup =
-> GT.AsyncTaskWithType
-> GT.AsyncTaskWithType
-> Effect Unit
-> Effect Unit
searchOn dispatch p task = do
searchOn dispatch p task = do
_ <- launchAff $ dispatch (
SearchQuery
task)
_ <- launchAff $ dispatch (
DoSearch
task)
-- close popup
-- close popup
-- TODO
-- TODO
--snd p $ const Nothing
--snd p $ const Nothing
...
...
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