mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 21:44:06 -05:00
refactor: extract third party integration extensions into separate array
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
bb7a6a74f7
commit
c39561f8e2
1 changed files with 15 additions and 11 deletions
|
@ -32,27 +32,31 @@ import { VegaLiteAppExtension } from './vega-lite/vega-lite-app-extension'
|
||||||
import { VimeoAppExtension } from './vimeo/vimeo-app-extension'
|
import { VimeoAppExtension } from './vimeo/vimeo-app-extension'
|
||||||
import { YoutubeAppExtension } from './youtube/youtube-app-extension'
|
import { YoutubeAppExtension } from './youtube/youtube-app-extension'
|
||||||
|
|
||||||
/**
|
const thirdPartyIntegrationAppExtensions: AppExtension[] = [
|
||||||
* This array defines additional app extensions that are used in the editor, read only page and slideshow.
|
|
||||||
*/
|
|
||||||
export const optionalAppExtensions: AppExtension[] = [
|
|
||||||
new AbcjsAppExtension(),
|
new AbcjsAppExtension(),
|
||||||
new AlertAppExtension(),
|
|
||||||
new BlockquoteAppExtension(),
|
|
||||||
new CsvTableAppExtension(),
|
|
||||||
new FlowchartAppExtension(),
|
new FlowchartAppExtension(),
|
||||||
new GistAppExtension(),
|
new GistAppExtension(),
|
||||||
new GraphvizAppExtension(),
|
new GraphvizAppExtension(),
|
||||||
new KatexAppExtension(),
|
new KatexAppExtension(),
|
||||||
new AsciinemaAppExtension(),
|
new AsciinemaAppExtension(),
|
||||||
new LegacyShortcodesAppExtension(),
|
|
||||||
new MermaidAppExtension(),
|
new MermaidAppExtension(),
|
||||||
new PlantumlAppExtension(),
|
new PlantumlAppExtension(),
|
||||||
new LegacySequenceDiagramAppExtension(),
|
|
||||||
new SpoilerAppExtension(),
|
|
||||||
new VegaLiteAppExtension(),
|
new VegaLiteAppExtension(),
|
||||||
new VimeoAppExtension(),
|
new VimeoAppExtension(),
|
||||||
new YoutubeAppExtension(),
|
new YoutubeAppExtension()
|
||||||
|
]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This array defines additional app extensions that are used in the editor, read only page and slideshow.
|
||||||
|
*/
|
||||||
|
export const optionalAppExtensions: AppExtension[] = [
|
||||||
|
...thirdPartyIntegrationAppExtensions,
|
||||||
|
new AlertAppExtension(),
|
||||||
|
new BlockquoteAppExtension(),
|
||||||
|
new CsvTableAppExtension(),
|
||||||
|
new LegacyShortcodesAppExtension(),
|
||||||
|
new LegacySequenceDiagramAppExtension(),
|
||||||
|
new SpoilerAppExtension(),
|
||||||
new TaskListCheckboxAppExtension(),
|
new TaskListCheckboxAppExtension(),
|
||||||
new HighlightedCodeFenceAppExtension(),
|
new HighlightedCodeFenceAppExtension(),
|
||||||
new ForkAwesomeHtmlTagAppExtension(),
|
new ForkAwesomeHtmlTagAppExtension(),
|
||||||
|
|
Loading…
Reference in a new issue