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
2ed39cce
Commit
2ed39cce
authored
7 years ago
by
kevalbhatt
Committed by
Madhan Neethiraj
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2171: Atlas UI fix when accessed via Knox proxy without / at the end
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
e406603a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
19 deletions
+34
-19
loader.scss
dashboardv2/public/css/scss/loader.scss
+11
-5
index.html.tpl
dashboardv2/public/index.html.tpl
+1
-1
SideNavLayoutView_tmpl.html
...js/templates/business_catalog/SideNavLayoutView_tmpl.html
+1
-1
UrlLinks.js
dashboardv2/public/js/utils/UrlLinks.js
+8
-4
Utils.js
dashboardv2/public/js/utils/Utils.js
+3
-0
SideNavLayoutView.js
...dv2/public/js/views/business_catalog/SideNavLayoutView.js
+4
-2
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+6
-6
No files found.
dashboardv2/public/css/scss/loader.scss
View file @
2ed39cce
...
...
@@ -71,11 +71,17 @@
}
.initialLoading
{
display
:
block
;
position
:
absolute
;
margin-top
:
30%
;
right
:
50%
;
height
:
60px
;
position
:
fixed
;
top
:
0
;
right
:
0
;
left
:
0
;
bottom
:
0
;
background
:
url("../img/ring.gif")
no-repeat
;
background-position
:
50%
50%
;
background-size
:
60px
;
@media
(
min-width
:
768px
)
{
left
:
350px
;
}
}
.tableOverlay
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/index.html.tpl
View file @
2ed39cce
...
...
@@ -66,7 +66,7 @@
<header
id=
"new-header"
class=
"clearfix"
></header>
<div
id=
"new-page-wrapper"
>
<div>
<
img
class=
"initialLoading"
src=
"img/ring.gif"
>
<
div
class=
"initialLoading"
></div
>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/templates/business_catalog/SideNavLayoutView_tmpl.html
View file @
2ed39cce
...
...
@@ -16,7 +16,7 @@
-->
<ul
class=
"sidebar-nav"
>
<li
class=
"sidebar-brand"
>
<a
href=
"index.html"
><i
class=
"fa fa-globe"
></i>
Apache Atlas
</a>
<a
href=
"
{{apiBaseUrl}}/
index.html"
><i
class=
"fa fa-globe"
></i>
Apache Atlas
</a>
</li>
<ul
class=
"tabs"
style=
"width: 100%;"
role=
"tablist"
>
<li
role=
"presentation"
class=
"{{tabClass}}"
><a
href=
"#tab-search"
aria-controls=
"tab-search"
data-name=
"tab-search"
role=
"tab"
data-toggle=
"tab"
class=
""
><i
class=
"fa fa-search"
></i>
Search
</a></li>
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/utils/UrlLinks.js
View file @
2ed39cce
...
...
@@ -16,12 +16,15 @@
* limitations under the License.
*/
define
([
'require'
,
'utils/Enums'
],
function
(
require
,
Enum
s
)
{
define
([
'require'
,
'utils/Enums'
,
'utils/Utils'
],
function
(
require
,
Enums
,
Util
s
)
{
'use strict'
;
var
UrlLinks
=
{
baseUrl
:
'api/atlas'
,
baseUrlV2
:
'api/atlas/v2'
,
apiBaseUrl
:
Utils
.
getBaseUrl
(
window
.
location
.
pathname
)
};
_
.
extend
(
UrlLinks
,
{
baseUrl
:
UrlLinks
.
apiBaseUrl
+
'/api/atlas'
,
baseUrlV2
:
UrlLinks
.
apiBaseUrl
+
'/api/atlas/v2'
,
typedefsUrl
:
function
()
{
return
{
defs
:
this
.
baseUrlV2
+
'/types/typedefs'
,
...
...
@@ -122,7 +125,7 @@ define(['require', 'utils/Enums'], function(require, Enums) {
return
this
.
baseUrl
+
'/admin/session'
;
}
};
}
)
;
return
UrlLinks
;
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/utils/Utils.js
View file @
2ed39cce
...
...
@@ -69,6 +69,9 @@ define(['require', 'utils/Globals', 'pnotify', 'utils/Messages', 'utils/Enums',
});
return
uuid
;
};
Utils
.
getBaseUrl
=
function
(
url
)
{
return
url
.
replace
(
/
\/[\w
-
]
+.
(
jsp|html
)
|
\/
+$/ig
,
''
);
};
pnotify
.
prototype
.
options
.
styling
=
"bootstrap3"
;
var
notify
=
function
(
options
)
{
return
new
pnotify
(
_
.
extend
({
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/business_catalog/SideNavLayoutView.js
View file @
2ed39cce
...
...
@@ -20,7 +20,8 @@ define(['require',
'hbs!tmpl/business_catalog/SideNavLayoutView_tmpl'
,
'utils/Utils'
,
'utils/Globals'
,
],
function
(
require
,
tmpl
,
Utils
,
Globals
)
{
'utils/UrlLinks'
],
function
(
require
,
tmpl
,
Utils
,
Globals
,
UrlLinks
)
{
'use strict'
;
var
SideNavLayoutView
=
Marionette
.
LayoutView
.
extend
({
...
...
@@ -37,7 +38,8 @@ define(['require',
templateHelpers
:
function
()
{
return
{
taxonomy
:
Globals
.
taxonomy
,
tabClass
:
this
.
tabClass
tabClass
:
this
.
tabClass
,
apiBaseUrl
:
UrlLinks
.
apiBaseUrl
};
},
events
:
function
()
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
2ed39cce
...
...
@@ -254,19 +254,19 @@ define(['require',
if
(
node
)
{
if
(
node
.
isProcess
)
{
if
(
Enums
.
entityStateReadOnly
[
node
.
status
])
{
return
'
img/icon-gear-delete.png'
;
return
UrlLinks
.
apiBaseUrl
+
'/
img/icon-gear-delete.png'
;
}
else
if
(
node
.
id
==
that
.
guid
)
{
return
'
img/icon-gear-active.png'
;
return
UrlLinks
.
apiBaseUrl
+
'/
img/icon-gear-active.png'
;
}
else
{
return
'
img/icon-gear.png'
;
return
UrlLinks
.
apiBaseUrl
+
'/
img/icon-gear.png'
;
}
}
else
{
if
(
Enums
.
entityStateReadOnly
[
node
.
status
])
{
return
'
img/icon-table-delete.png'
;
return
UrlLinks
.
apiBaseUrl
+
'/
img/icon-table-delete.png'
;
}
else
if
(
node
.
id
==
that
.
guid
)
{
return
'
img/icon-table-active.png'
;
return
UrlLinks
.
apiBaseUrl
+
'/
img/icon-table-active.png'
;
}
else
{
return
'
img/icon-table.png'
;
return
UrlLinks
.
apiBaseUrl
+
'/
img/icon-table.png'
;
}
}
}
...
...
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