tsk-1307 Add skype contact (#3074)

Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
Denis Bunakalya 2023-04-25 18:28:25 +03:00 committed by GitHub
parent c0adc676e5
commit ef5b8ee9d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 23 additions and 0 deletions

View File

@ -450,6 +450,17 @@ export function createModel (builder: Builder): void {
contact.channelProvider.Whatsapp 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( builder.createDoc(
contact.class.ChannelProvider, contact.class.ChannelProvider,
core.space.Model, core.space.Model,

View File

@ -80,6 +80,8 @@ export default mergeIds(contactId, contact, {
CreatedOn: '' as IntlString, CreatedOn: '' as IntlString,
Whatsapp: '' as IntlString, Whatsapp: '' as IntlString,
WhatsappPlaceholder: '' as IntlString, WhatsappPlaceholder: '' as IntlString,
Skype: '' as IntlString,
SkypePlaceholder: '' as IntlString,
Profile: '' as IntlString, Profile: '' as IntlString,
ProfilePlaceholder: '' as IntlString, ProfilePlaceholder: '' as IntlString,

View File

@ -42,6 +42,9 @@
<path d="M4.9,3.9C4.8,3.7,4.6,3.7,4.4,3.7c-0.3,0-0.8,0.4-0.8,1c0,0.5,0.2,1.1,1,2C5.5,7.6,6.5,8,7.4,8c0.8,0,1-0.7,1-1 c0-0.1-0.1-0.2-0.1-0.2C8,6.7,7.4,6.5,7.3,6.4c-0.1,0-0.2,0-0.2,0.1C7,6.6,6.8,6.9,6.7,7C6.6,7,6.5,7,6.5,7c-0.2-0.1-0.6-0.3-1-0.6 C5,5.9,5,5.7,4.9,5.6c-0.1-0.1,0-0.2,0-0.2C5,5.3,5.1,5.1,5.2,5c0.1-0.1,0-0.2,0-0.3C5.1,4.4,5,4.1,4.9,3.9z"/> <path d="M4.9,3.9C4.8,3.7,4.6,3.7,4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-9.81 5.25 5.25 0 0 1 7.09-7.09 8.5 8.5 0 0 1 9.71 9.71 5.25 5.25 0 0 1-7.09 7.09c-.427.066-.865.1-1.31.1zm.053-3.5C9.25 17 8 15.62 8 14.586c0-.532.39-.902.928-.902 1.2 0 .887 1.725 3.125 1.725 1.143 0 1.776-.624 1.776-1.261 0-.384-.188-.808-.943-.996l-2.49-.623c-2.006-.504-2.37-1.592-2.37-2.612C8.026 7.797 10.018 7 11.89 7c1.72 0 3.756.956 3.756 2.228 0 .545-.48.863-1.012.863-1.023 0-.835-1.418-2.9-1.418-1.023 0-1.596.462-1.596 1.126 0 .663.803.876 1.502 1.035l1.836.409C15.49 11.695 16 12.876 16 13.989 16 15.713 14.675 17 12.015 17h.038z"/>
</symbol>
<symbol id="youtube" viewBox="0 0 12 12"> <symbol id="youtube" viewBox="0 0 12 12">
<path d="M10.4,4.3c0-0.6-0.6-1.1-1.2-1.2C8.3,3.1,7,3,6,3S3.7,3.1,2.8,3.1c-0.6,0-1.1,0.5-1.2,1.2c0,0.6-0.1,1.4-0.1,1.9 s0,1.3,0.1,1.9c0,0.6,0.6,1.1,1.2,1.2C3.7,9.4,5,9.4,6,9.4s2.3-0.1,3.2-0.1c0.6,0,1.1-0.5,1.2-1.2c0-0.6,0.1-1.4,0.1-1.9 S10.5,4.9,10.4,4.3z M5,7.5V4.9l2.6,1.3L5,7.5z"/> <path d="M10.4,4.3c0-0.6-0.6-1.1-1.2-1.2C8.3,3.1,7,3,6,3S3.7,3.1,2.8,3.1c-0.6,0-1.1,0.5-1.2,1.2c0,0.6-0.1,1.4-0.1,1.9 s0,1.3,0.1,1.9c0,0.6,0.6,1.1,1.2,1.2C3.7,9.4,5,9.4,6,9.4s2.3-0.1,3.2-0.1c0.6,0,1.1-0.5,1.2-1.2c0-0.6,0.1-1.4,0.1-1.9 S10.5,4.9,10.4,4.3z M5,7.5V4.9l2.6,1.3L5,7.5z"/>
</symbol> </symbol>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -74,6 +74,8 @@
"CreatedOn": "Created", "CreatedOn": "Created",
"Whatsapp": "Whatsapp", "Whatsapp": "Whatsapp",
"WhatsappPlaceholder": "Whatsapp", "WhatsappPlaceholder": "Whatsapp",
"Skype": "Skype",
"SkypePlaceholder": "Skype",
"Profile": "Profile", "Profile": "Profile",
"ProfilePlaceholder": "Profile...", "ProfilePlaceholder": "Profile...",
"CurrentEmployee": "Current employee", "CurrentEmployee": "Current employee",

View File

@ -75,6 +75,8 @@
"CreatedOn": "Создан", "CreatedOn": "Создан",
"Whatsapp": "Whatsapp", "Whatsapp": "Whatsapp",
"WhatsappPlaceholder": "Whatsapp", "WhatsappPlaceholder": "Whatsapp",
"Skype": "Skype",
"SkypePlaceholder": "Skype",
"Profile": "Профиль", "Profile": "Профиль",
"ProfilePlaceholder": "Профиль...", "ProfilePlaceholder": "Профиль...",
"CurrentEmployee": "Текущий сотрудник", "CurrentEmployee": "Текущий сотрудник",

View File

@ -29,6 +29,7 @@ loadMetadata(contact.icon, {
Twitter: `${icons}#twitter`, Twitter: `${icons}#twitter`,
VK: `${icons}#vk`, VK: `${icons}#vk`,
WhatsApp: `${icons}#whatsapp`, WhatsApp: `${icons}#whatsapp`,
Skype: `${icons}#skype`,
Youtube: `${icons}#youtube`, Youtube: `${icons}#youtube`,
GitHub: `${icons}#github`, GitHub: `${icons}#github`,
Edit: `${icons}#edit`, Edit: `${icons}#edit`,

View File

@ -208,6 +208,7 @@ export const contactPlugin = plugin(contactId, {
Facebook: '' as Ref<ChannelProvider>, Facebook: '' as Ref<ChannelProvider>,
Homepage: '' as Ref<ChannelProvider>, Homepage: '' as Ref<ChannelProvider>,
Whatsapp: '' as Ref<ChannelProvider>, Whatsapp: '' as Ref<ChannelProvider>,
Skype: '' as Ref<ChannelProvider>,
Profile: '' as Ref<ChannelProvider> Profile: '' as Ref<ChannelProvider>
}, },
avatarProvider: { avatarProvider: {
@ -232,6 +233,7 @@ export const contactPlugin = plugin(contactId, {
Twitter: '' as Asset, Twitter: '' as Asset,
VK: '' as Asset, VK: '' as Asset,
WhatsApp: '' as Asset, WhatsApp: '' as Asset,
Skype: '' as Asset,
Youtube: '' as Asset, Youtube: '' as Asset,
GitHub: '' as Asset, GitHub: '' as Asset,
Edit: '' as Asset, Edit: '' as Asset,