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
8ccbd884
Commit
8ccbd884
authored
Dec 31, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bootstrap v4] fix hidden, fix code editor btn group
parent
c81645ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
CodeEditor.purs
src/Gargantext/Components/CodeEditor.purs
+13
-12
InputWithAutocomplete.purs
src/Gargantext/Components/InputWithAutocomplete.purs
+1
-1
License.purs
src/Gargantext/License.purs
+2
-2
No files found.
src/Gargantext/Components/CodeEditor.purs
View file @
8ccbd884
...
...
@@ -147,11 +147,11 @@ codeEditorCpt = R.hooksComponentWithModule thisModule "codeEditor" cpt
codeHidden :: ViewType -> String
codeHidden Code = ""
codeHidden Both = ""
codeHidden _ = "
hidden
"
codeHidden _ = "
d-none
"
dividerHidden :: ViewType -> String
dividerHidden Both = ""
dividerHidden _ = "
hidden
"
dividerHidden _ = "
d-none
"
langClass :: CodeType -> String
langClass Haskell = " language-haskell"
...
...
@@ -162,7 +162,7 @@ codeEditorCpt = R.hooksComponentWithModule thisModule "codeEditor" cpt
previewHidden :: ViewType -> String
previewHidden Preview = ""
previewHidden Both = ""
previewHidden _ = "
hidden
"
previewHidden _ = "
d-none
"
onEditChange :: forall e. Record Controls -> (CodeType -> Code -> Effect Unit) -> e -> Effect Unit
onEditChange controls@{codeElRef, codeOverlayElRef, codeType: (codeType /\ _), codeS} onChange e = do
...
...
@@ -289,18 +289,19 @@ viewTypeSelectorCpt :: R.Component ViewTypeSelectorProps
viewTypeSelectorCpt = R.hooksComponentWithModule thisModule "viewTypeSelector" cpt
where
cpt {state} _ =
pure $ H.div { className: "btn-group" } [
pure $ H.div { className: "btn-group"
, role: "group" } [
viewTypeButton Code state
, viewTypeButton Both state
, viewTypeButton Preview state
]
viewTypeButton viewType (state /\ setState) =
H.
label {
className: "btn btn-default" <> active
, on: { click: onClick }
} [
H.i { className: "
glyphicon
" <> (icon viewType) } []
H.
button { className: "btn btn-secondary" <> active
, on: { click: onClick }
, type: "button"
} [
H.i { className: "
fa
" <> (icon viewType) } []
]
where
active = if viewType == state then " active" else ""
...
...
@@ -308,9 +309,9 @@ viewTypeSelectorCpt = R.hooksComponentWithModule thisModule "viewTypeSelector" c
onClick _ = do
setState $ const viewType
icon Preview = "
glyphicon-eye-open
"
icon Both = "
glyphicon-transfer
"
icon Code = "
glyphicon
-pencil"
icon Preview = "
fa-eye
"
icon Both = "
fa-columns
"
icon Code = "
fa
-pencil"
type Controls =
(
...
...
src/Gargantext/Components/InputWithAutocomplete.purs
View file @
8ccbd884
...
...
@@ -89,7 +89,7 @@ inputWithAutocompleteCpt = R.hooksComponentWithModule thisModule "inputWithAutoc
H.div { className: "list-group" } (cCpt <$> completions)
]
where
className = "completions " <> (if completions == [] then "
hidden
" else "")
className = "completions " <> (if completions == [] then "
d-none
" else "")
cCpt c =
H.button { type: "button"
...
...
src/Gargantext/License.purs
View file @
8ccbd884
...
...
@@ -6,7 +6,7 @@ import Reactix.DOM.HTML as H
license :: R.Element
license = H.p {}
[ H.text "Gargantext "
, H.span { className: "
glyphicon glyphicon-registration-mark
"} []
, H.span { className: "
fa fa-registered
"} []
, H.text " is made by "
, H.a { href: "https://iscpif.fr"
, target: "blank"
...
...
@@ -16,7 +16,7 @@ license = H.p {}
, title: "Legal instructions of the project."
}
[ H.text ", with licences aGPLV3 and CECILL variant Affero compliant, " ]
, H.span { className: "
glyphicon glyphicon-copyright-mark
" } []
, H.span { className: "
fa fa-copyright
" } []
, H.a { href: "https://cnrs.fr", target:"blank"} [H.text " CNRS 2017-Present "]
, H.text "."
]
...
...
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