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
514025ca
Commit
514025ca
authored
Apr 13, 2021
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Folder View: add back button to most nodes
parent
8543cfe2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
FolderView.purs
src/Gargantext/Components/FolderView.purs
+9
-0
Frame.purs
src/Gargantext/Components/Nodes/Frame.purs
+11
-7
Table.purs
src/Gargantext/Components/Table.purs
+4
-1
No files found.
src/Gargantext/Components/FolderView.purs
View file @
514025ca
...
@@ -102,5 +102,14 @@ folderCpt = here.component "folderCpt" cpt where
...
@@ -102,5 +102,14 @@ folderCpt = here.component "folderCpt" cpt where
getFolderPath :: NodeType -> SessionId -> Int -> String
getFolderPath :: NodeType -> SessionId -> Int -> String
getFolderPath nodeType sid nodeId = appPath $ fromMaybe Home $ nodeTypeAppRoute nodeType sid nodeId
getFolderPath nodeType sid nodeId = appPath $ fromMaybe Home $ nodeTypeAppRoute nodeType sid nodeId
backButton :: R.Element
backButton =
H.button {
className: "btn btn-primary"
, on: {click: back}
} [
H.i { className: "fa fa-arrow-left"} []
]
loadFolders :: Record Props -> Aff FTree
loadFolders :: Record Props -> Aff FTree
loadFolders {nodeId, session} = get session $ TreeFirstLevel (Just nodeId) ""
loadFolders {nodeId, session} = get session $ TreeFirstLevel (Just nodeId) ""
src/Gargantext/Components/Nodes/Frame.purs
View file @
514025ca
...
@@ -13,6 +13,7 @@ import Reactix.DOM.HTML as H
...
@@ -13,6 +13,7 @@ import Reactix.DOM.HTML as H
import Toestand as T
import Toestand as T
import Gargantext.Components.Node (NodePoly(..))
import Gargantext.Components.Node (NodePoly(..))
import Gargantext.Components.FolderView as FV
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Prelude
import Gargantext.Prelude
import Gargantext.Routes (SessionRoute(NodeAPI))
import Gargantext.Routes (SessionRoute(NodeAPI))
...
@@ -104,13 +105,16 @@ frameLayoutViewCpt = here.component "frameLayoutView" cpt
...
@@ -104,13 +105,16 @@ frameLayoutViewCpt = here.component "frameLayoutView" cpt
, nodeType
, nodeType
, reload
, reload
, session } _ =
, session } _ =
pure $ H.div { className : "frame"
pure $ H.div{} [
FV.backButton
, H.div { className : "frame"
, rows: "100%,*" }
, rows: "100%,*" }
[ H.iframe { src: hframeUrl nodeType base frame_id
[ H.iframe { src: hframeUrl nodeType base frame_id
, width: "100%"
, width: "100%"
, height: "100%"
, height: "100%"
} []
} []
]
]
]
type LoadProps = ( nodeId :: Int
type LoadProps = ( nodeId :: Int
, session :: Session )
, session :: Session )
...
...
src/Gargantext/Components/Table.purs
View file @
514025ca
...
@@ -10,6 +10,7 @@ import Toestand as T
...
@@ -10,6 +10,7 @@ import Toestand as T
import Gargantext.Prelude
import Gargantext.Prelude
import Gargantext.Components.FolderView as FV
import Gargantext.Components.Table.Types (ColumnName, OrderBy, OrderByDirection(..), Params, Props, TableContainerProps, columnName)
import Gargantext.Components.Table.Types (ColumnName, OrderBy, OrderByDirection(..), Params, Props, TableContainerProps, columnName)
import Gargantext.Components.Nodes.Lists.Types as NT
import Gargantext.Components.Nodes.Lists.Types as NT
import Gargantext.Components.Search (SearchType(..))
import Gargantext.Components.Search (SearchType(..))
...
@@ -63,7 +64,9 @@ tableHeaderLayoutCpt = here.component "tableHeaderLayout" cpt
...
@@ -63,7 +64,9 @@ tableHeaderLayoutCpt = here.component "tableHeaderLayout" cpt
cacheState' <- T.useLive T.unequal cacheState
cacheState' <- T.useLive T.unequal cacheState
pure $ R.fragment
pure $ R.fragment
[ R2.row
[ R2.row [FV.backButton]
,
R2.row
[ H.div {className: "col-md-3"} [ H.h3 {} [H.text title] ]
[ H.div {className: "col-md-3"} [ H.h3 {} [H.text title] ]
, H.div {className: "col-md-9"}
, H.div {className: "col-md-9"}
[ H.hr {style: {height: "2px", backgroundColor: "black"}} ]
[ H.hr {style: {height: "2px", backgroundColor: "black"}} ]
...
...
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