Skip to content

Commit

Permalink
Add viber (#7684)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
  • Loading branch information
BykhovDenis authored Jan 16, 2025
1 parent 1eb8977 commit a31bfa2
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 11 deletions.
11 changes: 11 additions & 0 deletions models/contact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,17 @@ export function createModel (builder: Builder): void {
contact.channelProvider.Profile
)

builder.createDoc(
contact.class.ChannelProvider,
core.space.Model,
{
label: contact.string.Viber,
icon: contact.icon.Viber,
placeholder: contact.string.ViberPlaceholder
},
contact.channelProvider.Viber
)

builder.createDoc(
contact.class.AvatarProvider,
core.space.Model,
Expand Down
2 changes: 2 additions & 0 deletions models/contact/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export default mergeIds(contactId, contact, {
SkypePlaceholder: '' as IntlString,
Profile: '' as IntlString,
ProfilePlaceholder: '' as IntlString,
Viber: '' as IntlString,
ViberPlaceholder: '' as IntlString,

CurrentEmployee: '' as IntlString,

Expand Down
26 changes: 26 additions & 0 deletions plugins/contact-assets/assets/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "Pro",
"SelectUsers": "Vyberte uživatele",
"AddGuest": "Přidat hosta",
"ViewProfile": "Zobrazit profil"
"ViewProfile": "Zobrazit profil",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "Für",
"SelectUsers": "Benutzer auswählen",
"AddGuest": "Gast hinzufügen",
"ViewProfile": "Profil anzeigen"
"ViewProfile": "Profil anzeigen",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "For",
"SelectUsers": "Select users",
"AddGuest": "Add guest",
"ViewProfile": "View profile"
"ViewProfile": "View profile",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "Para",
"SelectUsers": "Seleccionar usuarios",
"AddGuest": "Añadir invitado",
"ViewProfile": "Ver perfil"
"ViewProfile": "Ver perfil",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "Pour",
"SelectUsers": "Sélectionner des utilisateurs",
"AddGuest": "Ajouter un invité",
"ViewProfile": "Voir le profil"
"ViewProfile": "Voir le profil",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "Per",
"SelectUsers": "Seleziona utenti",
"AddGuest": "Aggiungi ospite",
"ViewProfile": "Visualizza profilo"
"ViewProfile": "Visualizza profilo",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "Para",
"SelectUsers": "Selecionar utilizadores",
"AddGuest": "Adicionar convidado",
"ViewProfile": "Ver perfil"
"ViewProfile": "Ver perfil",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "Для",
"SelectUsers": "Выберите пользователей",
"AddGuest": "Добавить гостя",
"ViewProfile": "Посмотреть профиль"
"ViewProfile": "Посмотреть профиль",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
4 changes: 3 additions & 1 deletion plugins/contact-assets/lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"For": "为",
"SelectUsers": "选择用户",
"AddGuest": "添加访客",
"ViewProfile": "查看资料"
"ViewProfile": "查看资料",
"Viber": "Viber",
"ViberPlaceholder": "Viber"
}
}
1 change: 1 addition & 0 deletions plugins/contact-assets/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ loadMetadata(contact.icon, {
Telegram: `${icons}#telegram`,
Twitter: `${icons}#twitter`,
VK: `${icons}#vk`,
Viber: `${icons}#viber`,
WhatsApp: `${icons}#whatsapp`,
Skype: `${icons}#skype`,
Youtube: `${icons}#youtube`,
Expand Down
6 changes: 4 additions & 2 deletions plugins/contact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ export const contactPlugin = plugin(contactId, {
Homepage: '' as Ref<ChannelProvider>,
Whatsapp: '' as Ref<ChannelProvider>,
Skype: '' as Ref<ChannelProvider>,
Profile: '' as Ref<ChannelProvider>
Profile: '' as Ref<ChannelProvider>,
Viber: '' as Ref<ChannelProvider>
},
avatarProvider: {
Color: '' as Ref<AvatarProvider>,
Expand Down Expand Up @@ -273,7 +274,8 @@ export const contactPlugin = plugin(contactId, {
ComponentMembers: '' as Asset,
Profile: '' as Asset,
KickUser: '' as Asset,
Contacts: '' as Asset
Contacts: '' as Asset,
Viber: '' as Asset
},
space: {
Contacts: '' as Ref<Space>
Expand Down

0 comments on commit a31bfa2

Please sign in to comment.