@everymatrix/player-account-controller 0.0.365 → 0.0.367
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/dist/player-account-controller.js +2 -2
- package/dist/player-account-controller.js.map +1 -1
- package/documentation.md +166 -166
- package/index.html +54 -54
- package/index.js +1 -1
- package/package.json +4 -4
- package/public/reset.css +47 -47
- package/rollup.config.js +67 -67
- package/src/PlayerAccountController.svelte +818 -818
- package/src/i18n.js +27 -27
- package/src/index.ts +4 -4
- package/src/translations.js +74 -74
- package/stories/PlayerAccountPage.stories.js +13 -13
- package/tsconfig.json +6 -6
package/src/i18n.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
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 };
|
|
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 };
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PlayerAccountController from './PlayerAccountController.svelte';
|
|
2
|
-
|
|
3
|
-
!customElements.get('player-account-controller') && customElements.define('player-account-controller', PlayerAccountController);
|
|
4
|
-
export default PlayerAccountController;
|
|
1
|
+
import PlayerAccountController from './PlayerAccountController.svelte';
|
|
2
|
+
|
|
3
|
+
!customElements.get('player-account-controller') && customElements.define('player-account-controller', PlayerAccountController);
|
|
4
|
+
export default PlayerAccountController;
|
package/src/translations.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
export const PlayerAccountControllerTranslations = {
|
|
2
|
-
en: {
|
|
3
|
-
playerAccount: {
|
|
4
|
-
profileUpdateSuccess: 'Profile updated!',
|
|
5
|
-
timeoutSuccess: 'Timeout active',
|
|
6
|
-
selfExclusionSuccess: 'Self exclusion active',
|
|
7
|
-
accountClosureSuccess: 'Account closed',
|
|
8
|
-
limitsUpdateSuccess: 'Limits updated',
|
|
9
|
-
limitsDeleteSuccess: 'Limits deleted',
|
|
10
|
-
passwordChangedSuccess: 'Password changed successfully',
|
|
11
|
-
realityCheckSuccess: 'Reality check options saved'
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
zh: {
|
|
15
|
-
playerAccount: {
|
|
16
|
-
profileUpdateSuccess: '資料更新!',
|
|
17
|
-
timeoutSuccess: '超時有效',
|
|
18
|
-
selfExclusionSuccess: '自我排斥活躍',
|
|
19
|
-
accountClosureSuccess: '賬戶關閉',
|
|
20
|
-
limitsUpdateSuccess: '限制已更新',
|
|
21
|
-
limitsDeleteSuccess: '已刪除限制',
|
|
22
|
-
passwordChangedSuccess: '密碼修改成功',
|
|
23
|
-
realityCheckSuccess: '現實檢查選項已保存'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
fr: {
|
|
27
|
-
playerAccount: {
|
|
28
|
-
profileUpdateSuccess: 'Mise à jour du profil!',
|
|
29
|
-
timeoutSuccess: 'Délai d\'attente actif',
|
|
30
|
-
selfExclusionSuccess: 'Auto exclusion active',
|
|
31
|
-
accountClosureSuccess: 'Compte fermé',
|
|
32
|
-
limitsUpdateSuccess: 'Limites des mises à jour',
|
|
33
|
-
limitsDeleteSuccess: 'Limites supprimées',
|
|
34
|
-
passwordChangedSuccess: 'Le mot de passe a été modifié avec succés',
|
|
35
|
-
realityCheckSuccess: 'Options de contrôle de la réalité sauvegardées'
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
ro: {
|
|
39
|
-
playerAccount: {
|
|
40
|
-
profileUpdateSuccess: 'Profil updatat!',
|
|
41
|
-
timeoutSuccess: 'Timeout activ',
|
|
42
|
-
selfExclusionSuccess: 'Auto-excludere activa',
|
|
43
|
-
accountClosureSuccess: 'Cont inchis',
|
|
44
|
-
limitsUpdateSuccess: 'Limite updatate',
|
|
45
|
-
limitsDeleteSuccess: 'Limite sterse',
|
|
46
|
-
passwordChangedSuccess: 'Parola schimbata cu success',
|
|
47
|
-
realityCheckSuccess: 'Optiunile de verificare de timp salvate'
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
es: {
|
|
51
|
-
playerAccount: {
|
|
52
|
-
profileUpdateSuccess: 'Perfil actualizado!',
|
|
53
|
-
timeoutSuccess: 'Tiempo límite activo',
|
|
54
|
-
selfExclusionSuccess: 'Autoexclusión activa.',
|
|
55
|
-
accountClosureSuccess: 'Cuenta cerrada',
|
|
56
|
-
limitsUpdateSuccess: 'Límites actualizados',
|
|
57
|
-
limitsDeleteSuccess: 'Límites excluidos',
|
|
58
|
-
passwordChangedSuccess: 'Contraseña cambiada con éxito',
|
|
59
|
-
realityCheckSuccess: 'Opciones de verificación de la realidad guardadas'
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
pt: {
|
|
63
|
-
playerAccount: {
|
|
64
|
-
profileUpdateSuccess: 'Perfil atualizado!',
|
|
65
|
-
timeoutSuccess: 'Tempo Limite ativo',
|
|
66
|
-
selfExclusionSuccess: 'Autoexclusão ativa',
|
|
67
|
-
accountClosureSuccess: 'Conta encerrada',
|
|
68
|
-
limitsUpdateSuccess: 'Limites atualizados',
|
|
69
|
-
limitsDeleteSuccess: 'Limites excluídos',
|
|
70
|
-
passwordChangedSuccess: 'Senha alterada com sucesso',
|
|
71
|
-
realityCheckSuccess: 'Opções de verificação de realidade salvas'
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
};
|
|
1
|
+
export const PlayerAccountControllerTranslations = {
|
|
2
|
+
en: {
|
|
3
|
+
playerAccount: {
|
|
4
|
+
profileUpdateSuccess: 'Profile updated!',
|
|
5
|
+
timeoutSuccess: 'Timeout active',
|
|
6
|
+
selfExclusionSuccess: 'Self exclusion active',
|
|
7
|
+
accountClosureSuccess: 'Account closed',
|
|
8
|
+
limitsUpdateSuccess: 'Limits updated',
|
|
9
|
+
limitsDeleteSuccess: 'Limits deleted',
|
|
10
|
+
passwordChangedSuccess: 'Password changed successfully',
|
|
11
|
+
realityCheckSuccess: 'Reality check options saved'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
zh: {
|
|
15
|
+
playerAccount: {
|
|
16
|
+
profileUpdateSuccess: '資料更新!',
|
|
17
|
+
timeoutSuccess: '超時有效',
|
|
18
|
+
selfExclusionSuccess: '自我排斥活躍',
|
|
19
|
+
accountClosureSuccess: '賬戶關閉',
|
|
20
|
+
limitsUpdateSuccess: '限制已更新',
|
|
21
|
+
limitsDeleteSuccess: '已刪除限制',
|
|
22
|
+
passwordChangedSuccess: '密碼修改成功',
|
|
23
|
+
realityCheckSuccess: '現實檢查選項已保存'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
fr: {
|
|
27
|
+
playerAccount: {
|
|
28
|
+
profileUpdateSuccess: 'Mise à jour du profil!',
|
|
29
|
+
timeoutSuccess: 'Délai d\'attente actif',
|
|
30
|
+
selfExclusionSuccess: 'Auto exclusion active',
|
|
31
|
+
accountClosureSuccess: 'Compte fermé',
|
|
32
|
+
limitsUpdateSuccess: 'Limites des mises à jour',
|
|
33
|
+
limitsDeleteSuccess: 'Limites supprimées',
|
|
34
|
+
passwordChangedSuccess: 'Le mot de passe a été modifié avec succés',
|
|
35
|
+
realityCheckSuccess: 'Options de contrôle de la réalité sauvegardées'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
ro: {
|
|
39
|
+
playerAccount: {
|
|
40
|
+
profileUpdateSuccess: 'Profil updatat!',
|
|
41
|
+
timeoutSuccess: 'Timeout activ',
|
|
42
|
+
selfExclusionSuccess: 'Auto-excludere activa',
|
|
43
|
+
accountClosureSuccess: 'Cont inchis',
|
|
44
|
+
limitsUpdateSuccess: 'Limite updatate',
|
|
45
|
+
limitsDeleteSuccess: 'Limite sterse',
|
|
46
|
+
passwordChangedSuccess: 'Parola schimbata cu success',
|
|
47
|
+
realityCheckSuccess: 'Optiunile de verificare de timp salvate'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
es: {
|
|
51
|
+
playerAccount: {
|
|
52
|
+
profileUpdateSuccess: 'Perfil actualizado!',
|
|
53
|
+
timeoutSuccess: 'Tiempo límite activo',
|
|
54
|
+
selfExclusionSuccess: 'Autoexclusión activa.',
|
|
55
|
+
accountClosureSuccess: 'Cuenta cerrada',
|
|
56
|
+
limitsUpdateSuccess: 'Límites actualizados',
|
|
57
|
+
limitsDeleteSuccess: 'Límites excluidos',
|
|
58
|
+
passwordChangedSuccess: 'Contraseña cambiada con éxito',
|
|
59
|
+
realityCheckSuccess: 'Opciones de verificación de la realidad guardadas'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
pt: {
|
|
63
|
+
playerAccount: {
|
|
64
|
+
profileUpdateSuccess: 'Perfil atualizado!',
|
|
65
|
+
timeoutSuccess: 'Tempo Limite ativo',
|
|
66
|
+
selfExclusionSuccess: 'Autoexclusão ativa',
|
|
67
|
+
accountClosureSuccess: 'Conta encerrada',
|
|
68
|
+
limitsUpdateSuccess: 'Limites atualizados',
|
|
69
|
+
limitsDeleteSuccess: 'Limites excluídos',
|
|
70
|
+
passwordChangedSuccess: 'Senha alterada com sucesso',
|
|
71
|
+
realityCheckSuccess: 'Opções de verificação de realidade salvas'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import PlayerAccountController from '../src/PlayerAccountController';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'PlayerAccountController',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const PlayerAccountController = ({ aProperty }) => html`<player-account-controller></player-account-controller>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = PlayerAccountController.bind({});
|
|
1
|
+
import { html } from 'lit-element';
|
|
2
|
+
|
|
3
|
+
import PlayerAccountController from '../src/PlayerAccountController';
|
|
4
|
+
|
|
5
|
+
// This default export determines where your story goes in the story list
|
|
6
|
+
export default {
|
|
7
|
+
title: 'PlayerAccountController',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// 👇 We create a “template” of how args map to rendering
|
|
11
|
+
const PlayerAccountController = ({ aProperty }) => html`<player-account-controller></player-account-controller>`;
|
|
12
|
+
|
|
13
|
+
export const FirstStory = PlayerAccountController.bind({});
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
|
-
|
|
4
|
-
"include": ["src/**/*"],
|
|
5
|
-
"exclude": ["node_modules/*", "__sapper__/*", "public/*"]
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
|
+
|
|
4
|
+
"include": ["src/**/*"],
|
|
5
|
+
"exclude": ["node_modules/*", "__sapper__/*", "public/*"]
|
|
6
|
+
}
|