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
e58e7d42
Commit
e58e7d42
authored
5 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3705 : UI : Remove notification section from Server Statistics: migration page
parent
ef20f8ff
master
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
23 deletions
+71
-23
gruntfile.js
dashboardv2/gruntfile.js
+1
-0
migration-style.scss
dashboardv2/public/css/scss/migration-style.scss
+29
-0
stats.scss
dashboardv2/public/css/scss/stats.scss
+16
-0
Statistics_tmpl.html
dashboardv2/public/js/templates/site/Statistics_tmpl.html
+5
-2
MigrationView.js
dashboardv2/public/js/views/migration/MigrationView.js
+1
-1
Statistics.js
dashboardv2/public/js/views/site/Statistics.js
+18
-4
migration-status.html.tpl
dashboardv2/public/migration-status.html.tpl
+1
-16
No files found.
dashboardv2/gruntfile.js
View file @
e58e7d42
...
@@ -209,6 +209,7 @@ module.exports = function(grunt) {
...
@@ -209,6 +209,7 @@ module.exports = function(grunt) {
build
:
{
build
:
{
files
:
{
files
:
{
[
distPath
+
'/css/style.css'
]:
modulesPath
+
'css/scss/style.scss'
,
[
distPath
+
'/css/style.css'
]:
modulesPath
+
'css/scss/style.scss'
,
[
distPath
+
'/css/migration-style.css'
]:
modulesPath
+
'css/scss/migration-style.scss'
,
[
distPath
+
'/css/login.css'
]:
modulesPath
+
'css/scss/login.scss'
[
distPath
+
'/css/login.css'
]:
modulesPath
+
'css/scss/login.scss'
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/css/scss/migration-style.scss
0 → 100644
View file @
e58e7d42
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@import
"__mixin.scss"
;
@import
"__variable.scss"
;
@import
"common.scss"
;
@import
"table.scss"
;
@import
"form.scss"
;
@import
"panel.scss"
;
@import
"loader.scss"
;
@import
"theme.scss"
;
@import
"stats.scss"
;
@import
"override.scss"
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv2/public/css/scss/stats.scss
View file @
e58e7d42
...
@@ -111,4 +111,19 @@
...
@@ -111,4 +111,19 @@
}
}
}
}
}
.refresh-container
{
background
:
white
;
position
:
fixed
;
z-index
:
9999
;
right
:
23px
;
top
:
7px
;
border-radius
:
23px
;
.btn
{
margin
:
0px
;
border-radius
:
23px
;
padding
:
10px
10px
;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/templates/site/Statistics_tmpl.html
View file @
e58e7d42
...
@@ -14,7 +14,10 @@
...
@@ -14,7 +14,10 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
-->
-->
<div
class=
"panel-group server-stats-container statsContainer hide"
id=
"accordion"
>
<div
class=
"refresh-container statisticsRefresh hide"
data-id=
"statisticsRefresh"
>
<button
type=
"button"
class=
"btn fa fa-refresh pull-right btn-sm btn-action"
title=
"Refresh Data"
></button>
</div>
<div
class=
"panel-group server-stats-container statsContainer hide col-md-12"
id=
"accordion"
>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon"
data-id=
"entity"
>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon"
data-id=
"entity"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#entityCountCollapse"
aria-expanded=
"true"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#entityCountCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<h4
class=
"panel-title"
>
...
@@ -89,7 +92,7 @@
...
@@ -89,7 +92,7 @@
</div>
</div>
</div>
</div>
<div
class=
"col-sm-12"
>
<div
class=
"col-sm-12"
>
<div
class=
"card-container panel panel-primary"
>
<div
class=
"card-container panel panel-primary
hide"
data-id=
"notificationDetails
"
>
<div
class=
"panel-heading"
>
Notification Details
</div>
<div
class=
"panel-heading"
>
Notification Details
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<table
data-id=
"offset-card"
class=
"table stat-table notification-table table-striped "
>
<table
data-id=
"offset-card"
class=
"table stat-table notification-table table-striped "
>
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/migration/MigrationView.js
View file @
e58e7d42
...
@@ -60,7 +60,7 @@ define(['require',
...
@@ -60,7 +60,7 @@ define(['require',
that
.
metricCollection
=
new
VTagList
();
that
.
metricCollection
=
new
VTagList
();
that
.
metricCollection
.
url
=
UrlLinks
.
metricsApiUrl
();
that
.
metricCollection
.
url
=
UrlLinks
.
metricsApiUrl
();
that
.
metricCollection
.
modelAttrName
=
"data"
;
that
.
metricCollection
.
modelAttrName
=
"data"
;
that
.
RStatisticsView
.
show
(
new
Statistics
({
hideModal
:
false
,
metricCollection
:
that
.
metricCollection
}));
that
.
RStatisticsView
.
show
(
new
Statistics
({
metricCollection
:
that
.
metricCollection
,
isMigrationView
:
true
}));
})
})
}
}
});
});
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/site/Statistics.js
View file @
e58e7d42
...
@@ -55,10 +55,20 @@ define(['require',
...
@@ -55,10 +55,20 @@ define(['require',
osCard
:
"[data-id='os-card']"
,
osCard
:
"[data-id='os-card']"
,
runtimeCard
:
"[data-id='runtime-card']"
,
runtimeCard
:
"[data-id='runtime-card']"
,
memoryCard
:
"[data-id='memory-card']"
,
memoryCard
:
"[data-id='memory-card']"
,
memoryPoolUsage
:
"[data-id='memory-pool-usage-card']"
memoryPoolUsage
:
"[data-id='memory-pool-usage-card']"
,
statisticsRefresh
:
"[data-id='statisticsRefresh']"
,
notificationDetails
:
"[data-id='notificationDetails']"
},
},
/** ui events hash */
/** ui events hash */
events
:
function
()
{},
events
:
function
()
{
var
events
=
{};
events
[
"click "
+
this
.
ui
.
statisticsRefresh
]
=
function
(
e
)
{
this
.
$
(
'.statsContainer,.statsNotificationContainer,.statisticsRefresh'
).
addClass
(
'hide'
);
this
.
$
(
'.statsLoader,.statsNotificationLoader'
).
addClass
(
'show'
);
this
.
fetchMetricData
();
};
return
events
;
},
/**
/**
* intialize a new AboutAtlasView Layout
* intialize a new AboutAtlasView Layout
* @constructs
* @constructs
...
@@ -67,7 +77,7 @@ define(['require',
...
@@ -67,7 +77,7 @@ define(['require',
_
.
extend
(
this
,
options
);
_
.
extend
(
this
,
options
);
var
that
=
this
;
var
that
=
this
;
this
.
DATA_MAX_LENGTH
=
25
;
this
.
DATA_MAX_LENGTH
=
25
;
if
(
this
.
hideModal
!==
fals
e
)
{
if
(
this
.
isMigrationView
!==
tru
e
)
{
var
modal
=
new
Modal
({
var
modal
=
new
Modal
({
title
:
'Statistics'
,
title
:
'Statistics'
,
content
:
this
,
content
:
this
,
...
@@ -111,6 +121,9 @@ define(['require',
...
@@ -111,6 +121,9 @@ define(['require',
that
.
renderSystemDeatils
({
data
:
data
});
that
.
renderSystemDeatils
({
data
:
data
});
that
.
renderClassifications
({
data
:
data
});
that
.
renderClassifications
({
data
:
data
});
that
.
$
(
'.statsContainer,.statsNotificationContainer'
).
removeClass
(
'hide'
);
that
.
$
(
'.statsContainer,.statsNotificationContainer'
).
removeClass
(
'hide'
);
if
(
that
.
isMigrationView
)
{
that
.
$
(
'.statisticsRefresh'
).
removeClass
(
'hide'
);
}
that
.
$
(
'.statsLoader,.statsNotificationLoader'
).
removeClass
(
'show'
);
that
.
$
(
'.statsLoader,.statsNotificationLoader'
).
removeClass
(
'show'
);
if
(
options
&&
options
.
update
)
{
if
(
options
&&
options
.
update
)
{
if
(
that
.
modal
)
{
if
(
that
.
modal
)
{
...
@@ -280,7 +293,7 @@ define(['require',
...
@@ -280,7 +293,7 @@ define(['require',
});
});
return
tableBody
;
return
tableBody
;
};
};
if
(
data
.
Notification
)
{
if
(
!
that
.
isMigrationView
&&
data
.
Notification
)
{
var
tableCol
=
[{
var
tableCol
=
[{
label
:
"Total <br> (from "
+
(
that
.
getValue
({
label
:
"Total <br> (from "
+
(
that
.
getValue
({
"value"
:
data
.
Server
[
"startTimeStamp"
],
"value"
:
data
.
Server
[
"startTimeStamp"
],
...
@@ -348,6 +361,7 @@ define(['require',
...
@@ -348,6 +361,7 @@ define(['require',
}
}
})
})
)
)
that
.
ui
.
notificationDetails
.
removeClass
(
'hide'
);
}
}
if
(
data
.
Server
)
{
if
(
data
.
Server
)
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/migration-status.html.tpl
View file @
e58e7d42
...
@@ -38,25 +38,10 @@
...
@@ -38,25 +38,10 @@
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/animate.min.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/animate.min.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/backgrid/css/backgrid.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/backgrid/css/backgrid.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/backgrid-filter/css/backgrid-filter.min.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/backgrid-paginator/css/backgrid-paginator.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/backgrid-orderable-columns/css/backgrid-orderable-columns.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/backgrid-sizeable-columns/css/backgrid-sizeable-columns.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/external_lib/backgrid-columnmanager/css/Backgrid.ColumnManager.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/select2/css/select2.min.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/bootstrap/css/bootstrap.min.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/bootstrap/css/bootstrap.min.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"js/libs/jquery-asBreadcrumbs/css/asBreadcrumbs.min.css?bust=<%- bust %>"
/>
<link
rel=
"stylesheet"
href=
"css/googlefonts.css?bust=<%- bust %>"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"css/googlefonts.css?bust=<%- bust %>"
type=
"text/css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"js/external_lib/jquery-ui/jquery-ui.min.css?bust=<%- bust %>"
/>
<link
href=
"css/bootstrap-sidebar.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"js/libs/font-awesome/css/font-awesome.min.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"js/libs/font-awesome/css/font-awesome.min.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"js/external_lib/pnotify/pnotify.custom.min.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"css/migration-style.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"js/libs/jQueryQueryBuilder/css/query-builder.default.min.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"js/libs/bootstrap-daterangepicker/css/daterangepicker.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
rel=
"stylesheet"
href=
"js/libs/nvd3/css/nv.d3.min.css?bust=<%- bust %>"
/>
<link
href=
"js/libs/jstree/css/default/default-theme.min.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"js/libs/pretty-checkbox/css/pretty-checkbox.min.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
<link
href=
"css/style.css?bust=<%- bust %>"
rel=
"stylesheet"
/>
</head>
</head>
<body>
<body>
...
...
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