From e52ae65a4228e43ab9e89b78569c843a46bd6e5c Mon Sep 17 00:00:00 2001 From: Max G Date: Sun, 21 Jul 2019 16:28:07 +0000 Subject: [PATCH] Cleaned up some display issues that probably still need work Added some colors to the notes and basic support for displaying the colors on the main list Added a toggle to disable the fancy text editor and just use a basic textarea Added some mobile styles with much better support for smaller screens Added tag suggestions based on user input, excluding tags from current note, only using tags user has put into system Cleaned and refactored a bunch of stuff --- client/build/webpack.dev.conf.js | 2 +- client/src/assets/semantic-helper.css | 10 +- client/src/components/InputNotes.vue | 143 ++++++++++++++---- client/src/components/NoteTagEdit.vue | 140 ++++++++++++++++- .../src/components/NoteTitleDisplayCard.vue | 42 +++++ client/src/components/SearchBar.vue | 45 ++++-- server/models/Notes.js | 8 +- server/models/Tags.js | 23 +++ server/routes/notesController.js | 2 +- server/routes/tagsController.js | 6 + 10 files changed, 371 insertions(+), 50 deletions(-) create mode 100644 client/src/components/NoteTitleDisplayCard.vue diff --git a/client/build/webpack.dev.conf.js b/client/build/webpack.dev.conf.js index 313c2e8..0dcf320 100755 --- a/client/build/webpack.dev.conf.js +++ b/client/build/webpack.dev.conf.js @@ -28,7 +28,7 @@ const devWebpackConfig = merge(baseWebpackConfig, { { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, ], }, - hot: true, + // hot: true, contentBase: false, // since we use CopyWebpackPlugin. compress: true, host: HOST || config.dev.host, diff --git a/client/src/assets/semantic-helper.css b/client/src/assets/semantic-helper.css index 51f0bf5..c341a62 100644 --- a/client/src/assets/semantic-helper.css +++ b/client/src/assets/semantic-helper.css @@ -1,3 +1,7 @@ +/*body, h3, h2, h1, p { + color: #3d3d3d; +}*/ + .clickable { cursor: pointer; } @@ -6,5 +10,9 @@ font-family: 'Open Sans' !important; font-size: 1.3rem !important; background: white; - height: calc(100% - 177px); + height: 100%; + overflow: hidden; +} +.ui.white.button { + background: #FFF; } \ No newline at end of file diff --git a/client/src/components/InputNotes.vue b/client/src/components/InputNotes.vue index c985013..124e413 100644 --- a/client/src/components/InputNotes.vue +++ b/client/src/components/InputNotes.vue @@ -1,21 +1,49 @@