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
f2d39fce
Commit
f2d39fce
authored
Oct 18, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FOREST] glyphicons and btn.
parent
773c9d8b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
Forest.purs
src/Gargantext/Components/Forest.purs
+2
-1
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+5
-3
Login.purs
src/Gargantext/Components/Login.purs
+8
-5
Utils.purs
src/Gargantext/Utils.purs
+1
-1
No files found.
src/Gargantext/Components/Forest.purs
View file @
f2d39fce
...
@@ -10,6 +10,7 @@ import Gargantext.Routes (AppRoute)
...
@@ -10,6 +10,7 @@ import Gargantext.Routes (AppRoute)
import Gargantext.Sessions (Session(..), Sessions, unSessions)
import Gargantext.Sessions (Session(..), Sessions, unSessions)
import Gargantext.Components.Forest.Tree (treeView)
import Gargantext.Components.Forest.Tree (treeView)
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils (glyphicon)
type Props =
type Props =
( sessions :: Sessions
( sessions :: Sessions
...
@@ -33,7 +34,7 @@ forestCpt = R.staticComponent "G.C.Forest.forest" cpt where
...
@@ -33,7 +34,7 @@ forestCpt = R.staticComponent "G.C.Forest.forest" cpt where
plus :: R2.Setter Boolean -> R.Element
plus :: R2.Setter Boolean -> R.Element
plus showLogin =
plus showLogin =
H.button {on: {click}}
H.button {on: {click}}
[ H.i { className:
"glyphicon glyphicon-
plus"} [] ]
[ H.i { className:
glyphicon "
plus"} [] ]
-- TODO same as the one in the Login Modal (same CSS)
-- TODO same as the one in the Login Modal (same CSS)
-- [ H.i { className: "material-icons md-36"} [] ]
-- [ H.i { className: "material-icons md-36"} [] ]
where
where
...
...
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
f2d39fce
...
@@ -188,11 +188,13 @@ nodePopupView d p (Just NodePopup /\ setPopupOpen) = R.createElement el p []
...
@@ -188,11 +188,13 @@ nodePopupView d p (Just NodePopup /\ setPopupOpen) = R.createElement el p []
panelHeading renameBoxOpen@(open /\ _) =
panelHeading renameBoxOpen@(open /\ _) =
H.div {className: "panel-heading"}
H.div {className: "panel-heading"}
[ H.div {className: "row" }
[ -- H.h1 {className : "col-md-12"} [H.text "Settings Box"]
H.div {className: "row" }
[ H.div {className: rowClass open} [ renameBox d {id, name} renameBoxOpen ]
[ H.div {className: rowClass open} [ renameBox d {id, name} renameBoxOpen ]
, if edit then editIcon renameBoxOpen else H.div {} []
, if edit then editIcon renameBoxOpen else H.div {} []
, H.div {className: "col-md-1"}
, H.div {className: "col-md-1"}
[ H.a {className: "btn glyphitem glyphicon glyphicon-remove-circle"
[ H.a { type : "button"
, className: glyphicon "remove-circle"
, onClick: mkEffectFn1 $ \_ -> setPopupOpen $ const Nothing
, onClick: mkEffectFn1 $ \_ -> setPopupOpen $ const Nothing
, title: "Close"} []
, title: "Close"} []
]
]
...
@@ -202,7 +204,7 @@ nodePopupView d p (Just NodePopup /\ setPopupOpen) = R.createElement el p []
...
@@ -202,7 +204,7 @@ nodePopupView d p (Just NodePopup /\ setPopupOpen) = R.createElement el p []
editIcon (false /\ setRenameBoxOpen) =
editIcon (false /\ setRenameBoxOpen) =
H.div {className: "col-md-1"}
H.div {className: "col-md-1"}
[ H.a {style: {color: "black"}
[ H.a {style: {color: "black"}
, className:
"btn glyphitem glyphicon glyphicon-
pencil"
, className:
glyphicon "
pencil"
, id: "rename1"
, id: "rename1"
, title: "Rename"
, title: "Rename"
, onClick: mkEffectFn1 $ \_ -> setRenameBoxOpen $ const true
, onClick: mkEffectFn1 $ \_ -> setRenameBoxOpen $ const true
...
...
src/Gargantext/Components/Login.purs
View file @
f2d39fce
...
@@ -21,7 +21,7 @@ import Gargantext.Components.Login.Types (AuthRequest(..))
...
@@ -21,7 +21,7 @@ import Gargantext.Components.Login.Types (AuthRequest(..))
import Gargantext.Ends (Backend(..))
import Gargantext.Ends (Backend(..))
import Gargantext.Sessions (Session, Sessions(..), postAuthRequest, unSessions)
import Gargantext.Sessions (Session, Sessions(..), postAuthRequest, unSessions)
import Gargantext.Sessions as Sessions
import Gargantext.Sessions as Sessions
import Gargantext.Utils (csrfMiddlewareToken
, glyphicon
)
import Gargantext.Utils (csrfMiddlewareToken)
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Reactix as R2
-- TODO: ask for login (modal) or account creation after 15 mn when user
-- TODO: ask for login (modal) or account creation after 15 mn when user
...
@@ -111,7 +111,7 @@ renderSessions sessions = R.fragment (renderSession sessions <$> unSessions (fst
...
@@ -111,7 +111,7 @@ renderSessions sessions = R.fragment (renderSession sessions <$> unSessions (fst
renderSession :: R2.Reductor Sessions Sessions.Action -> Session -> R.Element
renderSession :: R2.Reductor Sessions Sessions.Action -> Session -> R.Element
renderSession sessions session = H.li {} $ [ H.text $ "Active session: " <> show session ]
renderSession sessions session = H.li {} $ [ H.text $ "Active session: " <> show session ]
<> [ H.a { on : {click}
<> [ H.a { on : {click}
, className:
glyphicon "
log-out"
, className:
"glyphitem glyphicon glyphicon-
log-out"
, id : "log-out"
, id : "log-out"
, title: "Log out"
, title: "Log out"
} [] ]
} [] ]
...
@@ -133,9 +133,12 @@ renderBackend backend@(Backend {name}) state =
...
@@ -133,9 +133,12 @@ renderBackend backend@(Backend {name}) state =
H.li {} $ [ H.a { on : {click}
H.li {} $ [ H.a { on : {click}
-- , className: glyphicon "log-in"
-- , className: glyphicon "log-in"
-- , id : "log-in"
-- , id : "log-in"
} [ H.text $ " Connect to " <> name ] ] <> [ H.a { on : {click}, className : glyphicon "log-in", title: "Log In"} []]
} [ H.text $ " Connect to " <> name ] ]
where
<> [ H.a { on : {click}
click _ = (snd state) (const $ Just backend)
, className : "glyphitem glyphicon glyphicon-log-in"
, title: "Log In"} []]
where
click _ = (snd state) (const $ Just backend)
type FormProps =
type FormProps =
...
...
src/Gargantext/Utils.purs
View file @
f2d39fce
...
@@ -39,5 +39,5 @@ _unit :: forall s. Lens' s Unit
...
@@ -39,5 +39,5 @@ _unit :: forall s. Lens' s Unit
_unit = lens (\_ -> unit) (\s _ -> s)
_unit = lens (\_ -> unit) (\s _ -> s)
glyphicon t = "glyphitem glyphicon glyphicon-" <> t
glyphicon t = "
btn
glyphitem glyphicon glyphicon-" <> t
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