From f49b7649fbe4a979634ea91d9c933020571ed101 Mon Sep 17 00:00:00 2001 From: briandennis Date: Mon, 9 Apr 2018 16:57:04 -0500 Subject: [PATCH] reorganize custom themes/modes --- components/Meta.js | 2 +- lib/constants.js | 2 +- lib/{customModes => custom/modes}/apache.js | 0 lib/{customModes => custom/modes}/elixir.js | 0 lib/{customModes => custom/modes}/graphql.js | 0 lib/{customModes => custom/modes}/nimrod.js | 0 {static/customThemes => lib/custom/themes}/one-dark.css | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename lib/{customModes => custom/modes}/apache.js (100%) rename lib/{customModes => custom/modes}/elixir.js (100%) rename lib/{customModes => custom/modes}/graphql.js (100%) rename lib/{customModes => custom/modes}/nimrod.js (100%) rename {static/customThemes => lib/custom/themes}/one-dark.css (100%) diff --git a/components/Meta.js b/components/Meta.js index 2f40f43..71f6a1f 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -6,7 +6,7 @@ import Typography from './style/Typography' import '../static/react-crop.css' import '../static/react-spinner.css' -import '../static/customThemes/one-dark.css' +import '../lib/custom/themes/one-dark.css' export default () => { const onBrowser = typeof window !== 'undefined' diff --git a/lib/constants.js b/lib/constants.js index a1ce825..01e1e1f 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -447,7 +447,7 @@ if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') { if (language.mode && !alreadyLoaded.has(language.mode)) { alreadyLoaded.add(language.mode) language.custom - ? require(`./customModes/${language.mode}`) + ? require(`./custom/modes/${language.mode}`) : require(`codemirror/mode/${language.mode}/${language.mode}`) } } diff --git a/lib/customModes/apache.js b/lib/custom/modes/apache.js similarity index 100% rename from lib/customModes/apache.js rename to lib/custom/modes/apache.js diff --git a/lib/customModes/elixir.js b/lib/custom/modes/elixir.js similarity index 100% rename from lib/customModes/elixir.js rename to lib/custom/modes/elixir.js diff --git a/lib/customModes/graphql.js b/lib/custom/modes/graphql.js similarity index 100% rename from lib/customModes/graphql.js rename to lib/custom/modes/graphql.js diff --git a/lib/customModes/nimrod.js b/lib/custom/modes/nimrod.js similarity index 100% rename from lib/customModes/nimrod.js rename to lib/custom/modes/nimrod.js diff --git a/static/customThemes/one-dark.css b/lib/custom/themes/one-dark.css similarity index 100% rename from static/customThemes/one-dark.css rename to lib/custom/themes/one-dark.css