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
977f1735
Commit
977f1735
authored
Aug 25, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOC] Tooltip, icon added
parent
12404dee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
22 deletions
+16
-22
Forest.purs
src/Gargantext/Components/Forest.purs
+0
-1
Node.purs
src/Gargantext/Components/Forest/Tree/Node.purs
+2
-3
Upload.purs
...Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
+1
-2
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+0
-1
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+13
-15
No files found.
src/Gargantext/Components/Forest.purs
View file @
977f1735
...
@@ -2,7 +2,6 @@ module Gargantext.Components.Forest where
...
@@ -2,7 +2,6 @@ module Gargantext.Components.Forest where
import Gargantext.Prelude
import Gargantext.Prelude
import Data.Array as A
import Data.Maybe (Maybe(..))
import Data.Maybe (Maybe(..))
import Data.Set as Set
import Data.Set as Set
import Data.Tuple (fst)
import Data.Tuple (fst)
...
...
src/Gargantext/Components/Forest/Tree/Node.purs
View file @
977f1735
...
@@ -9,7 +9,6 @@ import Effect.Class (liftEffect)
...
@@ -9,7 +9,6 @@ import Effect.Class (liftEffect)
import React.SyntheticEvent as E
import React.SyntheticEvent as E
import Reactix as R
import Reactix as R
import Reactix.DOM.HTML as H
import Reactix.DOM.HTML as H
import Web.File.FileReader.Aff (readAsText)
import Gargantext.Components.Forest.Tree.Node.Settings (SettingsBox(..), settingsBox)
import Gargantext.Components.Forest.Tree.Node.Settings (SettingsBox(..), settingsBox)
import Gargantext.Components.Forest.Tree.Node.Action (Action(..))
import Gargantext.Components.Forest.Tree.Node.Action (Action(..))
...
@@ -24,7 +23,7 @@ import Gargantext.Components.Forest.Tree.Node.Tools (nodeLink)
...
@@ -24,7 +23,7 @@ import Gargantext.Components.Forest.Tree.Node.Tools (nodeLink)
import Gargantext.Components.GraphExplorer.API as GraphAPI
import Gargantext.Components.GraphExplorer.API as GraphAPI
import Gargantext.Components.Lang (Lang(EN))
import Gargantext.Components.Lang (Lang(EN))
import Gargantext.Components.Nodes.Corpus (loadCorpusWithChild)
import Gargantext.Components.Nodes.Corpus (loadCorpusWithChild)
import Gargantext.Ends (Frontends
, url
)
import Gargantext.Ends (Frontends)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Prelude (Unit, bind, const, discard, map, pure, show, unit, void, ($), (<>), (==), identity)
import Gargantext.Prelude (Unit, bind, const, discard, map, pure, show, unit, void, ($), (<>), (==), identity)
import Gargantext.Routes as Routes
import Gargantext.Routes as Routes
...
@@ -69,7 +68,7 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
...
@@ -69,7 +68,7 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
pure $ H.span (dropProps droppedFile isDragOver)
pure $ H.span (dropProps droppedFile isDragOver)
$ ordering
$ ordering
[ chevronIcon nodeType folderOpen
[ chevronIcon nodeType folderOpen
, folderIcon nodeType folderOpen
, folderIcon
nodeType folderOpen
, if showBox then
, if showBox then
Popover.popover { arrow: false
Popover.popover { arrow: false
, open: false
, open: false
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
View file @
977f1735
...
@@ -17,7 +17,7 @@ import React.SyntheticEvent as E
...
@@ -17,7 +17,7 @@ import React.SyntheticEvent as E
import Reactix as R
import Reactix as R
import Reactix.DOM.HTML as H
import Reactix.DOM.HTML as H
import URI.Extra.QueryPairs as QP
import URI.Extra.QueryPairs as QP
import Web.File.Blob (Blob)
--
import Web.File.Blob (Blob)
import Web.File.FileReader.Aff (readAsDataURL, readAsText)
import Web.File.FileReader.Aff (readAsDataURL, readAsText)
import Gargantext.Prelude
import Gargantext.Prelude
...
@@ -31,7 +31,6 @@ import Gargantext.Sessions (Session, postWwwUrlencoded)
...
@@ -31,7 +31,6 @@ import Gargantext.Sessions (Session, postWwwUrlencoded)
import Gargantext.Types (NodeType(..), ID)
import Gargantext.Types (NodeType(..), ID)
import Gargantext.Types as GT
import Gargantext.Types as GT
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.String as GUS
-- UploadFile Action
-- UploadFile Action
...
...
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
977f1735
...
@@ -2,7 +2,6 @@ module Gargantext.Components.Forest.Tree.Node.Box where
...
@@ -2,7 +2,6 @@ module Gargantext.Components.Forest.Tree.Node.Box where
import Data.Array as A
import Data.Array as A
import Data.Maybe (Maybe(..))
import Data.Maybe (Maybe(..))
import Data.String as S
import Data.Tuple (fst)
import Data.Tuple (fst)
import Data.Tuple.Nested ((/\))
import Data.Tuple.Nested ((/\))
import DOM.Simple.Console (log2)
import DOM.Simple.Console (log2)
...
...
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
977f1735
...
@@ -285,21 +285,19 @@ nodeLinkCpt = R.hooksComponent "G.C.F.T.N.T.nodeLink" cpt
...
@@ -285,21 +285,19 @@ nodeLinkCpt = R.hooksComponent "G.C.F.T.N.T.nodeLink" cpt
popoverRef <- R.useRef null
popoverRef <- R.useRef null
pure $
pure $
H.div {} [
H.div {} [ H.a { data: { for: tooltipId, tip: true }
H.a { data: { for: tooltipId, tip: true }
, href: url frontends $ GT.NodePath (sessionId session) nodeType (Just id) }
, href: url frontends $ GT.NodePath (sessionId session) nodeType (Just id) }
[ nodeText { isSelected
[ nodeText { isSelected
, name
, name
}
} ]
]
, ReactTooltip.reactTooltip { id: tooltipId } [
, ReactTooltip.reactTooltip { id: tooltipId }
R2.row [
[ R2.row [ H.h4 {className: GT.fldr nodeType true}
H.h4 {} [ H.text $ prettyNodeType nodeType ]
[ H.text $ prettyNodeType nodeType ]
]
]
, R2.row [
, R2.row [ H.span {} [ H.text $ name ]]
H.span {} [ H.text $ name ]
]
]
]
]
]
where
where
tooltipId = "node-link-" <> show id
tooltipId = "node-link-" <> show id
...
...
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