2018-05-02 00:05:36 +00:00
|
|
|
<div class="loading-page {shown ? '' : 'hidden'}">
|
2018-02-07 04:54:49 +00:00
|
|
|
<LoadingSpinner />
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.loading-page {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 150px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
z-index: 50;
|
2018-02-12 00:10:39 +00:00
|
|
|
transition: opacity 0.25s linear;
|
2018-02-07 04:54:49 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import LoadingSpinner from './LoadingSpinner.html'
|
2018-03-31 00:14:53 +00:00
|
|
|
|
|
|
|
const SPINNER_DELAY = 700
|
|
|
|
|
2018-02-07 04:54:49 +00:00
|
|
|
export default {
|
2018-04-20 04:38:01 +00:00
|
|
|
oncreate () {
|
2018-02-12 00:10:39 +00:00
|
|
|
setTimeout(() => {
|
|
|
|
this.set({shown: true})
|
2018-03-31 00:14:53 +00:00
|
|
|
}, SPINNER_DELAY)
|
2018-02-12 00:10:39 +00:00
|
|
|
},
|
2018-04-30 05:13:41 +00:00
|
|
|
data: () => ({
|
|
|
|
shown: false
|
|
|
|
}),
|
2018-02-07 04:54:49 +00:00
|
|
|
components: {
|
|
|
|
LoadingSpinner
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|