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
edb4ff57
Commit
edb4ff57
authored
Apr 26, 2024
by
Fabien Manière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
page node corpus: add icon (from type)
parent
4a302ff2
Pipeline
#6014
failed with stage
in 9 minutes and 6 seconds
Changes
10
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
74 additions
and
15 deletions
+74
-15
main.js
dist/js/main.js
+6
-0
popper.min.js
dist/js/popper.min.js
+5
-0
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+4
-0
bootstrap-default.css
dist/styles/bootstrap-default.css
+4
-0
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+4
-0
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+4
-0
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+4
-0
Layout.purs
src/Gargantext/Components/Corpus/Layout.purs
+26
-11
Node.purs
src/Gargantext/Components/GraphQL/Node.purs
+9
-4
_layout.scss
src/sass/base/_layout.scss
+8
-0
No files found.
dist/js/main.js
0 → 100644
View file @
edb4ff57
// Main Gargantext scripts
$
(
function
()
{
$
(
'[data-toggle="tooltip"]'
).
tooltip
()
console
.
log
(
"Gargantext is ready."
);
})
\ No newline at end of file
dist/js/popper.min.js
0 → 100644
View file @
edb4ff57
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-darkster.css
View file @
edb4ff57
...
...
@@ -6696,6 +6696,10 @@ a:hover {
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
}
.node-layout__title
{
font-size
:
1.75em
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
...
...
dist/styles/bootstrap-default.css
View file @
edb4ff57
...
...
@@ -6507,6 +6507,10 @@ a:hover {
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
}
.node-layout__title
{
font-size
:
1.75em
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
...
...
dist/styles/bootstrap-greyson.css
View file @
edb4ff57
...
...
@@ -6350,6 +6350,10 @@ a:hover {
font-family
:
ForkAwesome
,
"Mulish"
;
}
.node-layout__title
{
font-size
:
1.75em
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
...
...
dist/styles/bootstrap-herbie.css
View file @
edb4ff57
...
...
@@ -6571,6 +6571,10 @@ a:hover {
font-family
:
ForkAwesome
,
"Nunito"
;
}
.node-layout__title
{
font-size
:
1.75em
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
...
...
dist/styles/bootstrap-monotony.css
View file @
edb4ff57
...
...
@@ -6644,6 +6644,10 @@ a:hover {
font-family
:
ForkAwesome
,
"Montserrat"
;
}
.node-layout__title
{
font-size
:
1.75em
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
...
...
src/Gargantext/Components/Corpus/Layout.purs
View file @
edb4ff57
...
...
@@ -16,12 +16,14 @@ import Gargantext.Hooks.Session (useSession)
import Gargantext.Routes as GR
import Gargantext.Sessions (sessionId)
import Gargantext.Types (ID, defaultCacheParams)
import Gargantext.Types as GT
import Gargantext.Utils (setter, (?))
import Gargantext.Utils.Reactix as R2
import Reactix as R
import Reactix.DOM.HTML as H
import Toestand as T
type Props =
( nodeId :: ID
, nodeData :: Node
...
...
@@ -34,7 +36,7 @@ layout :: R2.Leaf Props
layout = R2.leaf layoutCpt
layoutCpt :: R.Component Props
layoutCpt = here.component "layout" cpt where
cpt { nodeId, nodeData: { name } } _ = do
cpt { nodeId, nodeData: { name
, node_type
} } _ = do
-- | Hooks
-- |
boxes@{
...
...
@@ -69,24 +71,37 @@ layoutCpt = here.component "layout" cpt where
pure $
H.div
{ className: "corpus-layout" }
{ className: "
node-layout
corpus-layout" }
[
-- FV.backButtonSmart { nodeId, session } []
H.div
{ className: "corpus-layout__title" }
{ className: "
node-layout__title
corpus-layout__title" }
[
B.div'
{ className: "corpus-layout__title__text" }
name
H.div
{ className: "node-layout__title__content text-primary" }
[
B.icon
{ className: "node-layout__title__icon"
, name: GT.getIcon node_type true
}
,
H.span
{ className: "node-layout__title__text mx-1" }
[ H.text name ]
]
,
-- B.div'
-- { className: "corpus-layout__title__text" }
-- name
-- ,
H.hr
{ className: "corpus-layout__title__line"}
{ className: "
node-layout__title__line
corpus-layout__title__line"}
,
B.iconButton
{ name: expandTableEdition' ?
"caret-up" $
"caret-down"
, className: "
corpo
s-layout__title__expand"
, className: "
node-layout__title__expand corpu
s-layout__title__expand"
, callback: onExpandClick
}
]
...
...
@@ -94,14 +109,14 @@ layoutCpt = here.component "layout" cpt where
R2.when expandTableEdition' $
H.div
{ className: "corpus-layout__edition-block" }
{ className: "
node-layout__edition-block
corpus-layout__edition-block" }
[
editionBlock
{ nodeId }
]
,
H.div
{ className: "corpus-layout__code-section" }
{ className: "
node-layout__code-section
corpus-layout__code-section" }
[
tileMenu
{ boxes
...
...
@@ -129,7 +144,7 @@ layoutCpt = here.component "layout" cpt where
]
,
H.div
{ className: "corpus-layout__folders" }
{ className: "
node-layout__folders
corpus-layout__folders" }
[
FV.folderView
{ nodeId
...
...
src/Gargantext/Components/GraphQL/Node.purs
View file @
edb4ff57
module Gargantext.Components.GraphQL.Node where
import Gargantext.Prelude
import Gargantext.Types (NodeType)
import Gargantext.Utils.GraphQL as GGQL
import Gargantext.Types (NodeType)
import GraphQL.Client.Args (Args, (=>>))
...
...
@@ -12,13 +13,15 @@ type Corpus
= { id :: Int
, name :: String
, parent_id :: Int
, type_id :: Int }
, type_id :: Int
, node_type :: NodeType }
type Node
= { id :: Int
, name :: String
, parent_id :: Int
, type_id :: Int }
, type_id :: Int
, node_type :: NodeType }
type NodesCorpusQuery =
{ nodes_corpus :: Args
...
...
@@ -26,7 +29,8 @@ type NodesCorpusQuery =
{ id :: Unit
, name :: Unit
, parent_id :: Unit
, type_id :: Unit } }
, type_id :: Unit
, node_type :: Unit } }
type NodesQuery =
{ nodes :: Args
...
...
@@ -34,7 +38,8 @@ type NodesQuery =
{ id :: Unit
, name :: Unit
, parent_id :: Unit
, type_id :: Unit } }
, type_id :: Unit
, node_type :: Unit } }
nodesQuery :: NodesQuery
nodesQuery = { nodes: { node_id: Var :: _ "id" Int } =>>
...
...
src/sass/base/_layout.scss
View file @
edb4ff57
.with-icon-font
{
font-family
:
ForkAwesome
,
$font-family-base
;
}
.node-layout
{
&
__title
{
font-size
:
1
.75em
;
}
}
\ No newline at end of file
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