-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Muhammed Tareq Aziz
committed
Aug 29, 2021
1 parent
e672f36
commit 667149e
Showing
21 changed files
with
1,285 additions
and
3,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pageHomeTop from '~/api/mock/block/pageHomeTop.json' | ||
import pageHomeMid from '~/api/mock/block/pageHomeMid.json' | ||
|
||
export const getBlocks = ({ contextType, contextValue, section }) => { | ||
if (contextType === 'page' && contextValue === 'home' && section === 'top') { | ||
return Promise.resolve(pageHomeTop) | ||
} else if (contextType === 'page' && contextValue === 'home' && section === 'mid') { | ||
return Promise.resolve(pageHomeMid) | ||
} | ||
return null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"Mid": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"Top": [ | ||
{ | ||
"id": 3, | ||
"section": "Top", | ||
"context_type": "page", | ||
"context_value": 3, | ||
"block_id": 8, | ||
"block": { | ||
"id": 8, | ||
"title": { | ||
"en": "Hero Banner" | ||
}, | ||
"sub_title": { | ||
"en": "Hero Banner" | ||
}, | ||
"slug": "hero-banner-1", | ||
"description": null, | ||
"status": 1, | ||
"platform": "web/*", | ||
"created_at": "2021-07-27T14:12:09+06:00", | ||
"updated_at": "2021-08-19T19:02:01+06:00", | ||
"offers": [ | ||
{ | ||
"id": 9, | ||
"title": { | ||
"en": "Hero Banner 2" | ||
}, | ||
"details": { | ||
"en": "<div style=\"display: none;\"> </div>\r\n\r\n<p>Hero Banner Image</p>" | ||
}, | ||
"status": 1, | ||
"sort_position": 2, | ||
"created_at": "2021-07-05T12:58:41+06:00", | ||
"updated_at": "2021-08-19T19:03:35+06:00", | ||
"type": 1, | ||
"link": null, | ||
"expire_at": "2022-05-27 12:57:35", | ||
"misc": null, | ||
"related_id": 4, | ||
"related_type": "App\\Models\\Category", | ||
"logo_image": null, | ||
"banner_image": "https://store.dglink.co/storage/media/84/offer-9.bin", | ||
"related_slug": "face" | ||
}, | ||
{ | ||
"id": 8, | ||
"title": { | ||
"en": "Hero Banner 1" | ||
}, | ||
"details": { | ||
"en": "<div style=\"display: none;\"> </div>\r\n\r\n<div> </div>\r\n\r\n<p>Hero Banner Image</p>" | ||
}, | ||
"status": 1, | ||
"sort_position": 1, | ||
"created_at": "2021-07-05T12:47:17+06:00", | ||
"updated_at": "2021-08-19T19:03:53+06:00", | ||
"type": 1, | ||
"link": "http://bronx.dglink.co/category/hidden-category", | ||
"expire_at": "2022-05-20 12:46:28", | ||
"misc": null, | ||
"related_id": null, | ||
"related_type": null, | ||
"logo_image": null, | ||
"banner_image": "https://store.dglink.co/storage/media/83/offer-8.bin", | ||
"related_slug": null | ||
}, | ||
{ | ||
"id": 10, | ||
"title": { | ||
"en": "Hero Banner 3" | ||
}, | ||
"details": { | ||
"en": "<div style=\"display: none;\"> </div>\r\n\r\n<p>Hero Banner Image 3</p>" | ||
}, | ||
"status": 1, | ||
"sort_position": 3, | ||
"created_at": "2021-07-05T13:00:32+06:00", | ||
"updated_at": "2021-08-19T19:03:19+06:00", | ||
"type": 1, | ||
"link": null, | ||
"expire_at": "2022-02-24 18:00:00", | ||
"misc": null, | ||
"related_id": 4, | ||
"related_type": "App\\Models\\Category", | ||
"logo_image": null, | ||
"banner_image": "https://store.dglink.co/storage/media/85/offer-10.bin", | ||
"related_slug": "face" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.