From 0100680d2d1020ceb4fc03cec8a24109d2d04b36 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Thu, 13 Apr 2023 18:59:02 +0200 Subject: [PATCH] refactor: extract third party integration extensions into separate array Signed-off-by: Tilman Vatteroth --- .../optional-app-extensions.ts | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/frontend/src/extensions/extra-integrations/optional-app-extensions.ts b/frontend/src/extensions/extra-integrations/optional-app-extensions.ts index e96b3eb20..086014ebc 100644 --- a/frontend/src/extensions/extra-integrations/optional-app-extensions.ts +++ b/frontend/src/extensions/extra-integrations/optional-app-extensions.ts @@ -32,27 +32,31 @@ import { VegaLiteAppExtension } from './vega-lite/vega-lite-app-extension' import { VimeoAppExtension } from './vimeo/vimeo-app-extension' import { YoutubeAppExtension } from './youtube/youtube-app-extension' -/** - * This array defines additional app extensions that are used in the editor, read only page and slideshow. - */ -export const optionalAppExtensions: AppExtension[] = [ +const thirdPartyIntegrationAppExtensions: AppExtension[] = [ new AbcjsAppExtension(), - new AlertAppExtension(), - new BlockquoteAppExtension(), - new CsvTableAppExtension(), new FlowchartAppExtension(), new GistAppExtension(), new GraphvizAppExtension(), new KatexAppExtension(), new AsciinemaAppExtension(), - new LegacyShortcodesAppExtension(), new MermaidAppExtension(), new PlantumlAppExtension(), - new LegacySequenceDiagramAppExtension(), - new SpoilerAppExtension(), new VegaLiteAppExtension(), 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 HighlightedCodeFenceAppExtension(), new ForkAwesomeHtmlTagAppExtension(),