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

@@ -33,10 +33,10 @@
<div v-for="worksheet in wsLiteracy" :key="wsLiteracy.id" class="grid">
<div class="grid place-items-center">
<div class="bg-gray-200 w-56 h-72 relative -rotate-6 rounded-tl-xl rounded-br-xl shadow-xl">
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://curriculum-app-api.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://management.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
</div>
<h1 class="text-center pt-8 w-fit">{{worksheet.title}}</h1>
<!-- <a :href="'https://curriculum-app-api.beanstalkedu.com/assets/'+ worksheet.file+'?download'" class="bg-blue-700 p-1 text-white pl-4 pr-4 rounded-tl-lg rounded-br-lg ml-6 mt-8"><img class="w-5 pr-1 inline" src="/img/download.png" alt="">Download</a> -->
<!-- <a :href="'https://management.beanstalkedu.com/assets/'+ worksheet.file+'?download'" class="bg-blue-700 p-1 text-white pl-4 pr-4 rounded-tl-lg rounded-br-lg ml-6 mt-8"><img class="w-5 pr-1 inline" src="/img/download.png" alt="">Download</a> -->
</div>
</div>
@@ -52,7 +52,7 @@
<div v-for="worksheet in wsfLiteracy" :key="wsfLiteracy.id" class="grid">
<div class="grid place-items-center">
<div class="bg-gray-200 w-56 h-72 relative -rotate-6 rounded-tl-xl rounded-br-xl shadow-xl">
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://curriculum-app-api.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://management.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
</div>
<h1 class="text-center pt-8 w-fit">{{worksheet.title}}</h1>
<button class="bg-blue-700 p-1 text-white pl-4 pr-4 rounded-tl-lg rounded-br-lg ml-6 mt-8 "><img class="w-5 pr-1 inline" src="/img/download.png" alt="">Download</button>
@@ -131,13 +131,13 @@ export default {
// this.selected = event.target.value;
},
getWorksheets(age=2){
fetch('https://curriculum-app-api.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
fetch('https://management.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
.then(resp => resp.json())
.then(worksheets => {
this.wsLiteracy=worksheets.data.reverse().slice(0, 4)
// console.log(this.wsLiteracy)
})
fetch('https://curriculum-app-api.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
fetch('https://management.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
.then(resp => resp.json())
.then(worksheets => {
this.wsfLiteracy=worksheets.data.reverse().slice(4, 16)