Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/modules/services/d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ angular.module('kubernetesApp.components.graph')
var scriptTag = $document[0].createElement('script');
scriptTag.type = 'text/javascript';
scriptTag.async = true;
scriptTag.src = '/vendor/d3/d3.min.js';
scriptTag.src = 'vendor/d3/d3.min.js';
scriptTag.onreadystatechange = function() {
if (this.readyState == 'complete') onScriptLoad();
};
Expand Down
4 changes: 2 additions & 2 deletions js/modules/services/d3RenderingService.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@

d3.select(parentNode)
.append('image')
.attr('xlink:href', function(d) { return '/components/graph/img/Pin.svg'; })
.attr('xlink:href', function(d) { return 'components/graph/img/Pin.svg'; })
.attr('display', function(d) { return d.fixed & CONSTANTS.FIXED_PINNED_BIT ? '' : 'none'; })
.attr('width', function(d) { return '13px'; })
.attr('height', function(d) { return '13px'; });
Expand Down Expand Up @@ -927,7 +927,7 @@
var singleImage = window.d3.select(this);
var siblingText = window.d3.select(this.parentNode).select('text');
var bbox = siblingText[0][0] ? siblingText[0][0].getBBox() : {width: 0};
var isPinIcon = singleImage.attr('xlink:href') === '/components/graph/img/Pin.svg';
var isPinIcon = singleImage.attr('xlink:href') === 'components/graph/img/Pin.svg';

singleImage.attr('display', function(d) {
if (isPinIcon) {
Expand Down
2 changes: 1 addition & 1 deletion less/graph.less
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
}

.pin-cursor {
cursor: url(/components/graph/img/Pin.svg) 6 21, auto;
cursor: url(components/graph/img/Pin.svg) 6 21, auto;
}

.zoom-cursor {
Expand Down
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
{
"description": "Force-directed graph visualization.",
"url": "/",
"templateUrl": "/components/graph/pages/home.html"
"templateUrl": "components/graph/pages/home.html"
},
{
"description": "Inspection panel with detailed information about Kubernetes cluster entities.",
"url": "/inspect",
"templateUrl": "/components/graph/pages/inspect.html",
"css": "/components/graph/css/show-details-table.css"
"templateUrl": "components/graph/pages/inspect.html",
"css": "components/graph/css/show-details-table.css"
}
]
}