From cb84df7a533e992c3199366889883f463ac8c8ce Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 22 Jul 2018 00:29:39 -0400 Subject: [PATCH] feat: save page --- .vscode/settings.json | 1 - client/components/editor.vue | 56 +++++++++++++++---- .../editor/editor-modal-properties.vue | 51 +++++++++++++---- client/graph/editor/create.gql | 15 +++++ client/graph/editor/save.gql | 7 --- client/store/index.js | 24 ++++---- server/db/migrations/2.0.0.js | 10 ++-- server/db/models/pages.js | 10 +++- server/db/models/users.js | 26 ++++++++- server/graph/resolvers/page.js | 31 ++++++---- server/graph/schemas/page.graphql | 21 +++++-- .../authentication/local/authentication.js | 2 +- server/setup.js | 4 +- 13 files changed, 192 insertions(+), 66 deletions(-) create mode 100644 client/graph/editor/create.gql delete mode 100644 client/graph/editor/save.gql diff --git a/.vscode/settings.json b/.vscode/settings.json index 8c7b6c96..5b71ee67 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,7 +2,6 @@ "eslint.enable": true, "eslint.autoFixOnSave": true, "puglint.enable": true, - "standard.enable": false, "editor.formatOnSave": false, "editor.tabSize": 2, "eslint.validate": [ diff --git a/client/components/editor.vue b/client/components/editor.vue index 33dc2e1c..508f62da 100644 --- a/client/components/editor.vue +++ b/client/components/editor.vue @@ -21,16 +21,27 @@ :size='60' color='#FFF' ) - .subheading Processing - .caption.blue--text.text--lighten-3 Please wait... + .subheading {{ $t('editor:save.processing') }} + .caption.blue--text.text--lighten-3 {{ $t('editor:save.pleaseWait') }} + + v-snackbar( + :color='notification.style' + bottom, + right, + multi-line, + v-model='notificationState' + ) + .text-xs-left + v-icon.mr-3(dark) {{ notification.icon }} + span {{ notification.message }}