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
4f340fe0
Unverified
Commit
4f340fe0
authored
Sep 20, 2018
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No state for projectSpec
parent
84bbe044
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
29 deletions
+5
-29
Types.purs
src/Gargantext/Pages/Corpus/User/Users/Types.purs
+1
-1
Lens.purs
src/Gargantext/Pages/Corpus/User/Users/Types/Lens.purs
+0
-10
States.purs
src/Gargantext/Pages/Corpus/User/Users/Types/States.purs
+0
-4
Folder.purs
src/Gargantext/Pages/Folder.purs
+4
-14
No files found.
src/Gargantext/Pages/Corpus/User/Users/Types.purs
View file @
4f340fe0
...
...
@@ -24,7 +24,7 @@ brevetSpec :: Spec State {} Action
brevetSpec = noState B.brevetsSpec
projectSpec :: Spec State {} Action
projectSpec =
focus _projectslens _projectsAction
PS.projets
projectSpec =
noState
PS.projets
facets :: Spec State {} Action
facets = tabs _tablens _tabAction $ fromFoldable
...
...
src/Gargantext/Pages/Corpus/User/Users/Types/Lens.purs
View file @
4f340fe0
...
...
@@ -6,7 +6,6 @@ import Data.Lens (Lens', Prism', lens, prism)
import Data.Maybe (Maybe)
import Gargantext.Pages.Corpus.User.Users.Types.States (Action(..), State)
import Gargantext.Pages.Corpus.User.Users.Types.Types (User)
import Gargantext.Pages.Folder as PS
import Gargantext.Pages.Corpus.User.Users.Specs.Documents as P
import Gargantext.Components.Tab as Tab
import Thermite (Spec, noState)
...
...
@@ -25,12 +24,3 @@ _tabAction = prism TabA \ action ->
publicationSpec :: Spec State {} Action
publicationSpec = noState P.publicationSpec
_projectslens :: Lens' State PS.State
_projectslens = lens (\s -> s.projects) (\s ss -> s {projects = ss})
_projectsAction :: Prism' Action PS.Action
_projectsAction = prism ProjectsA \ action ->
case action of
ProjectsA laction -> Right laction
_-> Left action
src/Gargantext/Pages/Corpus/User/Users/Types/States.purs
View file @
4f340fe0
...
...
@@ -2,25 +2,21 @@ module Gargantext.Pages.Corpus.User.Users.Types.States where
import Data.Maybe (Maybe(..))
import Gargantext.Pages.Corpus.User.Users.Types.Types (User)
import Gargantext.Pages.Folder as PS
import Gargantext.Pages.Corpus.User.Users.Specs.Documents as P
import Gargantext.Components.Tab as Tab
data Action
= NoOp
| ProjectsA PS.Action
| TabA Tab.Action
| FetchUser Int
type State =
{ activeTab :: Int
, projects :: PS.State
, user :: Maybe User
}
initialState :: State
initialState =
{ activeTab : 0
, projects : PS.initialState
, user: Nothing
}
src/Gargantext/Pages/Folder.purs
View file @
4f340fe0
...
...
@@ -2,22 +2,12 @@ module Gargantext.Pages.Folder where
import Prelude
import Thermite (
PerformAction, Render, Spec, modifyState
, simpleSpec)
import Thermite (
Render, Spec, defaultPerformAction
, simpleSpec)
type State = String
initialState :: State
initialState = ""
data Action = NoOp
performAction :: PerformAction State {} Action
performAction NoOp _ _ = pure unit
projets :: Spec State {} Action
projets = simpleSpec performAction render
projets :: Spec {} {} Void
projets = simpleSpec defaultPerformAction render
where
render :: Render
State {} Action
render :: Render
{} {} Void
render dispatch _ state _ =
[]
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