mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 23:32:14 +00:00
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
461a282b3d
commit
9f2670964c
File diff suppressed because it is too large
Load Diff
@ -104,7 +104,7 @@ async function restoreElastic (mongoUrl: string, dbName: string, minio: Client,
|
|||||||
const db = mongoClient.db(dbName)
|
const db = mongoClient.db(dbName)
|
||||||
const elastic = await createElasticAdapter(elasticUrl, dbName)
|
const elastic = await createElasticAdapter(elasticUrl, dbName)
|
||||||
const storage = await createStorage(mongoUrl, 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)
|
const data = txes.filter((tx) => tx.objectSpace !== core.space.Model)
|
||||||
for (const tx of data) {
|
for (const tx of data) {
|
||||||
await storage.tx(tx)
|
await storage.tx(tx)
|
||||||
|
@ -51,6 +51,8 @@
|
|||||||
<ol><svelte:self nodes={node.childNodes}/></ol>
|
<ol><svelte:self nodes={node.childNodes}/></ol>
|
||||||
{:else if node.nodeName === 'LI'}
|
{:else if node.nodeName === 'LI'}
|
||||||
<li><svelte:self nodes={node.childNodes}/></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'}
|
{:else if node.nodeName === 'SPAN'}
|
||||||
<Person objectId={node.getAttribute('data-id')} title={node.getAttribute('data-label')} />
|
<Person objectId={node.getAttribute('data-id')} title={node.getAttribute('data-label')} />
|
||||||
{:else}
|
{:else}
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
"@tiptap/extension-highlight": "~2.0.0-beta.15",
|
"@tiptap/extension-highlight": "~2.0.0-beta.15",
|
||||||
"@tiptap/extension-placeholder": "~2.0.0-beta.26",
|
"@tiptap/extension-placeholder": "~2.0.0-beta.26",
|
||||||
"@tiptap/extension-mention": "~2.0.0-beta.63",
|
"@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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@ import { onMount, onDestroy, createEventDispatcher } from 'svelte'
|
|||||||
import { Editor, Extension } from '@tiptap/core'
|
import { Editor, Extension } from '@tiptap/core'
|
||||||
import StarterKit from '@tiptap/starter-kit'
|
import StarterKit from '@tiptap/starter-kit'
|
||||||
import Highlight from '@tiptap/extension-highlight'
|
import Highlight from '@tiptap/extension-highlight'
|
||||||
|
import Link from '@tiptap/extension-link'
|
||||||
import Typography from '@tiptap/extension-typography'
|
import Typography from '@tiptap/extension-typography'
|
||||||
import Placeholder from '@tiptap/extension-placeholder'
|
import Placeholder from '@tiptap/extension-placeholder'
|
||||||
import Mention from '@tiptap/extension-mention'
|
import Mention from '@tiptap/extension-mention'
|
||||||
@ -69,6 +70,7 @@ onMount(() => {
|
|||||||
HandleEnter,
|
HandleEnter,
|
||||||
StarterKit,
|
StarterKit,
|
||||||
Highlight,
|
Highlight,
|
||||||
|
Link,
|
||||||
// Typography, // we need to disable 1/2 -> ½ rule (https://github.com/hcengineering/anticrm/issues/345)
|
// Typography, // we need to disable 1/2 -> ½ rule (https://github.com/hcengineering/anticrm/issues/345)
|
||||||
Placeholder.configure({placeholder: placeholder}),
|
Placeholder.configure({placeholder: placeholder}),
|
||||||
Mention.configure({
|
Mention.configure({
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"toolPackages": [
|
"toolPackages": [
|
||||||
{
|
{
|
||||||
"packageName": "@microsoft/api-extractor",
|
"packageName": "@microsoft/api-extractor",
|
||||||
"packageVersion": "7.18.13"
|
"packageVersion": "7.19.2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user