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
898dae3c
Commit
898dae3c
authored
Oct 09, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Corpus] Empty Corpus before facets insert.
parent
3e6c30a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
10 deletions
+28
-10
Corpus.purs
src/Gargantext/Pages/Corpus.purs
+28
-9
Specs.purs
src/Gargantext/Pages/Corpus/Doc/Facets/Specs.purs
+0
-1
No files found.
src/Gargantext/Pages/Corpus.purs
View file @
898dae3c
...
@@ -12,19 +12,31 @@ import Effect.Aff (Aff)
...
@@ -12,19 +12,31 @@ import Effect.Aff (Aff)
import Effect.Class (liftEffect)
import Effect.Class (liftEffect)
import Effect.Console (log)
import Effect.Console (log)
import Gargantext.Config (toUrl, NodeType(..), End(..))
import Gargantext.Config.REST (get)
import Gargantext.Components.Charts.Options.ECharts (chart)
import Gargantext.Pages.Corpus.Doc.Facets.Dashboard (globalPublis)
import Gargantext.Pages.Corpus.Doc.Facets as Tab
import React.DOM (div, h3, hr, i, p, text)
import React.DOM (div, h3, hr, i, p, text)
import React.DOM.Props (className, style)
import React.DOM.Props (className, style)
import Thermite ( Render, Spec, PerformAction
import Thermite ( Render, Spec, PerformAction
, defaultPerformAction, simpleSpec, modifyState)
, defaultPerformAction, simpleSpec, modifyState)
--------------------------------------------------------
import Gargantext.Config (toUrl, NodeType(..), End(..))
import Gargantext.Config.REST (get)
import Gargantext.Components.Charts.Options.ECharts (chart)
import Gargantext.Pages.Corpus.Doc.Facets.Dashboard (globalPublis)
import Gargantext.Pages.Corpus.Doc.Facets (pureTab1)
---------------------------------------------------------
-- Facets
import Gargantext.Pages.Corpus.Doc.Facets.Documents as D
import Gargantext.Pages.Corpus.Doc.Facets.Sources as S
import Gargantext.Pages.Corpus.Doc.Facets.Authors as A
import Gargantext.Pages.Corpus.Doc.Facets.Terms as T
import Gargantext.Components.Tab as Tab
-------------------------------------------------------------------
-------------------------------------------------------------------
type State = { info :: Maybe (NodePoly CorpusInfo)}
type State = { info :: Maybe (NodePoly CorpusInfo)
-- , docview :: D.state
-- , authorview :: A.State
-- , sourceview :: S.State
-- , termsview :: T.State
-- , activeTab :: Int
}
initialState :: State
initialState :: State
initialState = { info : Nothing }
initialState = { info : Nothing }
...
@@ -99,7 +111,7 @@ instance decodeNode :: (DecodeJson a) => DecodeJson (NodePoly a) where
...
@@ -99,7 +111,7 @@ instance decodeNode :: (DecodeJson a) => DecodeJson (NodePoly a) where
------------------------------------------------------------------------
------------------------------------------------------------------------
layout :: Spec State {} Action
layout :: Spec State {} Action
layout = corpusSpec -- <>
Tab.
pureTab1
layout = corpusSpec -- <> pureTab1
corpusSpec :: Spec State {} Action
corpusSpec :: Spec State {} Action
corpusSpec = simpleSpec performAction render
corpusSpec = simpleSpec performAction render
...
@@ -157,4 +169,11 @@ getNode id = get $ toUrl Back Node id
...
@@ -157,4 +169,11 @@ getNode id = get $ toUrl Back Node id
_info :: Lens' State (Maybe (NodePoly CorpusInfo))
_info :: Lens' State (Maybe (NodePoly CorpusInfo))
_info = lens (\s -> s.info) (\s ss -> s{info = ss})
_info = lens (\s -> s.info) (\s ss -> s{info = ss})
------------------------------------------------------------------------
-- Tabs
------------------------------------------------------------------------
src/Gargantext/Pages/Corpus/Doc/Facets/Specs.purs
View file @
898dae3c
...
@@ -13,7 +13,6 @@ import Gargantext.Pages.Corpus.Doc.Facets.Sources as SV
...
@@ -13,7 +13,6 @@ import Gargantext.Pages.Corpus.Doc.Facets.Sources as SV
import Gargantext.Pages.Corpus.Doc.Facets.Authors as AV
import Gargantext.Pages.Corpus.Doc.Facets.Authors as AV
import Gargantext.Pages.Corpus.Doc.Facets.Terms as TV
import Gargantext.Pages.Corpus.Doc.Facets.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)
...
...
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