mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
parent
57566f30e2
commit
54918c8fc6
@ -255,6 +255,17 @@ export function createModel (builder: Builder): void {
|
||||
contact.channelProvider.Facebook
|
||||
)
|
||||
|
||||
builder.createDoc(
|
||||
contact.class.ChannelProvider,
|
||||
core.space.Model,
|
||||
{
|
||||
label: contact.string.Homepage,
|
||||
icon: contact.icon.Homepage,
|
||||
placeholder: contact.string.HomepagePlaceholder
|
||||
},
|
||||
contact.channelProvider.Homepage
|
||||
)
|
||||
|
||||
builder.mixin(contact.class.Person, core.class.Class, view.mixin.AttributePresenter, {
|
||||
presenter: contact.component.PersonPresenter
|
||||
})
|
||||
|
@ -56,10 +56,12 @@ export default mergeIds(contactId, contact, {
|
||||
LinkedInPlaceholder: '' as IntlString,
|
||||
AtPlaceHolder: '' as IntlString,
|
||||
FacebookPlaceholder: '' as IntlString,
|
||||
HomepagePlaceholder: '' as IntlString,
|
||||
Twitter: '' as IntlString,
|
||||
GitHub: '' as IntlString,
|
||||
Facebook: '' as IntlString,
|
||||
TypeLabel: '' as IntlString
|
||||
TypeLabel: '' as IntlString,
|
||||
Homepage: '' as IntlString
|
||||
},
|
||||
completion: {
|
||||
PersonQuery: '' as Resource<ObjectSearchFactory>,
|
||||
|
@ -55,4 +55,8 @@
|
||||
<path d="M12.8,16.5c0-0.4-0.3-0.8-0.8-0.8c-1.2,0-2.3-0.1-3.5-0.2c-0.3-2.3-0.3-4.6,0-6.9c2.3-0.3,4.6-0.3,6.9,0 c0.1,1.1,0.2,2.3,0.2,3.5c0,0.4,0.3,0.8,0.8,0.8c0.4,0,0.8-0.3,0.8-0.8c0-1.1-0.1-2.2-0.2-3.2c1.3,0.2,2.5,0.5,3.8,0.9 c0.1,0,0.1,0,0.2,0c0.2,0.7,0.3,1.5,0.3,2.3c0,0.4,0.3,0.8,0.8,0.8s0.8-0.3,0.8-0.8c0-5.9-4.8-10.8-10.8-10.8S1.2,6.1,1.2,12 S6.1,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9,20.3,15.9,20.3,15.9c0.2,0,0.5,0.2,0.6,0.4c0.2,0.2,0.4,0.4,0.3,0.6 c0,0.1-0.1,0.3-0.3,0.5l-0.2,0.2c-0.5-0.2-0.9-0.7-1.1-1.2l0.2-0.2C19.9,16,20.1,15.9,20.3,15.9z M17.4,21c0,0-0.1,0.1-0.2,0.1 l-1.2,0.2l0.2-1.2c0,0,0-0.1,0.1-0.2l2.3-2.3c0.3,0.5,0.7,0.9,1.2,1.2L17.4,21z" />
|
||||
</symbol>
|
||||
<symbol id='homepage' fill='none' viewBox="0 0 28 28">
|
||||
<path d="M4.66602 22.9167V12.7127C4.66602 12.4192 4.79497 12.1405 5.01869 11.9505L13.6149 4.65008C13.9969 4.32565 14.5601 4.33411 14.9321 4.66986L23.0026 11.9522C23.2127 12.1418 23.3327 12.4116 23.3327 12.6946V22.9167C23.3327 23.469 22.885 23.9167 22.3327 23.9167H5.66602C5.11373 23.9167 4.66602 23.469 4.66602 22.9167Z" stroke="white" stroke-width="1.2"/>
|
||||
</symbol>
|
||||
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.9 KiB |
@ -43,6 +43,8 @@
|
||||
"AtPlaceHolder": "@appleseed",
|
||||
"FacebookPlaceholder": "https://fb.com/jappleseed",
|
||||
"Facebook": "Facebook",
|
||||
"HomepagePlaceholder": "https://jappleseed.com",
|
||||
"Homepage": "Home page",
|
||||
"SocialLinks": "Socail links",
|
||||
"ViewActivity": "View activity",
|
||||
"PersonAlreadyExists": "Person already exists...",
|
||||
|
@ -43,6 +43,8 @@
|
||||
"AtPlaceHolder": "@appleseed",
|
||||
"FacebookPlaceholder": "https://fb.com/jappleseed",
|
||||
"Facebook": "Facebook",
|
||||
"HomepagePlaceholder": "https://jappleseed.com",
|
||||
"Homepage": "Веб страница",
|
||||
"SocialLinks": "Контактная информация",
|
||||
"ViewActivity": "Посмотреть активность",
|
||||
"PersonAlreadyExists": "Контакт уже существует...",
|
||||
|
@ -33,6 +33,7 @@ loadMetadata(contact.icon, {
|
||||
Edit: `${icons}#edit`,
|
||||
Person: `${icons}#person`,
|
||||
Company: `${icons}#company`,
|
||||
SocialEdit: `${icons}#social-edit`
|
||||
SocialEdit: `${icons}#social-edit`,
|
||||
Homepage: `${icons}#homepage`
|
||||
})
|
||||
addStringsLoader(contactId, async (lang: string) => await import(`../lang/${lang}.json`))
|
||||
|
@ -169,7 +169,8 @@ const contactPlugin = plugin(contactId, {
|
||||
Twitter: '' as Ref<ChannelProvider>,
|
||||
Telegram: '' as Ref<ChannelProvider>,
|
||||
GitHub: '' as Ref<ChannelProvider>,
|
||||
Facebook: '' as Ref<ChannelProvider>
|
||||
Facebook: '' as Ref<ChannelProvider>,
|
||||
Homepage: '' as Ref<ChannelProvider>
|
||||
},
|
||||
icon: {
|
||||
Phone: '' as Asset,
|
||||
@ -187,7 +188,8 @@ const contactPlugin = plugin(contactId, {
|
||||
Edit: '' as Asset,
|
||||
Person: '' as Asset,
|
||||
Company: '' as Asset,
|
||||
SocialEdit: '' as Asset
|
||||
SocialEdit: '' as Asset,
|
||||
Homepage: '' as Asset
|
||||
},
|
||||
space: {
|
||||
Employee: '' as Ref<Space>,
|
||||
|
Loading…
Reference in New Issue
Block a user