From 22b8b86138e3a61729b8d28659124d75ab3a2410 Mon Sep 17 00:00:00 2001 From: lana-k Date: Fri, 25 Sep 2020 14:57:49 +0200 Subject: [PATCH] add splitters --- src/assets/images/chevron.svg | 3 + src/assets/styles/scrollbars.css | 13 +-- src/components/splitpanes.vue | 186 +++++++++++++++++++++++++++++++ src/components/splitter.vue | 85 ++++++++++++++ src/views/Editor.vue | 83 +++++++++----- vue.config.js | 22 ++-- 6 files changed, 345 insertions(+), 47 deletions(-) create mode 100644 src/assets/images/chevron.svg create mode 100644 src/components/splitpanes.vue create mode 100644 src/components/splitter.vue diff --git a/src/assets/images/chevron.svg b/src/assets/images/chevron.svg new file mode 100644 index 0000000..85c89cf --- /dev/null +++ b/src/assets/images/chevron.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/styles/scrollbars.css b/src/assets/styles/scrollbars.css index dcb3959..b517fb6 100644 --- a/src/assets/styles/scrollbars.css +++ b/src/assets/styles/scrollbars.css @@ -1,19 +1,16 @@ /* width */ ::-webkit-scrollbar { - width: 10px; + width: 5px; } /* Track */ ::-webkit-scrollbar-track { - background: #f1f1f1; + background: #ebf0f8; } /* Handle */ ::-webkit-scrollbar-thumb { - background: #888; + background: var(--color-accent); + border-radius: 10px; } - - /* Handle on hover */ - ::-webkit-scrollbar-thumb:hover { - background: #555; - } \ No newline at end of file + \ No newline at end of file diff --git a/src/components/splitpanes.vue b/src/components/splitpanes.vue new file mode 100644 index 0000000..3d80cd8 --- /dev/null +++ b/src/components/splitpanes.vue @@ -0,0 +1,186 @@ + + + + + diff --git a/src/components/splitter.vue b/src/components/splitter.vue new file mode 100644 index 0000000..6ce20ff --- /dev/null +++ b/src/components/splitter.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/Editor.vue b/src/views/Editor.vue index 271d9ea..e76925f 100644 --- a/src/views/Editor.vue +++ b/src/views/Editor.vue @@ -1,42 +1,58 @@ + diff --git a/vue.config.js b/vue.config.js index 24a4e9c..25c9cbe 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,14 +1,14 @@ -const CopyPlugin = require('copy-webpack-plugin'); +const CopyPlugin = require('copy-webpack-plugin') module.exports = { - configureWebpack: { - plugins: [ - new CopyPlugin([ - // This wasm file will be fetched dynamically when we initialize sql.js - // It is important that we do not change its name, and that it is in the same folder as the js - { from: 'node_modules/sql.js/dist/sql-wasm.wasm', to: 'js/' }, - { from: 'node_modules/sql.js/dist/worker.sql-wasm.js', to: 'js/' }, - ]) - ] - } + configureWebpack: { + plugins: [ + new CopyPlugin([ + // This wasm file will be fetched dynamically when we initialize sql.js + // It is important that we do not change its name, and that it is in the same folder as the js + { from: 'node_modules/sql.js/dist/sql-wasm.wasm', to: 'js/' }, + { from: 'node_modules/sql.js/dist/worker.sql-wasm.js', to: 'js/' } + ]) + ] + } }