Added collections loading
This commit is contained in:
29
src/components/BigChungusLoader.vue
Normal file
29
src/components/BigChungusLoader.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<div class="text-center chungus-loader-container">
|
||||
<p>
|
||||
<b-spinner variant="success" type="grow" />
|
||||
</p>
|
||||
<p>
|
||||
{{ text }}
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "BigChungusLoader",
|
||||
props: {
|
||||
text: {
|
||||
type: String,
|
||||
default: "onSpot is loading..."
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
div.chungus-loader-container {
|
||||
margin-top: 25vh;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
29
src/components/CollectionsListElement.vue
Normal file
29
src/components/CollectionsListElement.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<b-col class="my-3" cols="12" md="6">
|
||||
<b-card :title="title">
|
||||
<b-button class="float-right" @click="performClick">Open</b-button>
|
||||
<div class="float-left">
|
||||
Tracks: {{ count }}
|
||||
</div>
|
||||
</b-card>
|
||||
</b-col>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "CollectionsListElement",
|
||||
props: {
|
||||
title: String,
|
||||
count: Number
|
||||
},
|
||||
methods: {
|
||||
performClick() {
|
||||
this.$emit('clicked');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,16 +0,0 @@
|
||||
<template>
|
||||
<div id="loader-content" class="text-center">
|
||||
<p>
|
||||
<b-spinner variant="success" type="grow" />
|
||||
</p>
|
||||
<p>
|
||||
onSpot is loading...
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
#loader-content {
|
||||
margin: 45vh auto 0 auto;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user