From 0e9afde5fa87d7039d4cebd43e5613541c56849a Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Tue, 11 Apr 2017 21:33:54 +0800 Subject: [PATCH] Move syncsroll under lib --- public/js/index.js | 2 +- public/js/{ => lib}/syncscroll.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename public/js/{ => lib}/syncscroll.js (99%) diff --git a/public/js/index.js b/public/js/index.js index 0ca6827..245cf29 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -65,7 +65,7 @@ import { setupSyncAreas, syncScrollToEdit, syncScrollToView -} from './syncscroll' +} from './lib/syncscroll' import { writeHistory, diff --git a/public/js/syncscroll.js b/public/js/lib/syncscroll.js similarity index 99% rename from public/js/syncscroll.js rename to public/js/lib/syncscroll.js index ad21e57..6b07e79 100644 --- a/public/js/syncscroll.js +++ b/public/js/lib/syncscroll.js @@ -4,8 +4,8 @@ import markdownitContainer from 'markdown-it-container' -import { md } from './extra' -import modeType from './lib/editor/modeType' +import { md } from '../extra' +import modeType from '../lib/editor/modeType' function addPart (tokens, idx) { if (tokens[idx].map && tokens[idx].level === 0) {