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
325bf743
Commit
325bf743
authored
Feb 14, 2024
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] Order 2 Only
parent
c94e72eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Update.purs
...Gargantext/Components/Forest/Tree/Node/Action/Update.purs
+1
-1
Types.purs
...text/Components/Forest/Tree/Node/Action/Update/Types.purs
+2
-4
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action/Update.purs
View file @
325bf743
...
@@ -113,7 +113,7 @@ updateGraphCpt = here.component "updateGraph" cpt where
...
@@ -113,7 +113,7 @@ updateGraphCpt = here.component "updateGraph" cpt where
, dispatch: callback
, dispatch: callback
, mError: Nothing }
, mError: Nothing }
[ H.text "Show subjects with Order1 or concepts with Order2 ?"
[ H.text "Show subjects with Order1 or concepts with Order2 ?"
, Tools.formChoiceSafe { items: [Order1, Order2
_A, Order2_B
]
, Tools.formChoiceSafe { items: [Order1, Order2]
, default: methodGraphMetric'
, default: methodGraphMetric'
, callback: \val -> T.write_ val methodGraphMetric
, callback: \val -> T.write_ val methodGraphMetric
, print: show } []
, print: show } []
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Update/Types.purs
View file @
325bf743
...
@@ -64,15 +64,13 @@ instance Read Method where
...
@@ -64,15 +64,13 @@ instance Read Method where
read _ = Nothing
read _ = Nothing
----------------------------------------------------------------------
----------------------------------------------------------------------
data GraphMetric = Order1 | Order2
| Order2_A | Order2_B
data GraphMetric = Order1 | Order2
derive instance Generic GraphMetric _
derive instance Generic GraphMetric _
derive instance Eq GraphMetric
derive instance Eq GraphMetric
instance Show GraphMetric where show = genericShow
instance Show GraphMetric where show = genericShow
instance Read GraphMetric where
instance Read GraphMetric where
read "Order1" = Just Order1
read "Order1" = Just Order1
read "Order2" = Just Order2_B
read "Order2" = Just Order2
read "Order2_A" = Just Order2_A
read "Order2_B" = Just Order2_B
read _ = Nothing
read _ = Nothing
instance JSON.ReadForeign GraphMetric where readImpl = JSONG.enumSumRep
instance JSON.ReadForeign GraphMetric where readImpl = JSONG.enumSumRep
instance JSON.WriteForeign GraphMetric where writeImpl = JSON.writeImpl <<< show
instance JSON.WriteForeign GraphMetric where writeImpl = JSON.writeImpl <<< show
...
...
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