Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
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
dataplatform
atlas
Commits
770b8274
Commit
770b8274
authored
6 years ago
by
gutkaBinit
Committed by
nixonrodrigues
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3076 UI : Relationship Tab improvements.
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
debbc0ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
RelationshipLayoutView_tmpl.html
...ublic/js/templates/graph/RelationshipLayoutView_tmpl.html
+7
-7
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+3
-1
RelationshipLayoutView.js
dashboardv2/public/js/views/graph/RelationshipLayoutView.js
+7
-6
No files found.
dashboardv2/public/js/templates/graph/RelationshipLayoutView_tmpl.html
View file @
770b8274
...
...
@@ -19,7 +19,7 @@
<div
class=
"btn-group pull-left"
>
<span
class=
"pull-left"
>
Graph
</span>
<label
class=
"switch pull-left"
>
<input
type=
"checkbox"
class=
"switch-input"
name=
"relationshipViewToggle"
value=
"text"
>
<input
type=
"checkbox"
c
hecked
c
lass=
"switch-input"
name=
"relationshipViewToggle"
value=
"text"
>
<span
class=
"switch-slider"
></span>
</label>
<span
class=
"pull-left"
>
Table
</span>
...
...
@@ -29,21 +29,21 @@
<button
type=
"button"
id=
"zoom_out"
class=
"btn btn-action btn-gray btn-sm lineageZoomButton"
title=
"Zoom Out"
data-id=
"refreshBtn"
>
<i
class=
"fa fa-search-minus"
></i></button>
</div>
</div>
<div
class=
"white-bg no-padding relationship-box"
data-id=
'relationshipSVG'
>
<div
class=
"white-bg no-padding relationship-box
invisible
"
data-id=
'relationshipSVG'
>
<div
class=
"fontLoader"
>
<i
class=
"fa fa-refresh fa-spin-custom"
></i>
</div>
<svg
width=
"100%"
height=
"100%"
viewBox=
"0 0 854 330"
enable-background=
"new 0 0 854 330"
xml:space=
"preserve"
></svg>
<div
class=
"box-panel size-lg slide-from-left relationship-node-details"
>
<div
class=
"box-panel size-lg slide-from-left relationship-node-details"
>
<div
class=
"header clearfix"
>
<h4><span
data-id=
"typeName"
></span></h4>
<span
data-id=
"box-close"
class=
"btn btn-sm btn-close"
><i
class=
"fa fa-close"
></i></span>
</div>
<div
class=
"body"
>
<div
class=
"col-md-12"
>
<input
data-id=
"searchNode"
class=
"form-control form-group"
placeholder=
"Search Entities"
/>
<ul
data-id=
"entityList"
class=
"entity-list"
></ul>
</div>
<input
data-id=
"searchNode"
class=
"form-control form-group"
placeholder=
"Search Entities"
/>
<ul
data-id=
"entityList"
class=
"entity-list"
></ul>
</div>
</div>
</div>
<!-- <div class="relationship-details">
...
...
@@ -56,7 +56,7 @@
</div> -->
</div>
<div>
<table
class=
"table table-quickMenu"
data-id=
"relationshipDetailTable"
style=
"display: none;"
>
<table
class=
"table table-quickMenu"
data-id=
"relationshipDetailTable"
>
<thead>
<tr>
<th>
Key
</th>
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
770b8274
...
...
@@ -227,6 +227,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Glob
return
;
}
var
keyValue
=
valueObject
[
key
];
var
count
=
_
.
isArray
(
keyValue
)
?
(
keyValue
.
length
)
:
0
;
var
defEntity
=
_
.
find
(
attributeDefs
,
{
name
:
key
});
if
(
defEntity
&&
defEntity
.
typeName
)
{
var
defEntityType
=
defEntity
.
typeName
.
toLocaleLowerCase
();
...
...
@@ -263,7 +264,8 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Glob
htmlTag
=
'<pre class="shrink code-block '
+
(
isMatchJSONStringIsSingle
?
'fixed-height'
:
''
)
+
'">'
+
expandCollapseButton
+
'<code>'
+
val
+
'</code></pre>'
;
}
}
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
'</td><td>'
+
htmlTag
+
'</td></tr>'
;
var
textToDisplay
=
count
>
0
?
' ('
+
getValue
(
count
)
+
')'
:
''
;
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
textToDisplay
+
'</td><td>'
+
htmlTag
+
'</td></tr>'
;
}
else
{
table
+=
'<div>'
+
val
+
'</div>'
;
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/graph/RelationshipLayoutView.js
View file @
770b8274
...
...
@@ -95,7 +95,9 @@ define(['require',
}
return
{
nodes
:
nodes
,
links
:
links
};
},
onRender
:
function
()
{},
onRender
:
function
()
{
this
.
$el
.
addClass
(
'auto-height'
);
},
onShow
:
function
(
argument
)
{
if
(
this
.
graphData
&&
_
.
isEmpty
(
this
.
graphData
.
links
))
{
this
.
noRelationship
();
...
...
@@ -458,18 +460,17 @@ define(['require',
},
createTable
:
function
()
{
this
.
entityModel
=
new
VEntity
({});
var
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
this
.
entity
.
relationshipAttributes
,
attributeDefs
:
this
.
attributeDefs
});
var
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
this
.
entity
.
relationshipAttributes
,
attributeDefs
:
this
.
attributeDefs
,
numberFormat
:
_
.
numberFormatWithComa
});
this
.
ui
.
relationshipDetailValue
.
html
(
table
);
},
relationshipViewToggle
:
function
(
checked
)
{
this
.
ui
.
relationshipDetailTable
.
toggleClass
(
'visible invisible'
);
this
.
ui
.
relationshipSVG
.
toggleClass
(
'visible invisible'
);
if
(
checked
)
{
this
.
ui
.
relationshipDetailTable
.
show
();
this
.
ui
.
relationshipSVG
.
hide
();
this
.
ui
.
zoomControl
.
hide
();
this
.
$el
.
addClass
(
'auto-height'
);
}
else
{
this
.
ui
.
relationshipDetailTable
.
hide
();
this
.
ui
.
relationshipSVG
.
show
();
this
.
ui
.
zoomControl
.
show
();
this
.
$el
.
removeClass
(
'auto-height'
);
}
...
...
This diff is collapsed.
Click to expand it.
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