@everymatrix/casino-games-category-section 0.0.394 → 0.0.397

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-games-category-section",
3
- "version": "0.0.394",
3
+ "version": "0.0.397",
4
4
  "main": "dist/casino-games-category-section.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "74359bffcfcd357bb93adb3f4cbcd7badbc96fae"
39
+ "gitHead": "0a8bd4da61d95ed7aa871757ea16bcc1a10955ce"
40
40
  }
@@ -77,6 +77,7 @@
77
77
  let mostPlayedScreen:Boolean = false;
78
78
  let customStylingContainer:HTMLElement;
79
79
  let validObservers:boolean = false;
80
+ let lastPlayedScreen:boolean = false;
80
81
 
81
82
  let thumbnailContainer:Array<HTMLElement> = new Array(10000);
82
83
  let intersectingIndexes:Object = {};
@@ -220,9 +221,9 @@
220
221
  resolve(categoryData);
221
222
  }, (err:any) => {
222
223
  hasErrors = true;
223
-
224
+
224
225
  console.error(err);
225
-
226
+
226
227
  reject(err);
227
228
  });
228
229
  });
@@ -248,6 +249,24 @@
248
249
  };
249
250
  break;
250
251
 
252
+ case 'LastPlayedData':
253
+ searched = false;
254
+ lobbyView = false;
255
+ showLoadCategory = false;
256
+ mostPlayedScreen = false;
257
+ lastPlayedScreen = true;
258
+ shownCategoryData = e.data.lastPlayedGames;
259
+ categoryData = {
260
+ id: 'LASTPLAYED',
261
+ name: 'Last Played Games',
262
+ games: {
263
+ count: e.data.lastPlayedGames.length,
264
+ total: e.data.lastPlayedGames.length,
265
+ items: e.data.lastPlayedGames
266
+ }
267
+ };
268
+ break;
269
+
251
270
  case 'CustomOperatorData':
252
271
  operatorSpecifications = e.data.operatordetail;
253
272
  break;