directusDomain

This commit is contained in:
Suvodip Ghosh
2023-02-22 20:43:00 +05:30
parent 04b5887ff7
commit 003deea0b3
36 changed files with 195 additions and 195 deletions

View File

@@ -25,7 +25,7 @@
<div @click="showAbModal(audiobooks.file)">
<div class="grid place-items-center">
<div class=" ">
<img class="w-56" v-if="audiobooks.img" :src="'https://curriculum-app-api.beanstalkedu.com/assets/'+ audiobooks.img" alt=""/>
<img class="w-56" v-if="audiobooks.img" :src="'https://management.beanstalkedu.com/assets/'+ audiobooks.img" alt=""/>
</div>
<h1 class="pt-4 w-fit font-20px">{{audiobooks.title}}</h1>
</div>
@@ -42,7 +42,7 @@
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-10 place-items-center opacity-20 w-full">
<div v-for="audiobooks in abfmath" :key="abfmath.id" class="grid">
<div class="grid place-items-center">
<img class="w-56" v-if="audiobooks.img" :src="'https://curriculum-app-api.beanstalkedu.com/assets/'+ audiobooks.img" alt=""/>
<img class="w-56" v-if="audiobooks.img" :src="'https://management.beanstalkedu.com/assets/'+ audiobooks.img" alt=""/>
<h1 class="text-center pt-4 w-fit">{{audiobooks.title}}</h1>
</div>
</div>
@@ -54,7 +54,7 @@
<div class="modal-content" @click="doNothing()">
<span @click="hideAbModal" class="close">&times;</span>
<audio controls>
<source :src="'https://curriculum-app-api.beanstalkedu.com/assets/'+ abID" type="audio/ogg">
<source :src="'https://management.beanstalkedu.com/assets/'+ abID" type="audio/ogg">
Your browser does not support the audio element.
</audio>
</div>
@@ -175,13 +175,13 @@ export default {
}
},
mounted: function () {
fetch('https://curriculum-app-api.beanstalkedu.com/items/audio_books?filter[category][_eq]=mathematics')
fetch('https://management.beanstalkedu.com/items/audio_books?filter[category][_eq]=mathematics')
.then(resp => resp.json())
.then(worksheets => {
this.abmath=worksheets.data.reverse().slice(0, 4)
// console.log(this.abmath)
})
fetch('https://curriculum-app-api.beanstalkedu.com/items/audio_books?filter[category][_eq]=mathematics')
fetch('https://management.beanstalkedu.com/items/audio_books?filter[category][_eq]=mathematics')
.then(resp => resp.json())
.then(worksheets => {
this.abfmath=worksheets.data.reverse().slice(4, 8)