@everymatrix/casino-header-controller 1.44.0 → 1.45.0

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/src/i18n.js DELETED
@@ -1,27 +0,0 @@
1
- import {
2
- dictionary,
3
- locale,
4
- addMessages,
5
- _
6
- } from 'svelte-i18n';
7
-
8
- function setupI18n({ withLocale: _locale, translations }) {
9
- locale.subscribe((data) => {
10
- if (data == null) {
11
- dictionary.set(translations);
12
- locale.set(_locale);
13
- }
14
- }); // maybe we will need this to make sure that the i18n is set up only once
15
- /*dictionary.set(translations);
16
- locale.set(_locale);*/
17
- }
18
-
19
- function addNewMessages(lang, dict) {
20
- addMessages(lang, dict);
21
- }
22
-
23
- function setLocale(_locale) {
24
- locale.set(_locale);
25
- }
26
-
27
- export { _, setupI18n, addNewMessages, setLocale };
Binary file
Binary file
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- import CasinoHeaderController from './CasinoHeaderController.svelte';
2
-
3
- !customElements.get('casino-header-controller') && customElements.define('casino-header-controller', CasinoHeaderController);
4
- export default CasinoHeaderController;
@@ -1,62 +0,0 @@
1
- export const TRANSLATIONS = {
2
- "en": {
3
- "login": "Login",
4
- "register": "Register",
5
- "deposit": "Deposit",
6
- "promotions": "Promotions"
7
- },
8
- "zh-hk": {
9
- "login": "登錄",
10
- "register": "登記",
11
- "deposit": "訂金",
12
- "promotions": "促销活动"
13
- },
14
- "fr": {
15
- "login": "Connexion",
16
- "register": "Enregistrer",
17
- "deposit": "Dépôt",
18
- "promotions": "Promotions"
19
- },
20
- "tr": {
21
- "login": "Giriş",
22
- "register": "Kayıt",
23
- "deposit": "Yatır",
24
- "promotions": "Promosyonlar"
25
- },
26
- "ro": {
27
- "login": "Autentificare",
28
- "register": "Inregistrare",
29
- "deposit": "Depozit",
30
- "promotions": "Promotii"
31
- },
32
- "es": {
33
- "login": "Iniciar sesión",
34
- "register": "Regístrate",
35
- "deposit": "Deposita",
36
- "promotions": "Promociones"
37
- },
38
- "pt": {
39
- "login": "Entrar",
40
- "register": "Registro",
41
- "deposit": "Depósito",
42
- "promotions": "Promoções"
43
- },
44
- "hr": {
45
- "login": "Prijava",
46
- "register": "Registracija",
47
- "deposit": "Uplata",
48
- "promotions": "Promocije"
49
- },
50
- "pt-br": {
51
- "login": "Entrar",
52
- "register": "Registro",
53
- "deposit": "Depósito",
54
- "promotions": "Promoções"
55
- },
56
- "es-mx": {
57
- "login": "Ingresar",
58
- "register": "Registro",
59
- "deposit": "Depósito",
60
- "promotions": "Promociones"
61
- }
62
- }
@@ -1,22 +0,0 @@
1
- // This default export determines where your story goes in the story list
2
- export default {
3
- title: 'Casino/Casino Header Controller',
4
- };
5
-
6
- // 👇 We create a “template” of how args map to rendering
7
- let Template = ({ session, userid }) => {
8
-
9
- return `
10
- <casino-header-controller session=${session} userid=${userid}></casino-header-controller>
11
- <script>
12
-
13
- </script>
14
- `;
15
- };
16
-
17
- export const CasinoHeaderController = Template.bind({});
18
-
19
- CasinoHeaderController.args = {
20
- session: '',
21
- userid: '',
22
- };
package/tsconfig.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "@tsconfig/svelte/tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
6
- }