Cấu hình đối tượng dữ liệu hiển thị trò chơi mẫu trên giao diện BK8.
JavaScript
// Cấu hình tham số hiển thị giao diện trò chơi BK8 tại máy khách
const localGameCatalog = {
platform: "BK8",
region: "vn",
defaultCategory: "Slot",
featuredGames: [
{ id: "203", title: "Princess Frog", category: "Slot" },
{ id: "030", title: "Symbols Of Egypt", category: "Slot" },
{ id: "189", title: "Inferno Mayhem", category: "Slot" }
],
displaySettings: {
itemsPerPage: 10,
showThumbnails: true
}
};
function getFeaturedGameTitles(catalog) {
return catalog.featuredGames.map(game => game.title);
}
// Xuất cấu hình để giao diện sử dụng nội bộ
export { localGameCatalog, getFeaturedGameTitles };
JSON
{
"platform": "BK8",
"region": "vn",
"defaultCategory": "Slot",
"featuredGames": [
{
"id": "203",
"title": "Princess Frog",
"category": "Slot"
},
{
"id": "030",
"title": "Symbols Of Egypt",
"category": "Slot"
},
{
"id": "189",
"title": "Inferno Mayhem",
"category": "Slot"
}
],
"displaySettings": {
"itemsPerPage": 10,
"showThumbnails": true
}
}