@everymatrix/player-profile-info 1.0.16 → 1.0.70
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/components/PlayerProfileInfo-83DrdGCI.js +5954 -0
- package/components/PlayerProfileInfo-ggqx1XKl.cjs +5 -0
- package/es2015/player-profile-info.cjs +1 -0
- package/es2015/player-profile-info.js +16 -0
- package/package.json +15 -34
- package/README.md +0 -30
- package/dist/player-profile-info.js +0 -2
- package/dist/player-profile-info.js.map +0 -1
- package/index.html +0 -37
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/PlayerProfileInfo.svelte +0 -980
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -236
- package/stories/PlayerProfileInfo.stories.js +0 -13
- package/tsconfig.json +0 -6
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 };
|
package/src/index.ts
DELETED
package/src/translations.js
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
export const PlayerProfileTranslations = {
|
|
2
|
-
en: {
|
|
3
|
-
playerProfile: {
|
|
4
|
-
title: `Profile Info`,
|
|
5
|
-
personalDetails: `Personal Details`,
|
|
6
|
-
userName: `Username:`,
|
|
7
|
-
userPhone: `Phone:`,
|
|
8
|
-
userPhoneError: 'Mobile must be at least 5 character long and 20 characters maximum.',
|
|
9
|
-
userEmail: `Email:`,
|
|
10
|
-
securityQuestion: `Security Question:`,
|
|
11
|
-
securityQuestionError: 'Security question must be at least 1 character long and maximum 120 characters.',
|
|
12
|
-
firstName: `First Name:`,
|
|
13
|
-
securityAnswer: `Security Answer:`,
|
|
14
|
-
securityAnswerError: 'Security answer must be at least 1 character long and maximum 120 characters.',
|
|
15
|
-
lastName: `Last Name:`,
|
|
16
|
-
dateOfBirth: `Date of Birth:`,
|
|
17
|
-
currency: `Currency:`,
|
|
18
|
-
userTitle: `Title:`,
|
|
19
|
-
locationDetails: `Location Details`,
|
|
20
|
-
userCountry: `Country:`,
|
|
21
|
-
userCity: `City:`,
|
|
22
|
-
userCityError: 'City must be at least 1 character long and 50 characters maximum.',
|
|
23
|
-
userAddress: `Address:`,
|
|
24
|
-
userAddressError: 'Address must be at least 1 character long and 100 characters maximum.',
|
|
25
|
-
userPostalCode: `Postal Code:`,
|
|
26
|
-
userPostalCodeError: 'Postal Code must be at least 1 character long and 20 characters maximum.',
|
|
27
|
-
userNotifications: `Notifications`,
|
|
28
|
-
userAppSettings: `Biometrics`,
|
|
29
|
-
userSMSNotification: `Enable SMS notifications`,
|
|
30
|
-
userBiometrics: `Enable biometrics`,
|
|
31
|
-
userEmailNotification: `Enable Emails`,
|
|
32
|
-
userProfileSaveChanges: `Save Changes`,
|
|
33
|
-
userProfileConfirmationMessage: `Your changes have been saved!`
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
zh: {
|
|
37
|
-
playerProfile: {
|
|
38
|
-
title: `資料信息`,
|
|
39
|
-
personalDetails: `個人資料`,
|
|
40
|
-
userName: `用戶名:`,
|
|
41
|
-
userPhone: `電話:`,
|
|
42
|
-
userPhoneError: '移動設備的長度必須至少為 5 個字符,最多 20 個字符。',
|
|
43
|
-
userEmail: `電子郵件:`,
|
|
44
|
-
securityQuestion: `安全問題:`,
|
|
45
|
-
securityQuestionError: '安全問題的長度必須至少為 1 個字符,最多 120 個字符。',
|
|
46
|
-
firstName: `名:`,
|
|
47
|
-
securityAnswer: `安全答案:`,
|
|
48
|
-
securityAnswerError: '安全答案的長度必須至少為 1 個字符,最多為 120 個字符。',
|
|
49
|
-
lastName: `姓:`,
|
|
50
|
-
dateOfBirth: `出生日期:`,
|
|
51
|
-
currency: `貨幣:`,
|
|
52
|
-
userTitle: `標題:`,
|
|
53
|
-
locationDetails: `位置詳情`,
|
|
54
|
-
userCountry: `國家:`,
|
|
55
|
-
userCity: `城市:`,
|
|
56
|
-
userCityError: '城市必須至少 1 個字符長,最多 50 個字符。',
|
|
57
|
-
userAddress: `地址:`,
|
|
58
|
-
userAddressError: '地址必須至少 1 個字符長,最多 100 個字符。',
|
|
59
|
-
userPostalCode: `郵政編碼:`,
|
|
60
|
-
userPostalCodeError: '郵政編碼必須至少 1 個字符長,最多 20 個字符。',
|
|
61
|
-
userNotifications: `通知`,
|
|
62
|
-
userAppSettings: `生物识别`,
|
|
63
|
-
userSMSNotification: `啟用短信通知`,
|
|
64
|
-
userBiometrics: `启用生物识别`,
|
|
65
|
-
userEmailNotification: `啟用電子郵件`,
|
|
66
|
-
userProfileSaveChanges: `保存更改`,
|
|
67
|
-
userProfileConfirmationMessage: `你的修改已被保存!`
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
fr: {
|
|
71
|
-
playerProfile: {
|
|
72
|
-
title: `Information sur le profil`,
|
|
73
|
-
personalDetails: `Détail personnel`,
|
|
74
|
-
userName: `Nom d'utilisateur:`,
|
|
75
|
-
userPhone: `Téléphone:`,
|
|
76
|
-
userPhoneError: 'Le mobile doit comporter au moins 5 caractères et 20 caractères maximum.',
|
|
77
|
-
userEmail: `Email:`,
|
|
78
|
-
securityQuestion: `Questions de sécurité:`,
|
|
79
|
-
securityQuestionError: 'La question de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.',
|
|
80
|
-
firstName: `Prénom:`,
|
|
81
|
-
securityAnswer: `Reponses de sécurité:`,
|
|
82
|
-
securityAnswerError: 'La réponse de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.',
|
|
83
|
-
lastName: `Nom de famille:`,
|
|
84
|
-
dateOfBirth: `Date de naissance:`,
|
|
85
|
-
currency: `Monnaie:`,
|
|
86
|
-
userTitle: `Titre:`,
|
|
87
|
-
locationDetails: `Détails de l'emplacement`,
|
|
88
|
-
userCountry: `Pays:`,
|
|
89
|
-
userCity: `Ville:`,
|
|
90
|
-
userCityError: 'La ville doit comporter au moins 1 caractère et 50 caractères au maximum.',
|
|
91
|
-
userAddress: `Adresse:`,
|
|
92
|
-
userAddressError: 'L\'adresse doit comporter au moins 1 caractère et 100 caractères au maximum.',
|
|
93
|
-
userPostalCode: `Code postal:`,
|
|
94
|
-
userPostalCodeError: 'Le code postal doit comporter au moins 1 caractère et 20 caractères au maximum.',
|
|
95
|
-
userNotifications: `Notifications`,
|
|
96
|
-
userAppSettings: `Biométrie`,
|
|
97
|
-
userSMSNotification: `Activer les notifications par sms`,
|
|
98
|
-
userBiometrics: `Activer la biométrie`,
|
|
99
|
-
userEmailNotification: `Activer les e-mails`,
|
|
100
|
-
userProfileSaveChanges: `Sauvegarder les changements`,
|
|
101
|
-
userProfileConfirmationMessage: `Vos modifications ont été enregistrées!`
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
ro: {
|
|
105
|
-
playerProfile: {
|
|
106
|
-
title: `Informații profil`,
|
|
107
|
-
personalDetails: `Detalii Personale`,
|
|
108
|
-
userName: `Nume utilizator:`,
|
|
109
|
-
userPhone: `Telefon:`,
|
|
110
|
-
userPhoneError: 'Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 20 de caractere.',
|
|
111
|
-
userEmail: `E-mail:`,
|
|
112
|
-
securityQuestion: `Întrebare securitate:`,
|
|
113
|
-
securityQuestionError: 'Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.',
|
|
114
|
-
firstName: `Prenume:`,
|
|
115
|
-
securityAnswer: `Răspuns securitate:`,
|
|
116
|
-
securityAnswerError: 'Raspunsul de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.',
|
|
117
|
-
lastName: `Nume:`,
|
|
118
|
-
dateOfBirth: `Data nașterii:`,
|
|
119
|
-
currency: `Monedă:`,
|
|
120
|
-
userTitle: `Titlu:`,
|
|
121
|
-
locationDetails: `Detalii de Localizare`,
|
|
122
|
-
userCountry: `Țară:`,
|
|
123
|
-
userCityError: 'Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.',
|
|
124
|
-
userCity: `Oraș:`,
|
|
125
|
-
userAddress: `Adresă:`,
|
|
126
|
-
userAddressError: 'Adresa trebuie sa fie cuprinsa intre 1 si 100 de caractere.',
|
|
127
|
-
userPostalCode: `Cod poștal:`,
|
|
128
|
-
userPostalCodeError: 'Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.',
|
|
129
|
-
userNotifications: `Notificări`,
|
|
130
|
-
userSMSNotification: `Activează notificări prin SMS`,
|
|
131
|
-
userEmailNotification: `Activează notificări prin E-mail`,
|
|
132
|
-
userProfileSaveChanges: `Salvează`,
|
|
133
|
-
userProfileConfirmationMessage: `Modificările au fost salvate!`
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
tr: {
|
|
137
|
-
playerProfile: {
|
|
138
|
-
title: `Profil bilgisi`,
|
|
139
|
-
personalDetails: `Kişisel detaylar`,
|
|
140
|
-
userName: `Kullanıcı adı:`,
|
|
141
|
-
userPhone: `Telefon:`,
|
|
142
|
-
userPhoneError: 'Mobil en az 5 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.',
|
|
143
|
-
userEmail: `E-posta:`,
|
|
144
|
-
securityQuestion: `Güvenlik Sorusu:`,
|
|
145
|
-
securityQuestionError: 'Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.',
|
|
146
|
-
firstName: `İlk adı:`,
|
|
147
|
-
securityAnswer: `Güvenlik cevabı`,
|
|
148
|
-
securityAnswerError: 'Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.',
|
|
149
|
-
lastName: `Soyadı:`,
|
|
150
|
-
dateOfBirth: `Doğum tarihi:`,
|
|
151
|
-
currency: `Para birimi:`,
|
|
152
|
-
userTitle: `Başlık:`,
|
|
153
|
-
locationDetails: `Konum Ayrıntıları`,
|
|
154
|
-
userCountry: `Ülke:`,
|
|
155
|
-
userCity: `Şehir:`,
|
|
156
|
-
userCityError: 'Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.',
|
|
157
|
-
userAddress: `Adres:`,
|
|
158
|
-
userAddressError: 'Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.',
|
|
159
|
-
userPostalCode: `Posta kodu:`,
|
|
160
|
-
userPostalCodeError: 'Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.',
|
|
161
|
-
userNotifications: `Bildirimler`,
|
|
162
|
-
userSMSNotification: `SMS bildirimlerini etkinleştir`,
|
|
163
|
-
userEmailNotification: `E-postaları Etkinleştir`,
|
|
164
|
-
userProfileSaveChanges: `Değişiklikleri Kaydet`,
|
|
165
|
-
userProfileConfirmationMessage: `Değişiklikleriniz kaydedildi!`
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
es: {
|
|
169
|
-
playerProfile: {
|
|
170
|
-
title: `Información del perfil`,
|
|
171
|
-
personalDetails: `Detalles personales`,
|
|
172
|
-
userName: `Nombre de usuario:`,
|
|
173
|
-
userPhone: `Móvil:`,
|
|
174
|
-
userPhoneError: 'El móvil debe tener al menos 5 caracteres y un máximo de 20 caracteres.',
|
|
175
|
-
userEmail: `E-mail:`,
|
|
176
|
-
securityQuestion: `Pregunta de seguridad:`,
|
|
177
|
-
securityQuestionError: 'La pregunta de seguridad debe tener al menos 1 carácter y un máximo de 120 caracteres.',
|
|
178
|
-
firstName: `Primer nombre:`,
|
|
179
|
-
securityAnswer: `Respuesta de seguridad:`,
|
|
180
|
-
securityAnswerError: 'La respuesta de seguridad debe tener al menos 1 carácter y un máximo de 120 caracteres.',
|
|
181
|
-
lastName: `Ultimo nombre:`,
|
|
182
|
-
dateOfBirth: `Fecha de nacimiento:`,
|
|
183
|
-
currency: `Moneda:`,
|
|
184
|
-
userTitle: `Título:`,
|
|
185
|
-
locationDetails: `Detalles de ubicación`,
|
|
186
|
-
userCountry: `País:`,
|
|
187
|
-
userCity: `Ciudad:`,
|
|
188
|
-
userCityError: 'La ciudad debe tener al menos 1 carácter de largo y 50 caracteres como máximo.',
|
|
189
|
-
userAddress: `Código Postal`,
|
|
190
|
-
userAddressError: 'La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.',
|
|
191
|
-
userPostalCode: `Postal Code:`,
|
|
192
|
-
userPostalCodeError: 'El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.',
|
|
193
|
-
userNotifications: `Notificaciones`,
|
|
194
|
-
userAppSettings: `Biometrics`,
|
|
195
|
-
userSMSNotification: `Habilitar notificaciones SMS`,
|
|
196
|
-
userBiometrics: `Habilitar datos biométricos.`,
|
|
197
|
-
userEmailNotification: `Habilitar notificaciones por e-mail`,
|
|
198
|
-
userProfileSaveChanges: `Guardar ediciones`,
|
|
199
|
-
userProfileConfirmationMessage: `Se han guardado los cambios!`
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
pt: {
|
|
203
|
-
playerProfile: {
|
|
204
|
-
title: `Informações do perfil`,
|
|
205
|
-
personalDetails: `Detalhes pessoais`,
|
|
206
|
-
userName: `Nome do usuário:`,
|
|
207
|
-
userPhone: `Celular:`,
|
|
208
|
-
userPhoneError: 'O celular deve ter pelo menos 5 caracteres e no máximo 20 caracteres.',
|
|
209
|
-
userEmail: `E-mail:`,
|
|
210
|
-
securityQuestion: `Pergunta de segurança:`,
|
|
211
|
-
securityQuestionError: 'A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.',
|
|
212
|
-
firstName: `Primeiro nome:`,
|
|
213
|
-
securityAnswer: `Resposta de segurança:`,
|
|
214
|
-
securityAnswerError: 'A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.',
|
|
215
|
-
lastName: `Último nome:`,
|
|
216
|
-
dateOfBirth: `Data de nascimento:`,
|
|
217
|
-
currency: `Moeda:`,
|
|
218
|
-
userTitle: `Título:`,
|
|
219
|
-
locationDetails: `Detalhes do local`,
|
|
220
|
-
userCountry: `País:`,
|
|
221
|
-
userCity: `Cidade:`,
|
|
222
|
-
userCityError: 'A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.',
|
|
223
|
-
userAddress: `Endereço:`,
|
|
224
|
-
userAddressError: 'Address must be at least 1 character long and 100 characters maximum.',
|
|
225
|
-
userPostalCode: `CEP:`,
|
|
226
|
-
userPostalCodeError: 'O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres.',
|
|
227
|
-
userNotifications: `Notificações`,
|
|
228
|
-
userAppSettings: `Biometrics`,
|
|
229
|
-
userSMSNotification: `Ativar notificações por SMS`,
|
|
230
|
-
userBiometrics: `Ativar biometria.`,
|
|
231
|
-
userEmailNotification: `Ativar notificações por e-mail`,
|
|
232
|
-
userProfileSaveChanges: `Salvar alterações`,
|
|
233
|
-
userProfileConfirmationMessage: `Suas alterações foram salvas!`
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import PlayerProfileInfo from '../src/PlayerProfileInfo';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'PlayerProfileInfo',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const PlayerProfileInfo = ({ aProperty }) => html`<player-profile-info></player-profile-info>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = PlayerProfileInfo.bind({});
|