@everymatrix/casino-categories 1.2.0 → 1.2.2
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-categories",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "dist/casino-categories.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": "
|
|
39
|
+
"gitHead": "02dbae5b4d167acdb57c72905b756343a318870a"
|
|
40
40
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export let excludedflags:string = '';
|
|
11
11
|
export let clientstyling:string = '';
|
|
12
12
|
export let clientstylingurl:string = '';
|
|
13
|
-
export let
|
|
13
|
+
export let translationurl:string = '';
|
|
14
14
|
|
|
15
15
|
let customStylingContainer:HTMLElement;
|
|
16
16
|
let displayNone:boolean = false;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
const setTranslationUrl = ():void => {
|
|
27
|
-
let url:string =
|
|
27
|
+
let url:string = translationurl;
|
|
28
28
|
|
|
29
29
|
fetch(url).then((res:any) => res.json())
|
|
30
30
|
.then((res) => {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
$: endpoint && datasource && getCategories();
|
|
93
|
-
$:
|
|
93
|
+
$: translationurl && setTranslationUrl();
|
|
94
94
|
$: lang && setActiveLanguage();
|
|
95
95
|
$: clientstyling && customStylingContainer && setClientStyling();
|
|
96
96
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
<div class="CasinoCategories">
|
|
104
104
|
<h4 class="CategoryTitle">{$_('Translations.topCategories')}</h4>
|
|
105
105
|
{#each topCategories as category}
|
|
106
|
-
<div class="Category {activecategory === category.id ? "Active" : ""}">
|
|
107
|
-
<img
|
|
106
|
+
<div on:click={() => openGameCategory(category.id)} class="Category {activecategory === category.id ? "Active" : ""}">
|
|
107
|
+
<img src={category.icon} alt="{category.name}" class="CategoryImage" >
|
|
108
108
|
<div class="CategoryTextContainer">
|
|
109
109
|
<p>{category.name}</p>
|
|
110
110
|
<p>{category.games.count} {$_('Translations.games')}</p>
|
|
@@ -113,8 +113,8 @@
|
|
|
113
113
|
{/each}
|
|
114
114
|
<h4 class="CategoryTitle">{$_('Translations.otherCategories')}</h4>
|
|
115
115
|
{#each otherCategories as category}
|
|
116
|
-
<div class="Category {activecategory === category.id ? "Active" : ""}">
|
|
117
|
-
<img
|
|
116
|
+
<div on:click={() => openGameCategory(category.id)} class="Category {activecategory === category.id ? "Active" : ""}">
|
|
117
|
+
<img src={category.icon} alt="{category.name}" class="CategoryImage">
|
|
118
118
|
<div class="CategoryTextContainer">
|
|
119
119
|
<p>{category.name}</p>
|
|
120
120
|
<p>{category.games.count} {$_('Translations.games')}</p>
|