diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 57dbb5fa..b048df9b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -63,7 +63,7 @@ module.exports = { } }, { - test: /\.md$/, + test: /\.(md|yml|html)$/, loader: 'raw-loader' } ] diff --git a/package.json b/package.json index 95fcf712..b8c958ad 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,13 @@ }, "dependencies": { "bezier-easing": "^1.1.0", + "clipboard": "^1.7.1", "clunderscore": "^1.0.3", "diff-match-patch": "^1.0.0", + "file-saver": "^1.3.3", + "handlebars": "^4.0.10", "indexeddbshim": "^3.0.4", + "js-yaml": "^3.9.1", "katex": "^0.7.1", "markdown-it": "^8.3.1", "markdown-it-abbr": "^1.0.4", @@ -24,6 +28,7 @@ "markdown-it-pandoc-renderer": "1.1.3", "markdown-it-sub": "^1.0.0", "markdown-it-sup": "^1.0.0", + "mousetrap": "^1.6.1", "normalize-scss": "^7.0.0", "prismjs": "^1.6.0", "raw-loader": "^0.5.1", @@ -79,7 +84,8 @@ "webpack-bundle-analyzer": "^2.2.1", "webpack-dev-middleware": "^1.10.0", "webpack-hot-middleware": "^2.18.0", - "webpack-merge": "^4.1.0" + "webpack-merge": "^4.1.0", + "worker-loader": "^0.8.1" }, "engines": { "node": ">= 4.0.0", diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100644 index f3d2503f..00000000 Binary files a/src/assets/logo.png and /dev/null differ diff --git a/src/assets/logo.svg b/src/assets/logo.svg index 303f511a..44db5f09 100644 --- a/src/assets/logo.svg +++ b/src/assets/logo.svg @@ -1,54 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/src/components/App.vue b/src/components/App.vue index 56b9d064..ab64f559 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -7,10 +7,18 @@ + + diff --git a/src/components/Editor.vue b/src/components/Editor.vue index c5c56e77..efb078ac 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -1,6 +1,6 @@ @@ -9,9 +9,14 @@ import { mapGetters } from 'vuex'; export default { - computed: mapGetters('layout', [ - 'styles', - ]), + computed: { + ...mapGetters('layout', [ + 'styles', + ]), + ...mapGetters('data', [ + 'computedSettings', + ]), + }, }; diff --git a/src/components/ExplorerNode.vue b/src/components/ExplorerNode.vue index 42a8d675..b14879c6 100644 --- a/src/components/ExplorerNode.vue +++ b/src/components/ExplorerNode.vue @@ -24,13 +24,6 @@ import defaultContent from '../data/defaultContent.md'; export default { name: 'explorer-node', props: ['node', 'depth'], - directives: { - focus: { - inserted(el) { - el.focus(); - }, - }, - }, data: () => ({ editingValue: '', }), diff --git a/src/components/FilePropertiesModal.vue b/src/components/FilePropertiesModal.vue new file mode 100644 index 00000000..ff5bd7cb --- /dev/null +++ b/src/components/FilePropertiesModal.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/components/GooglePhotoModal.vue b/src/components/GooglePhotoModal.vue new file mode 100644 index 00000000..3b58af12 --- /dev/null +++ b/src/components/GooglePhotoModal.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/components/HtmlExportModal.vue b/src/components/HtmlExportModal.vue new file mode 100644 index 00000000..dd175782 --- /dev/null +++ b/src/components/HtmlExportModal.vue @@ -0,0 +1,87 @@ + + + diff --git a/src/components/ImageModal.vue b/src/components/ImageModal.vue new file mode 100644 index 00000000..a6b28d83 --- /dev/null +++ b/src/components/ImageModal.vue @@ -0,0 +1,79 @@ + + + diff --git a/src/components/LinkModal.vue b/src/components/LinkModal.vue new file mode 100644 index 00000000..423e0a27 --- /dev/null +++ b/src/components/LinkModal.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/components/SideBarItem.vue b/src/components/MenuEntry.vue similarity index 66% rename from src/components/SideBarItem.vue rename to src/components/MenuEntry.vue index c59f183f..cc986afb 100644 --- a/src/components/SideBarItem.vue +++ b/src/components/MenuEntry.vue @@ -1,18 +1,18 @@ diff --git a/src/components/SideBar.vue b/src/components/SideBar.vue index 311ff9e7..fd37537b 100644 --- a/src/components/SideBar.vue +++ b/src/components/SideBar.vue @@ -1,7 +1,7 @@