From abb4e20ec3c2baa4242a17cb206bf40815e523ed Mon Sep 17 00:00:00 2001 From: Max G Date: Fri, 3 Jan 2020 01:26:55 +0000 Subject: [PATCH] I swear, I'm going to start doing regular commits + Added a ton of shit + About to add socket.io oh god. --- backupDatabase.sh | 7 +- client/build/webpack.base.conf.js | 4 +- client/src/assets/semantic-helper.css | 8 +- client/src/components/AttachmentEditor.vue | 110 - client/src/components/FileUploadButton.vue | 11 +- client/src/components/GlobalSiteMenu.vue | 83 +- .../components/NoteDeleteButtonComponent.vue | 6 +- client/src/components/NoteInputPanel.vue | 195 +- client/src/components/NoteTagEdit.vue | 42 +- .../src/components/NoteTitleDisplayCard.vue | 59 +- client/src/components/SearchInput.vue | 44 + client/src/main.js | 1 - client/src/pages/HomePage.vue | 6 + client/src/pages/NotesPage.vue | 369 ++- client/src/router/index.js | 5 +- client/src/stores/mainStore.js | 10 +- server/helpers/DiffMatchPatch.js | 2236 +++++++++++++++++ server/helpers/ProcessText.js | 132 + server/models/Attachment.js | 1 + server/models/Note.js | 170 +- server/models/Tag.js | 15 + server/routes/attachmentController.js | 2 +- server/routes/noteController.js | 9 + server/routes/tagController.js | 6 + 24 files changed, 3171 insertions(+), 360 deletions(-) delete mode 100644 client/src/components/AttachmentEditor.vue create mode 100644 client/src/components/SearchInput.vue create mode 100644 server/helpers/DiffMatchPatch.js diff --git a/backupDatabase.sh b/backupDatabase.sh index 8d188bb..4352f1b 100755 --- a/backupDatabase.sh +++ b/backupDatabase.sh @@ -1,8 +1,7 @@ #!/bin/bash -BACKUPDIR="databaseBackupPi" +BACKUPDIR="/home/mab/databaseBackupPi" -cd .. mkdir -p $BACKUPDIR cd $BACKUPDIR @@ -11,9 +10,9 @@ ssh mab@avidhabit.com -p 13328 "mysqldump --all-databases --user root -p***REMOV cp "backup-$NOW.sql" "/mnt/Windows Data/DatabaseBackups/backup-$NOW.sql" -echo "Database Backup Complete" +echo "Database Backup Complete on $NOW" #Restore DB # copy file over, run restore # scp -P 13328 backup-2019-12-04_03-00.sql mab@avidhabit.com:/home/mab -# mysql -u root -p < backup-2019-12-04_03-00.sql \ No newline at end of file +# mysql -u root -p < backup-2019-12-04_03-00.sql diff --git a/client/build/webpack.base.conf.js b/client/build/webpack.base.conf.js index d0c7197..08c0325 100644 --- a/client/build/webpack.base.conf.js +++ b/client/build/webpack.base.conf.js @@ -42,7 +42,7 @@ module.exports = { include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] }, { - test: /\.(png|jpe?g|gif)(\?.*)?$/, + test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, @@ -58,7 +58,7 @@ module.exports = { } }, { - test: /\.(eot|ttf|otf|woff|woff2|svg)(\?.*)?$/, + test: /\.(eot|ttf|otf|woff|woff2)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, diff --git a/client/src/assets/semantic-helper.css b/client/src/assets/semantic-helper.css index 49ebdd5..348da08 100644 --- a/client/src/assets/semantic-helper.css +++ b/client/src/assets/semantic-helper.css @@ -97,12 +97,16 @@ div.ui.basic.green.label { /* Styles for public display pages */ .note-status-indicator { - float: right; + position: absolute; width: 100px; - padding: 9px 0; + padding: 16px 0; box-sizing: border-box; text-align: center; color: var(--text_color); + bottom: 0; + right: 0; + z-index: 100; + cursor: pointer; } diff --git a/client/src/components/AttachmentEditor.vue b/client/src/components/AttachmentEditor.vue deleted file mode 100644 index c31f41e..0000000 --- a/client/src/components/AttachmentEditor.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - - - \ No newline at end of file diff --git a/client/src/components/FileUploadButton.vue b/client/src/components/FileUploadButton.vue index 6e14017..8f41cf3 100644 --- a/client/src/components/FileUploadButton.vue +++ b/client/src/components/FileUploadButton.vue @@ -7,9 +7,12 @@