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
6265211b
Commit
6265211b
authored
Dec 21, 2019
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some compiler warnings cleanup
parent
2ed26a3c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
19 deletions
+10
-19
AnnotatedField.purs
src/Gargantext/Components/Annotation/AnnotatedField.purs
+0
-1
DocsTable.purs
src/Gargantext/Components/DocsTable.purs
+7
-6
Add.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Add.purs
+0
-1
Upload.purs
...Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
+0
-1
Annuaire.purs
src/Gargantext/Components/Nodes/Annuaire.purs
+1
-1
SearchBar.purs
src/Gargantext/Components/Search/SearchBar.purs
+1
-8
Types.purs
src/Gargantext/Hooks/Sigmax/Types.purs
+1
-1
No files found.
src/Gargantext/Components/Annotation/AnnotatedField.purs
View file @
6265211b
...
@@ -27,7 +27,6 @@ import Gargantext.Types (CTabNgramType(..), TermList)
...
@@ -27,7 +27,6 @@ import Gargantext.Types (CTabNgramType(..), TermList)
import Gargantext.Components.Annotation.Utils ( termBootstrapClass )
import Gargantext.Components.Annotation.Utils ( termBootstrapClass )
import Gargantext.Components.NgramsTable.Core (NgramsTable, NgramsTerm, findNgramTermList, highlightNgrams, normNgram)
import Gargantext.Components.NgramsTable.Core (NgramsTable, NgramsTerm, findNgramTermList, highlightNgrams, normNgram)
import Gargantext.Components.Annotation.Menu ( AnnotationMenu, annotationMenu, MenuType(..) )
import Gargantext.Components.Annotation.Menu ( AnnotationMenu, annotationMenu, MenuType(..) )
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Selection as Sel
import Gargantext.Utils.Selection as Sel
type Props =
type Props =
...
...
src/Gargantext/Components/DocsTable.purs
View file @
6265211b
...
@@ -55,7 +55,8 @@ favCategory _ = Favorite
...
@@ -55,7 +55,8 @@ favCategory _ = Favorite
trashCategory :: Category -> Category
trashCategory :: Category -> Category
trashCategory _ = Trash
trashCategory _ = Trash
trashCategory Trash = UnRead
-- TODO: ?
--trashCategory Trash = UnRead
decodeCategory :: Int -> Category
decodeCategory :: Int -> Category
decodeCategory 0 = Trash
decodeCategory 0 = Trash
...
@@ -81,17 +82,17 @@ caroussel session nodeId setLocalCategories r cat = H.div {className:"flex"} div
...
@@ -81,17 +82,17 @@ caroussel session nodeId setLocalCategories r cat = H.div {className:"flex"} div
else
else
H.div { className : icon c (cat == c)
H.div { className : icon c (cat == c)
, on: { click: onClick
nodeId setLocalCategories r
c}
, on: { click: onClick c}
} []
} []
) (caroussel' cat)
) (caroussel' cat)
caroussel' :: Category -> Array Category
caroussel' :: Category -> Array Category
caroussel' Trash = take 2 categories
caroussel' Trash = take 2 categories
caroussel' c
at = take 3 $ drop (cat2score cat
- 1 ) categories
caroussel' c
= take 3 $ drop (cat2score c
- 1 ) categories
onClick
nodeId setLocalCategories r cat
= \_-> do
onClick
c
= \_-> do
setLocalCategories $ Map.insert r._id c
at
setLocalCategories $ Map.insert r._id c
void $ launchAff $ putCategories session nodeId $ CategoryQuery {nodeIds: [r._id], category: c
at
}
void $ launchAff $ putCategories session nodeId $ CategoryQuery {nodeIds: [r._id], category: c}
icon :: Category -> Boolean -> String
icon :: Category -> Boolean -> String
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Add.purs
View file @
6265211b
...
@@ -6,7 +6,6 @@ import Data.Maybe (Maybe(..), fromMaybe)
...
@@ -6,7 +6,6 @@ import Data.Maybe (Maybe(..), fromMaybe)
import Data.Tuple.Nested ((/\))
import Data.Tuple.Nested ((/\))
import Effect.Aff (Aff, launchAff)
import Effect.Aff (Aff, launchAff)
import Effect.Uncurried (mkEffectFn1)
import Effect.Uncurried (mkEffectFn1)
import FFI.Simple ((..))
import Gargantext.Components.Forest.Tree.Node.Action (Action(..), ID, Name)
import Gargantext.Components.Forest.Tree.Node.Action (Action(..), ID, Name)
import Gargantext.Components.Forest.Tree.Node (SettingsBox(..), settingsBox)
import Gargantext.Components.Forest.Tree.Node (SettingsBox(..), settingsBox)
import Gargantext.Types (NodeType(..), readNodeType)
import Gargantext.Types (NodeType(..), readNodeType)
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
View file @
6265211b
...
@@ -8,7 +8,6 @@ import Data.Tuple.Nested ((/\))
...
@@ -8,7 +8,6 @@ import Data.Tuple.Nested ((/\))
import Effect.Aff (Aff, launchAff)
import Effect.Aff (Aff, launchAff)
import Effect.Class (liftEffect)
import Effect.Class (liftEffect)
import Effect.Uncurried (mkEffectFn1)
import Effect.Uncurried (mkEffectFn1)
import FFI.Simple ((..))
import Partial.Unsafe (unsafePartial)
import Partial.Unsafe (unsafePartial)
import React.SyntheticEvent as E
import React.SyntheticEvent as E
import Reactix as R
import Reactix as R
...
...
src/Gargantext/Components/Nodes/Annuaire.purs
View file @
6265211b
module Gargantext.Components.Nodes.Annuaire where
module Gargantext.Components.Nodes.Annuaire where
import Prelude (bind,
identity, pure, const, discard
, ($), (<$>), (<>))
import Prelude (bind,
const, identity, pure
, ($), (<$>), (<>))
import Data.Argonaut (class DecodeJson, decodeJson, (.:), (.:?))
import Data.Argonaut (class DecodeJson, decodeJson, (.:), (.:?))
import Data.Array (head)
import Data.Array (head)
import Data.Maybe (Maybe(..), maybe)
import Data.Maybe (Maybe(..), maybe)
...
...
src/Gargantext/Components/Search/SearchBar.purs
View file @
6265211b
...
@@ -2,19 +2,12 @@ module Gargantext.Components.Search.SearchBar
...
@@ -2,19 +2,12 @@ module Gargantext.Components.Search.SearchBar
( Props, searchBar, searchBarCpt
( Props, searchBar, searchBarCpt
) where
) where
import Prelude (Unit, bind, discard, pure, ($))
import Prelude (pure, ($))
import Data.Maybe (Maybe(..))
import Data.Newtype (over)
import Data.Tuple.Nested ((/\))
import Data.Tuple.Nested ((/\))
import Effect.Aff (Aff, launchAff_)
import Effect (Effect)
import Effect.Class (liftEffect)
import Reactix as R
import Reactix as R
import DOM.Simple.Console (log2)
import Reactix.DOM.HTML as H
import Reactix.DOM.HTML as H
import Gargantext.Components.Search.Types -- (Database, SearchQuery(..), defaultSearchQuery, performSearch, Lang(..))
import Gargantext.Components.Search.Types -- (Database, SearchQuery(..), defaultSearchQuery, performSearch, Lang(..))
import Gargantext.Components.Modals.Modal (modalShow)
import Gargantext.Components.Search.SearchField (Search, searchField)
import Gargantext.Components.Search.SearchField (Search, searchField)
import Gargantext.Sessions (Session)
import Gargantext.Sessions (Session)
...
...
src/Gargantext/Hooks/Sigmax/Types.purs
View file @
6265211b
...
@@ -8,7 +8,7 @@ import Data.Map as Map
...
@@ -8,7 +8,7 @@ import Data.Map as Map
import Data.Sequence as Seq
import Data.Sequence as Seq
import Data.Set as Set
import Data.Set as Set
import Data.Tuple (Tuple(..))
import Data.Tuple (Tuple(..))
import Prelude (
map, ($), (&&), (||), (==), class Eq, class Ord, class Show, Ordering, compare
)
import Prelude (
class Eq, class Show, map, ($), (&&), (==), (||)
)
newtype Graph n e = Graph { nodes :: Seq.Seq {|n}, edges :: Seq.Seq {|e} }
newtype Graph n e = Graph { nodes :: Seq.Seq {|n}, edges :: Seq.Seq {|e} }
...
...
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