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
7919a363
Commit
7919a363
authored
Jul 16, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
[Merge]
parents
fd100074
7ceb40ec
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
72 deletions
+31
-72
packages.dhall
packages.dhall
+25
-15
Types.purs
src/Gargantext/Components/DocsTable/Types.purs
+0
-10
Types.purs
...ext/Components/Forest/Tree/Node/Action/Contact/Types.purs
+0
-1
Link.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Link.purs
+0
-1
Share.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Share.purs
+0
-1
Types.purs
...text/Components/Forest/Tree/Node/Action/Update/Types.purs
+0
-2
Frame.purs
src/Gargantext/Components/Nodes/Frame.purs
+0
-1
Public.purs
src/Gargantext/Components/Nodes/Home/Public.purs
+0
-1
Types.purs
src/Gargantext/Types.purs
+6
-8
DecodeMaybe.js
src/Gargantext/Utils/DecodeMaybe.js
+0
-5
DecodeMaybe.purs
src/Gargantext/Utils/DecodeMaybe.purs
+0
-27
No files found.
packages.dhall
View file @
7919a363
...
...
@@ -101,20 +101,30 @@ let additions =
, repo = "https://github.com/purescript-contrib/purescript-precise"
, version = "v4.0.0"
}
{-
, reactix =
, reactix =
{ dependencies =
[ "aff"
, "dom-simple"
, "effect"
, "ffi-simple"
, "functions"
, "nullable"
, "prelude"
, "unsafe-coerce"
[ "aff"
, "arrays"
, "dom-simple"
, "effect"
, "ffi-simple"
, "foldable-traversable"
, "functions"
, "maybe"
, "nullable"
, "prelude"
, "psci-support"
, "refs"
, "spec"
, "spec-mocha"
, "strings"
, "tuples"
, "unfoldable"
, "unsafe-coerce"
]
, repo = "https://github.com/irresponsible/purescript-reactix"
, version = "v0.4.1
1
"
}
-}
, version = "v0.4.1
2
"
}
, simple-json-generics =
{ dependencies =
[ "simple-json" ]
...
...
@@ -172,8 +182,8 @@ let additions =
}
}
let localPackages = {
reactix = ../../purescript-reactix/spago.dhall as Location
}
--
let localPackages = {
--
reactix = ../../purescript-reactix/spago.dhall as Location
--
}
in upstream // overrides // additions // localPackages
in upstream // overrides // additions
--
// localPackages
src/Gargantext/Components/DocsTable/Types.purs
View file @
7919a363
...
...
@@ -33,16 +33,6 @@ derive instance Generic DocumentsView _
instance Eq DocumentsView where
eq = genericEq
{-
derive instance Generic DocumentsView _
instance Show DocumentsView where
show = genericShow
instance Argonaut.DecodeJson SearchType where
decodeJson = genericSumDecodeJson
instance Argonaut.EncodeJson SearchType where
encodeJson = genericSumEncodeJson
-}
instance JSON.ReadForeign DocumentsView where
readImpl f = do
{ id, category, date, ngramCount, score, source, title, url } :: { id :: Int | DocumentsViewT } <- JSON.readImpl f
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Contact/Types.purs
View file @
7919a363
...
...
@@ -6,7 +6,6 @@ import Data.Show.Generic (genericShow)
import Simple.JSON as JSON
import Gargantext.Prelude (class Eq, class Show)
import Gargantext.Utils.Argonaut (genericSumDecodeJson, genericSumEncodeJson)
newtype AddContactParams =
AddContactParams { firstname :: String, lastname :: String }
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Link.purs
View file @
7919a363
...
...
@@ -18,7 +18,6 @@ import Gargantext.Prelude
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Sessions (Session, post)
import Gargantext.Types as GT
import Gargantext.Utils.Argonaut (genericSumDecodeJson, genericSumEncodeJson)
import Gargantext.Utils.Reactix as R2
here :: R2.Here
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Share.purs
View file @
7919a363
...
...
@@ -21,7 +21,6 @@ import Gargantext.Routes as GR
import Gargantext.Sessions (Session, post)
import Gargantext.Types (ID)
import Gargantext.Types as GT
import Gargantext.Utils.Argonaut (genericSumDecodeJson, genericSumEncodeJson)
import Gargantext.Utils.Reactix as R2
here :: R2.Here
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Update/Types.purs
View file @
7919a363
...
...
@@ -8,8 +8,6 @@ import Simple.JSON.Generics as JSONG
import Gargantext.Prelude
import Gargantext.Utils.Argonaut (genericSumDecodeJson, genericSumEncodeJson, genericEnumDecodeJson, genericEnumEncodeJson)
data UpdateNodeParams = UpdateNodeParamsList { methodList :: Method }
| UpdateNodeParamsGraph { methodGraph :: GraphMetric }
...
...
src/Gargantext/Components/Nodes/Frame.purs
View file @
7919a363
...
...
@@ -21,7 +21,6 @@ import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Routes (SessionRoute(NodeAPI))
import Gargantext.Sessions (Session, get, sessionId)
import Gargantext.Types (NodeType(..))
import Gargantext.Utils.Argonaut (genericSumEncodeJson)
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Toestand as T2
...
...
src/Gargantext/Components/Nodes/Home/Public.purs
View file @
7919a363
...
...
@@ -16,7 +16,6 @@ import Gargantext.Config.REST (get)
import Gargantext.Ends (backendUrl)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Prelude
import Gargantext.Utils.Argonaut (genericSumDecodeJson, genericSumEncodeJson)
import Gargantext.Utils.Reactix as R2
here :: R2.Here
...
...
src/Gargantext/Types.purs
View file @
7919a363
module Gargantext.Types where
import Data.Array as A
import Data.Generic.Rep (class Generic)
import Data.Eq.Generic (genericEq)
import Data.Ord.Generic (genericCompare)
import Data.Show.Generic (genericShow)
import Data.Generic.Rep (class Generic)
import Data.Int (toNumber)
import Data.Maybe (Maybe(..), fromMaybe, maybe)
import Data.Newtype (class Newtype)
import Data.Ord.Generic (genericCompare)
import Data.Show.Generic (genericShow)
import Data.String as S
import Effect.Aff (Aff)
import Foreign as F
import Gargantext.Components.Lang (class Translate, Lang(..))
import Gargantext.Prelude
import Gargantext.Utils.Glyphicon (classNamePrefix, glyphiconToCharCode)
import Prim.Row (class Union)
import Reactix as R
import Simple.JSON as JSON
import Simple.JSON.Generics as JSONG
import URI.Query (Query)
import Gargantext.Prelude
import Gargantext.Components.Lang (class Translate, Lang(..))
import Gargantext.Utils.Glyphicon (classNamePrefix, glyphiconToCharCode)
data Handed = LeftHanded | RightHanded
switchHanded :: forall a. a -> a -> Handed -> a
...
...
src/Gargantext/Utils/DecodeMaybe.js
deleted
100644 → 0
View file @
fd100074
'use strict'
;
exports
.
isNull
=
function
(
v
)
{
return
v
===
null
;
};
src/Gargantext/Utils/DecodeMaybe.purs
deleted
100644 → 0
View file @
fd100074
module Gargantext.Utils.DecodeMaybe where
import Prelude
import Data.Argonaut (class DecodeJson, Json, getFieldOptional)
import Data.Argonaut.Decode.Error (JsonDecodeError(..))
import Data.Either (Either)
import Data.Maybe (Maybe(..), fromMaybe)
import Foreign.Object (Object)
foreign import isNull :: forall a. a -> Boolean
getFieldOptional' :: forall a. DecodeJson a =>
Object Json -> String -> Either JsonDecodeError (Maybe a)
getFieldOptional' o s = (case _ of
Just v -> if isNull v then Nothing else v
Nothing -> Nothing
) <$> (getFieldOptional o s)
infix 7 getFieldOptional' as .?|
getFieldOptionalAsMempty :: forall a. DecodeJson a =>
Monoid a => Object Json -> String -> Either JsonDecodeError a
getFieldOptionalAsMempty o s =
fromMaybe mempty <$> (getFieldOptional' o s)
infix 7 getFieldOptionalAsMempty as .|
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