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
Show 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)
import Gargantext.Sessions (Session(..), Sessions, unSessions)
import Gargantext.Components.Forest.Tree (treeView)
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils (glyphicon)
type Props =
( sessions :: Sessions
...
...
@@ -33,7 +34,7 @@ forestCpt = R.staticComponent "G.C.Forest.forest" cpt where
plus :: R2.Setter Boolean -> R.Element
plus showLogin =
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)
-- [ H.i { className: "material-icons md-36"} [] ]
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 []
panelHeading renameBoxOpen@(open /\ _) =
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 ]
, if edit then editIcon renameBoxOpen else H.div {} []
, 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
, title: "Close"} []
]
...
...
@@ -202,7 +204,7 @@ nodePopupView d p (Just NodePopup /\ setPopupOpen) = R.createElement el p []
editIcon (false /\ setRenameBoxOpen) =
H.div {className: "col-md-1"}
[ H.a {style: {color: "black"}
, className:
"btn glyphitem glyphicon glyphicon-
pencil"
, className:
glyphicon "
pencil"
, id: "rename1"
, title: "Rename"
, onClick: mkEffectFn1 $ \_ -> setRenameBoxOpen $ const true
...
...
src/Gargantext/Components/Login.purs
View file @
f2d39fce
...
...
@@ -21,7 +21,7 @@ import Gargantext.Components.Login.Types (AuthRequest(..))
import Gargantext.Ends (Backend(..))
import Gargantext.Sessions (Session, Sessions(..), postAuthRequest, unSessions)
import Gargantext.Sessions as Sessions
import Gargantext.Utils (csrfMiddlewareToken
, glyphicon
)
import Gargantext.Utils (csrfMiddlewareToken)
import Gargantext.Utils.Reactix as R2
-- 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
renderSession :: R2.Reductor Sessions Sessions.Action -> Session -> R.Element
renderSession sessions session = H.li {} $ [ H.text $ "Active session: " <> show session ]
<> [ H.a { on : {click}
, className:
glyphicon "
log-out"
, className:
"glyphitem glyphicon glyphicon-
log-out"
, id : "log-out"
, title: "Log out"
} [] ]
...
...
@@ -133,7 +133,10 @@ renderBackend backend@(Backend {name}) state =
H.li {} $ [ H.a { on : {click}
-- , className: glyphicon "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 ] ]
<> [ H.a { on : {click}
, className : "glyphitem glyphicon glyphicon-log-in"
, title: "Log In"} []]
where
click _ = (snd state) (const $ Just backend)
...
...
src/Gargantext/Utils.purs
View file @
f2d39fce
...
...
@@ -39,5 +39,5 @@ _unit :: forall s. Lens' s Unit
_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