fix(deps): replace flexsearch-ts with orama

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2024-01-15 22:35:55 +01:00 committed by David Mehren
parent 931ce68a32
commit 07162b7807
25 changed files with 266 additions and 215 deletions

View file

@ -22,7 +22,7 @@ export class AlertAppExtension extends AppExtension {
}
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [{ i18nKey: 'alert' }]
return [{ i18nKey: 'alert', categoryI18nKey: 'other' }]
}
buildAutocompletion(): CompletionSource[] {

View file

@ -20,19 +20,19 @@ export class BasicMarkdownSyntaxAppExtension extends AppExtension {
return [
{
i18nKey: 'basics.basicFormatting',
categoryI18nKey: 'basic'
categoryI18nKey: 'basics'
},
{
i18nKey: 'basics.abbreviation',
categoryI18nKey: 'basic'
categoryI18nKey: 'basics'
},
{
i18nKey: 'basics.footnote',
categoryI18nKey: 'basic'
categoryI18nKey: 'basics'
},
{
i18nKey: 'basics.headlines',
categoryI18nKey: 'basic',
categoryI18nKey: 'basics',
topics: [
{
i18nKey: 'hashtag'
@ -44,22 +44,43 @@ export class BasicMarkdownSyntaxAppExtension extends AppExtension {
},
{
i18nKey: 'basics.code',
categoryI18nKey: 'basic',
topics: [{ i18nKey: 'inline' }, { i18nKey: 'block' }]
categoryI18nKey: 'basics',
topics: [
{
i18nKey: 'inline'
},
{
i18nKey: 'block'
}
]
},
{
i18nKey: 'basics.lists',
categoryI18nKey: 'basic',
topics: [{ i18nKey: 'unordered' }, { i18nKey: 'ordered' }]
categoryI18nKey: 'basics',
topics: [
{
i18nKey: 'unordered'
},
{
i18nKey: 'ordered'
}
]
},
{
i18nKey: 'basics.images',
categoryI18nKey: 'basic',
topics: [{ i18nKey: 'basic' }, { i18nKey: 'size' }]
categoryI18nKey: 'basics',
topics: [
{
i18nKey: 'basic'
},
{
i18nKey: 'size'
}
]
},
{
i18nKey: 'basics.links',
categoryI18nKey: 'basic'
categoryI18nKey: 'basics'
}
]
}

View file

@ -22,7 +22,13 @@ export class BlockquoteAppExtension extends AppExtension {
}
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [{ i18nKey: 'blockquoteTags', topics: [{ i18nKey: 'name' }, { i18nKey: 'color' }, { i18nKey: 'time' }] }]
return [
{
i18nKey: 'blockquoteTags',
categoryI18nKey: 'other',
topics: [{ i18nKey: 'name' }, { i18nKey: 'color' }, { i18nKey: 'time' }]
}
]
}
buildAutocompletion(): CompletionSource[] {

View file

@ -20,7 +20,9 @@ export class BootstrapIconAppExtension extends AppExtension {
}
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [{ i18nKey: 'bootstrapIcon', readMoreUrl: new URL('https://icons.getbootstrap.com/') }]
return [
{ i18nKey: 'bootstrapIcon', categoryI18nKey: 'other', readMoreUrl: new URL('https://icons.getbootstrap.com/') }
]
}
buildAutocompletion(): CompletionSource[] {

View file

@ -22,7 +22,7 @@ export class CsvTableAppExtension extends AppExtension {
}
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [{ i18nKey: 'csv', topics: [{ i18nKey: 'table' }, { i18nKey: 'header' }] }]
return [{ i18nKey: 'csv', categoryI18nKey: 'other', topics: [{ i18nKey: 'table' }, { i18nKey: 'header' }] }]
}
buildAutocompletion(): CompletionSource[] {

View file

@ -21,6 +21,7 @@ export class EmojiAppExtension extends AppExtension {
return [
{
i18nKey: 'emoji',
categoryI18nKey: 'other',
readMoreUrl: new URL('https://twemoji.twitter.com/')
}
]

View file

@ -24,6 +24,7 @@ export class HighlightedCodeFenceAppExtension extends AppExtension {
return [
{
i18nKey: 'codeHighlighting',
categoryI18nKey: 'other',
topics: [{ i18nKey: 'language' }, { i18nKey: 'lineNumbers' }, { i18nKey: 'lineWrapping' }]
}
]

View file

@ -19,7 +19,8 @@ export class ImagePlaceholderAppExtension extends AppExtension {
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [
{
i18nKey: 'imagePlaceholder'
i18nKey: 'imagePlaceholder',
categoryI18nKey: 'other'
}
]
}

View file

@ -24,7 +24,7 @@ export class SpoilerAppExtension extends AppExtension {
}
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [{ i18nKey: 'spoiler' }]
return [{ i18nKey: 'spoiler', categoryI18nKey: 'other' }]
}
buildAutocompletion(): CompletionSource[] {

View file

@ -21,6 +21,7 @@ export class TableOfContentsAppExtension extends AppExtension {
return [
{
i18nKey: 'toc',
categoryI18nKey: 'other',
topics: [
{
i18nKey: 'basic'

View file

@ -26,6 +26,6 @@ export class TaskListCheckboxAppExtension extends AppExtension {
}
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [{ i18nKey: 'taskList', cheatsheetExtensionComponent: SetCheckboxInCheatsheet }]
return [{ i18nKey: 'taskList', categoryI18nKey: 'other', cheatsheetExtensionComponent: SetCheckboxInCheatsheet }]
}
}

View file

@ -19,6 +19,6 @@ export class KatexAppExtension extends AppExtension {
}
buildCheatsheetExtensions(): CheatsheetExtension[] {
return [{ i18nKey: 'katex', readMoreUrl: new URL('https://katex.org/') }]
return [{ i18nKey: 'katex', categoryI18nKey: 'other', readMoreUrl: new URL('https://katex.org/') }]
}
}