@everymatrix/casino-header-controller 1.0.16 → 1.0.69

Sign up to get free protection for your applications and to get access to all the features.
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,72 +0,0 @@
1
- export const CasinoHeaderController = {
2
- en: {
3
- headerItem: {
4
- login: 'Login',
5
- register: 'Register',
6
- deposit: 'Deposit',
7
- },
8
- fallbackSecondaryMenu: {
9
- promotions: 'Promotions',
10
- }
11
- },
12
- zh: {
13
- headerItem: {
14
- login: '登錄',
15
- register: '登記',
16
- deposit: '訂金',
17
- },
18
- fallbackSecondaryMenu: {
19
- promotions: '促销活动',
20
- }
21
- },
22
- fr: {
23
- headerItem: {
24
- login: 'Connexion',
25
- register: 'Enregistrer',
26
- deposit: 'Dépôt',
27
- },
28
- fallbackSecondaryMenu: {
29
- promotions: 'Promotions',
30
- }
31
- },
32
- tr: {
33
- headerItem: {
34
- login: 'Giriş yapmak',
35
- register: 'Kayıt olmak',
36
- deposit: 'Depozito',
37
- },
38
- fallbackSecondaryMenu: {
39
- promotions: 'Promosyonlar',
40
- }
41
- },
42
- ro: {
43
- headerItem: {
44
- login: 'Autentificare',
45
- register: 'Inregistrare',
46
- deposit: 'Depozit',
47
- },
48
- fallbackSecondaryMenu: {
49
- promotions: 'Promotii',
50
- }
51
- },
52
- es: {
53
- headerItem: {
54
- login: 'Iniciar sesión',
55
- register: 'Registro',
56
- deposit: 'Depósito',
57
- },
58
- fallbackSecondaryMenu: {
59
- promotions: 'Promociones',
60
- }
61
- },
62
- pt: {
63
- headerItem: {
64
- login: 'Entrar',
65
- register: 'Registro',
66
- deposit: 'Depósito',
67
- },
68
- fallbackSecondaryMenu: {
69
- promotions: 'Promoções',
70
- }
71
- },
72
- };
@@ -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
- }