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
dbbc0fdf
Commit
dbbc0fdf
authored
Sep 27, 2019
by
James Laver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc fixes for G.Pages
parent
3e5b2663
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
732 deletions
+26
-732
Annuaire.purs
src/Gargantext/Pages/Annuaire.purs
+2
-2
Types.purs
src/Gargantext/Pages/Annuaire/User/Contacts/Types.purs
+1
-1
Corpus.purs
src/Gargantext/Pages/Corpus.purs
+4
-4
Document.purs
src/Gargantext/Pages/Corpus/Document.purs
+19
-19
Graph.purs
src/Gargantext/Pages/Corpus/Graph.purs
+0
-706
No files found.
src/Gargantext/Pages/Annuaire.purs
View file @
dbbc0fdf
...
...
@@ -134,8 +134,8 @@ data HyperdataAnnuaire = HyperdataAnnuaire
instance decodeHyperdataAnnuaire :: DecodeJson HyperdataAnnuaire where
decodeJson json = do
obj <- decodeJson json
title <- obj .:
?
"title"
desc <- obj .:
?
"desc"
title <- obj .:
!
"title"
desc <- obj .:
!
"desc"
pure $ HyperdataAnnuaire { title, desc }
------------------------------------------------------------------------------
...
...
src/Gargantext/Pages/Annuaire/User/Contacts/Types.purs
View file @
dbbc0fdf
...
...
@@ -2,7 +2,7 @@ module Gargantext.Pages.Annuaire.User.Contacts.Types where
import Prelude
import Data.Argonaut (class DecodeJson, decodeJson, (.?), (.??))
import Data.Argonaut (class DecodeJson, decodeJson, (.
:), (.:!), (.
?), (.??))
import Data.Either (Either(..))
import Data.Lens (Lens', Prism', lens, prism)
import Data.Maybe (Maybe(..), maybe, fromMaybe)
...
...
src/Gargantext/Pages/Corpus.purs
View file @
dbbc0fdf
...
...
@@ -13,7 +13,7 @@ corpusLayout props = R.createElement corpusLayoutCpt props []
corpusLayoutCpt :: R.Component Props
corpusLayoutCpt = R.staticComponent "G.P.Corpus.corpusLayout" cpt
where
cpt {nodeId} _children =
do
pure $ H.div {} [ H.h1 {} [H.text "Corpus Description"]
, H.p {} [H.text "Soon: corpus synthesis here (when all others charts/features will be stabilized).
"]
]
cpt {nodeId} _children =
H.div {}
[ H.h1 {} [H.text "Corpus Description
"]
, H.p {} [H.text "Soon: corpus synthesis here (when all others charts/features will be stabilized)."]
]
src/Gargantext/Pages/Corpus/Document.purs
View file @
dbbc0fdf
module Gargantext.Pages.Corpus.Document where
import Data.Argonaut (class DecodeJson, decodeJson, (.:), (.:
?
))
import Data.Argonaut (class DecodeJson, decodeJson, (.:), (.:
!
))
import Data.Generic.Rep (class Generic)
import Data.Generic.Rep.Show (genericShow)
import Data.Maybe (Maybe(..), maybe)
...
...
@@ -199,7 +199,7 @@ instance decodeDocumentV3 :: DecodeJson DocumentV3
where
decodeJson json = do
obj <- decodeJson json
abstract <- obj .:
?
"abstract"
abstract <- obj .:
!
"abstract"
authors <- obj .: "authors"
--error <- obj .: "error"
language_iso2 <- obj .: "language_iso2"
...
...
@@ -239,23 +239,23 @@ instance decodeDocument :: DecodeJson Document
where
decodeJson json = do
obj <- decodeJson json
abstract <- obj .:
?
"abstract"
authors <- obj .:
?
"authors"
bdd <- obj .:
?
"bdd"
doi <- obj .:
?
"doi"
language_iso2 <- obj .:
?
"language_iso2"
-- page <- obj .:
?
"page"
publication_date <- obj .:
?
"publication_date"
--publication_second <- obj .:
?
"publication_second"
--publication_minute <- obj .:
?
"publication_minute"
--publication_hour <- obj .:
?
"publication_hour"
publication_day <- obj .:
?
"publication_day"
publication_month <- obj .:
?
"publication_month"
publication_year <- obj .:
?
"publication_year"
source <- obj .:
?
"sources"
institutes <- obj .:
?
"institutes"
title <- obj .:
?
"title"
uniqId <- obj .:
?
"uniqId"
abstract <- obj .:
!
"abstract"
authors <- obj .:
!
"authors"
bdd <- obj .:
!
"bdd"
doi <- obj .:
!
"doi"
language_iso2 <- obj .:
!
"language_iso2"
-- page <- obj .:
!
"page"
publication_date <- obj .:
!
"publication_date"
--publication_second <- obj .:
!
"publication_second"
--publication_minute <- obj .:
!
"publication_minute"
--publication_hour <- obj .:
!
"publication_hour"
publication_day <- obj .:
!
"publication_day"
publication_month <- obj .:
!
"publication_month"
publication_year <- obj .:
!
"publication_year"
source <- obj .:
!
"sources"
institutes <- obj .:
!
"institutes"
title <- obj .:
!
"title"
uniqId <- obj .:
!
"uniqId"
--url <- obj .: "url"
--text <- obj .: "text"
pure $ Document { abstract
...
...
src/Gargantext/Pages/Corpus/Graph.purs
deleted
100644 → 0
View file @
3e5b2663
This diff is collapsed.
Click to expand it.
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