-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding loading component #108
Changes from 2 commits
89b137b
c7bd6cc
33b0cb3
fd327cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,4 @@ archives/.idea/ | |
.env | ||
.vscode/ | ||
.DS_Store | ||
dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as React from 'react'; | ||
|
||
export default class Loading extends React.Component { | ||
|
||
constructor () { | ||
super(); | ||
} | ||
|
||
render () { | ||
return (<div className="loading"> </div>) | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -297,32 +297,6 @@ iframe { | |
width: 100%; | ||
} | ||
|
||
/* ===== Progress Bar ===== */ | ||
.progress { | ||
width: 100%; | ||
} | ||
|
||
.progress .progress-bar.active { | ||
font-weight: 700; | ||
animation: progress-bar-stripes .5s linear infinite; | ||
} | ||
|
||
.dotdotdot:after { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please keep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure |
||
font-weight: 300; | ||
content: '...'; | ||
display: inline-block; | ||
width: 20px; | ||
text-align: left; | ||
animation: dotdotdot 1.5s linear infinite; | ||
} | ||
|
||
@keyframes dotdotdot { | ||
0% { content: '...'; } | ||
25% { content: ''; } | ||
50% { content: '.'; } | ||
75% { content: '..'; } | ||
} | ||
|
||
/* ===== Login Form ===== */ | ||
.dialog__body { | ||
background: white; | ||
|
@@ -345,3 +319,10 @@ iframe { | |
.login-form__footer { | ||
text-align: right; | ||
} | ||
|
||
.loading { | ||
margin-left: 20px; | ||
height: 70px; | ||
background-image: url(../img/infinity-loader.svg); | ||
background-repeat: no-repeat; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Aaah, I see, it moves the loading image at the center, ok! |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,17 +18,7 @@ | |
<script src="https://use.fontawesome.com/2155f7b139.js"></script> | ||
</head> | ||
<body id="bootstrap-override"> | ||
<div id="web-monitoring-ui-root"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="progress active progress-striped"> | ||
<div class="progress-bar progress-success" style="width:100%" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100"> | ||
<span>Please wait<span class="dotdotdot"></span></span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="web-monitoring-ui-root"></div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should replace that old There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't get this one, sorry, I removed the old loading and left it as it was because when loading the page the new loader appears; what should I do? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a short amount of time before the React app renders, so I was suggesting that a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok I see :) |
||
|
||
<script type="text/javascript" src="/bundle.js"></script> | ||
</body> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
import React from 'react'
here. #101 explains why.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure