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
Mar 15, 2019
by
gutkaBinit
Committed by
nixonrodrigues
Mar 15, 2019
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
RelationshipLayoutView_tmpl.html
...ublic/js/templates/graph/RelationshipLayoutView_tmpl.html
+3
-3
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 @@
...
@@ -19,7 +19,7 @@
<div
class=
"btn-group pull-left"
>
<div
class=
"btn-group pull-left"
>
<span
class=
"pull-left"
>
Graph
</span>
<span
class=
"pull-left"
>
Graph
</span>
<label
class=
"switch pull-left"
>
<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>
<span
class=
"switch-slider"
></span>
</label>
</label>
<span
class=
"pull-left"
>
Table
</span>
<span
class=
"pull-left"
>
Table
</span>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<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>
<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>
</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"
>
<div
class=
"fontLoader"
>
<i
class=
"fa fa-refresh fa-spin-custom"
></i>
<i
class=
"fa fa-refresh fa-spin-custom"
></i>
</div>
</div>
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
</div> -->
</div> -->
</div>
</div>
<div>
<div>
<table
class=
"table table-quickMenu"
data-id=
"relationshipDetailTable"
style=
"display: none;"
>
<table
class=
"table table-quickMenu"
data-id=
"relationshipDetailTable"
>
<thead>
<thead>
<tr>
<tr>
<th>
Key
</th>
<th>
Key
</th>
...
...
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
770b8274
...
@@ -227,6 +227,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Glob
...
@@ -227,6 +227,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Glob
return
;
return
;
}
}
var
keyValue
=
valueObject
[
key
];
var
keyValue
=
valueObject
[
key
];
var
count
=
_
.
isArray
(
keyValue
)
?
(
keyValue
.
length
)
:
0
;
var
defEntity
=
_
.
find
(
attributeDefs
,
{
name
:
key
});
var
defEntity
=
_
.
find
(
attributeDefs
,
{
name
:
key
});
if
(
defEntity
&&
defEntity
.
typeName
)
{
if
(
defEntity
&&
defEntity
.
typeName
)
{
var
defEntityType
=
defEntity
.
typeName
.
toLocaleLowerCase
();
var
defEntityType
=
defEntity
.
typeName
.
toLocaleLowerCase
();
...
@@ -263,7 +264,8 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Glob
...
@@ -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>'
;
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
{
}
else
{
table
+=
'<div>'
+
val
+
'</div>'
;
table
+=
'<div>'
+
val
+
'</div>'
;
}
}
...
...
dashboardv2/public/js/views/graph/RelationshipLayoutView.js
View file @
770b8274
...
@@ -95,7 +95,9 @@ define(['require',
...
@@ -95,7 +95,9 @@ define(['require',
}
}
return
{
nodes
:
nodes
,
links
:
links
};
return
{
nodes
:
nodes
,
links
:
links
};
},
},
onRender
:
function
()
{},
onRender
:
function
()
{
this
.
$el
.
addClass
(
'auto-height'
);
},
onShow
:
function
(
argument
)
{
onShow
:
function
(
argument
)
{
if
(
this
.
graphData
&&
_
.
isEmpty
(
this
.
graphData
.
links
))
{
if
(
this
.
graphData
&&
_
.
isEmpty
(
this
.
graphData
.
links
))
{
this
.
noRelationship
();
this
.
noRelationship
();
...
@@ -458,18 +460,17 @@ define(['require',
...
@@ -458,18 +460,17 @@ define(['require',
},
},
createTable
:
function
()
{
createTable
:
function
()
{
this
.
entityModel
=
new
VEntity
({});
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
);
this
.
ui
.
relationshipDetailValue
.
html
(
table
);
},
},
relationshipViewToggle
:
function
(
checked
)
{
relationshipViewToggle
:
function
(
checked
)
{
this
.
ui
.
relationshipDetailTable
.
toggleClass
(
'visible invisible'
);
this
.
ui
.
relationshipSVG
.
toggleClass
(
'visible invisible'
);
if
(
checked
)
{
if
(
checked
)
{
this
.
ui
.
relationshipDetailTable
.
show
();
this
.
ui
.
relationshipSVG
.
hide
();
this
.
ui
.
zoomControl
.
hide
();
this
.
ui
.
zoomControl
.
hide
();
this
.
$el
.
addClass
(
'auto-height'
);
this
.
$el
.
addClass
(
'auto-height'
);
}
else
{
}
else
{
this
.
ui
.
relationshipDetailTable
.
hide
();
this
.
ui
.
relationshipSVG
.
show
();
this
.
ui
.
zoomControl
.
show
();
this
.
ui
.
zoomControl
.
show
();
this
.
$el
.
removeClass
(
'auto-height'
);
this
.
$el
.
removeClass
(
'auto-height'
);
}
}
...
...
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