Add more prefetching of components
This commit is contained in:
12
src/components/misc/error.vue
Normal file
12
src/components/misc/error.vue
Normal file
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div class="notification is-danger">
|
||||
Loading failed, please <a @click="() => location.reload()">try again</a>.
|
||||
If the error persists, please <a href="https://vikunja.io/contact/">contact us</a>.
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'error'
|
||||
}
|
||||
</script>
|
19
src/components/misc/loading.vue
Normal file
19
src/components/misc/loading.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div class="loader-container is-loading"></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'loading'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.loader-container {
|
||||
height: 100%;
|
||||
min-height: 200px;
|
||||
width: 100%;
|
||||
min-width: 600px;
|
||||
max-width: 100vw;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user