From 0f6fde311c075dce661bb8f4dfbb8907345f7e5b Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Wed, 1 Sep 2021 19:24:43 +0200 Subject: [PATCH] add more channels Signed-off-by: Andrey Platov --- dev/storage/src/model.tx.json | 403 ++++++++++-------- models/contact/src/index.ts | 16 +- models/contact/src/plugin.ts | 5 + .../src/components/ChannelsPresenter.svelte | 2 +- plugins/contact/src/index.ts | 1 + .../src/components/SocialEditor.svelte | 2 +- server/workspace/src/model.tx.json | 403 ++++++++++-------- 7 files changed, 457 insertions(+), 375 deletions(-) diff --git a/dev/storage/src/model.tx.json b/dev/storage/src/model.tx.json index 418f3da053..3c42f09fec 100644 --- a/dev/storage/src/model.tx.json +++ b/dev/storage/src/model.tx.json @@ -1,25 +1,25 @@ [ { - "_id": "612facb67ce77cab43e4f5ab", + "_id": "612fb49897a8d5f44d40e286", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Obj", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358890, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0 } }, { - "_id": "612facb67ce77cab43e4f5ac", + "_id": "612fb49897a8d5f44d40e287", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Doc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358890, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -27,13 +27,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5ad", + "_id": "612fb49897a8d5f44d40e288", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Type", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358890, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -41,13 +41,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5ae", + "_id": "612fb49897a8d5f44d40e289", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358890, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -55,13 +55,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5af", + "_id": "612fb49897a8d5f44d40e28a", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Attribute", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358890, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -69,13 +69,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b0", + "_id": "612fb49897a8d5f44d40e28b", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Account", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -84,13 +84,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b1", + "_id": "612fb49897a8d5f44d40e28c", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Space", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -99,13 +99,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b2", + "_id": "612fb49897a8d5f44d40e28d", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Tx", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "domain": "tx", @@ -114,13 +114,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b3", + "_id": "612fb49897a8d5f44d40e28e", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxCUD", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -128,13 +128,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b4", + "_id": "612fb49897a8d5f44d40e28f", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxUpdateDoc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -142,13 +142,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b5", + "_id": "612fb49897a8d5f44d40e290", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxMixin", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -156,13 +156,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b6", + "_id": "612fb49897a8d5f44d40e291", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxCreateDoc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -170,13 +170,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b7", + "_id": "612fb49897a8d5f44d40e292", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Class", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -185,13 +185,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b8", + "_id": "612fb49897a8d5f44d40e293", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Mixin", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -199,13 +199,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5b9", + "_id": "612fb49897a8d5f44d40e294", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:class:Viewlet", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -214,13 +214,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5ba", + "_id": "612fb49897a8d5f44d40e295", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:class:ViewletDescriptor", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -229,13 +229,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5bb", + "_id": "612fb49897a8d5f44d40e296", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:mixin:AttributePresenter", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -243,13 +243,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5bc", + "_id": "612fb49897a8d5f44d40e297", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:mixin:AttributeEditor", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -257,11 +257,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5bd", + "_id": "612fb49897a8d5f44d40e298", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -271,11 +271,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5be", + "_id": "612fb49897a8d5f44d40e299", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -285,13 +285,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5bf", + "_id": "612fb49897a8d5f44d40e29a", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:viewlet:Table", "objectClass": "view:class:ViewletDescriptor", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376903, "modifiedBy": "core:account:System", "attributes": { "label": "Table", @@ -300,13 +300,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5c0", + "_id": "612fb49897a8d5f44d40e29b", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "workbench:mixin:SpaceView", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -314,13 +314,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5c1", + "_id": "612fb49897a8d5f44d40e29c", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "workbench:class:Application", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -329,13 +329,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5c2", + "_id": "612fb49897a8d5f44d40e29d", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Contact", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "contact", @@ -344,12 +344,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5c3", - "objectId": "612facb67ce77cab43e4f5c4", + "_id": "612fb49897a8d5f44d40e29e", + "objectId": "612fb49897a8d5f44d40e29f", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358664, + "modifiedOn": 1630516376706, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -362,13 +362,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5c5", + "_id": "612fb49897a8d5f44d40e2a0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Person", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -377,12 +377,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5c6", - "objectId": "612facb67ce77cab43e4f5c7", + "_id": "612fb49897a8d5f44d40e2a1", + "objectId": "612fb49897a8d5f44d40e2a2", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358665, + "modifiedOn": 1630516376706, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -395,12 +395,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5c8", - "objectId": "612facb67ce77cab43e4f5c9", + "_id": "612fb49897a8d5f44d40e2a3", + "objectId": "612fb49897a8d5f44d40e2a4", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358665, + "modifiedOn": 1630516376706, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -413,12 +413,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5ca", - "objectId": "612facb67ce77cab43e4f5cb", + "_id": "612fb49897a8d5f44d40e2a5", + "objectId": "612fb49897a8d5f44d40e2a6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358665, + "modifiedOn": 1630516376706, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -431,13 +431,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5cc", + "_id": "612fb49897a8d5f44d40e2a7", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Employee", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -445,13 +445,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5cd", + "_id": "612fb49897a8d5f44d40e2a8", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Organization", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -459,13 +459,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5ce", + "_id": "612fb49897a8d5f44d40e2a9", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:TypeChannels", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -473,13 +473,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5cf", + "_id": "612fb49897a8d5f44d40e2aa", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:ChannelProvider", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -488,11 +488,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5d0", + "_id": "612fb49897a8d5f44d40e2ab", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358891, + "modifiedOn": 1630516376904, "objectId": "contact:class:TypeChannels", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -502,27 +502,58 @@ } }, { - "_id": "612facb67ce77cab43e4f5d1", + "_id": "612fb49897a8d5f44d40e2ac", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:channelProvider:Email", "objectClass": "contact:class:ChannelProvider", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "label": "Email", - "icon": "contact:icon:Email" + "icon": "contact:icon:Email", + "placeholder": "john.appleseed@apple.com" } }, { - "_id": "612facb67ce77cab43e4f5d2", + "_id": "612fb49897a8d5f44d40e2ad", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "612fb49897a8d5f44d40e2ae", + "objectClass": "contact:class:ChannelProvider", + "objectSpace": "core:space:Model", + "modifiedOn": 1630516376904, + "modifiedBy": "core:account:System", + "attributes": { + "label": "Phone", + "icon": "contact:icon:Email", + "placeholder": "+1 555 333 7777" + } + }, + { + "_id": "612fb49897a8d5f44d40e2af", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "612fb49897a8d5f44d40e2b0", + "objectClass": "contact:class:ChannelProvider", + "objectSpace": "core:space:Model", + "modifiedOn": 1630516376904, + "modifiedBy": "core:account:System", + "attributes": { + "label": "LinkedIn", + "icon": "contact:icon:Email", + "placeholder": "https://linkedin.com/in/jappleseed" + } + }, + { + "_id": "612fb49897a8d5f44d40e2b1", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:space:Employee", "objectClass": "core:class:Space", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "name": "Employees", @@ -532,11 +563,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5d3", + "_id": "612fb49897a8d5f44d40e2b2", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "objectId": "contact:class:Person", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -546,13 +577,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5d4", + "_id": "612fb49897a8d5f44d40e2b3", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Attachment", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "attachment", @@ -561,13 +592,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5d5", + "_id": "612fb49897a8d5f44d40e2b4", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Comment", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "comment", @@ -576,13 +607,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5d6", + "_id": "612fb49897a8d5f44d40e2b5", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Backlink", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -590,13 +621,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5d7", + "_id": "612fb49897a8d5f44d40e2b6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Message", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "chunter", @@ -605,12 +636,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5d8", - "objectId": "612facb67ce77cab43e4f5d9", + "_id": "612fb49897a8d5f44d40e2b7", + "objectId": "612fb49897a8d5f44d40e2b8", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358772, + "modifiedOn": 1630516376816, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -624,13 +655,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5da", + "_id": "612fb49897a8d5f44d40e2b9", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Channel", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -640,11 +671,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5db", + "_id": "612fb49897a8d5f44d40e2ba", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "objectId": "chunter:class:Channel", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -656,13 +687,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5dc", + "_id": "612fb49897a8d5f44d40e2bb", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:viewlet:Chat", "objectClass": "view:class:ViewletDescriptor", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "label": "Chat", @@ -671,13 +702,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5dd", + "_id": "612fb49897a8d5f44d40e2bc", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f5de", + "objectId": "612fb49897a8d5f44d40e2bd", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "attachTo": "chunter:class:Message", @@ -687,13 +718,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5df", + "_id": "612fb49897a8d5f44d40e2be", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f5e0", + "objectId": "612fb49897a8d5f44d40e2bf", "objectClass": "workbench:class:Application", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "label": "chunter:string:ApplicationLabelChunter", @@ -711,13 +742,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5e1", + "_id": "612fb49897a8d5f44d40e2c0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f5e2", + "objectId": "612fb49897a8d5f44d40e2c1", "objectClass": "chunter:class:Channel", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "name": "general", @@ -727,13 +758,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5e3", + "_id": "612fb49897a8d5f44d40e2c2", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f5e4", + "objectId": "612fb49897a8d5f44d40e2c3", "objectClass": "chunter:class:Channel", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "name": "random", @@ -743,11 +774,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5e5", + "_id": "612fb49897a8d5f44d40e2c4", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "objectId": "chunter:class:Attachment", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -757,13 +788,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5e6", + "_id": "612fb49897a8d5f44d40e2c5", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "task:class:Task", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -771,12 +802,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5e7", - "objectId": "612facb67ce77cab43e4f5e8", + "_id": "612fb49897a8d5f44d40e2c6", + "objectId": "612fb49897a8d5f44d40e2c7", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358711, + "modifiedOn": 1630516376754, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -789,12 +820,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5e9", - "objectId": "612facb67ce77cab43e4f5ea", + "_id": "612fb49897a8d5f44d40e2c8", + "objectId": "612fb49897a8d5f44d40e2c9", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358711, + "modifiedOn": 1630516376754, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -807,12 +838,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5eb", - "objectId": "612facb67ce77cab43e4f5ec", + "_id": "612fb49897a8d5f44d40e2ca", + "objectId": "612fb49897a8d5f44d40e2cb", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358711, + "modifiedOn": 1630516376754, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -825,13 +856,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5ed", + "_id": "612fb49897a8d5f44d40e2cc", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "task:class:Project", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -841,11 +872,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5ee", + "_id": "612fb49897a8d5f44d40e2cd", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "objectId": "task:class:Project", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -858,13 +889,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5ef", + "_id": "612fb49897a8d5f44d40e2ce", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f5f0", + "objectId": "612fb49897a8d5f44d40e2cf", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "attachTo": "task:class:Task", @@ -882,13 +913,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5f1", + "_id": "612fb49897a8d5f44d40e2d0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f5f2", + "objectId": "612fb49897a8d5f44d40e2d1", "objectClass": "workbench:class:Application", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "label": "task:string:ApplicationLabelTask", @@ -906,13 +937,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5f3", + "_id": "612fb49897a8d5f44d40e2d2", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f5f4", + "objectId": "612fb49897a8d5f44d40e2d3", "objectClass": "task:class:Project", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "name": "demo", @@ -922,13 +953,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5f5", + "_id": "612fb49897a8d5f44d40e2d4", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Applicant", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "recruit", @@ -937,12 +968,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5f6", - "objectId": "612facb67ce77cab43e4f5f7", + "_id": "612fb49897a8d5f44d40e2d5", + "objectId": "612fb49897a8d5f44d40e2d6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358825, + "modifiedOn": 1630516376869, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -955,13 +986,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5f8", + "_id": "612fb49897a8d5f44d40e2d7", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Candidate", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -970,12 +1001,12 @@ } }, { - "_id": "612facb67ce77cab43e4f5f9", - "objectId": "612facb67ce77cab43e4f5fa", + "_id": "612fb49897a8d5f44d40e2d8", + "objectId": "612fb49897a8d5f44d40e2d9", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358825, + "modifiedOn": 1630516376869, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -988,13 +1019,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5fb", + "_id": "612fb49897a8d5f44d40e2da", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Candidates", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -1004,13 +1035,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5fc", + "_id": "612fb49897a8d5f44d40e2db", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Vacancy", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -1020,11 +1051,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5fd", + "_id": "612fb49897a8d5f44d40e2dc", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "objectId": "recruit:class:Vacancy", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -1037,11 +1068,11 @@ } }, { - "_id": "612facb67ce77cab43e4f5fe", + "_id": "612fb49897a8d5f44d40e2dd", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "objectId": "recruit:class:Candidates", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -1054,13 +1085,13 @@ } }, { - "_id": "612facb67ce77cab43e4f5ff", + "_id": "612fb49897a8d5f44d40e2de", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f600", + "objectId": "612fb49897a8d5f44d40e2df", "objectClass": "workbench:class:Application", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "label": "recruit:string:RecruitApplication", @@ -1084,13 +1115,13 @@ } }, { - "_id": "612facb67ce77cab43e4f601", + "_id": "612fb49897a8d5f44d40e2e0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:space:CandidatesPublic", "objectClass": "recruit:class:Candidates", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "name": "public", @@ -1100,13 +1131,13 @@ } }, { - "_id": "612facb67ce77cab43e4f602", + "_id": "612fb49897a8d5f44d40e2e1", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f603", + "objectId": "612fb49897a8d5f44d40e2e2", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "attachTo": "recruit:class:Candidate", @@ -1126,13 +1157,13 @@ } }, { - "_id": "612facb67ce77cab43e4f604", + "_id": "612fb49897a8d5f44d40e2e3", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f605", + "objectId": "612fb49897a8d5f44d40e2e4", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "attachTo": "recruit:class:Applicant", @@ -1151,13 +1182,13 @@ } }, { - "_id": "612facb67ce77cab43e4f606", + "_id": "612fb49897a8d5f44d40e2e5", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "server-core:class:Trigger", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -1166,26 +1197,26 @@ } }, { - "_id": "612facb67ce77cab43e4f607", + "_id": "612fb49897a8d5f44d40e2e6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f608", + "objectId": "612fb49897a8d5f44d40e2e7", "objectClass": "server-core:class:Trigger", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358892, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "trigger": "server-chunter:trigger:OnMessage" } }, { - "_id": "612facb67ce77cab43e4f609", + "_id": "612fb49897a8d5f44d40e2e8", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f60a", + "objectId": "612fb49897a8d5f44d40e2e9", "objectClass": "contact:class:Employee", "objectSpace": "contact:space:Employee", - "modifiedOn": 1630514358893, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "firstName": "Rosamund", @@ -1195,26 +1226,26 @@ } }, { - "_id": "612facb67ce77cab43e4f60b", + "_id": "612fb49897a8d5f44d40e2ea", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f60c", + "objectId": "612fb49897a8d5f44d40e2eb", "objectClass": "core:class:Account", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358893, + "modifiedOn": 1630516376904, "modifiedBy": "core:account:System", "attributes": { "email": "rosamund@hc.engineering" } }, { - "_id": "612facb67ce77cab43e4f60d", + "_id": "612fb49897a8d5f44d40e2ec", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f60e", + "objectId": "612fb49897a8d5f44d40e2ed", "objectClass": "contact:class:Employee", "objectSpace": "contact:space:Employee", - "modifiedOn": 1630514358893, + "modifiedOn": 1630516376905, "modifiedBy": "core:account:System", "attributes": { "firstName": "Elon", @@ -1224,26 +1255,26 @@ } }, { - "_id": "612facb67ce77cab43e4f60f", + "_id": "612fb49897a8d5f44d40e2ee", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f610", + "objectId": "612fb49897a8d5f44d40e2ef", "objectClass": "core:class:Account", "objectSpace": "core:space:Model", - "modifiedOn": 1630514358893, + "modifiedOn": 1630516376905, "modifiedBy": "core:account:System", "attributes": { "email": "elon@hc.engineering" } }, { - "_id": "612facb67ce77cab43e4f611", + "_id": "612fb49897a8d5f44d40e2f0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f612", + "objectId": "612fb49897a8d5f44d40e2f1", "objectClass": "recruit:class:Candidate", "objectSpace": "recruit:space:CandidatesPublic", - "modifiedOn": 1630514358893, + "modifiedOn": 1630516376905, "modifiedBy": "core:account:System", "attributes": { "firstName": "Andrey", @@ -1258,13 +1289,13 @@ } }, { - "_id": "612facb67ce77cab43e4f613", + "_id": "612fb49897a8d5f44d40e2f2", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "612facb67ce77cab43e4f614", + "objectId": "612fb49897a8d5f44d40e2f3", "objectClass": "recruit:class:Candidate", "objectSpace": "recruit:space:CandidatesPublic", - "modifiedOn": 1630514358893, + "modifiedOn": 1630516376905, "modifiedBy": "core:account:System", "attributes": { "firstName": "Marina", diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index 1745d23367..51e0224b6b 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -30,6 +30,7 @@ export const DOMAIN_CONTACT = 'contact' as Domain export class TChannelProvider extends TDoc implements ChannelProvider { label!: IntlString icon?: Asset + placeholder!: string } @Model(contact.class.TypeChannels, core.class.Type) @@ -85,9 +86,22 @@ export function createModel (builder: Builder): void { builder.createDoc(contact.class.ChannelProvider, core.space.Model, { label: 'Email' as IntlString, - icon: contact.icon.Email + icon: contact.icon.Email, + placeholder: 'john.appleseed@apple.com' }, contact.channelProvider.Email) + builder.createDoc(contact.class.ChannelProvider, core.space.Model, { + label: 'Phone' as IntlString, + icon: contact.icon.Email, + placeholder: '+1 555 333 7777' + }) + + builder.createDoc(contact.class.ChannelProvider, core.space.Model, { + label: 'LinkedIn' as IntlString, + icon: contact.icon.Email, + placeholder: 'https://linkedin.com/in/jappleseed' + }) + builder.createDoc(core.class.Space, core.space.Model, { name: 'Employees', description: 'Employees', diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts index d0e48b6a13..f5fddcacdd 100644 --- a/models/contact/src/plugin.ts +++ b/models/contact/src/plugin.ts @@ -23,6 +23,11 @@ import {} from '@anticrm/core' export const ids = mergeIds(contactId, contact, { channelProvider: { Email: '' as Ref + // Phone: '' as Ref, + // LinkedIn: '' as Ref, + // Twitter: '' as Ref, + // GitHub: '' as Ref, + // Telegram: '' as Ref, }, component: { PersonPresenter: '' as AnyComponent, diff --git a/plugins/contact-resources/src/components/ChannelsPresenter.svelte b/plugins/contact-resources/src/components/ChannelsPresenter.svelte index bd34865df0..77ac54440d 100644 --- a/plugins/contact-resources/src/components/ChannelsPresenter.svelte +++ b/plugins/contact-resources/src/components/ChannelsPresenter.svelte @@ -66,6 +66,6 @@ let displayItems: Item[] = [] {#each displayItems as item} - {item.value} + {/each} diff --git a/plugins/contact/src/index.ts b/plugins/contact/src/index.ts index 362f7b5f07..9189b0c589 100644 --- a/plugins/contact/src/index.ts +++ b/plugins/contact/src/index.ts @@ -21,6 +21,7 @@ import type { Doc, Ref, Class, UXObject } from '@anticrm/core' * @public */ export interface ChannelProvider extends Doc, UXObject { + placeholder: string } /** diff --git a/plugins/recruit-resources/src/components/SocialEditor.svelte b/plugins/recruit-resources/src/components/SocialEditor.svelte index 00aca6c33e..36a981e641 100644 --- a/plugins/recruit-resources/src/components/SocialEditor.svelte +++ b/plugins/recruit-resources/src/components/SocialEditor.svelte @@ -56,7 +56,7 @@