Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-12-20 10:08:52 +01:00 committed by GitHub
parent 461a282b3d
commit 9f2670964c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 2247 additions and 2001 deletions

File diff suppressed because it is too large Load Diff

View File

@ -104,7 +104,7 @@ async function restoreElastic (mongoUrl: string, dbName: string, minio: Client,
const db = mongoClient.db(dbName)
const elastic = await createElasticAdapter(elasticUrl, dbName)
const storage = await createStorage(mongoUrl, elasticUrl, dbName)
const txes = (await db.collection(DOMAIN_TX).find().sort({ _id: 1 }).toArray()) as Tx[]
const txes = (await db.collection<Tx>(DOMAIN_TX).find().sort({ _id: 1 }).toArray())
const data = txes.filter((tx) => tx.objectSpace !== core.space.Model)
for (const tx of data) {
await storage.tx(tx)

View File

@ -51,6 +51,8 @@
<ol><svelte:self nodes={node.childNodes}/></ol>
{:else if node.nodeName === 'LI'}
<li><svelte:self nodes={node.childNodes}/></li>
{:else if node.nodeName === 'A'}
<a href={node.getAttribute('href')}><svelte:self nodes={node.childNodes}/></a>
{:else if node.nodeName === 'SPAN'}
<Person objectId={node.getAttribute('data-id')} title={node.getAttribute('data-label')} />
{:else}

View File

@ -40,6 +40,7 @@
"@tiptap/extension-highlight": "~2.0.0-beta.15",
"@tiptap/extension-placeholder": "~2.0.0-beta.26",
"@tiptap/extension-mention": "~2.0.0-beta.63",
"@tiptap/extension-typography": "~2.0.0-beta.13"
"@tiptap/extension-typography": "~2.0.0-beta.13",
"@tiptap/extension-link": "~2.0.0-beta.33"
}
}

View File

@ -20,6 +20,7 @@ import { onMount, onDestroy, createEventDispatcher } from 'svelte'
import { Editor, Extension } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'
import Highlight from '@tiptap/extension-highlight'
import Link from '@tiptap/extension-link'
import Typography from '@tiptap/extension-typography'
import Placeholder from '@tiptap/extension-placeholder'
import Mention from '@tiptap/extension-mention'
@ -69,6 +70,7 @@ onMount(() => {
HandleEnter,
StarterKit,
Highlight,
Link,
// Typography, // we need to disable 1/2 -> ½ rule (https://github.com/hcengineering/anticrm/issues/345)
Placeholder.configure({placeholder: placeholder}),
Mention.configure({

View File

@ -5,7 +5,7 @@
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.18.13"
"packageVersion": "7.19.2"
}
]
}