Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kodex
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
kodex
Commits
0a28494c
Commit
0a28494c
authored
Jan 23, 2018
by
Yannick Chudy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added pedigree
parent
92f2ab10
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
botapadapp.py
botapadapp.py
+2
-0
padagraph-gviz-min.html
static/padagraph-gviz-min.html
+15
-3
botapadapp.html
templates/botapadapp.html
+0
-4
No files found.
botapadapp.py
View file @
0a28494c
...
@@ -419,10 +419,12 @@ def botimport(repo, padurl, gid, content_type):
...
@@ -419,10 +419,12 @@ def botimport(repo, padurl, gid, content_type):
graph
[
'meta'
][
'date'
]
=
datetime
.
datetime
.
now
()
.
strftime
(
"
%
Y-
%
m-
%
d
%
Hh
%
M"
)
graph
[
'meta'
][
'date'
]
=
datetime
.
datetime
.
now
()
.
strftime
(
"
%
Y-
%
m-
%
d
%
Hh
%
M"
)
graph
[
'meta'
][
'owner'
]
=
None
graph
[
'meta'
][
'owner'
]
=
None
graph
[
'meta'
][
'pedigree'
]
=
pedigree
.
compute
(
graph
)
graph
[
'meta'
][
'pedigree'
]
=
pedigree
.
compute
(
graph
)
graphdb
.
graphs
[
gid
]
=
graph
graphdb
.
graphs
[
gid
]
=
graph
sync
=
"
%
s/graphs/g/
%
s"
%
(
ENGINES_HOST
,
gid
)
sync
=
"
%
s/graphs/g/
%
s"
%
(
ENGINES_HOST
,
gid
)
if
graph
.
vcount
()
>
300
:
if
graph
.
vcount
()
>
300
:
...
...
static/padagraph-gviz-min.html
View file @
0a28494c
...
@@ -10817,7 +10817,14 @@ require(['jquery'], function ($) {
...
@@ -10817,7 +10817,14 @@ require(['jquery'], function ($) {
});
});
}
}
});
});
});
</script></dom-module><dom-module
id=
"padagraph-labels-control"
assetpath=
"./"
><template><style></style><template
is=
"dom-if"
if=
"{{props.name}}"
><div
style=
"display:none"
class=
"markdown description"
><a
name=
"desc"
>
</a>
{{props.description}}
</div><div
id=
"labelsAndButtons"
class=
"ui grid"
>
<div
on-click=
"desc"
class=
"ui basic label"
>
});
</script></dom-module><dom-module
id=
"padagraph-labels-control"
assetpath=
"./"
><template><style>
.ui.tab
{
height
:
400px
;
width
:
600px
;
overflow
:
auto
;
}
fieldset
{
background-color
:
#eee
;
}
</style><template
is=
"dom-if"
if=
"{{props.name}}"
><template
is=
"dom-if"
if=
"{{show}}"
><div
class=
"ui segment"
><fieldset><div
class=
"ui tabular menu"
><div
data-tab=
"tab-desc"
class=
"active item"
>
Description
</div><div
data-tab=
"tab-pedigree"
class=
"item"
>
Pedigree
</div></div><div
data-tab=
"tab-desc"
class=
"ui active tab"
><div
class=
"markdown"
><a
name=
"desc"
>
</a><p>
{{props.description}}
</p></div></div><div
data-tab=
"tab-pedigree"
class=
"ui tab"
><div
class=
"ui list"
><template
is=
"dom-repeat"
items=
"[[meta.pedigree]]"
><div
class=
"item"
><div
class=
"content"
><a
class=
"header"
>
{{item.0}} : {{item.2}}
</a><div
class=
"description"
>
{{item.1}}
</div></div></div></template></div></div></fieldset></div></template><div
id=
"labelsAndButtons"
class=
"ui grid"
>
<div
on-tap=
"desc"
class=
"ui basic label"
>
{{props.name}}
</div><template
is=
"dom-if"
if=
"{{meta.node_count}}"
><div
class=
"ui label"
>
<i
class=
"circle thin icon"
></i>
{{meta.node_count}}
</div></template><template
is=
"dom-if"
if=
"{{meta.edge_count}}"
><div
class=
"ui label"
>
<i
class=
"minus icon"
></i>
{{meta.edge_count}}
</div></template><template
is=
"dom-if"
if=
"{{meta.star_count}}"
><div
class=
"ui label"
>
<i
class=
"star thin icon"
></i>
{{meta.star_count}}
</div></template><template
is=
"dom-if"
if=
"{{meta.owner}}"
><div
class=
"ui label"
>
<i
class=
"user icon"
></i>
{{meta.owner}}
</div></template><template
is=
"dom-if"
if=
"{{meta.date}}"
><div
class=
"ui label"
>
<i
class=
"calendar icon"
></i>
{{meta.date}}
</div></template><content></content></div></template></template><script>
'use strict'
;
{{props.name}}
</div><template
is=
"dom-if"
if=
"{{meta.node_count}}"
><div
class=
"ui label"
>
<i
class=
"circle thin icon"
></i>
{{meta.node_count}}
</div></template><template
is=
"dom-if"
if=
"{{meta.edge_count}}"
><div
class=
"ui label"
>
<i
class=
"minus icon"
></i>
{{meta.edge_count}}
</div></template><template
is=
"dom-if"
if=
"{{meta.star_count}}"
><div
class=
"ui label"
>
<i
class=
"star thin icon"
></i>
{{meta.star_count}}
</div></template><template
is=
"dom-if"
if=
"{{meta.owner}}"
><div
class=
"ui label"
>
<i
class=
"user icon"
></i>
{{meta.owner}}
</div></template><template
is=
"dom-if"
if=
"{{meta.date}}"
><div
class=
"ui label"
>
<i
class=
"calendar icon"
></i>
{{meta.date}}
</div></template><content></content></div></template></template><script>
'use strict'
;
require
([
'backbone'
,
'jquery'
,
'semantic'
,
'cello'
,
'pdgconst'
],
function
(
Backbone
,
$
,
S
,
Cello
,
Const
)
{
require
([
'backbone'
,
'jquery'
,
'semantic'
,
'cello'
,
'pdgconst'
],
function
(
Backbone
,
$
,
S
,
Cello
,
Const
)
{
...
@@ -10839,6 +10846,7 @@ require(['backbone', 'jquery', 'semantic', 'cello', 'pdgconst'], function (Backb
...
@@ -10839,6 +10846,7 @@ require(['backbone', 'jquery', 'semantic', 'cello', 'pdgconst'], function (Backb
var
_this
=
this
;
var
_this
=
this
;
if
(
!
app
||
!
graph
)
return
;
if
(
!
app
||
!
graph
)
return
;
graph
.
on
(
'reset'
,
function
()
{
graph
.
on
(
'reset'
,
function
()
{
_this
.
meta
=
_this
.
graph
.
meta
.
attributes
;
_this
.
meta
=
_this
.
graph
.
meta
.
attributes
;
_this
.
props
=
_this
.
graph
.
properties
.
attributes
;
_this
.
props
=
_this
.
graph
.
properties
.
attributes
;
...
@@ -10846,8 +10854,12 @@ require(['backbone', 'jquery', 'semantic', 'cello', 'pdgconst'], function (Backb
...
@@ -10846,8 +10854,12 @@ require(['backbone', 'jquery', 'semantic', 'cello', 'pdgconst'], function (Backb
},
},
desc
:
function
desc
()
{
desc
:
function
desc
()
{
var
$el
=
$
(
".markdown"
,
this
)[
0
];
var
_this2
=
this
;
$el
.
style
.
display
=
$el
.
style
.
display
==
"block"
?
"none"
:
"block"
;
this
.
show
=
!
this
.
show
;
this
.
async
(
function
()
{
$
(
'.tabular.menu .item'
,
_this2
).
tab
();
});
}
}
});
});
...
...
templates/botapadapp.html
View file @
0a28494c
...
@@ -148,10 +148,6 @@
...
@@ -148,10 +148,6 @@
.nofoot
#labels
{
.nofoot
#labels
{
//
bottom
:
-30px
;
//
bottom
:
-30px
;
}
}
.markdown
{
position
:
absolute
;
bottom
:
20px
;
}
padagraph-model-popup
{
padagraph-model-popup
{
position
:
absolute
;
position
:
absolute
;
...
...
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