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
d7bc387b
Commit
d7bc387b
authored
Oct 11, 2019
by
James Laver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill unused thermite interop and tidy up some warnings
parent
0859bf96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
23 deletions
+9
-23
Sessions.purs
src/Gargantext/Sessions.purs
+1
-1
Reactix.purs
src/Gargantext/Utils/Reactix.purs
+8
-22
No files found.
src/Gargantext/Sessions.purs
View file @
d7bc387b
...
@@ -103,7 +103,7 @@ instance encodeJsonSessions :: EncodeJson Sessions where
...
@@ -103,7 +103,7 @@ instance encodeJsonSessions :: EncodeJson Sessions where
~> jsonEmptyObject
~> jsonEmptyObject
where
where
encodeSessions :: Seq Session -> Json
encodeSessions :: Seq Session -> Json
encodeSessions ss
= fromArray $ encodeJson <$> (Seq.toUnfoldable ss
)
encodeSessions ss
2 = fromArray $ encodeJson <$> (Seq.toUnfoldable ss2
)
unSessions :: Sessions -> Array Session
unSessions :: Sessions -> Array Session
...
...
src/Gargantext/Utils/Reactix.purs
View file @
d7bc387b
...
@@ -22,7 +22,6 @@ import Reactix.DOM.HTML (ElemFactory, text)
...
@@ -22,7 +22,6 @@ import Reactix.DOM.HTML (ElemFactory, text)
import Reactix.React (react, createDOMElement)
import Reactix.React (react, createDOMElement)
import Reactix.SyntheticEvent as RE
import Reactix.SyntheticEvent as RE
import Reactix.Utils (currySecond, hook, tuple)
import Reactix.Utils (currySecond, hook, tuple)
import Thermite (Spec, simpleSpec, Render, defaultPerformAction)
import Unsafe.Coerce (unsafeCoerce)
import Unsafe.Coerce (unsafeCoerce)
newtype Point = Point { x :: Number, y :: Number }
newtype Point = Point { x :: Number, y :: Number }
...
@@ -42,30 +41,17 @@ buff = unsafeCoerce
...
@@ -42,30 +41,17 @@ buff = unsafeCoerce
scuff :: R.Element -> ReactElement
scuff :: R.Element -> ReactElement
scuff = unsafeCoerce
scuff = unsafeCoerce
class ToElement a where
--
class ToElement a where
toElement :: a -> R.Element
--
toElement :: a -> R.Element
instance toElementElement :: ToElement R.Element where
--
instance toElementElement :: ToElement R.Element where
toElement = identity
--
toElement = identity
instance toElementReactElement :: ToElement ReactElement where
--
instance toElementReactElement :: ToElement ReactElement where
toElement = buff
--
toElement = buff
instance toElementArray :: ToElement a => ToElement (Array a) where
-- instance toElementArray :: ToElement a => ToElement (Array a) where
toElement = R.fragment <<< map toElement
-- 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)]
createElement' :: forall required given
createElement' :: forall required given
. ReactPropFields 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