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
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
Hide 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
~> jsonEmptyObject
where
encodeSessions :: Seq Session -> Json
encodeSessions ss
= fromArray $ encodeJson <$> (Seq.toUnfoldable ss
)
encodeSessions ss
2 = fromArray $ encodeJson <$> (Seq.toUnfoldable ss2
)
unSessions :: Sessions -> Array Session
...
...
src/Gargantext/Utils/Reactix.purs
View file @
d7bc387b
...
...
@@ -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