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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
0fd3795f
Commit
0fd3795f
authored
Oct 10, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MV] Facets -> Tabs
parent
b381a621
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
55 additions
and
55 deletions
+55
-55
Tree.purs
src/Gargantext/Components/Tree.purs
+1
-1
Corpus.purs
src/Gargantext/Pages/Corpus.purs
+6
-6
Facets.purs
src/Gargantext/Pages/Corpus/Facets.purs
+7
-7
Actions.purs
src/Gargantext/Pages/Corpus/Tabs/Actions.purs
+5
-5
Authors.purs
src/Gargantext/Pages/Corpus/Tabs/Authors.purs
+2
-2
Documents.purs
src/Gargantext/Pages/Corpus/Tabs/Documents.purs
+2
-2
Sources.purs
src/Gargantext/Pages/Corpus/Tabs/Sources.purs
+2
-2
Specs.purs
src/Gargantext/Pages/Corpus/Tabs/Specs.purs
+7
-7
States.purs
src/Gargantext/Pages/Corpus/Tabs/States.purs
+5
-5
Terms.purs
src/Gargantext/Pages/Corpus/Tabs/Terms.purs
+2
-2
NgramsItem.purs
src/Gargantext/Pages/Corpus/Tabs/Terms/NgramsItem.purs
+1
-1
NgramsTable.purs
src/Gargantext/Pages/Corpus/Tabs/Terms/NgramsTable.purs
+2
-2
Layout.purs
src/Gargantext/Pages/Layout.purs
+4
-4
Actions.purs
src/Gargantext/Pages/Layout/Actions.purs
+2
-2
Specs.purs
src/Gargantext/Pages/Layout/Specs.purs
+5
-5
States.purs
src/Gargantext/Pages/Layout/States.purs
+2
-2
No files found.
src/Gargantext/Components/Tree.purs
View file @
0fd3795f
...
@@ -109,7 +109,7 @@ exampleTree = NTree (LNode { id : 1
...
@@ -109,7 +109,7 @@ exampleTree = NTree (LNode { id : 1
-- corpus :: Int -> String -> NTree (Tuple String String)
-- corpus :: Int -> String -> NTree (Tuple String String)
-- corpus n name = NTree (LNode {id : n, name, nodeType : "", open : false})
-- corpus n name = NTree (LNode {id : n, name, nodeType : "", open : false})
-- [ NTree (Tuple "
Facet
s" "#/corpus") []
-- [ NTree (Tuple "
Tab
s" "#/corpus") []
-- , NTree (Tuple "Dashboard" "#/dashboard") []
-- , NTree (Tuple "Dashboard" "#/dashboard") []
-- , NTree (Tuple "Graph" "#/graphExplorer") []
-- , NTree (Tuple "Graph" "#/graphExplorer") []
-- ]
-- ]
...
...
src/Gargantext/Pages/Corpus.purs
View file @
0fd3795f
...
@@ -18,11 +18,11 @@ import Gargantext.Prelude
...
@@ -18,11 +18,11 @@ import Gargantext.Prelude
import Gargantext.Config (toUrl, NodeType(..), End(..))
import Gargantext.Config (toUrl, NodeType(..), End(..))
import Gargantext.Config.REST (get)
import Gargantext.Config.REST (get)
---------------------------------------------------------
---------------------------------------------------------
--
Facet
s
--
Tab
s
import Gargantext.Pages.Corpus.
Facet
s.Documents as D
import Gargantext.Pages.Corpus.
Tab
s.Documents as D
import Gargantext.Pages.Corpus.
Facet
s.Sources as S
import Gargantext.Pages.Corpus.
Tab
s.Sources as S
import Gargantext.Pages.Corpus.
Facet
s.Authors as A
import Gargantext.Pages.Corpus.
Tab
s.Authors as A
import Gargantext.Pages.Corpus.
Facet
s.Terms as T
import Gargantext.Pages.Corpus.
Tab
s.Terms as T
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
-------------------------------------------------------------------
-------------------------------------------------------------------
type State = { info :: Maybe (NodePoly CorpusInfo)
type State = { info :: Maybe (NodePoly CorpusInfo)
...
@@ -225,7 +225,7 @@ getNode :: Int -> Aff (Either String (NodePoly CorpusInfo))
...
@@ -225,7 +225,7 @@ getNode :: Int -> Aff (Either String (NodePoly CorpusInfo))
getNode id = get $ toUrl Back Node id
getNode id = get $ toUrl Back Node id
------------------------------------------------------------------------
------------------------------------------------------------------------
--
Facet
s
--
Tab
s
------------------------------------------------------------------------
------------------------------------------------------------------------
facets :: Spec State {} Action
facets :: Spec State {} Action
facets =
facets =
...
...
src/Gargantext/Pages/Corpus/Facets.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s
module Gargantext.Pages.Corpus.
Tab
s
( module Gargantext.Pages.Corpus.
Facet
s.States
( module Gargantext.Pages.Corpus.
Tab
s.States
, module Gargantext.Pages.Corpus.
Facet
s.Actions
, module Gargantext.Pages.Corpus.
Tab
s.Actions
, module Gargantext.Pages.Corpus.
Facet
s.Specs
, module Gargantext.Pages.Corpus.
Tab
s.Specs
) where
) where
import Gargantext.Pages.Corpus.
Facet
s.States
import Gargantext.Pages.Corpus.
Tab
s.States
import Gargantext.Pages.Corpus.
Facet
s.Actions
import Gargantext.Pages.Corpus.
Tab
s.Actions
import Gargantext.Pages.Corpus.
Facet
s.Specs
import Gargantext.Pages.Corpus.
Tab
s.Specs
src/Gargantext/Pages/Corpus/
Facet
s/Actions.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Actions.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Actions where
module Gargantext.Pages.Corpus.
Tab
s.Actions where
import Data.Lens (Prism', prism)
import Data.Lens (Prism', prism)
import Data.Either (Either(..))
import Data.Either (Either(..))
import Gargantext.Pages.Corpus.
Facet
s.Documents as DV
import Gargantext.Pages.Corpus.
Tab
s.Documents as DV
import Gargantext.Pages.Corpus.
Facet
s.Sources as SV
import Gargantext.Pages.Corpus.
Tab
s.Sources as SV
import Gargantext.Pages.Corpus.
Facet
s.Authors as AV
import Gargantext.Pages.Corpus.
Tab
s.Authors as AV
import Gargantext.Pages.Corpus.
Facet
s.Terms as TV
import Gargantext.Pages.Corpus.
Tab
s.Terms as TV
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
data Action
data Action
...
...
src/Gargantext/Pages/Corpus/
Facet
s/Authors.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Authors.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Authors where
module Gargantext.Pages.Corpus.
Tab
s.Authors where
import Data.Array (fold)
import Data.Array (fold)
import Gargantext.Pages.Corpus.
Facet
s.Documents as D
import Gargantext.Pages.Corpus.
Tab
s.Documents as D
import Prelude hiding (div)
import Prelude hiding (div)
import React.DOM (h3, text)
import React.DOM (h3, text)
import Thermite (PerformAction, Render, Spec, defaultPerformAction, simpleSpec)
import Thermite (PerformAction, Render, Spec, defaultPerformAction, simpleSpec)
...
...
src/Gargantext/Pages/Corpus/
Facet
s/Documents.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Documents.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Documents where
module Gargantext.Pages.Corpus.
Tab
s.Documents where
import Affjax (defaultRequest, printResponseFormatError, request)
import Affjax (defaultRequest, printResponseFormatError, request)
import Affjax.ResponseFormat as ResponseFormat
import Affjax.ResponseFormat as ResponseFormat
...
@@ -23,7 +23,7 @@ import Gargantext.Config (NodeType(..), toUrl, End(..))
...
@@ -23,7 +23,7 @@ import Gargantext.Config (NodeType(..), toUrl, End(..))
import Gargantext.Config.REST (get)
import Gargantext.Config.REST (get)
import Gargantext.Utils.DecodeMaybe ((.|))
import Gargantext.Utils.DecodeMaybe ((.|))
import Gargantext.Components.Charts.Options.ECharts (chart)
import Gargantext.Components.Charts.Options.ECharts (chart)
import Gargantext.Pages.Corpus.
Facets.
Dashboard (globalPublis)
import Gargantext.Pages.Corpus.Dashboard (globalPublis)
------------------------------------------------------------------------
------------------------------------------------------------------------
-- TODO: Pagination Details are not available from the BackEnd
-- TODO: Pagination Details are not available from the BackEnd
-- TODO: PageSize Change manually sets the totalPages, need to get from backend and reload the data
-- TODO: PageSize Change manually sets the totalPages, need to get from backend and reload the data
...
...
src/Gargantext/Pages/Corpus/
Facet
s/Sources.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Sources.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Sources where
module Gargantext.Pages.Corpus.
Tab
s.Sources where
import Data.Array (fold)
import Data.Array (fold)
import Gargantext.Pages.Corpus.
Facet
s.Documents as D
import Gargantext.Pages.Corpus.
Tab
s.Documents as D
import Prelude hiding (div)
import Prelude hiding (div)
import React.DOM (h3, text)
import React.DOM (h3, text)
import Thermite (Render, Spec, defaultPerformAction, simpleSpec)
import Thermite (Render, Spec, defaultPerformAction, simpleSpec)
...
...
src/Gargantext/Pages/Corpus/
Facet
s/Specs.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Specs.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Specs where
module Gargantext.Pages.Corpus.
Tab
s.Specs where
import Prelude hiding (div)
import Prelude hiding (div)
import Data.List (fromFoldable)
import Data.List (fromFoldable)
import Data.Tuple (Tuple(..))
import Data.Tuple (Tuple(..))
import Gargantext.Pages.Corpus.
Facet
s.States (State(), _doclens, _sourcelens, _authorlens, _termslens, _tablens, initialState)
import Gargantext.Pages.Corpus.
Tab
s.States (State(), _doclens, _sourcelens, _authorlens, _termslens, _tablens, initialState)
import Gargantext.Pages.Corpus.
Facet
s.Actions (Action(), _docAction, _sourceAction, _authorAction, _termsAction, _tabAction)
import Gargantext.Pages.Corpus.
Tab
s.Actions (Action(), _docAction, _sourceAction, _authorAction, _termsAction, _tabAction)
import Gargantext.Pages.Corpus.
Facet
s.Documents as DV
import Gargantext.Pages.Corpus.
Tab
s.Documents as DV
import Gargantext.Pages.Corpus.
Facet
s.Sources as SV
import Gargantext.Pages.Corpus.
Tab
s.Sources as SV
import Gargantext.Pages.Corpus.
Facet
s.Authors as AV
import Gargantext.Pages.Corpus.
Tab
s.Authors as AV
import Gargantext.Pages.Corpus.
Facet
s.Terms as TV
import Gargantext.Pages.Corpus.
Tab
s.Terms as TV
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
import Thermite (Spec, focus, hide)
import Thermite (Spec, focus, hide)
...
...
src/Gargantext/Pages/Corpus/
Facet
s/States.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/States.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.States where
module Gargantext.Pages.Corpus.
Tab
s.States where
import Data.Lens (Lens', lens)
import Data.Lens (Lens', lens)
import Gargantext.Pages.Corpus.
Facet
s.Documents as DV
import Gargantext.Pages.Corpus.
Tab
s.Documents as DV
import Gargantext.Pages.Corpus.
Facet
s.Sources as SV
import Gargantext.Pages.Corpus.
Tab
s.Sources as SV
import Gargantext.Pages.Corpus.
Facet
s.Authors as AV
import Gargantext.Pages.Corpus.
Tab
s.Authors as AV
import Gargantext.Pages.Corpus.
Facet
s.Terms as TV
import Gargantext.Pages.Corpus.
Tab
s.Terms as TV
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
...
...
src/Gargantext/Pages/Corpus/
Facet
s/Terms.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Terms.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Terms where
module Gargantext.Pages.Corpus.
Tab
s.Terms where
import Data.Array (fold)
import Data.Array (fold)
import Gargantext.Pages.Corpus.
Facet
s.Documents as D
import Gargantext.Pages.Corpus.
Tab
s.Documents as D
import Prelude hiding (div)
import Prelude hiding (div)
import React.DOM (h3, text)
import React.DOM (h3, text)
import Thermite (PerformAction, Render, Spec, defaultPerformAction, simpleSpec)
import Thermite (PerformAction, Render, Spec, defaultPerformAction, simpleSpec)
...
...
src/Gargantext/Pages/Corpus/
Facet
s/Terms/NgramsItem.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Terms/NgramsItem.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Terms.NgramsItem where
module Gargantext.Pages.Corpus.
Tab
s.Terms.NgramsItem where
import Prelude
import Prelude
...
...
src/Gargantext/Pages/Corpus/
Facet
s/Terms/NgramsTable.purs
→
src/Gargantext/Pages/Corpus/
Tab
s/Terms/NgramsTable.purs
View file @
0fd3795f
module Gargantext.Pages.Corpus.
Facet
s.Terms.NgramsTable where
module Gargantext.Pages.Corpus.
Tab
s.Terms.NgramsTable where
import Data.Array (filter, toUnfoldable)
import Data.Array (filter, toUnfoldable)
...
@@ -12,7 +12,7 @@ import Data.Tuple (Tuple(..), uncurry)
...
@@ -12,7 +12,7 @@ import Data.Tuple (Tuple(..), uncurry)
import Data.Void (Void)
import Data.Void (Void)
import Data.Unit (Unit)
import Data.Unit (Unit)
import Effect (Effect)
import Effect (Effect)
import Gargantext.Pages.Corpus.
Facet
s.Terms.NgramsItem as NI
import Gargantext.Pages.Corpus.
Tab
s.Terms.NgramsItem as NI
import Prelude (class Eq, class Ord, class Show, map, show, void, ($), (*), (+), (-), (/), (<), (<>), (==), (>), (>=), pure, unit)
import Prelude (class Eq, class Ord, class Show, map, show, void, ($), (*), (+), (-), (/), (<), (<>), (==), (>), (>=), pure, unit)
import React (ReactElement)
import React (ReactElement)
import React.DOM hiding (style, map)
import React.DOM hiding (style, map)
...
...
src/Gargantext/Pages/Layout.purs
View file @
0fd3795f
...
@@ -4,13 +4,13 @@ import Prelude hiding (div)
...
@@ -4,13 +4,13 @@ import Prelude hiding (div)
-- import Gargantext.Components.Login as LN
-- import Gargantext.Components.Login as LN
import Gargantext.Pages.Layout.Actions (Action(..))
import Gargantext.Pages.Layout.Actions (Action(..))
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
-- import Gargantext.Pages.Corpus.
Facet
s as TV
-- import Gargantext.Pages.Corpus.
Tab
s as TV
-- import Gargantext.Pages.Corpus.Document as D
-- import Gargantext.Pages.Corpus.Document as D
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus.
Facet
s.Documents as D
import Gargantext.Pages.Corpus.
Tab
s.Documents as D
import Gargantext.Pages.Corpus.
Facets.
Graph as GE
import Gargantext.Pages.Corpus.Graph as GE
-- import Gargantext.Pages.Corpus.
Facet
s.Terms.NgramsTable as NG
-- import Gargantext.Pages.Corpus.
Tab
s.Terms.NgramsTable as NG
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Annuaire as Annuaire
import Gargantext.Pages.Annuaire as Annuaire
...
...
src/Gargantext/Pages/Layout/Actions.purs
View file @
0fd3795f
...
@@ -16,8 +16,8 @@ import Gargantext.Pages.Annuaire as Annuaire
...
@@ -16,8 +16,8 @@ import Gargantext.Pages.Annuaire as Annuaire
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus.Document as D
import Gargantext.Pages.Corpus.Document as D
import Gargantext.Pages.Corpus.
Facet
s.Documents as DV
import Gargantext.Pages.Corpus.
Tab
s.Documents as DV
import Gargantext.Pages.Corpus.
Facets.
Graph as GE
import Gargantext.Pages.Corpus.Graph as GE
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
import Gargantext.Pages.Layout.Specs.Search as S
import Gargantext.Pages.Layout.Specs.Search as S
import Gargantext.Pages.Layout.States (AppState)
import Gargantext.Pages.Layout.States (AppState)
...
...
src/Gargantext/Pages/Layout/Specs.purs
View file @
0fd3795f
...
@@ -19,11 +19,11 @@ import Gargantext.Pages.Annuaire as A
...
@@ -19,11 +19,11 @@ import Gargantext.Pages.Annuaire as A
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus.Document as Annotation
import Gargantext.Pages.Corpus.Document as Annotation
import Gargantext.Pages.Corpus.
Facet
s as TV
import Gargantext.Pages.Corpus.
Tab
s as TV
import Gargantext.Pages.Corpus.
Facets.
Dashboard as Dsh
import Gargantext.Pages.Corpus.Dashboard as Dsh
import Gargantext.Pages.Corpus.
Facet
s.Documents as DV
import Gargantext.Pages.Corpus.
Tab
s.Documents as DV
import Gargantext.Pages.Corpus.
Facets.
Graph as GE
import Gargantext.Pages.Corpus.Graph as GE
import Gargantext.Pages.Corpus.
Facet
s.Terms.NgramsTable as NG
import Gargantext.Pages.Corpus.
Tab
s.Terms.NgramsTable as NG
import Gargantext.Pages.Home as L
import Gargantext.Pages.Home as L
import Gargantext.Pages.Layout.Actions (Action(..), _corpusAction, _addCorpusAction, _documentViewAction, _graphExplorerAction, _loginAction, _searchAction, _treeAction, _userPageAction, performAction, _annuaireAction)
import Gargantext.Pages.Layout.Actions (Action(..), _corpusAction, _addCorpusAction, _documentViewAction, _graphExplorerAction, _loginAction, _searchAction, _treeAction, _userPageAction, performAction, _annuaireAction)
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
...
...
src/Gargantext/Pages/Layout/States.purs
View file @
0fd3795f
...
@@ -10,8 +10,8 @@ import Gargantext.Components.Tree as Tree
...
@@ -10,8 +10,8 @@ import Gargantext.Components.Tree as Tree
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus as Corpus
import Gargantext.Pages.Corpus.Document as D
import Gargantext.Pages.Corpus.Document as D
import Gargantext.Pages.Annuaire as Annuaire
import Gargantext.Pages.Annuaire as Annuaire
import Gargantext.Pages.Corpus.
Facet
s.Documents as DV
import Gargantext.Pages.Corpus.
Tab
s.Documents as DV
import Gargantext.Pages.Corpus.
Facets.
Graph as GE
import Gargantext.Pages.Corpus.Graph as GE
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Annuaire.User.Users as U
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
import Gargantext.Pages.Layout.Specs.AddCorpus as AC
import Gargantext.Pages.Layout.Specs.Search as S
import Gargantext.Pages.Layout.Specs.Search as S
...
...
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