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
cc8a92c0
Commit
cc8a92c0
authored
Sep 01, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOC+FIX] User Doc (title) + warning (Types)
parent
4eac6682
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
20 deletions
+29
-20
Contacts.purs
src/Gargantext/Components/Nodes/Annuaire/User/Contacts.purs
+0
-1
Tabs.purs
src/Gargantext/Components/Nodes/Lists/Tabs.purs
+25
-18
Texts.purs
src/Gargantext/Components/Nodes/Texts.purs
+1
-0
Tab.purs
src/Gargantext/Components/Tab.purs
+3
-1
No files found.
src/Gargantext/Components/Nodes/Annuaire/User/Contacts.purs
View file @
cc8a92c0
...
@@ -24,7 +24,6 @@ import Gargantext.Prelude (Unit, bind, const, discard, pure, show, unit, ($), (+
...
@@ -24,7 +24,6 @@ import Gargantext.Prelude (Unit, bind, const, discard, pure, show, unit, ($), (+
import Gargantext.Routes as Routes
import Gargantext.Routes as Routes
import Gargantext.Sessions (Session, get, put, sessionId)
import Gargantext.Sessions (Session, get, put, sessionId)
import Gargantext.Types (NodeType(..))
import Gargantext.Types (NodeType(..))
import Gargantext.Utils.Reactix as R2
display :: String -> Array R.Element -> R.Element
display :: String -> Array R.Element -> R.Element
display title elems =
display title elems =
...
...
src/Gargantext/Components/Nodes/Lists/Tabs.purs
View file @
cc8a92c0
...
@@ -54,37 +54,44 @@ ngramsViewCpt = R.hooksComponent "G.C.N.L.T.ngramsView" cpt
...
@@ -54,37 +54,44 @@ ngramsViewCpt = R.hooksComponent "G.C.N.L.T.ngramsView" cpt
chartType <- R.useState' Histo
chartType <- R.useState' Histo
pure $ R.fragment
pure $ R.fragment
( charts tabNgramType chartType
$ charts tabNgramType chartType
<> [
<> [ NT.mainNgramsTable { session
NT.mainNgramsTable
, defaultListId
{session, defaultListId, nodeId: corpusId, tabType, tabNgramType, withAutoUpdate: false}
, nodeId: corpusId
]
, tabType
)
, tabNgramType
, withAutoUpdate: false
}
]
where
where
tabNgramType = modeTabType mode
tabNgramType = modeTabType mode
tabType = TabCorpus (TabNgramType tabNgramType)
tabType
= TabCorpus (TabNgramType tabNgramType)
listId = defaultListId
listId
= defaultListId
path = {corpusId, listId, tabType, limit: (Just 1000)}
path
= {corpusId, listId, tabType, limit: (Just 1000)}
charts CTabTerms (chartType /\ setChartType) = [
charts CTabTerms (chartType /\ setChartType) = [
H.div { className: "row chart-type-selector" } [
H.div { className: "row chart-type-selector" } [
H.div { className: "col-md-3" } [
H.div { className: "col-md-3" } [
R2.select { className: "form-control"
R2.select { className: "form-control"
, on: { change: \e -> setChartType $ const $ fromMaybe Histo $ chartTypeFromString $ R2.unsafeEventValue e }
, on: { change: \e -> setChartType
$ const
$ fromMaybe Histo
$ chartTypeFromString
$ R2.unsafeEventValue e
}
, defaultValue: show chartType } [
, defaultValue: show chartType } [
H.option { value: show Histo
} [ H.text $ show Histo
]
H.option { value: show Histo
} [ H.text $ show Histo
]
, H.option { value: show Scatter
} [ H.text $ show Scatter
]
, H.option { value: show Scatter
} [ H.text $ show Scatter
]
, H.option { value: show ChartBar
} [ H.text $ show ChartBar
]
, H.option { value: show ChartBar
} [ H.text $ show ChartBar
]
, H.option { value: show ChartTree } [ H.text $ show ChartTree ]
, H.option { value: show ChartTree } [ H.text $ show ChartTree ]
]
]
]
]
]
]
, getChartFunction chartType $ { session, path }
, getChartFunction chartType $ { session, path }
]
]
charts _ _ = [ chart mode ]
charts _ _ = [ chart mode ]
chart Authors = pie { session, path }
chart Authors = pie { session, path }
chart Sources = bar { session, path }
chart Sources = bar { session, path }
chart Institutes = tree { session, path }
chart Institutes = tree { session, path }
chart Terms = metrics { session, path }
chart Terms = metrics { session, path }
src/Gargantext/Components/Nodes/Texts.purs
View file @
cc8a92c0
...
@@ -46,6 +46,7 @@ type KeyProps = (
...
@@ -46,6 +46,7 @@ type KeyProps = (
textsLayoutWithKey :: Record KeyProps -> R.Element
textsLayoutWithKey :: Record KeyProps -> R.Element
textsLayoutWithKey props = R.createElement textsLayoutWithKeyCpt props []
textsLayoutWithKey props = R.createElement textsLayoutWithKeyCpt props []
textsLayoutWithKeyCpt :: R.Component KeyProps
textsLayoutWithKeyCpt = R.hooksComponent "G.C.N.T.textsLayoutWithKey" cpt
textsLayoutWithKeyCpt = R.hooksComponent "G.C.N.T.textsLayoutWithKey" cpt
where
where
cpt { frontends, nodeId, session } _ = do
cpt { frontends, nodeId, session } _ = do
...
...
src/Gargantext/Components/Tab.purs
View file @
cc8a92c0
...
@@ -21,7 +21,9 @@ tabsCpt = R.hooksComponent "G.C.Tab.tabs" cpt
...
@@ -21,7 +21,9 @@ tabsCpt = R.hooksComponent "G.C.Tab.tabs" cpt
pure $
pure $
H.div {}
H.div {}
[ H.nav {}
[ H.nav {}
[ H.div { className: "nav nav-tabs" }
[ H.div { className: "nav nav-tabs"
, title : "Tab for ngrams"
}
(mapWithIndex (button setActiveTab activeTab) props.tabs) ]
(mapWithIndex (button setActiveTab activeTab) props.tabs) ]
, H.div { className: "tab-content" } $ mapWithIndex (item activeTab) props.tabs ]
, H.div { className: "tab-content" } $ mapWithIndex (item activeTab) props.tabs ]
button setActiveTab selected index (name /\ _) =
button setActiveTab selected index (name /\ _) =
...
...
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