diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d29e3e9d3f..0c9832b6f3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2,6 +2,9 @@ lockfileVersion: 5.3 specifiers: '@microsoft/api-extractor': ^7.18.4 + '@rush-temp/chunter': file:./projects/chunter.tgz + '@rush-temp/chunter-assets': file:./projects/chunter-assets.tgz + '@rush-temp/chunter-resources': file:./projects/chunter-resources.tgz '@rush-temp/client': file:./projects/client.tgz '@rush-temp/client-resources': file:./projects/client-resources.tgz '@rush-temp/contact': file:./projects/contact.tgz @@ -15,6 +18,7 @@ specifiers: '@rush-temp/login-resources': file:./projects/login-resources.tgz '@rush-temp/model': file:./projects/model.tgz '@rush-temp/model-all': file:./projects/model-all.tgz + '@rush-temp/model-chunter': file:./projects/model-chunter.tgz '@rush-temp/model-contact': file:./projects/model-contact.tgz '@rush-temp/model-core': file:./projects/model-core.tgz '@rush-temp/model-rig': file:./projects/model-rig.tgz @@ -87,6 +91,9 @@ specifiers: dependencies: '@microsoft/api-extractor': 7.18.4 + '@rush-temp/chunter': file:projects/chunter.tgz_6c259fadfeb3a4b20890aefe87070b8b + '@rush-temp/chunter-assets': file:projects/chunter-assets.tgz + '@rush-temp/chunter-resources': file:projects/chunter-resources.tgz_c38cf1a7a413db8918b0b4754c21e4c5 '@rush-temp/client': file:projects/client.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/client-resources': file:projects/client-resources.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/contact': file:projects/contact.tgz_6c259fadfeb3a4b20890aefe87070b8b @@ -100,6 +107,7 @@ dependencies: '@rush-temp/login-resources': file:projects/login-resources.tgz_c38cf1a7a413db8918b0b4754c21e4c5 '@rush-temp/model': file:projects/model.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/model-all': file:projects/model-all.tgz_6c259fadfeb3a4b20890aefe87070b8b + '@rush-temp/model-chunter': file:projects/model-chunter.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/model-contact': file:projects/model-contact.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/model-core': file:projects/model-core.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/model-rig': file:projects/model-rig.tgz_6ab28797e7a22071465f7d680ae81ae5 @@ -8274,6 +8282,53 @@ packages: commander: 2.20.3 dev: false + file:projects/chunter-assets.tgz: + resolution: {integrity: sha512-kRmElkS58/FJwkgz4yx35+C0wj3u/X+qJa1qJnHtcK9d2rnBwaWnU54+4OoFvNQj3L7vuHsrt7Nv2tiuHwRtyQ==, tarball: file:projects/chunter-assets.tgz} + name: '@rush-temp/chunter-assets' + version: 0.0.0 + dev: false + + file:projects/chunter-resources.tgz_c38cf1a7a413db8918b0b4754c21e4c5: + resolution: {integrity: sha512-VP1784iSMDjU+I5KOnhTTogIUV0KXWPZilDfgbksztHlcphtRl3SMfD++sdfxjapqivJJ0cWPdYpEwEOEuTA4g==, tarball: file:projects/chunter-resources.tgz} + id: file:projects/chunter-resources.tgz + name: '@rush-temp/chunter-resources' + version: 0.0.0 + dependencies: + sass: 1.37.5 + svelte: 3.42.1 + svelte-loader: 3.1.2_svelte@3.42.1 + svelte-preprocess: 4.7.4_c407529626dbb58d14a718f48c7fa84c + transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - node-sass + - postcss + - postcss-load-config + - pug + - stylus + - sugarss + - typescript + dev: false + + file:projects/chunter.tgz_6c259fadfeb3a4b20890aefe87070b8b: + resolution: {integrity: sha512-hmgD0Nd/V8tmm2gRjx+V4a0In4/B05vfI1sNPeD1CUd9zmaxCmP6zszeCGBSdT86eLAbTR6zgmmGuvPCEmfsvQ==, tarball: file:projects/chunter.tgz} + id: file:projects/chunter.tgz + name: '@rush-temp/chunter' + version: 0.0.0 + dependencies: + '@types/heft-jest': 1.0.2 + '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea + eslint: 7.32.0 + eslint-plugin-import: 2.23.4_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 4.3.1 + transitivePeerDependencies: + - '@typescript-eslint/parser' + - supports-color + - typescript + dev: false + file:projects/client-resources.tgz_6c259fadfeb3a4b20890aefe87070b8b: resolution: {integrity: sha512-sZx3SSO4spAS8S/DNgBlr8t/yz9UeCjmZsBU0foLLXOTijqUpAO/OvFfUW2H22pxg+sUVSElWeAKI/qRINishw==, tarball: file:projects/client-resources.tgz} id: file:projects/client-resources.tgz @@ -8497,6 +8552,23 @@ packages: - typescript dev: false + file:projects/model-chunter.tgz_6c259fadfeb3a4b20890aefe87070b8b: + resolution: {integrity: sha512-Fyp9PC9Hir9bpNLM0WzvSRduqiH4I7feu2A4QZzuk+Ezi6ddmHKTAwhjn1K/J9mY3iWyBpJp1FfQN/K2LWuJiw==, tarball: file:projects/model-chunter.tgz} + id: file:projects/model-chunter.tgz + name: '@rush-temp/model-chunter' + version: 0.0.0 + dependencies: + '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea + eslint: 7.32.0 + eslint-plugin-import: 2.23.4_eslint@7.32.0 + eslint-plugin-node: 11.1.0_eslint@7.32.0 + eslint-plugin-promise: 4.3.1 + transitivePeerDependencies: + - '@typescript-eslint/parser' + - supports-color + - typescript + dev: false + file:projects/model-contact.tgz_6c259fadfeb3a4b20890aefe87070b8b: resolution: {integrity: sha512-JlEMxKqXuBQ/W+rx/Y/8AzgpvNXgzYW07FdV4ttM4XHeVx6kOhrS7U9FPB7d6o9ABqNsxJEhK9bwg5zclnS0eQ==, tarball: file:projects/model-contact.tgz} id: file:projects/model-contact.tgz @@ -8690,7 +8762,7 @@ packages: dev: false file:projects/prod.tgz_9242e79bee31c899aa4d2de67405a771: - resolution: {integrity: sha512-s++Fsji9qUBKlBSO+X/+Ke1yXzdJB0BNq2S+kQ+2lwbYRCCK/AUCIxMgFUTX/cb0WXpjCUNIhlh+ynApJ0njWQ==, tarball: file:projects/prod.tgz} + resolution: {integrity: sha512-7EQmn4HF+UC7i1Ia43tXlAiswU3iaa2E/OpX7QquArY63qNtKjR44PYrVb2a2q10kzXDHZv2hEhk6TZFsSNUBQ==, tarball: file:projects/prod.tgz} id: file:projects/prod.tgz name: '@rush-temp/prod' version: 0.0.0 diff --git a/dev/prod/package.json b/dev/prod/package.json index de82b098b0..0470ecdc0d 100644 --- a/dev/prod/package.json +++ b/dev/prod/package.json @@ -55,6 +55,9 @@ "@anticrm/contact-resources": "~0.6.0", "@anticrm/task": "~0.6.0", "@anticrm/task-assets": "~0.6.0", - "@anticrm/task-resources": "~0.6.0" + "@anticrm/task-resources": "~0.6.0", + "@anticrm/chunter": "~0.6.0", + "@anticrm/chunter-assets": "~0.6.0", + "@anticrm/chunter-resources": "~0.6.0" } } diff --git a/dev/prod/src/platform.ts b/dev/prod/src/platform.ts index 2e1025816a..fd79723290 100644 --- a/dev/prod/src/platform.ts +++ b/dev/prod/src/platform.ts @@ -21,7 +21,7 @@ import { workbenchId } from '@anticrm/workbench' import { viewId } from '@anticrm/view' import { taskId } from '@anticrm/task' import { contactId } from '@anticrm/contact' -// import { chunterId } from '@anticrm/chunter' +import { chunterId } from '@anticrm/chunter' // import { recruitId } from '@anticrm/recruit' // import { tableId } from '@anticrm/table' @@ -30,7 +30,7 @@ import { contactId } from '@anticrm/contact' import '@anticrm/login-assets' import '@anticrm/task-assets' import '@anticrm/view-assets' -// import '@anticrm/chunter-assets' +import '@anticrm/chunter-assets' // import '@anticrm/recruit-assets' export function configurePlatform() { @@ -48,7 +48,7 @@ export function configurePlatform() { addLocation(viewId, () => import(/* webpackChunkName: "view" */ '@anticrm/view-resources')) addLocation(taskId, () => import(/* webpackChunkName: "task" */ '@anticrm/task-resources')) addLocation(contactId, () => import(/* webpackChunkName: "contact" */ '@anticrm/contact-resources')) - // addLocation(chunterId, () => import(/* webpackChunkName: "chunter" */ '@anticrm/plugin-chunter')) + addLocation(chunterId, () => import(/* webpackChunkName: "chunter" */ '@anticrm/chunter-resources')) // // addLocation(recruitId, () => import(/* webpackChunkName: "recruit" */ '@anticrm/plugin-recruit')) // addLocation(tableId, () => import(/* webpackChunkName: "table" */ '@anticrm/table-resources')) diff --git a/dev/storage/src/model.tx.json b/dev/storage/src/model.tx.json index e369a6ba0c..480c4bf6a3 100644 --- a/dev/storage/src/model.tx.json +++ b/dev/storage/src/model.tx.json @@ -1,25 +1,25 @@ [ { - "_id": "610e99e140934d0adfc65313", + "_id": "610ea19d8112f14a381cf9fb", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Obj", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0 } }, { - "_id": "610e99e140934d0adfc65314", + "_id": "610ea19d8112f14a381cf9fc", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Doc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -27,13 +27,13 @@ } }, { - "_id": "610e99e140934d0adfc65315", + "_id": "610ea19d8112f14a381cf9fd", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Type", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -41,13 +41,13 @@ } }, { - "_id": "610e99e140934d0adfc65316", + "_id": "610ea19d8112f14a381cf9fe", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -55,13 +55,13 @@ } }, { - "_id": "610e99e140934d0adfc65317", + "_id": "610ea19d8112f14a381cf9ff", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Attribute", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -69,13 +69,13 @@ } }, { - "_id": "610e99e140934d0adfc65318", + "_id": "610ea19d8112f14a381cfa00", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Account", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -84,13 +84,13 @@ } }, { - "_id": "610e99e140934d0adfc65319", + "_id": "610ea19d8112f14a381cfa01", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Space", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -99,13 +99,13 @@ } }, { - "_id": "610e99e140934d0adfc6531a", + "_id": "610ea19d8112f14a381cfa02", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Tx", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "domain": "tx", @@ -114,13 +114,13 @@ } }, { - "_id": "610e99e140934d0adfc6531b", + "_id": "610ea19d8112f14a381cfa03", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxCUD", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -128,13 +128,13 @@ } }, { - "_id": "610e99e140934d0adfc6531c", + "_id": "610ea19d8112f14a381cfa04", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxUpdateDoc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -142,13 +142,13 @@ } }, { - "_id": "610e99e140934d0adfc6531d", + "_id": "610ea19d8112f14a381cfa05", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxMixin", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -156,13 +156,13 @@ } }, { - "_id": "610e99e140934d0adfc6531e", + "_id": "610ea19d8112f14a381cfa06", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxCreateDoc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -170,13 +170,13 @@ } }, { - "_id": "610e99e140934d0adfc6531f", + "_id": "610ea19d8112f14a381cfa07", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Class", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -185,13 +185,13 @@ } }, { - "_id": "610e99e140934d0adfc65320", + "_id": "610ea19d8112f14a381cfa08", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Mixin", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -199,13 +199,13 @@ } }, { - "_id": "610e99e140934d0adfc65321", + "_id": "610ea19d8112f14a381cfa09", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:class:Viewlet", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -214,13 +214,13 @@ } }, { - "_id": "610e99e140934d0adfc65322", + "_id": "610ea19d8112f14a381cfa0a", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:class:ViewletDescriptor", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -229,13 +229,13 @@ } }, { - "_id": "610e99e140934d0adfc65323", + "_id": "610ea19d8112f14a381cfa0b", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:mixin:AttributePresenter", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -243,13 +243,13 @@ } }, { - "_id": "610e99e140934d0adfc65324", + "_id": "610ea19d8112f14a381cfa0c", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:mixin:AttributeEditor", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -257,11 +257,11 @@ } }, { - "_id": "610e99e140934d0adfc65325", + "_id": "610ea19d8112f14a381cfa0d", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -271,11 +271,11 @@ } }, { - "_id": "610e99e140934d0adfc65326", + "_id": "610ea19d8112f14a381cfa0e", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -285,13 +285,13 @@ } }, { - "_id": "610e99e140934d0adfc65327", + "_id": "610ea19d8112f14a381cfa0f", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:viewlet:Table", "objectClass": "view:class:ViewletDescriptor", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "label": "Table", @@ -300,13 +300,13 @@ } }, { - "_id": "610e99e140934d0adfc65328", + "_id": "610ea19d8112f14a381cfa10", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "workbench:mixin:SpaceView", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -314,13 +314,13 @@ } }, { - "_id": "610e99e140934d0adfc65329", + "_id": "610ea19d8112f14a381cfa11", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "workbench:class:Application", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -329,13 +329,13 @@ } }, { - "_id": "610e99e140934d0adfc6532a", + "_id": "610ea19d8112f14a381cfa12", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Contact", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -343,13 +343,13 @@ } }, { - "_id": "610e99e140934d0adfc6532b", + "_id": "610ea19d8112f14a381cfa13", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Person", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -358,12 +358,12 @@ } }, { - "_id": "610e99e140934d0adfc6532c", - "objectId": "610e99e140934d0adfc6532d", + "_id": "610ea19d8112f14a381cfa14", + "objectId": "610ea19d8112f14a381cfa15", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849136, + "modifiedOn": 1628348829403, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -376,12 +376,12 @@ } }, { - "_id": "610e99e140934d0adfc6532e", - "objectId": "610e99e140934d0adfc6532f", + "_id": "610ea19d8112f14a381cfa16", + "objectId": "610ea19d8112f14a381cfa17", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849136, + "modifiedOn": 1628348829403, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -394,12 +394,12 @@ } }, { - "_id": "610e99e140934d0adfc65330", - "objectId": "610e99e140934d0adfc65331", + "_id": "610ea19d8112f14a381cfa18", + "objectId": "610ea19d8112f14a381cfa19", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849136, + "modifiedOn": 1628348829403, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -412,12 +412,12 @@ } }, { - "_id": "610e99e140934d0adfc65332", - "objectId": "610e99e140934d0adfc65333", + "_id": "610ea19d8112f14a381cfa1a", + "objectId": "610ea19d8112f14a381cfa1b", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849136, + "modifiedOn": 1628348829403, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -430,12 +430,12 @@ } }, { - "_id": "610e99e140934d0adfc65334", - "objectId": "610e99e140934d0adfc65335", + "_id": "610ea19d8112f14a381cfa1c", + "objectId": "610ea19d8112f14a381cfa1d", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849136, + "modifiedOn": 1628348829403, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -448,13 +448,13 @@ } }, { - "_id": "610e99e140934d0adfc65336", + "_id": "610ea19d8112f14a381cfa1e", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Employee", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -462,13 +462,13 @@ } }, { - "_id": "610e99e140934d0adfc65337", + "_id": "610ea19d8112f14a381cfa1f", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Organization", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -476,11 +476,11 @@ } }, { - "_id": "610e99e140934d0adfc65338", + "_id": "610ea19d8112f14a381cfa20", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "objectId": "contact:class:Person", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -490,13 +490,13 @@ } }, { - "_id": "610e99e140934d0adfc65339", + "_id": "610ea19d8112f14a381cfa21", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "task:class:Task", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -504,12 +504,12 @@ } }, { - "_id": "610e99e140934d0adfc6533a", - "objectId": "610e99e140934d0adfc6533b", + "_id": "610ea19d8112f14a381cfa22", + "objectId": "610ea19d8112f14a381cfa23", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849180, + "modifiedOn": 1628348829454, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -522,12 +522,12 @@ } }, { - "_id": "610e99e140934d0adfc6533c", - "objectId": "610e99e140934d0adfc6533d", + "_id": "610ea19d8112f14a381cfa24", + "objectId": "610ea19d8112f14a381cfa25", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849180, + "modifiedOn": 1628348829454, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -540,12 +540,12 @@ } }, { - "_id": "610e99e140934d0adfc6533e", - "objectId": "610e99e140934d0adfc6533f", + "_id": "610ea19d8112f14a381cfa26", + "objectId": "610ea19d8112f14a381cfa27", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849180, + "modifiedOn": 1628348829454, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -558,13 +558,13 @@ } }, { - "_id": "610e99e140934d0adfc65340", + "_id": "610ea19d8112f14a381cfa28", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "task:class:Project", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -574,11 +574,11 @@ } }, { - "_id": "610e99e140934d0adfc65341", + "_id": "610ea19d8112f14a381cfa29", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "objectId": "task:class:Project", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -591,13 +591,13 @@ } }, { - "_id": "610e99e140934d0adfc65342", + "_id": "610ea19d8112f14a381cfa2a", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "610e99e140934d0adfc65343", + "objectId": "610ea19d8112f14a381cfa2b", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "attachTo": "task:class:Task", @@ -615,13 +615,13 @@ } }, { - "_id": "610e99e140934d0adfc65344", + "_id": "610ea19d8112f14a381cfa2c", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "610e99e140934d0adfc65345", + "objectId": "610ea19d8112f14a381cfa2d", "objectClass": "workbench:class:Application", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "label": "task:string:ApplicationLabelTask", @@ -639,13 +639,13 @@ } }, { - "_id": "610e99e140934d0adfc65346", + "_id": "610ea19d8112f14a381cfa2e", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "610e99e140934d0adfc65347", + "objectId": "610ea19d8112f14a381cfa2f", "objectClass": "task:class:Project", "objectSpace": "core:space:Model", - "modifiedOn": 1628346849181, + "modifiedOn": 1628348829513, "modifiedBy": "core:account:System", "attributes": { "name": "demo", @@ -653,5 +653,152 @@ "private": false, "members": [] } + }, + { + "_id": "610ea19d8112f14a381cfa30", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "chunter:class:Backlink", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "kind": 0, + "extends": "core:class:Doc" + } + }, + { + "_id": "610ea19d8112f14a381cfa31", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "chunter:class:Message", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "kind": 0, + "extends": "core:class:Doc" + } + }, + { + "_id": "610ea19d8112f14a381cfa32", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "chunter:class:Channel", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "kind": 0, + "extends": "core:class:Space", + "label": "chunter:string:Channel", + "icon": "chunter:icon:Hashtag" + } + }, + { + "_id": "610ea19d8112f14a381cfa33", + "_class": "core:class:TxMixin", + "space": "core:space:Tx", + "modifiedBy": "core:account:System", + "modifiedOn": 1628348829514, + "objectId": "chunter:class:Channel", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "mixin": "workbench:mixin:SpaceView", + "attributes": { + "view": { + "class": "chunter:class:Message" + } + } + }, + { + "_id": "610ea19d8112f14a381cfa34", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "chunter:viewlet:Chat", + "objectClass": "view:class:ViewletDescriptor", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "label": "Chat", + "icon": "view:icon:Table", + "component": "chunter:component:ChannelView" + } + }, + { + "_id": "610ea19d8112f14a381cfa35", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "610ea19d8112f14a381cfa36", + "objectClass": "view:class:Viewlet", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "attachTo": "chunter:class:Message", + "descriptor": "chunter:viewlet:Chat", + "open": "X", + "config": {} + } + }, + { + "_id": "610ea19d8112f14a381cfa37", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "610ea19d8112f14a381cfa38", + "objectClass": "workbench:class:Application", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "label": "chunter:string:ApplicationLabelChunter", + "icon": "chunter:icon:Chunter", + "navigatorModel": { + "spaces": [ + { + "label": "chunter:string:Channels", + "spaceClass": "chunter:class:Channel", + "addSpaceLabel": "chunter:string:CreateChannel", + "createComponent": "chunter:component:CreateChannel" + } + ] + } + } + }, + { + "_id": "610ea19d8112f14a381cfa39", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "610ea19d8112f14a381cfa3a", + "objectClass": "chunter:class:Channel", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "name": "general", + "description": "General Channel", + "private": false, + "members": [] + } + }, + { + "_id": "610ea19d8112f14a381cfa3b", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "610ea19d8112f14a381cfa3c", + "objectClass": "chunter:class:Channel", + "objectSpace": "core:space:Model", + "modifiedOn": 1628348829514, + "modifiedBy": "core:account:System", + "attributes": { + "name": "random", + "description": "Random Talks", + "private": false, + "members": [] + } } ] \ No newline at end of file diff --git a/models/all/package.json b/models/all/package.json index b636e9e592..fb06da9fa3 100644 --- a/models/all/package.json +++ b/models/all/package.json @@ -25,6 +25,7 @@ "@anticrm/model-view": "~0.6.0", "@anticrm/model-workbench": "~0.6.0", "@anticrm/model-contact": "~0.6.0", - "@anticrm/model-task": "~0.6.0" + "@anticrm/model-task": "~0.6.0", + "@anticrm/model-chunter": "~0.6.0" } } diff --git a/models/all/src/index.ts b/models/all/src/index.ts index c47e6453ca..c4092c1572 100644 --- a/models/all/src/index.ts +++ b/models/all/src/index.ts @@ -20,7 +20,7 @@ import { createModel as viewModel } from '@anticrm/model-view' import { createModel as workbenchModel } from '@anticrm/model-workbench' import { createModel as contactModel } from '@anticrm/model-contact' import { createModel as taskModel } from '@anticrm/model-task' -// import { createModel as chunterModel } from '@anticrm/model-chunter' +import { createModel as chunterModel } from '@anticrm/model-chunter' // import { createModel as recruitModel } from '@anticrm/model-recruit' // import { createDemo } from '@anticrm/model-demo' @@ -31,8 +31,8 @@ coreModel(builder) viewModel(builder) workbenchModel(builder) contactModel(builder) +chunterModel(builder) taskModel(builder) -// chunterModel(builder) // recruitModel(builder) // createDemo(builder) diff --git a/models/chunter/.eslintrc.js b/models/chunter/.eslintrc.js new file mode 100644 index 0000000000..1375671262 --- /dev/null +++ b/models/chunter/.eslintrc.js @@ -0,0 +1,6 @@ +module.exports = { + extends: ['./node_modules/@anticrm/model-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + project: './tsconfig.json' + } +} \ No newline at end of file diff --git a/models/chunter/.npmignore b/models/chunter/.npmignore new file mode 100644 index 0000000000..e3ec093c38 --- /dev/null +++ b/models/chunter/.npmignore @@ -0,0 +1,4 @@ +* +!/lib/** +!CHANGELOG.md +/lib/**/__tests__/ diff --git a/models/chunter/config/rig.json b/models/chunter/config/rig.json new file mode 100644 index 0000000000..e9a9ee9add --- /dev/null +++ b/models/chunter/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/model-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/models/chunter/package.json b/models/chunter/package.json new file mode 100644 index 0000000000..70730036f5 --- /dev/null +++ b/models/chunter/package.json @@ -0,0 +1,31 @@ +{ + "name": "@anticrm/model-chunter", + "version": "0.6.0", + "main": "lib/index.js", + "author": "Anticrm Platform Contributors", + "license": "EPL-2.0", + "scripts": { + "build": "heft build", + "lint:fix": "eslint --fix src" + }, + "devDependencies": { + "@anticrm/model-rig":"~0.6.0", + "@typescript-eslint/eslint-plugin":"4", + "eslint-plugin-import":"2", + "eslint-plugin-promise":"4", + "eslint-plugin-node":"11", + "eslint":"^7.32.0" + }, + "dependencies": { + "@anticrm/core": "~0.6.7", + "@anticrm/model": "~0.6.0", + "@anticrm/ui": "~0.6.0", + "@anticrm/view": "~0.6.0", + "@anticrm/chunter": "~0.6.0", + "@anticrm/chunter-resources": "~0.6.0", + "@anticrm/platform": "~0.6.3", + "@anticrm/model-core": "~0.6.0", + "@anticrm/model-view": "~0.6.0", + "@anticrm/model-workbench": "~0.6.0" + } +} diff --git a/models/chunter/src/index.ts b/models/chunter/src/index.ts new file mode 100644 index 0000000000..404e004392 --- /dev/null +++ b/models/chunter/src/index.ts @@ -0,0 +1,92 @@ +// +// Copyright © 2020, 2021 Anticrm Platform Contributors. +// +// Licensed under the Eclipse Public License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. You may +// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +import type { IntlString } from '@anticrm/platform' +import { Builder, Model, UX } from '@anticrm/model' +import type { Ref, Doc, Class } from '@anticrm/core' +import core, { TSpace, TDoc } from '@anticrm/model-core' +import type { Backlink, Channel, Message } from '@anticrm/chunter' +import type { AnyComponent } from '@anticrm/ui' + +import workbench from '@anticrm/model-workbench' + +import view from '@anticrm/model-view' +import chunter from './plugin' + +@Model(chunter.class.Channel, core.class.Space) +@UX(chunter.string.Channel, chunter.icon.Hashtag) +export class TChannel extends TSpace implements Channel {} + +@Model(chunter.class.Message, core.class.Doc) +export class TMessage extends TDoc implements Message { + content!: string +} + +@Model(chunter.class.Backlink, core.class.Doc) +export class TBacklink extends TDoc implements Backlink { + objectId!: Ref + backlinkId!: Ref + backlinkClass!: Ref> + message!: string +} + +export function createModel (builder: Builder): void { + builder.createModel(TChannel, TMessage, TBacklink) + builder.mixin(chunter.class.Channel, core.class.Class, workbench.mixin.SpaceView, { + view: { + class: chunter.class.Message + } + }) + + builder.createDoc(view.class.ViewletDescriptor, core.space.Model, { + label: 'Chat' as IntlString, + icon: view.icon.Table, + component: chunter.component.ChannelView + }, chunter.viewlet.Chat) + + builder.createDoc(view.class.Viewlet, core.space.Model, { + attachTo: chunter.class.Message, + descriptor: chunter.viewlet.Chat, + open: 'X' as AnyComponent, + config: {} + }) + + builder.createDoc(workbench.class.Application, core.space.Model, { + label: chunter.string.ApplicationLabelChunter, + icon: chunter.icon.Chunter, + navigatorModel: { + spaces: [ + { + label: chunter.string.Channels, + spaceClass: chunter.class.Channel, + addSpaceLabel: chunter.string.CreateChannel, + createComponent: chunter.component.CreateChannel + } + ] + } + }) + builder.createDoc(chunter.class.Channel, core.space.Model, { + name: 'general', + description: 'General Channel', + private: false, + members: [] + }) + builder.createDoc(chunter.class.Channel, core.space.Model, { + name: 'random', + description: 'Random Talks', + private: false, + members: [] + }) +} diff --git a/models/chunter/src/plugin.ts b/models/chunter/src/plugin.ts new file mode 100644 index 0000000000..e025218344 --- /dev/null +++ b/models/chunter/src/plugin.ts @@ -0,0 +1,30 @@ +// +// Copyright © 2020 Anticrm Platform Contributors. +// +// Licensed under the Eclipse Public License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. You may +// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +import { chunterId } from '@anticrm/chunter' +import chunter from '@anticrm/chunter-resources/src/plugin' +import type { IntlString } from '@anticrm/platform' +import { mergeIds } from '@anticrm/platform' +import type { Ref } from '@anticrm/core' +import { ViewletDescriptor } from '@anticrm/view' + +export default mergeIds(chunterId, chunter, { + string: { + ApplicationLabelChunter: '' as IntlString + }, + viewlet: { + Chat: '' as Ref + } +}) diff --git a/models/chunter/tsconfig.json b/models/chunter/tsconfig.json new file mode 100644 index 0000000000..1d60db76b4 --- /dev/null +++ b/models/chunter/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "./node_modules/@anticrm/model-rig/profiles/default/tsconfig.json", + + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib", + } +} \ No newline at end of file diff --git a/packages/core/src/client.ts b/packages/core/src/client.ts index 7b82e6d306..b3a86ca671 100644 --- a/packages/core/src/client.ts +++ b/packages/core/src/client.ts @@ -15,6 +15,7 @@ import type { Doc, Ref, Class } from './classes' import type { Tx } from './tx' +import { TxOperations } from './tx' import type { Storage, DocumentQuery, FindOptions, FindResult } from './storage' import { Hierarchy } from './hierarchy' @@ -31,16 +32,14 @@ export type TxHander = (tx: Tx) => void /** * @public */ -export interface Client extends Storage { +export interface Client extends TxOperations { getHierarchy: () => Hierarchy } -class ClientImpl implements Storage, Client { +class ClientStorage implements Storage { constructor (private readonly hierarchy: Hierarchy, private readonly model: ModelDb, private readonly conn: Storage) { } - getHierarchy (): Hierarchy { return this.hierarchy } - async findAll( _class: Ref>, query: DocumentQuery, @@ -58,6 +57,14 @@ class ClientImpl implements Storage, Client { } } +class ClientImpl extends TxOperations { + constructor (private readonly hierarchy: Hierarchy, model: ModelDb, conn: Storage) { + super(new ClientStorage(hierarchy, model, conn), core.account.System) + } + + getHierarchy (): Hierarchy { return this.hierarchy } +} + /** * @public */ diff --git a/packages/query/src/index.ts b/packages/query/src/index.ts index b8f52752c9..d919e417c6 100644 --- a/packages/query/src/index.ts +++ b/packages/query/src/index.ts @@ -16,7 +16,7 @@ import { Ref, Class, Doc, Tx, DocumentQuery, TxCreateDoc, TxRemoveDoc, Client, FindOptions, TxUpdateDoc, _getOperator, TxProcessor, resultSort, SortingQuery, - FindResult, Hierarchy, Refs, WithLookup, LookupData + FindResult, Hierarchy, Refs, WithLookup, LookupData, Storage } from '@anticrm/core' /** @@ -33,7 +33,7 @@ export interface _Query { /** * @public */ -export class LiveQuery extends TxProcessor implements Client { +export class LiveQuery extends TxProcessor implements Storage { private readonly client: Client private readonly queries: _Query[] = [] diff --git a/plugins/chunter-assets/assets/icons.svg b/plugins/chunter-assets/assets/icons.svg new file mode 100644 index 0000000000..eac3e9160c --- /dev/null +++ b/plugins/chunter-assets/assets/icons.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/plugins/chunter-assets/package.json b/plugins/chunter-assets/package.json new file mode 100644 index 0000000000..9ab63eef5b --- /dev/null +++ b/plugins/chunter-assets/package.json @@ -0,0 +1,21 @@ +{ + "name": "@anticrm/chunter-assets", + "version": "0.6.0", + "main": "src/index.ts", + "author": "Anticrm Platform Contributors", + "license": "EPL-2.0", + "scripts": { + "build": "", + "build:docs": "api-extractor run --local", + "test": "echo 'no tests'", + "lint": "ts-standard src", + "lint:fix": "ts-standard --fix src", + "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + }, + "devDependencies": { + }, + "dependencies": { + "@anticrm/platform":"~0.6.3", + "@anticrm/chunter":"~0.6.0" + } +} diff --git a/plugins/chunter-assets/src/index.ts b/plugins/chunter-assets/src/index.ts new file mode 100644 index 0000000000..9333f65c09 --- /dev/null +++ b/plugins/chunter-assets/src/index.ts @@ -0,0 +1,24 @@ +// +// Copyright © 2020 Anticrm Platform Contributors. +// +// Licensed under the Eclipse Public License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. You may +// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +import { loadMetadata } from '@anticrm/platform' +import chunter from '@anticrm/chunter' + +const icons = require('../assets/icons.svg') +loadMetadata(chunter.icon, { + Chunter: `${icons}#chunter`, + Hashtag: `${icons}#hashtag`, + Lock: `${icons}#lock` +}) diff --git a/plugins/chunter-assets/tsconfig.json b/plugins/chunter-assets/tsconfig.json new file mode 100644 index 0000000000..cabe5aefad --- /dev/null +++ b/plugins/chunter-assets/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "esnext", + "module": "esnext", + "declaration": true, + "outDir": "./lib", + "strict": true, + "esModuleInterop": true, + "lib": [ + "esnext", + "dom" + ] + } +} \ No newline at end of file diff --git a/plugins/chunter-resources/img/avatar.png b/plugins/chunter-resources/img/avatar.png new file mode 100644 index 0000000000..8d61750a2c Binary files /dev/null and b/plugins/chunter-resources/img/avatar.png differ diff --git a/plugins/chunter-resources/package.json b/plugins/chunter-resources/package.json new file mode 100644 index 0000000000..6454c6aba1 --- /dev/null +++ b/plugins/chunter-resources/package.json @@ -0,0 +1,30 @@ +{ + "name": "@anticrm/chunter-resources", + "version": "0.6.0", + "main": "src/index.ts", + "author": "Anticrm Platform Contributors", + "license": "EPL-2.0", + "scripts": { + "build": "", + "build:docs": "api-extractor run --local", + "test": "jest", + "lint": "eslint src", + "lint:fix": "eslint --fix src", + "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src", + "svelte-check": "svelte-check" + }, + "devDependencies": { + "svelte-loader":"^3.1.2", + "sass":"^1.37.5", + "svelte-preprocess":"^4.7.4" + }, + "dependencies": { + "@anticrm/core":"~0.6.0", + "@anticrm/platform":"~0.6.0", + "@anticrm/ui":"~0.6.0", + "@anticrm/presentation":"~0.6.0", + "@anticrm/chunter":"~0.6.0", + "svelte":"^3.37.0", + "@anticrm/text-editor":"~0.6.0" + } +} diff --git a/plugins/chunter-resources/postcss.config.js b/plugins/chunter-resources/postcss.config.js new file mode 100644 index 0000000000..88752c6cb0 --- /dev/null +++ b/plugins/chunter-resources/postcss.config.js @@ -0,0 +1,5 @@ +module.exports = { + plugins: [ + require('autoprefixer') + ] +} diff --git a/plugins/chunter-resources/src/components/Channel.svelte b/plugins/chunter-resources/src/components/Channel.svelte new file mode 100644 index 0000000000..b2c870b64c --- /dev/null +++ b/plugins/chunter-resources/src/components/Channel.svelte @@ -0,0 +1,46 @@ + + + + +
+ {#if messages} + {#each messages as message} + + {/each} + {/if} +
+ + diff --git a/plugins/chunter-resources/src/components/ChannelSeparator.svelte b/plugins/chunter-resources/src/components/ChannelSeparator.svelte new file mode 100644 index 0000000000..2ee9ee5d17 --- /dev/null +++ b/plugins/chunter-resources/src/components/ChannelSeparator.svelte @@ -0,0 +1,73 @@ + + + + +
+
{title}
+
+ + diff --git a/plugins/chunter-resources/src/components/ChannelView.svelte b/plugins/chunter-resources/src/components/ChannelView.svelte new file mode 100644 index 0000000000..edbf6cf499 --- /dev/null +++ b/plugins/chunter-resources/src/components/ChannelView.svelte @@ -0,0 +1,55 @@ + + + + +
+ +
+
+ +
+ + diff --git a/plugins/chunter-resources/src/components/CreateChannel.svelte b/plugins/chunter-resources/src/components/CreateChannel.svelte new file mode 100644 index 0000000000..2602641d9c --- /dev/null +++ b/plugins/chunter-resources/src/components/CreateChannel.svelte @@ -0,0 +1,69 @@ + + + + + { dispatch('close') }}> + + +