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
95eb95f1
Commit
95eb95f1
authored
Jun 21, 2018
by
Mael NICOLAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
done refactoring
parent
92a38676
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
5 deletions
+83
-5
Navigation.purs
src/Navigation.purs
+2
-2
Actions.purs
src/Users/Actions.purs
+5
-0
API.purs
src/Users/Actions/API.purs
+19
-0
Renders.purs
src/Users/Specs/Renders.purs
+4
-3
Types.purs
src/Users/Types/Types.purs
+53
-0
No files found.
src/Navigation.purs
View file @
95eb95f1
...
...
@@ -294,9 +294,9 @@ layout0 layout =
else outerLayout1
, rs bs ]
ls = over _render \render d p s c ->
[div [className "col-md-
3
"] (render d p s c)]
[div [className "col-md-
2
"] (render d p s c)]
rs = over _render \render d p s c ->
[ div [className "col-md-
8
"] (render d p s c) ]
[ div [className "col-md-
10
"] (render d p s c) ]
cont = over _render \render d p s c ->
[ div [ className "row" ] (render d p s c) ]
...
...
src/Users/Actions.purs
0 → 100644
View file @
95eb95f1
module Users.Actions
(module Users.Actions.API)
where
import Users.Actions.API
src/Users/Actions/API.purs
0 → 100644
View file @
95eb95f1
module Users.Actions.API
where
import Users.Types.Types
import Control.Monad.Aff (Aff, attempt, launchAff)
import Control.Monad.Aff.Class (liftAff)
import Control.Monad.Aff.Console (log)
import Data.Argonaut (decodeJson)
import Data.Either (Either(..))
import Data.HTTP.Method (Method(..))
import Data.Identity (Identity(..))
import Network.HTTP.Affjax (AJAX, affjax, defaultRequest, get)
import Prelude (pure, show, unit, bind, discard, (<<<), ($), (<>))
user userID = launchAff $ do
res <- get "http://localhost:8008/node/452146"
pure res
src/Users/Specs/Renders.purs
View file @
95eb95f1
module Users.Specs.Renders
where
import Control.Monad.Aff.Class (liftAff)
import Data.Tuple (Tuple(..))
import Prelude (($), (<<<)
, (<>)
)
import Prelude (($), (<<<))
import React (ReactElement)
import React.DOM (div, h
1, h3, h4, img
, li, span, text, ul)
import React.DOM.Props (_id, className
, src
)
import React.DOM (div, h
4
, li, span, text, ul)
import React.DOM.Props (_id, className)
import Thermite (Render)
import Users.Types.Types (Action, State)
...
...
src/Users/Types/Types.purs
View file @
95eb95f1
...
...
@@ -3,6 +3,8 @@ module Users.Types.Types where
import Brevets as B
import Control.Monad.Aff.Console (CONSOLE)
import DOM (DOM)
import Data.Date (Date)
import Data.Generic (class Generic)
import Network.HTTP.Affjax (AJAX)
import Prelude (id, void)
import Projects as PS
...
...
@@ -40,3 +42,54 @@ performAction NoOp _ _ = void do
modifyState id
performAction _ _ _ = void do
modifyState id
-- id 452146
-- typename 41
-- userId 1
-- parentId 452132
-- name "Pierre DEMUGNIER"
-- date "2018-06-18T14:27:50.670952Z"
-- hyperdata
-- bureau "V.305"
-- atel ""
-- fax ""
-- aprecision ""
-- service2 null
-- groupe ""
-- service "ARMINES"
-- lieu "Paris"
-- pservice ""
-- date_modification "07/06/2018"
-- pfonction ""
-- fonction "Service Développement Partenarial - Chargé de Projet France & International"
-- url ""
-- statut null
-- prenom "Pierre"
-- idutilentite "1055"
-- afonction ""
-- grprech ""
-- nom "DEMUGNIER"
-- entite "Armines"
-- entite2 null
-- id "11002"
-- tel "01.40.51.93.66"
-- idutilsiecoles null
-- groupe2 null
-- sexe "1"
-- mail "pierre.demugnier@mines-paristech.fr"
-- actif "1"
type User =
{
id :: Int,
typename :: Int,
userId :: Int,
parentId :: Int,
name :: String,
date :: Date,
hyperData :: HyperData
}
type HyperData =
{}
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