From ef5b8ee9d841ba6c712c0d37ac39ae762e520279 Mon Sep 17 00:00:00 2001 From: Denis Bunakalya Date: Tue, 25 Apr 2023 18:28:25 +0300 Subject: [PATCH] tsk-1307 Add skype contact (#3074) Signed-off-by: Denis Bunakalya --- models/contact/src/index.ts | 11 +++++++++++ models/contact/src/plugin.ts | 2 ++ plugins/contact-assets/assets/icons.svg | 3 +++ plugins/contact-assets/lang/en.json | 2 ++ plugins/contact-assets/lang/ru.json | 2 ++ plugins/contact-assets/src/index.ts | 1 + plugins/contact/src/index.ts | 2 ++ 7 files changed, 23 insertions(+) diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index 0724db5113..1c8e9a5749 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -450,6 +450,17 @@ export function createModel (builder: Builder): void { contact.channelProvider.Whatsapp ) + builder.createDoc( + contact.class.ChannelProvider, + core.space.Model, + { + label: contact.string.Skype, + icon: contact.icon.Skype, + placeholder: contact.string.SkypePlaceholder + }, + contact.channelProvider.Skype + ) + builder.createDoc( contact.class.ChannelProvider, core.space.Model, diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts index ff424b5bd9..9c85c98fd4 100644 --- a/models/contact/src/plugin.ts +++ b/models/contact/src/plugin.ts @@ -80,6 +80,8 @@ export default mergeIds(contactId, contact, { CreatedOn: '' as IntlString, Whatsapp: '' as IntlString, WhatsappPlaceholder: '' as IntlString, + Skype: '' as IntlString, + SkypePlaceholder: '' as IntlString, Profile: '' as IntlString, ProfilePlaceholder: '' as IntlString, diff --git a/plugins/contact-assets/assets/icons.svg b/plugins/contact-assets/assets/icons.svg index f1418ca9cd..73fb7c2946 100644 --- a/plugins/contact-assets/assets/icons.svg +++ b/plugins/contact-assets/assets/icons.svg @@ -42,6 +42,9 @@ + + + diff --git a/plugins/contact-assets/lang/en.json b/plugins/contact-assets/lang/en.json index c351795b49..b47f2cd5b3 100644 --- a/plugins/contact-assets/lang/en.json +++ b/plugins/contact-assets/lang/en.json @@ -74,6 +74,8 @@ "CreatedOn": "Created", "Whatsapp": "Whatsapp", "WhatsappPlaceholder": "Whatsapp", + "Skype": "Skype", + "SkypePlaceholder": "Skype", "Profile": "Profile", "ProfilePlaceholder": "Profile...", "CurrentEmployee": "Current employee", diff --git a/plugins/contact-assets/lang/ru.json b/plugins/contact-assets/lang/ru.json index 17bb87c4a8..b708002f5c 100644 --- a/plugins/contact-assets/lang/ru.json +++ b/plugins/contact-assets/lang/ru.json @@ -75,6 +75,8 @@ "CreatedOn": "Создан", "Whatsapp": "Whatsapp", "WhatsappPlaceholder": "Whatsapp", + "Skype": "Skype", + "SkypePlaceholder": "Skype", "Profile": "Профиль", "ProfilePlaceholder": "Профиль...", "CurrentEmployee": "Текущий сотрудник", diff --git a/plugins/contact-assets/src/index.ts b/plugins/contact-assets/src/index.ts index 0119ed3e9b..35af2d2265 100644 --- a/plugins/contact-assets/src/index.ts +++ b/plugins/contact-assets/src/index.ts @@ -29,6 +29,7 @@ loadMetadata(contact.icon, { Twitter: `${icons}#twitter`, VK: `${icons}#vk`, WhatsApp: `${icons}#whatsapp`, + Skype: `${icons}#skype`, Youtube: `${icons}#youtube`, GitHub: `${icons}#github`, Edit: `${icons}#edit`, diff --git a/plugins/contact/src/index.ts b/plugins/contact/src/index.ts index 50b956042c..3b86debb8b 100644 --- a/plugins/contact/src/index.ts +++ b/plugins/contact/src/index.ts @@ -208,6 +208,7 @@ export const contactPlugin = plugin(contactId, { Facebook: '' as Ref, Homepage: '' as Ref, Whatsapp: '' as Ref, + Skype: '' as Ref, Profile: '' as Ref }, avatarProvider: { @@ -232,6 +233,7 @@ export const contactPlugin = plugin(contactId, { Twitter: '' as Asset, VK: '' as Asset, WhatsApp: '' as Asset, + Skype: '' as Asset, Youtube: '' as Asset, GitHub: '' as Asset, Edit: '' as Asset,