From 479a8008c63b2f5df85b9a7be8f93fe70341585d Mon Sep 17 00:00:00 2001 From: Marek Lewandowski Date: Tue, 8 Mar 2022 11:07:02 +0100 Subject: [PATCH] Adjusted icon file name casing. --- src/index.js | 6 +++--- src/mermaidui.js | 6 +++--- tests/index.js | 6 +++--- theme/icons/{previewMode.svg => preview-mode.svg} | 0 theme/icons/{sourceMode.svg => source-mode.svg} | 0 theme/icons/{splitMode.svg => split-mode.svg} | 0 6 files changed, 9 insertions(+), 9 deletions(-) rename theme/icons/{previewMode.svg => preview-mode.svg} (100%) rename theme/icons/{sourceMode.svg => source-mode.svg} (100%) rename theme/icons/{splitMode.svg => split-mode.svg} (100%) diff --git a/src/index.js b/src/index.js index 3f45adb68..963d53929 100644 --- a/src/index.js +++ b/src/index.js @@ -4,9 +4,9 @@ import infoIcon from './../theme/icons/info.svg'; import insertMermaidIcon from './../theme/icons/insert.svg'; -import previewModeIcon from './../theme/icons/previewMode.svg'; -import splitModeIcon from './../theme/icons/splitMode.svg'; -import sourceModeIcon from './../theme/icons/sourceMode.svg'; +import previewModeIcon from './../theme/icons/preview-mode.svg'; +import splitModeIcon from './../theme/icons/split-mode.svg'; +import sourceModeIcon from './../theme/icons/source-mode.svg'; export { default as Mermaid } from './mermaid'; diff --git a/src/mermaidui.js b/src/mermaidui.js index ed9eaaf01..0d9000d58 100644 --- a/src/mermaidui.js +++ b/src/mermaidui.js @@ -6,9 +6,9 @@ import { Plugin } from 'ckeditor5/src/core'; import { ButtonView } from 'ckeditor5/src/ui'; import insertMermaidIcon from '../theme/icons/insert.svg'; -import previewModeIcon from '../theme/icons/previewMode.svg'; -import splitModeIcon from '../theme/icons/splitMode.svg'; -import sourceModeIcon from '../theme/icons/sourceMode.svg'; +import previewModeIcon from '../theme/icons/preview-mode.svg'; +import splitModeIcon from '../theme/icons/split-mode.svg'; +import sourceModeIcon from '../theme/icons/source-mode.svg'; import infoIcon from '../theme/icons/info.svg'; /* global window */ diff --git a/tests/index.js b/tests/index.js index 5f342e3ef..9f33b05cd 100644 --- a/tests/index.js +++ b/tests/index.js @@ -3,9 +3,9 @@ import Mermaid from '../src/mermaid'; import infoIcon from './../theme/icons/info.svg'; import insertMermaidIcon from './../theme/icons/insert.svg'; -import previewModeIcon from './../theme/icons/previewMode.svg'; -import splitModeIcon from './../theme/icons/splitMode.svg'; -import sourceModeIcon from './../theme/icons/sourceMode.svg'; +import previewModeIcon from './../theme/icons/preview-mode.svg'; +import splitModeIcon from './../theme/icons/split-mode.svg'; +import sourceModeIcon from './../theme/icons/source-mode.svg'; describe( 'CKEditor5 Mermaid DLL', () => { it( 'exports MermaidWidget', () => { diff --git a/theme/icons/previewMode.svg b/theme/icons/preview-mode.svg similarity index 100% rename from theme/icons/previewMode.svg rename to theme/icons/preview-mode.svg diff --git a/theme/icons/sourceMode.svg b/theme/icons/source-mode.svg similarity index 100% rename from theme/icons/sourceMode.svg rename to theme/icons/source-mode.svg diff --git a/theme/icons/splitMode.svg b/theme/icons/split-mode.svg similarity index 100% rename from theme/icons/splitMode.svg rename to theme/icons/split-mode.svg