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
a709265c
Unverified
Commit
a709265c
authored
Oct 11, 2018
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[THERMITE] `hide` is now called `hideState`
parent
8631796e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
Specs.purs
src/Gargantext/Pages/Corpus/Tabs/Specs.purs
+2
-2
NgramsItem.purs
src/Gargantext/Pages/Corpus/Tabs/Terms/NgramsItem.purs
+2
-2
NgramsTable.purs
src/Gargantext/Pages/Corpus/Tabs/Terms/NgramsTable.purs
+2
-2
Specs.purs
src/Gargantext/Pages/Home/Specs.purs
+2
-2
No files found.
src/Gargantext/Pages/Corpus/Tabs/Specs.purs
View file @
a709265c
...
@@ -13,11 +13,11 @@ import Gargantext.Pages.Corpus.Tabs.Sources as SV
...
@@ -13,11 +13,11 @@ import Gargantext.Pages.Corpus.Tabs.Sources as SV
import Gargantext.Pages.Corpus.Tabs.Authors as AV
import Gargantext.Pages.Corpus.Tabs.Authors as AV
import Gargantext.Pages.Corpus.Tabs.Terms as TV
import Gargantext.Pages.Corpus.Tabs.Terms as TV
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
import Thermite (Spec, focus, hide)
import Thermite (Spec, focus, hide
State
)
pureTab1 :: Spec {} {} Void
pureTab1 :: Spec {} {} Void
pureTab1 = hide initialState statefulTab1
pureTab1 = hide
State
initialState statefulTab1
statefulTab1 :: Spec State {} Action
statefulTab1 :: Spec State {} Action
statefulTab1 =
statefulTab1 =
...
...
src/Gargantext/Pages/Corpus/Tabs/Terms/NgramsItem.purs
View file @
a709265c
...
@@ -8,7 +8,7 @@ import Data.Lens.Iso.Newtype (_Newtype)
...
@@ -8,7 +8,7 @@ import Data.Lens.Iso.Newtype (_Newtype)
import React (ReactElement)
import React (ReactElement)
import React.DOM (input, span, td, text, tr)
import React.DOM (input, span, td, text, tr)
import React.DOM.Props (_type, checked, className, onChange, style, title)
import React.DOM.Props (_type, checked, className, onChange, style, title)
import Thermite (PerformAction, Render, Spec, modifyState, simpleSpec, hide, focusState)
import Thermite (PerformAction, Render, Spec, modifyState, simpleSpec, hide
State
, focusState)
import Gargantext.Utils (getter, setter)
import Gargantext.Utils (getter, setter)
newtype State = State
newtype State = State
...
@@ -38,7 +38,7 @@ data Action
...
@@ -38,7 +38,7 @@ data Action
| SetStop Boolean
| SetStop Boolean
ngramsItemSpec :: Spec {} {} Void
ngramsItemSpec :: Spec {} {} Void
ngramsItemSpec = hide (unwrap initialState) $
ngramsItemSpec = hide
State
(unwrap initialState) $
focusState (re _Newtype) $
focusState (re _Newtype) $
simpleSpec performAction render
simpleSpec performAction render
where
where
...
...
src/Gargantext/Pages/Corpus/Tabs/Terms/NgramsTable.purs
View file @
a709265c
...
@@ -17,7 +17,7 @@ import Prelude (class Eq, class Ord, class Show, map, show, void, ($), (*), (+),
...
@@ -17,7 +17,7 @@ import Prelude (class Eq, class Ord, class Show, map, show, void, ($), (*), (+),
import React (ReactElement)
import React (ReactElement)
import React.DOM hiding (style, map)
import React.DOM hiding (style, map)
import React.DOM.Props (_id, _type, className, href, name, onChange, onClick, onInput, placeholder, scope, selected, style, value)
import React.DOM.Props (_id, _type, className, href, name, onChange, onClick, onInput, placeholder, scope, selected, style, value)
import Thermite (PerformAction, Spec, _render, focus, foreach, modifyState, focusState, hide)
import Thermite (PerformAction, Spec, _render, focus, foreach, modifyState, focusState, hide
State
)
import Unsafe.Coerce (unsafeCoerce)
import Unsafe.Coerce (unsafeCoerce)
newtype State = State
newtype State = State
...
@@ -159,7 +159,7 @@ tableSpec = over _render \render dispatch p (State s) c ->
...
@@ -159,7 +159,7 @@ tableSpec = over _render \render dispatch p (State s) c ->
ngramsTableSpec :: Spec {} {} Void
ngramsTableSpec :: Spec {} {} Void
ngramsTableSpec =
ngramsTableSpec =
hide (unwrap initialState) $
hide
State
(unwrap initialState) $
focusState (re _Newtype) $
focusState (re _Newtype) $
container $
container $
tableSpec $
tableSpec $
...
...
src/Gargantext/Pages/Home/Specs.purs
View file @
a709265c
...
@@ -16,7 +16,7 @@ import Gargantext.Pages.Home.Actions (Action, performAction)
...
@@ -16,7 +16,7 @@ import Gargantext.Pages.Home.Actions (Action, performAction)
import React (ReactElement)
import React (ReactElement)
import React.DOM (a, div, h3, i, img, p, span, text)
import React.DOM (a, div, h3, i, img, p, span, text)
import React.DOM.Props (Props, _id, aria, className, href, src, target, title)
import React.DOM.Props (Props, _id, aria, className, href, src, target, title)
import Thermite (Render, Spec, simpleSpec, hide, focusState)
import Thermite (Render, Spec, simpleSpec, hide
State
, focusState)
-- Layout |
-- Layout |
...
@@ -26,7 +26,7 @@ landingData FR = Fr.landingData
...
@@ -26,7 +26,7 @@ landingData FR = Fr.landingData
landingData EN = En.landingData
landingData EN = En.landingData
layoutLanding :: Lang -> Spec {} {} Void
layoutLanding :: Lang -> Spec {} {} Void
layoutLanding = hide (unwrap initialState)
layoutLanding = hide
State
(unwrap initialState)
<<< focusState (re _Newtype)
<<< focusState (re _Newtype)
<<< layoutLanding' <<< landingData
<<< layoutLanding' <<< landingData
...
...
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