From 17b2117b395f6dcd91f118fde9bc0a8c29ada12d Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 20 May 2018 18:50:51 -0400 Subject: [PATCH] refactor: knex remaining models --- client/components/editor.vue | 14 +-- client/components/editor/editor-code.vue | 149 +++++++++-------------- client/components/nav-header.vue | 5 +- server/db/migrations/2.0.0.js | 113 +++++++++++++---- server/db/models/groups.js | 5 +- server/db/models/pages.js | 70 +++++++++++ server/db/models/tags.js | 49 ++++++++ server/db/models/users.js | 6 +- server/graph/resolvers/page.js | 51 ++++++++ server/graph/schemas/page.graphql | 78 ++++++++++++ server/models_old/_relations.js | 16 --- server/models_old/comment.js | 16 --- server/models_old/document.js | 64 ---------- server/models_old/file.js | 42 ------- server/models_old/folder.js | 22 ---- server/models_old/group.js | 16 --- server/models_old/locale.js | 39 ------ server/models_old/right.js | 36 ------ server/models_old/setting.js | 26 ---- server/models_old/tag.js | 22 ---- server/modules/authentication/local.js | 6 +- server/setup.js | 24 ++-- 22 files changed, 424 insertions(+), 445 deletions(-) create mode 100644 server/db/models/pages.js create mode 100644 server/db/models/tags.js create mode 100644 server/graph/resolvers/page.js create mode 100644 server/graph/schemas/page.graphql delete mode 100644 server/models_old/_relations.js delete mode 100644 server/models_old/comment.js delete mode 100644 server/models_old/document.js delete mode 100644 server/models_old/file.js delete mode 100644 server/models_old/folder.js delete mode 100644 server/models_old/group.js delete mode 100644 server/models_old/locale.js delete mode 100644 server/models_old/right.js delete mode 100644 server/models_old/setting.js delete mode 100644 server/models_old/tag.js diff --git a/client/components/editor.vue b/client/components/editor.vue index 2b615c00..21a0b91c 100644 --- a/client/components/editor.vue +++ b/client/components/editor.vue @@ -3,7 +3,7 @@ nav-header template(slot='actions') v-btn(outline, color='green', @click.native.stop='save') - v-icon(color='green', left) save + v-icon(color='green', left) check span.white--text Save v-btn(icon): v-icon(color='red') close v-btn(icon, @click.native.stop='openModal(`properties`)'): v-icon(color='white') sort_by_alpha @@ -11,12 +11,12 @@ v-content editor-code component(:is='currentModal') - v-dialog(v-model='dialogProgress', persistent, max-width='300') - v-card - v-progress-linear.my-0(indeterminate, color='primary', height='5') - v-card-text.text-xs-center - .headline Saving - .caption Please wait... + v-dialog(v-model='dialogProgress', persistent, max-width='350') + v-card(color='blue darken-3', dark) + v-card-text.text-xs-center.py-4 + v-progress-circular(indeterminate, color='white', width='1') + .subheading Processing + .caption.blue--text.text--lighten-3 Please wait...