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
e4dcc134
Commit
e4dcc134
authored
Nov 07, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/452-dev-teams-security' into dev-merge
parents
e0420b68
94387db7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
package.json
package.json
+2
-2
FolderView.purs
src/Gargantext/Components/FolderView.purs
+8
-1
No files found.
package.json
View file @
e4dcc134
...
...
@@ -17,9 +17,9 @@
"clean"
:
"rm -Rf output node_modules"
,
"clean-js"
:
"rm -Rf node_modules"
,
"clean-ps"
:
"rm -Rf output"
,
"server"
:
"serve dist"
,
"server"
:
"serve
-l 8000
dist"
,
"server-ssl"
:
"ssl-serve --ssl dist"
,
"build"
:
"spago bu
ild && pulp browserify --skip-compile -t dist/bundle.js --src-path output
"
,
"build"
:
"spago bu
ndle-app --main Main --to dist/bundle.js
"
,
"prod"
:
"yarn prod:compile && yarn prod:dce && yarn prod:bundle && yarn prod:pack"
,
"prod:compile"
:
"pulp build -- -g corefn"
,
"prod:dce"
:
"zephyr -f Main.main"
,
...
...
src/Gargantext/Components/FolderView.purs
View file @
e4dcc134
...
...
@@ -105,6 +105,7 @@ folderViewMainCpt = here.component "folderViewMainCpt" cpt where
, session: props.session
, style: FolderChild
, text: node.name
, disabled: false
}
makeParentFolder :: TreeNode -> Maybe TreeNode -> Record FolderViewProps -> Array R.Element
...
...
@@ -120,9 +121,12 @@ folderViewMainCpt = here.component "folderViewMainCpt" cpt where
, reload: props.reload
, session: props.session
, style: FolderUp
, text: root.name
, text: "..."
, disabled: disabled parent
}
]
where
disabled { node_type } = if node_type == GT.FolderShared then true else false
makeParentFolder _ Nothing _ = []
sortFolders :: TreeNode-> TreeNode -> Ordering
...
...
@@ -139,6 +143,7 @@ type FolderProps =
, boxes :: Boxes
, parentId :: Int
, reload :: T.Box T2.Reload
, disabled :: Boolean
)
folder :: R2.Leaf FolderProps
...
...
@@ -155,6 +160,7 @@ folderCpt = here.component "folderCpt" cpt where
, session
, style
, text
, disabled
} _ = do
-- States
isBoxVisible <- T.useBox false
...
...
@@ -197,6 +203,7 @@ folderCpt = here.component "folderCpt" cpt where
H.button
{ className: "btn btn-primary fv btn"
, on: { click: \_ -> goToRoute $ route linkId rootId linkNodeType sid }
, disabled: disabled
}
[
H.i
...
...
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