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
8a19618a
Commit
8a19618a
authored
Oct 11, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-renaming' into dev-merge
parents
410205dc
b63c157a
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
57 additions
and
72 deletions
+57
-72
App.purs
src/Gargantext/Components/App.purs
+8
-8
Annuaire.purs
src/Gargantext/Components/Nodes/Annuaire.purs
+7
-7
Contacts.purs
src/Gargantext/Components/Nodes/Annuaire/User/Contacts.purs
+4
-4
Tabs.purs
...gantext/Components/Nodes/Annuaire/User/Contacts/Tabs.purs
+3
-3
Types.purs
...antext/Components/Nodes/Annuaire/User/Contacts/Types.purs
+1
-1
Corpus.purs
src/Gargantext/Components/Nodes/Corpus.purs
+1
-1
Histo.purs
src/Gargantext/Components/Nodes/Corpus/Chart/Histo.purs
+2
-2
Metrics.purs
src/Gargantext/Components/Nodes/Corpus/Chart/Metrics.purs
+2
-2
Pie.purs
src/Gargantext/Components/Nodes/Corpus/Chart/Pie.purs
+2
-2
Tree.purs
src/Gargantext/Components/Nodes/Corpus/Chart/Tree.purs
+2
-2
Utils.purs
src/Gargantext/Components/Nodes/Corpus/Chart/Utils.purs
+1
-1
Dashboard.purs
src/Gargantext/Components/Nodes/Corpus/Dashboard.purs
+1
-1
Document.purs
src/Gargantext/Components/Nodes/Corpus/Document.purs
+1
-1
Tabs.purs
src/Gargantext/Components/Nodes/Corpus/Graph/Tabs.purs
+1
-1
Home.purs
src/Gargantext/Components/Nodes/Home.purs
+1
-1
Lists.purs
src/Gargantext/Components/Nodes/Lists.purs
+2
-2
Tabs.purs
src/Gargantext/Components/Nodes/Lists/Tabs.purs
+4
-4
Texts.purs
src/Gargantext/Components/Nodes/Texts.purs
+3
-3
Tabs.purs
src/Gargantext/Components/Nodes/Texts/Tabs.purs
+2
-2
Sessions.purs
src/Gargantext/Sessions.purs
+1
-2
Reactix.purs
src/Gargantext/Utils/Reactix.purs
+8
-22
No files found.
src/Gargantext/Components/App.purs
View file @
8a19618a
...
...
@@ -16,15 +16,15 @@ import Gargantext.Components.Login (login)
-- import Gargantext.Components.Search.Types (allDatabases)
import Gargantext.Config (defaultFrontends, defaultBackends)
import Gargantext.Components.Folder (folder)
import Gargantext.Components.Nodes.Annuaire (annuaireLayout)
import Gargantext.Components.Nodes.Annuaire.User.Contacts (userLayout)
import Gargantext.Components.Nodes.Corpus (corpusLayout)
import Gargantext.Components.Nodes.Corpus.Document (documentLayout)
import Gargantext.Components.Nodes.Corpus.Dashboard (dashboardLayout)
import Gargantext.Components.Nodes.Lists (listsLayout)
import Gargantext.Components.Nodes.Texts (textsLayout)
import Gargantext.Components.Nodes.Home (homeLayout)
import Gargantext.Ends (Frontends)
import Gargantext.Pages.Annuaire (annuaireLayout)
import Gargantext.Pages.Annuaire.User.Contacts (userLayout)
import Gargantext.Pages.Corpus (corpusLayout)
import Gargantext.Pages.Corpus.Document (documentLayout)
import Gargantext.Pages.Corpus.Dashboard (dashboardLayout)
import Gargantext.Pages.Lists (listsLayout)
import Gargantext.Pages.Texts (textsLayout)
import Gargantext.Pages.Home (homeLayout)
import Gargantext.Router (router)
import Gargantext.Routes (AppRoute(..))
import Gargantext.Hooks.Router (useHashRouter)
...
...
src/Gargantext/
Pag
es/Annuaire.purs
→
src/Gargantext/
Components/Nod
es/Annuaire.purs
View file @
8a19618a
module Gargantext.
Pag
es.Annuaire where
module Gargantext.
Components.Nod
es.Annuaire where
import Prelude (bind,
const,
identity, pure, ($), (<$>), (<>))
import Prelude (bind, identity, pure, ($), (<$>), (<>))
import Data.Argonaut (class DecodeJson, decodeJson, (.:), (.:?))
import Data.Array (head)
import Data.Maybe (Maybe(..), maybe)
import Data.Tuple (fst, snd)
import Data.Tuple.Nested ((/\))
import Effect.Aff (Aff)
import Reactix as R
import Reactix.DOM.HTML as H
import Gargantext.Components.Nodes.Annuaire.User.Contacts.Types (Contact(..), HyperdataContact(..), ContactWhere(..))
import Gargantext.Components.Table as T
import Gargantext.Ends (url)
import Gargantext.Routes (SessionRoute(..))
...
...
@@ -14,9 +17,6 @@ import Gargantext.Sessions (Session, sessionId)
import Gargantext.Types (NodePath(..), NodeType(..))
import Gargantext.Config.REST (get)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Pages.Annuaire.User.Contacts.Types (Contact(..), HyperdataContact(..), ContactWhere(..))
import Reactix as R
import Reactix.DOM.HTML as H
newtype IndividuView =
CorpusView
...
...
@@ -108,8 +108,8 @@ pageCpt = R.staticComponent "LoadedAnnuairePage" cpt
rows = (\c -> {row: contactCells session c, delete: false}) <$> annuaireTable
container = T.defaultContainer { title: "Annuaire" } -- TODO
colNames = T.ColumnName <$> [ "", "Name", "Company", "Service", "Role"]
setParams f = snd pagePath $ \{nodeId, params} ->
{params: f p
aram
s, nodeId: fst annuairePath}
setParams f = snd pagePath $ \{nodeId, params
: ps
} ->
{params: f ps, nodeId: fst annuairePath}
params = T.initialParams /\ setParams
contactCells :: Session -> Maybe Contact -> Array R.Element
...
...
src/Gargantext/
Pag
es/Annuaire/User/Contacts.purs
→
src/Gargantext/
Components/Nod
es/Annuaire/User/Contacts.purs
View file @
8a19618a
module Gargantext.
Pag
es.Annuaire.User.Contacts
( module Gargantext.
Pag
es.Annuaire.User.Contacts.Types
module Gargantext.
Components.Nod
es.Annuaire.User.Contacts
( module Gargantext.
Components.Nod
es.Annuaire.User.Contacts.Types
, userLayout )
where
...
...
@@ -16,10 +16,10 @@ import Reactix.DOM.HTML as H
import Gargantext.Config.REST (get)
import Gargantext.Ends (url)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.
Pag
es.Annuaire.User.Contacts.Types
import Gargantext.
Components.Nod
es.Annuaire.User.Contacts.Types
( Contact(..), ContactData, ContactTouch(..), ContactWhere(..)
, ContactWho(..), HyperData(..), HyperdataContact(..) )
import Gargantext.
Pag
es.Annuaire.User.Contacts.Tabs as Tabs
import Gargantext.
Components.Nod
es.Annuaire.User.Contacts.Tabs as Tabs
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Sessions (Session)
import Gargantext.Types (NodeType(..))
...
...
src/Gargantext/
Pag
es/Annuaire/User/Contacts/Tabs.purs
→
src/Gargantext/
Components/Nod
es/Annuaire/User/Contacts/Tabs.purs
View file @
8a19618a
-- TODO copy of Gargantext.
Pag
es.Corpus.Tabs.Specs
module Gargantext.
Pag
es.Annuaire.User.Contacts.Tabs where
-- TODO copy of Gargantext.
Components.Nod
es.Corpus.Tabs.Specs
module Gargantext.
Components.Nod
es.Annuaire.User.Contacts.Tabs where
import Prelude hiding (div)
import Data.Generic.Rep (class Generic)
...
...
@@ -11,7 +11,7 @@ import Reactix as R
import Gargantext.Components.DocsTable as DT
import Gargantext.Components.NgramsTable as NT
import Gargantext.Components.Tab as Tab
import Gargantext.
Pag
es.Annuaire.User.Contacts.Types (ContactData)
import Gargantext.
Components.Nod
es.Annuaire.User.Contacts.Types (ContactData)
import Gargantext.Sessions (Session)
import Gargantext.Types (TabType(..), TabSubType(..), CTabNgramType(..), PTabNgramType(..))
...
...
src/Gargantext/
Pag
es/Annuaire/User/Contacts/Types.purs
→
src/Gargantext/
Components/Nod
es/Annuaire/User/Contacts/Types.purs
View file @
8a19618a
module Gargantext.
Pag
es.Annuaire.User.Contacts.Types where
module Gargantext.
Components.Nod
es.Annuaire.User.Contacts.Types where
import Prelude
...
...
src/Gargantext/
Pag
es/Corpus.purs
→
src/Gargantext/
Components/Nod
es/Corpus.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus where
module Gargantext.
Components.Nod
es.Corpus where
import Reactix as R
import Reactix.DOM.HTML as H
...
...
src/Gargantext/
Pag
es/Corpus/Chart/Histo.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Chart/Histo.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Chart.Histo where
module Gargantext.
Components.Nod
es.Corpus.Chart.Histo where
import Prelude (bind, map, pure, ($))
import Data.Argonaut (class DecodeJson, decodeJson, (.:))
...
...
@@ -14,7 +14,7 @@ import Gargantext.Components.Charts.Options.Font (itemStyle, mkTooltip, template
import Gargantext.Components.Charts.Options.Data (dataSerie)
import Gargantext.Ends (url)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.
Pag
es.Corpus.Chart.Utils as U
import Gargantext.
Components.Nod
es.Corpus.Chart.Utils as U
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Sessions (Session)
import Gargantext.Types (ChartType(..), TabType)
...
...
src/Gargantext/
Pag
es/Corpus/Chart/Metrics.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Chart/Metrics.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Chart.Metrics where
module Gargantext.
Components.Nod
es.Corpus.Chart.Metrics where
import Prelude (bind, negate, pure, ($), (<$>), (<>))
import Data.Argonaut (class DecodeJson, decodeJson, (.:))
...
...
@@ -18,7 +18,7 @@ import Gargantext.Components.Charts.Options.Font (itemStyle, mkTooltip, template
import Gargantext.Components.Charts.Options.Data (dataSerie)
import Gargantext.Ends (url)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.
Pag
es.Corpus.Chart.Utils as U
import Gargantext.
Components.Nod
es.Corpus.Chart.Utils as U
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Sessions (Session)
import Gargantext.Types (TabType, TermList(..))
...
...
src/Gargantext/
Pag
es/Corpus/Chart/Pie.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Chart/Pie.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Chart.Pie where
module Gargantext.
Components.Nod
es.Corpus.Chart.Pie where
import Prelude (bind, map, pure, ($), (>))
import Data.Argonaut (class DecodeJson, decodeJson, (.:))
...
...
@@ -18,7 +18,7 @@ import Gargantext.Components.Charts.Options.Font (itemStyle, mkTooltip, template
import Gargantext.Components.Charts.Options.Data (dataSerie)
import Gargantext.Ends (url)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.
Pag
es.Corpus.Chart.Utils as U
import Gargantext.
Components.Nod
es.Corpus.Chart.Utils as U
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Sessions (Session)
import Gargantext.Types (ChartType(..), TabType)
...
...
src/Gargantext/
Pag
es/Corpus/Chart/Tree.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Chart/Tree.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Chart.Tree where
module Gargantext.
Components.Nod
es.Corpus.Chart.Tree where
import Prelude (bind, pure, ($))
import Data.Argonaut (class DecodeJson, decodeJson, (.:))
...
...
@@ -13,7 +13,7 @@ import Gargantext.Components.Charts.Options.Series (TreeNode, Trees(..), mkTree)
import Gargantext.Components.Charts.Options.Font (mkTooltip, templateFormatter)
import Gargantext.Ends (url)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.
Pag
es.Corpus.Chart.Utils as U
import Gargantext.
Components.Nod
es.Corpus.Chart.Utils as U
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Sessions (Session)
import Gargantext.Types (ChartType(..), TabType)
...
...
src/Gargantext/
Pag
es/Corpus/Chart/Utils.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Chart/Utils.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Chart.Utils where
module Gargantext.
Components.Nod
es.Corpus.Chart.Utils where
import Data.Tuple.Nested ((/\))
import Effect.Uncurried (mkEffectFn1)
...
...
src/Gargantext/
Pag
es/Corpus/Dashboard.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Dashboard.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Dashboard where
module Gargantext.
Components.Nod
es.Corpus.Dashboard where
import Prelude (map, show, ($), (<$>), (<>))
import Data.Array (zipWith)
...
...
src/Gargantext/
Pag
es/Corpus/Document.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Document.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Document where
module Gargantext.
Components.Nod
es.Corpus.Document where
import Prelude (class Show, bind, identity, mempty, pure, ($), (<<<))
import Data.Argonaut (class DecodeJson, decodeJson, (.:), (.:?))
...
...
src/Gargantext/
Pag
es/Corpus/Graph/Tabs.purs
→
src/Gargantext/
Components/Nod
es/Corpus/Graph/Tabs.purs
View file @
8a19618a
module Gargantext.
Pag
es.Corpus.Graph.Tabs where
module Gargantext.
Components.Nod
es.Corpus.Graph.Tabs where
import Prelude hiding (div)
import Data.Array (fromFoldable)
...
...
src/Gargantext/
Pag
es/Home.purs
→
src/Gargantext/
Components/Nod
es/Home.purs
View file @
8a19618a
module Gargantext.
Pag
es.Home where
module Gargantext.
Components.Nod
es.Home where
import Prelude
import Data.Newtype (class Newtype)
...
...
src/Gargantext/
Pag
es/Lists.purs
→
src/Gargantext/
Components/Nod
es/Lists.purs
View file @
8a19618a
module Gargantext.
Pag
es.Lists where
module Gargantext.
Components.Nod
es.Lists where
import Prelude ((<<<))
import Data.Array (head)
...
...
@@ -13,7 +13,7 @@ import Gargantext.Components.Table as Table
import Gargantext.Config.REST (get)
import Gargantext.Ends (url)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.
Pag
es.Lists.Tabs as Tabs
import Gargantext.
Components.Nod
es.Lists.Tabs as Tabs
import Gargantext.Routes (SessionRoute(NodeAPI, Children))
import Gargantext.Sessions (Session)
import Gargantext.Types (NodeType(..))
...
...
src/Gargantext/
Pag
es/Lists/Tabs.purs
→
src/Gargantext/
Components/Nod
es/Lists/Tabs.purs
View file @
8a19618a
module Gargantext.
Pag
es.Lists.Tabs where
module Gargantext.
Components.Nod
es.Lists.Tabs where
import Prelude
import Data.Argonaut (class DecodeJson, decodeJson, (.:), (.??))
...
...
@@ -10,9 +10,9 @@ import Reactix as R
import Gargantext.Components.NgramsTable as NT
import Gargantext.Components.Node (NodePoly(..))
import Gargantext.Components.Tab as Tab
import Gargantext.
Pag
es.Corpus.Chart.Metrics (metrics)
import Gargantext.
Pag
es.Corpus.Chart.Pie (pie, bar)
import Gargantext.
Pag
es.Corpus.Chart.Tree (tree)
import Gargantext.
Components.Nod
es.Corpus.Chart.Metrics (metrics)
import Gargantext.
Components.Nod
es.Corpus.Chart.Pie (pie, bar)
import Gargantext.
Components.Nod
es.Corpus.Chart.Tree (tree)
import Gargantext.Sessions (Session)
import Gargantext.Types (CTabNgramType(..), TabType(..), TabSubType(..))
...
...
src/Gargantext/
Pag
es/Texts.purs
→
src/Gargantext/
Components/Nod
es/Texts.purs
View file @
8a19618a
module Gargantext.
Pag
es.Texts where
module Gargantext.
Components.Nod
es.Texts where
import Prelude ((<<<))
import Data.Array (head)
...
...
@@ -16,8 +16,8 @@ import Gargantext.Components.Table as Table
import Gargantext.Config.REST (get)
import Gargantext.Ends (url)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.
Pag
es.Texts.Tabs (CorpusData, CorpusInfo(..))
import Gargantext.
Pag
es.Texts.Tabs as Tabs
import Gargantext.
Components.Nod
es.Texts.Tabs (CorpusData, CorpusInfo(..))
import Gargantext.
Components.Nod
es.Texts.Tabs as Tabs
import Gargantext.Routes (SessionRoute(NodeAPI, Children))
import Gargantext.Sessions (Session)
import Gargantext.Types (NodeType(..))
...
...
src/Gargantext/
Pag
es/Texts/Tabs.purs
→
src/Gargantext/
Components/Nod
es/Texts/Tabs.purs
View file @
8a19618a
module Gargantext.
Pag
es.Texts.Tabs where
module Gargantext.
Components.Nod
es.Texts.Tabs where
--------------------------------------------------------
import Prelude (class Eq, class Show, bind, pure, ($))
...
...
@@ -13,7 +13,7 @@ import Reactix.DOM.HTML as H
import Gargantext.Components.DocsTable as DT
import Gargantext.Components.Node (NodePoly(..))
import Gargantext.Components.Tab as Tab
import Gargantext.
Pag
es.Corpus.Chart.Histo (histo)
import Gargantext.
Components.Nod
es.Corpus.Chart.Histo (histo)
import Gargantext.Sessions (Session)
import Gargantext.Types (CTabNgramType(..), TabSubType(..), TabType(..))
...
...
src/Gargantext/Sessions.purs
View file @
8a19618a
...
...
@@ -103,8 +103,7 @@ instance encodeJsonSessions :: EncodeJson Sessions where
~> jsonEmptyObject
where
encodeSessions :: Seq Session -> Json
encodeSessions ss = fromArray $ encodeJson <$> (Seq.toUnfoldable ss)
encodeSessions ss2 = fromArray $ encodeJson <$> (Seq.toUnfoldable ss2)
unSessions :: Sessions -> Array Session
unSessions (Sessions s) = A.fromFoldable s
...
...
src/Gargantext/Utils/Reactix.purs
View file @
8a19618a
...
...
@@ -22,7 +22,6 @@ import Reactix.DOM.HTML (ElemFactory, text)
import Reactix.React (react, createDOMElement)
import Reactix.SyntheticEvent as RE
import Reactix.Utils (currySecond, hook, tuple)
import Thermite (Spec, simpleSpec, Render, defaultPerformAction)
import Unsafe.Coerce (unsafeCoerce)
newtype Point = Point { x :: Number, y :: Number }
...
...
@@ -42,30 +41,17 @@ buff = unsafeCoerce
scuff :: R.Element -> ReactElement
scuff = unsafeCoerce
class ToElement a where
toElement :: a -> R.Element
--
class ToElement a where
--
toElement :: a -> R.Element
instance toElementElement :: ToElement R.Element where
toElement = identity
--
instance toElementElement :: ToElement R.Element where
--
toElement = identity
instance toElementReactElement :: ToElement ReactElement where
toElement = buff
--
instance toElementReactElement :: ToElement ReactElement where
--
toElement = buff
instance toElementArray :: ToElement a => ToElement (Array a) where
toElement = R.fragment <<< map toElement
{-
instance isReactElementElement :: IsReactElement R.Element where
toElement = scuff
-}
elSpec :: forall component props
. R.IsComponent component props (Array R.Element)
=> component -> Spec {} (Record props) Void
elSpec cpt = simpleSpec defaultPerformAction render
where
render :: Render {} (Record props) Void
render _ props _ children = [scuff $ R.createElement cpt props (buff <$> children)]
-- instance toElementArray :: ToElement a => ToElement (Array a) where
-- toElement = R.fragment <<< map toElement
createElement' :: forall required given
. ReactPropFields required given
...
...
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