diff --git a/package-lock.json b/package-lock.json index d2f2314..41c0ed6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,9 +27,11 @@ "@taiga-ui/addon-table": "^5.1.0", "@taiga-ui/cdk": "^5.1.0", "@taiga-ui/core": "^5.1.0", + "@taiga-ui/i18n": "^5.2.0", "@taiga-ui/icons": "^5.1.0", "@taiga-ui/kit": "^5.1.0", "@taiga-ui/layout": "^5.1.0", + "libphonenumber-js": "^1.12.41", "ngx-cookie-service": "^21.3.1", "rxjs": "~7.8.0", "tslib": "^2.3.0", @@ -4384,11 +4386,10 @@ "peer": true }, "node_modules/@taiga-ui/i18n": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@taiga-ui/i18n/-/i18n-5.1.0.tgz", - "integrity": "sha512-NqCo1fK95w6aXHkvIZ3aqZOA2z+CnvD/eEEXZjbCs/Ik6QfWmGP8GbS5uwb7SzqNZz9QiVaJi5RNZtoInHf/tQ==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/i18n/-/i18n-5.2.0.tgz", + "integrity": "sha512-dyjp5hqDR272EPX+aQVtCXKiFKEUggdf1Y/Gcdt4JGZ0WqYR5n5CjP1EoKRG3GQcgd1mCSXnAt2BQJpujGcaHw==", "license": "Apache-2.0", - "peer": true, "dependencies": { "tslib": ">=2.8.1" }, @@ -7061,8 +7062,7 @@ "version": "1.12.41", "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.41.tgz", "integrity": "sha512-lsmMmGXBxXIK/VMLEj0kL6MtUs1kBGj1nTCzi6zgQoG1DEwqwt2DQyHxcLykceIxAnfE3hya7NuIh6PpC6S3fA==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/listr2": { "version": "9.0.5", diff --git a/package.json b/package.json index c752562..6c32e8d 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,11 @@ "@taiga-ui/addon-table": "^5.1.0", "@taiga-ui/cdk": "^5.1.0", "@taiga-ui/core": "^5.1.0", + "@taiga-ui/i18n": "^5.2.0", "@taiga-ui/icons": "^5.1.0", "@taiga-ui/kit": "^5.1.0", "@taiga-ui/layout": "^5.1.0", + "libphonenumber-js": "^1.12.41", "ngx-cookie-service": "^21.3.1", "rxjs": "~7.8.0", "tslib": "^2.3.0", diff --git a/public/i18n/en.json b/public/i18n/en.json index 3762487..c5ebb78 100644 --- a/public/i18n/en.json +++ b/public/i18n/en.json @@ -1,5 +1,5 @@ { - "version": "Chatenium Nexum 3.0 Beta 8 (April 17, 2026)", + "version": "Chatenium Nexum 3.0 Beta 9 (April 19, 2026)", "ok": "Ok", "back": "Back", "aChatProgram": "A messaging platform that you can trust.", @@ -111,6 +111,7 @@ "label": "Change password", "labelSet": "Set password", "labelRemove": "Remove password", + "warn": "After you change your password, you will be logged out of all your sessions.", "currentPassword": "Current password", "newPassword": "New password", "newPasswordRepeat": "Repeat new password" @@ -119,11 +120,22 @@ "label": "Change e-mail address", "labelSet": "Set e-mail address", "labelRemove": "Remove e-mail address", + "warn": "After you change your e-mail address, you will be logged out of all your sessions.", "newMail": "New e-mail address", "currentPassword": "Current password", "oldCode": "Code sent to the old e-mail address", "newCode": "Code sent to the new e-mail address" }, + "changePhoneDialog": { + "label": "Change phone number", + "labelSet": "Set phone number", + "labelRemove": "Remove phone number", + "warn": "After you change your phone number, you will be logged out of all your sessions.", + "newPhone": "New phone number", + "currentPassword": "Current password", + "oldCode": "Code sent to the old phone number", + "newCode": "Code sent to the new phone number" + }, "label": "Keep your account safe by using as much sign in methods as possible. Also check your credentials regularly to keep them up to date.", "password": "Password", "set": "Set", @@ -206,12 +218,8 @@ "changeLogDialog": { "label": "Chatenium has been updated", "changeLog": { - "1": "Optimized the loading of chats and networks", - "2": "Added skeleton loaders for messages inside DMs and channels", - "3": "Added tabs in networks", - "4": "Added option to edit network name", - "5": "Added option to change network visibility", - "6": "Fixed overflow issues in the mobile UI" + "1": "Started implementing user settings, Privacy & Security is now available.", + "2": "Enabled Chatenium Pictures on mobile devices." } }, "chatnav": { diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 90601d0..05a61f8 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -6,6 +6,8 @@ import {routes} from './app.routes'; import {provideTranslateService} from '@ngx-translate/core'; import {provideTranslateHttpLoader} from '@ngx-translate/http-loader'; import {provideServiceWorker} from '@angular/service-worker'; +import {tuiInputPhoneInternationalOptionsProvider} from '@taiga-ui/kit'; +import {defer} from 'rxjs'; export const appConfig: ApplicationConfig = { providers: [ @@ -25,6 +27,11 @@ export const appConfig: ApplicationConfig = { provideServiceWorker('ngsw-worker.js', { enabled: !isDevMode(), registrationStrategy: 'registerWhenStable:30000' - }) + }), + tuiInputPhoneInternationalOptionsProvider({ + metadata: defer(async () => + import('libphonenumber-js/max/metadata').then((m) => m.default), + ), + }), ], }; diff --git a/src/app/chat/chat.html b/src/app/chat/chat.html index 9f4dc77..55723bf 100644 --- a/src/app/chat/chat.html +++ b/src/app/chat/chat.html @@ -4,10 +4,6 @@