diff --git a/src/scripts/closebrackets.js b/src/assets/scripts/closebrackets.js similarity index 100% rename from src/scripts/closebrackets.js rename to src/assets/scripts/closebrackets.js diff --git a/src/scripts/config.js b/src/assets/scripts/config.js similarity index 100% rename from src/scripts/config.js rename to src/assets/scripts/config.js diff --git a/src/scripts/converter.js b/src/assets/scripts/converter.js similarity index 100% rename from src/scripts/converter.js rename to src/assets/scripts/converter.js diff --git a/src/scripts/default-content.js b/src/assets/scripts/default-content.js similarity index 100% rename from src/scripts/default-content.js rename to src/assets/scripts/default-content.js diff --git a/src/scripts/format.js b/src/assets/scripts/format.js similarity index 100% rename from src/scripts/format.js rename to src/assets/scripts/format.js diff --git a/src/scripts/renderers/wx-renderer.js b/src/assets/scripts/renderers/wx-renderer.js similarity index 100% rename from src/scripts/renderers/wx-renderer.js rename to src/assets/scripts/renderers/wx-renderer.js diff --git a/src/scripts/themes/default-theme-css.js b/src/assets/scripts/themes/default-theme-css.js similarity index 100% rename from src/scripts/themes/default-theme-css.js rename to src/assets/scripts/themes/default-theme-css.js diff --git a/src/scripts/themes/default-theme.js b/src/assets/scripts/themes/default-theme.js similarity index 100% rename from src/scripts/themes/default-theme.js rename to src/assets/scripts/themes/default-theme.js diff --git a/src/scripts/util.js b/src/assets/scripts/util.js similarity index 100% rename from src/scripts/util.js rename to src/assets/scripts/util.js diff --git a/src/main.js b/src/main.js index e1db96e..6002edd 100644 --- a/src/main.js +++ b/src/main.js @@ -3,7 +3,7 @@ import App from './App.vue' import store from './store' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' -import './element' +import './plugins/element' import 'codemirror/lib/codemirror.css'; import 'codemirror/theme/ambiance.css'; import 'codemirror/theme/xq-light.css'; diff --git a/src/element/index.js b/src/plugins/element/index.js similarity index 100% rename from src/element/index.js rename to src/plugins/element/index.js diff --git a/src/store/index.js b/src/store/index.js index db8b943..0d350e6 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,15 +1,15 @@ import Vue from 'vue' import Vuex from 'vuex' -import config from '../scripts/config'; -import WxRenderer from '../scripts/renderers/wx-renderer' +import config from '../assets/scripts/config'; +import WxRenderer from '../assets/scripts/renderers/wx-renderer' import marked from 'marked' import CodeMirror from 'codemirror/lib/codemirror' -import DEFAULT_CONTENT from '../scripts/default-content' -import DEFAULT_CSS_CONTENT from '../scripts/themes/default-theme-css' +import DEFAULT_CONTENT from '../assets/scripts/default-content' +import DEFAULT_CSS_CONTENT from '../assets/scripts/themes/default-theme-css' import { setColor, formatDoc -} from '../scripts/util' +} from '../assets/scripts/util' Vue.use(Vuex)