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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
d6fb90af
Commit
d6fb90af
authored
Jan 09, 2023
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[corpus] Always open first code block
parent
e124d888
Pipeline
#3530
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
CodeSection.purs
src/Gargantext/Components/Corpus/CodeSection.purs
+18
-12
No files found.
src/Gargantext/Components/Corpus/CodeSection.purs
View file @
d6fb90af
...
...
@@ -68,6 +68,7 @@ fieldsCodeEditorCpt = here.component "fieldsCodeEditorCpt" cpt
, onRename: onRename idx
, idx
, nodeId
, initiallyOpened: idx == 0
}
pure $
...
...
@@ -115,17 +116,18 @@ hash :: FTFieldWithIndex -> Hash
hash { idx, ftField } = Crypto.hash $ "--idx--" <> (show idx) <> "--field--" <> (show ftField)
type FieldCodeEditorProps =
( idx :: Int
, nodeId :: ID
, canMoveDown :: Boolean
, canMoveUp :: Boolean
, field :: FTField
, key :: String
, onChange :: FieldType -> Effect Unit
, onMoveDown :: Unit -> Effect Unit
, onMoveUp :: Unit -> Effect Unit
, onRemove :: Unit -> Effect Unit
, onRename :: String -> Effect Unit
( idx :: Int
, nodeId :: ID
, canMoveDown :: Boolean
, canMoveUp :: Boolean
, field :: FTField
, key :: String
, onChange :: FieldType -> Effect Unit
, onMoveDown :: Unit -> Effect Unit
, onMoveUp :: Unit -> Effect Unit
, onRemove :: Unit -> Effect Unit
, onRename :: String -> Effect Unit
, initiallyOpened :: Boolean
)
fieldCodeEditorWrapper :: Record FieldCodeEditorProps -> R.Element
...
...
@@ -141,6 +143,7 @@ fieldCodeEditorWrapperCpt = here.component "fieldCodeEditorWrapperCpt" cpt where
, onRename
, idx
, nodeId
, initiallyOpened
} _ = do
-- | Computed
-- |
...
...
@@ -229,7 +232,10 @@ fieldCodeEditorWrapperCpt = here.component "fieldCodeEditorWrapperCpt" cpt where
,
H.div
{ id: bodyId
, className: "collapse card-body"
, className: intercalate " "
[ "collapse card-body"
, initiallyOpened ? "show" $ ""
]
, aria:
{ labelledby: headerId
}
...
...
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