mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
integrated loading indicator in abstract entry point hierarchy and included in AdminConsole and EmbeddedMapAndWindChart entry points
Change-Id: Ia22bed6fd44a2cf2035a313d73dacfa5236de63a
This commit is contained in:
1 parent
60d6cbc4c6
commit
f8e3c32bae
4 files changed
+157
-3
No files matched your search
@@ -41,6 +41,73 @@
|
||||
<!-- be added before this line. -->
|
||||
<!-- -->
|
||||
<script type="text/javascript" language="javascript" src="com.sap.sailing.gwt.ui.AdminConsole/com.sap.sailing.gwt.ui.AdminConsole.nocache.js"></script>
|
||||
|
||||
<!-- Loading Indicator -->
|
||||
<style type="text/css">
|
||||
.loading {
|
||||
position: absolute;
|
||||
top: 80px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 120%;
|
||||
}
|
||||
.loading > .sapsailing {
|
||||
margin: 40px;
|
||||
color: #008fcc;
|
||||
font-weight: bold;
|
||||
}
|
||||
.loading > .waitmessage {
|
||||
margin: 60px 40px;
|
||||
}
|
||||
|
||||
.signal {
|
||||
border:3px solid #6a6a6a;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
height:300px;
|
||||
width:300px;
|
||||
margin: 0px auto;
|
||||
opacity:0;
|
||||
-webkit-animation: pulsate 2s ease-out;
|
||||
animation: pulsate 2s ease-out;
|
||||
-webkit-animation-iteration-count:infinite;
|
||||
animation-iteration-count:infinite;
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
@-webkit-keyframes pulsate {
|
||||
0% {
|
||||
-webkit-transform:scale(.1);
|
||||
transform:scale(.1);
|
||||
opacity: 0.0;
|
||||
}
|
||||
50% {
|
||||
opacity:1;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform:scale(1.2);
|
||||
transform:scale(1.2);
|
||||
opacity:0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulsate {
|
||||
0% {
|
||||
-webkit-transform:scale(.1);
|
||||
transform:scale(.1);
|
||||
opacity: 0.0;
|
||||
}
|
||||
50% {
|
||||
opacity:1;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform:scale(1.2);
|
||||
transform:scale(1.2);
|
||||
opacity:0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<!-- -->
|
||||
@@ -61,5 +128,10 @@
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
<div id="loading" class="loading">
|
||||
<p class="sapsailing">SAP Sailing Analytics</p>
|
||||
<p class="waitmessage">Loading, please wait...</p>
|
||||
<div class="signal"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -24,6 +24,73 @@
|
||||
|
||||
<script type="text/javascript" language="javascript" src="com.sap.sailing.gwt.ui.EmbeddedMapAndWindChart/com.sap.sailing.gwt.ui.EmbeddedMapAndWindChart.nocache.js"></script>
|
||||
|
||||
<!-- Loading Indicator -->
|
||||
<style type="text/css">
|
||||
.loading {
|
||||
position: absolute;
|
||||
top: 80px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 120%;
|
||||
}
|
||||
.loading > .sapsailing {
|
||||
margin: 40px;
|
||||
color: #008fcc;
|
||||
font-weight: bold;
|
||||
}
|
||||
.loading > .waitmessage {
|
||||
margin: 60px 40px;
|
||||
}
|
||||
|
||||
.signal {
|
||||
border:3px solid #6a6a6a;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
height:300px;
|
||||
width:300px;
|
||||
margin: 0px auto;
|
||||
opacity:0;
|
||||
-webkit-animation: pulsate 2s ease-out;
|
||||
animation: pulsate 2s ease-out;
|
||||
-webkit-animation-iteration-count:infinite;
|
||||
animation-iteration-count:infinite;
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
@-webkit-keyframes pulsate {
|
||||
0% {
|
||||
-webkit-transform:scale(.1);
|
||||
transform:scale(.1);
|
||||
opacity: 0.0;
|
||||
}
|
||||
50% {
|
||||
opacity:1;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform:scale(1.2);
|
||||
transform:scale(1.2);
|
||||
opacity:0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulsate {
|
||||
0% {
|
||||
-webkit-transform:scale(.1);
|
||||
transform:scale(.1);
|
||||
opacity: 0.0;
|
||||
}
|
||||
50% {
|
||||
opacity:1;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform:scale(1.2);
|
||||
transform:scale(1.2);
|
||||
opacity:0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -36,6 +103,11 @@
|
||||
in order for this application to display correctly.
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
|
||||
<div id="loading" class="loading">
|
||||
<p class="sapsailing">SAP Sailing Analytics</p>
|
||||
<p class="waitmessage">Loading, please wait...</p>
|
||||
<div class="signal"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -15,8 +15,8 @@
|
||||
<script src="js/jquery-1.11.1.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="js/jquery.slick/slick-1.5.8.css"/>
|
||||
<script type="text/javascript" src="js/jquery.slick/slick-1.5.8.min.js"></script>
|
||||
<link href="js/video-js/video-js.css" rel="stylesheet">
|
||||
<link href="js/video-js/video-js-sapsailing.css" rel="stylesheet">
|
||||
<link href="js/video-js/video-js.css" rel="stylesheet">
|
||||
<link href="js/video-js/video-js-sapsailing.css" rel="stylesheet">
|
||||
<script src="js/video-js/video.js"></script>
|
||||
<script src="js/vjs.youtube.js"></script>
|
||||
<script src="js/vjs.vimeo.js"></script>
|
||||
|
||||
+10
@@ -1,6 +1,8 @@
|
||||
package com.sap.sse.security.ui.client;
|
||||
|
||||
import com.google.gwt.core.client.EntryPoint;
|
||||
import com.google.gwt.dom.client.Document;
|
||||
import com.google.gwt.dom.client.Element;
|
||||
import com.sap.sse.gwt.client.StringMessages;
|
||||
|
||||
/**
|
||||
@@ -15,8 +17,16 @@ import com.sap.sse.gwt.client.StringMessages;
|
||||
public abstract class AbstractSecureEntryPoint<S extends StringMessages> extends com.sap.sse.gwt.client.AbstractEntryPoint<S> implements WithSecurity {
|
||||
private WithSecurity securityProvider;
|
||||
|
||||
/**
|
||||
* Initializes the {@link UserManagementService} and removes the optional loading indicator from the DOM which is
|
||||
* identified by the "loading" ID.
|
||||
*/
|
||||
protected void doOnModuleLoad() {
|
||||
securityProvider = new DefaultWithSecurityImpl();
|
||||
final Element optionalLoadingIndicator = Document.get().getElementById("loading");
|
||||
if (optionalLoadingIndicator != null) {
|
||||
optionalLoadingIndicator.removeFromParent();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user