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
31eb5acc
Commit
31eb5acc
authored
Oct 31, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FOREST][DESIGN] Icons for nodes in Trees of forest.
parent
d69af33a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
72 deletions
+31
-72
index.html
dist/index.html
+0
-67
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+27
-3
LoadingSpinner.purs
src/Gargantext/Components/LoadingSpinner.purs
+2
-1
index.html
src/index.html
+2
-1
No files found.
dist/index.html
deleted
100644 → 0
View file @
d69af33a
<
!
doctype
>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
CNRS GarganText
</title>
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<link
href=
"https://use.fontawesome.com/releases/v5.0.8/styles/all.css"
rel=
"stylesheet"
>
<link
href=
"styles/login.min.css"
rel=
"stylesheet"
>
<link
href=
"styles/bootstrap.min.css"
rel=
"stylesheet"
>
<!-- <link href="styles/lavish-bootstrap.css" rel="stylesheet"> -->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/context-menu.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/menu.css"
/>
<link
href=
"styles/Graph.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"styles/Login.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/annotation.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/range-slider.css"
/>
<style>
*
{
margin
:
0
;
padding
:
0
;
list-style
:
none
;}
.tree
ul
li
{
margin-left
:
15px
;
position
:
relative
;
padding-left
:
5px
;
}
#toolbar
{
display
:
inline
;}
#toolbar
ul
li
{
display
:
inline
}
#toolbar
ul
li
form
{
display
:
inline
}
.tree
{
margin-top
:
20px
;}
.tree
ul
li
::before
{
content
:
" "
;
position
:
absolute
;
width
:
1px
;
background-color
:
#000
;
top
:
5px
;
bottom
:
-12px
;
left
:
-10px
;
}
body
>
.tree
ul
>
li
:first-child::before
{
top
:
12px
;}
.tree
ul
li
:not
(
:first-child
)
:last-child::before
{
display
:
none
;}
.tree
ul
li
:only-child::before
{
display
:
list-item
;
content
:
" "
;
position
:
absolute
;
width
:
1px
;
background-color
:
"#000"
;
top
:
5px
;
bottom
:
7px
;
height
:
7px
;
left
:
-10px
;
}
.tree
ul
li
::after
{
content
:
" "
;
position
:
absolute
;
left
:
-10px
;
width
:
10px
;
height
:
1px
;
background-color
:
"#000"
;
top
:
12px
;
}
</style>
</head>
<body>
<div
id=
"app"
class=
"container-fluid"
></div>
<div
id=
"portal"
></div>
<script
src=
"bundle.js"
></script>
<script
src=
"js/bootstrap-native.min.js"
></script>
</body>
</html>
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
31eb5acc
...
...
@@ -127,15 +127,39 @@ nodeMainSpan d p folderOpen session frontends = R.createElement el p []
fldr :: NodeType -> Boolean -> String
fldr NodeUser false = "fa fa-user-circle"
fldr NodeUser true = "fa fa-user-circle-o"
fldr FolderPrivate true = "fa fa-lock"
fldr FolderPrivate false = "fa fa-expeditedssl"
fldr FolderShared true = "fa fa-users" -- "fa fa-share-alt"
fldr FolderShared false = "fa fa-share-alt-square"
fldr FolderPublic _ = "fa fa-globe"
fldr Corpus true = "fa fa-sun-o" -- "fa fa-snowflake-o"
fldr Corpus false = "fa fa-sun" -- "fa fa-snowflake-o"
fldr Graph _ = "fa fa-hubzilla"
fldr Texts _ = "fa fa-newspaper-o"
fldr Dashboard _ = "fa fa-signal"
fldr NodeList _ = "fa fa-list"
fldr _ false = "fa fa-folder"
fldr _ true = "fa fa-folder-o"
{-
fldr nt open = if open
then "glyphicon glyphicon-folder-open" <> color nt
else "glyphicon glyphicon-folder-close" <> color nt
then "fa fa-globe" -- <> color nt
else "fa fa-folder-globe" -- <> color nt
--else "glyphicon glyphicon-folder-close" <> color nt
where
color NodeUser = ""
color FolderPublic = ""
color FolderShared = " text-warning"
color _ = " text-danger"
-}
-- START node text
type NodeTextProps =
...
...
src/Gargantext/Components/LoadingSpinner.purs
View file @
31eb5acc
...
...
@@ -11,4 +11,5 @@ loadingSpinner props = R.createElement loadingSpinnerCpt props []
loadingSpinnerCpt :: R.Component Props
loadingSpinnerCpt = R.staticComponent "LoadingSpinner" cpt
where
cpt _ _ = H.span {} [H.text "[Loading]"]
cpt _ _ = H.i {className: "fa fa-circle-o-notch fa-spin fa-3x fa-fw"} [H.text ""]
--cpt _ _ = H.i {className: "fa fa-spinner fa-pulse fa-3x fa-fw"} [H.text ""]
src/index.html
View file @
31eb5acc
...
...
@@ -4,7 +4,8 @@
<meta
charset=
"utf-8"
/>
<title>
CNRS GarganText
</title>
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<link
href=
"https://use.fontawesome.com/releases/v5.0.8/styles/all.css"
rel=
"stylesheet"
>
<!--<link href="https://use.fontawesome.com/releases/v5.0.8/styles/all.css" rel="stylesheet">-->
<link
rel=
"stylesheet"
href=
"icons/fork-awesome/css/fork-awesome.css"
>
<link
href=
"styles/login.min.css"
rel=
"stylesheet"
>
<link
href=
"styles/bootstrap.min.css"
rel=
"stylesheet"
>
<!-- <link href="styles/lavish-bootstrap.css" rel="stylesheet"> -->
...
...
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