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
128
Issues
128
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
gargantext
purescript-gargantext
Commits
37aa3098
Commit
37aa3098
authored
Mar 02, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-node-folders-edition' into dev
parents
2cf7f919
257ef76a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
App.purs
src/Gargantext/Components/App.purs
+5
-5
Corpus.purs
src/Gargantext/Components/Nodes/Corpus.purs
+8
-2
No files found.
src/Gargantext/Components/App.purs
View file @
37aa3098
...
...
@@ -58,11 +58,11 @@ appCpt = R.hooksComponent "G.C.App.app" cpt where
Home -> forested $ homeLayout LL_EN
Login -> login { sessions, backends, visible: showLogin }
--Folder sid _ -> withSession sid $ \_ -> forested (folder {})
Folder sid nodeId -> withSession sid $ \session -> forested $ corpusLayout { nodeId, session }
FolderPrivate sid nodeId -> withSession sid $ \session -> forested $ corpusLayout { nodeId, session }
FolderPublic sid nodeId -> withSession sid $ \session -> forested $ corpusLayout { nodeId, session }
FolderShared sid nodeId -> withSession sid $ \session -> forested $ corpusLayout { nodeId, session }
Corpus sid nodeId -> withSession sid $ \session -> forested $ corpusLayout { nodeId, session }
Folder sid nodeId -> withSession sid $ \session -> forested $ corpusLayout {
key: show nodeId,
nodeId, session }
FolderPrivate sid nodeId -> withSession sid $ \session -> forested $ corpusLayout {
key: show nodeId,
nodeId, session }
FolderPublic sid nodeId -> withSession sid $ \session -> forested $ corpusLayout {
key: show nodeId,
nodeId, session }
FolderShared sid nodeId -> withSession sid $ \session -> forested $ corpusLayout {
key: show nodeId,
nodeId, session }
Corpus sid nodeId -> withSession sid $ \session -> forested $ corpusLayout {
key: show nodeId,
nodeId, session }
Texts sid nodeId -> withSession sid $ \session -> forested $ textsLayout { nodeId, session, frontends }
Lists sid nodeId -> withSession sid $ \session -> forested $ listsLayout { nodeId, session }
Dashboard sid nodeId -> withSession sid $ \session -> forested $ dashboardLayout { nodeId, session }
...
...
src/Gargantext/Components/Nodes/Corpus.purs
View file @
37aa3098
...
...
@@ -36,10 +36,16 @@ type Props = (
type Reload = R.State Int
corpusLayout :: Record Props -> R.Element
type KeyProps =
(
key :: String
| Props
)
corpusLayout :: Record KeyProps -> R.Element
corpusLayout props = R.createElement corpusLayoutCpt props []
corpusLayoutCpt :: R.Component Props
corpusLayoutCpt :: R.Component
Key
Props
corpusLayoutCpt = R.hooksComponent "G.C.N.C.corpusLayout" cpt
where
cpt {nodeId, session} _ = do
...
...
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