Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New repository for stackedit #1805

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Removed unnecessary createApp function calls.
  • Loading branch information
SamTV12345 committed Oct 30, 2022
commit 973fb5d58b2a72ef07bdf6c9243192628068cbc6
2 changes: 1 addition & 1 deletion src/components/common/vueGlobals.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as Vue from 'vue';
import Clipboard from 'clipboard';
import timeSvc from '../../services/timeSvc.js';
import store from '../../store/index.js';
import app from '../App.vue';

const app = Vue.createApp({})

// Global directives
app.directive('focus', {
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/emojiExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ extensionSvc.onInitConverter(1, (markdown, options) => {
if (options.emoji) {
markdown.use(markdownItEmoji, options.emojiShortcuts ? {} : { shortcuts: {} });
}
});
})
4 changes: 2 additions & 2 deletions src/extensions/libs/markdownItTasklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ export default (md) => {
}
}
}
});
};
})
}
113 changes: 58 additions & 55 deletions src/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,59 +53,62 @@ import ContentCopy from './ContentCopy.vue';
import Key from './Key.vue';
import DotsHorizontal from './DotsHorizontal.vue';
import Seal from './Seal.vue';
import { app } from '../index.js';

Vue.component('iconProvider', Provider);
Vue.component('iconFormatBold', FormatBold);
Vue.component('iconFormatItalic', FormatItalic);
Vue.component('iconFormatQuoteClose', FormatQuoteClose);
Vue.component('iconLinkVariant', LinkVariant);
Vue.component('iconFileImage', FileImage);
Vue.component('iconTable', Table);
Vue.component('iconFormatListNumbers', FormatListNumbers);
Vue.component('iconFormatListBulleted', FormatListBulleted);
Vue.component('iconFormatSize', FormatSize);
Vue.component('iconFormatStrikethrough', FormatStrikethrough);
Vue.component('iconStatusBar', StatusBar);
Vue.component('iconNavigationBar', NavigationBar);
Vue.component('iconSidePreview', SidePreview);
Vue.component('iconEye', Eye);
Vue.component('iconSettings', Settings);
Vue.component('iconFilePlus', FilePlus);
Vue.component('iconFileMultiple', FileMultiple);
Vue.component('iconFolderPlus', FolderPlus);
Vue.component('iconDelete', Delete);
Vue.component('iconClose', Close);
Vue.component('iconPen', Pen);
Vue.component('iconTarget', Target);
Vue.component('iconArrowLeft', ArrowLeft);
Vue.component('iconHelpCircle', HelpCircle);
Vue.component('iconToc', Toc);
Vue.component('iconLogin', Login);
Vue.component('iconLogout', Logout);
Vue.component('iconSync', Sync);
Vue.component('iconSyncOff', SyncOff);
Vue.component('iconUpload', Upload);
Vue.component('iconViewList', ViewList);
Vue.component('iconDownload', Download);
Vue.component('iconCodeTags', CodeTags);
Vue.component('iconCodeBraces', CodeBraces);
Vue.component('iconOpenInNew', OpenInNew);
Vue.component('iconInformation', Information);
Vue.component('iconAlert', Alert);
Vue.component('iconSignalOff', SignalOff);
Vue.component('iconFolder', Folder);
Vue.component('iconScrollSync', ScrollSync);
Vue.component('iconPrinter', Printer);
Vue.component('iconUndo', Undo);
Vue.component('iconRedo', Redo);
Vue.component('iconContentSave', ContentSave);
Vue.component('iconMessage', Message);
Vue.component('iconHistory', History);
Vue.component('iconDatabase', Database);
Vue.component('iconMagnify', Magnify);
Vue.component('iconFormatListChecks', FormatListChecks);
Vue.component('iconCheckCircle', CheckCircle);
Vue.component('iconContentCopy', ContentCopy);
Vue.component('iconKey', Key);
Vue.component('iconDotsHorizontal', DotsHorizontal);
Vue.component('iconSeal', Seal);


app.component('iconProvider', Provider)
.component('iconFormatBold', FormatBold)
.component('iconFormatItalic', FormatItalic)
.component('iconFormatQuoteClose', FormatQuoteClose)
.component('iconLinkVariant', LinkVariant)
.component('iconFileImage', FileImage)
.component('iconTable', Table)
.component('iconFormatListNumbers', FormatListNumbers)
.component('iconFormatListBulleted', FormatListBulleted)
.component('iconFormatSize', FormatSize)
.component('iconFormatStrikethrough', FormatStrikethrough)
.component('iconStatusBar', StatusBar)
.component('iconNavigationBar', NavigationBar)
.component('iconSidePreview', SidePreview)
.component('iconEye', Eye)
.component('iconSettings', Settings)
.component('iconFilePlus', FilePlus)
.component('iconFileMultiple', FileMultiple)
.component('iconFolderPlus', FolderPlus)
.component('iconDelete', Delete)
.component('iconClose', Close)
.component('iconPen', Pen)
.component('iconTarget', Target)
.component('iconArrowLeft', ArrowLeft)
.component('iconHelpCircle', HelpCircle)
.component('iconToc', Toc)
.component('iconLogin', Login)
.component('iconLogout', Logout)
.component('iconSync', Sync)
.component('iconSyncOff', SyncOff)
.component('iconUpload', Upload)
.component('iconViewList', ViewList)
.component('iconDownload', Download)
.component('iconCodeTags', CodeTags)
.component('iconCodeBraces', CodeBraces)
.component('iconOpenInNew', OpenInNew)
.component('iconInformation', Information)
.component('iconAlert', Alert)
.component('iconSignalOff', SignalOff)
.component('iconFolder', Folder)
.component('iconScrollSync', ScrollSync)
.component('iconPrinter', Printer)
.component('iconUndo', Undo)
.component('iconRedo', Redo)
.component('iconContentSave', ContentSave)
.component('iconMessage', Message)
.component('iconHistory', History)
.component('iconDatabase', Database)
.component('iconMagnify', Magnify)
.component('iconFormatListChecks', FormatListChecks)
.component('iconCheckCircle', CheckCircle)
.component('iconContentCopy', ContentCopy)
.component('iconKey', Key)
.component('iconDotsHorizontal', DotsHorizontal)
.component('iconSeal', Seal);
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ if (!localStorage.installPrompted) {
});
}

Vue.VueElement.config.productionTip = false;

createApp(App).mount('#app')
export const app = createApp(App);
app.mount('#app')

console.log("Started")
5 changes: 2 additions & 3 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import locationTemplate from './locationTemplate.js';
import emptyPublishLocation from '../data/empties/emptyPublishLocation.js';
import emptySyncLocation from '../data/empties/emptySyncLocation.js';
import constants from '../data/constants.js';
import { createApp } from 'vue';
import App from '../components/App.vue';
import { app } from '../index.js';


const debug = NODE_ENV !== 'production';
Expand Down Expand Up @@ -185,4 +184,4 @@ setInterval(() => {
}, 30 * 1000);

export default store;
createApp(App).use(store).mount('#app')
app.use(store)