From c7b675bb1c7ba56d81805c1a5414e7339c856dff Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 15 Jul 2018 22:40:41 -0400 Subject: [PATCH] fix: editor properties UI --- client/app.js | 2 + client/components/editor.vue | 20 +- .../editor/editor-modal-properties.vue | 187 ++++++++++-------- client/scss/app.scss | 2 + client/scss/components/_btn.scss | 3 + client/store/editor.js | 5 +- package.json | 1 + yarn.lock | 14 +- 8 files changed, 149 insertions(+), 85 deletions(-) create mode 100644 client/scss/components/_btn.scss diff --git a/client/app.js b/client/app.js index 47f3d072..6bb98be7 100644 --- a/client/app.js +++ b/client/app.js @@ -18,6 +18,7 @@ import Velocity from 'velocity-animate' import Hammer from 'hammerjs' import moment from 'moment' import VueMoment from 'vue-moment' +import VueTour from 'vue-tour' import store from './store' // ==================================== @@ -98,6 +99,7 @@ Vue.use(helpers) Vue.use(VeeValidate, { events: '' }) Vue.use(Vuetify) Vue.use(VueMoment, { moment }) +Vue.use(VueTour) Vue.prototype.Velocity = Velocity diff --git a/client/components/editor.vue b/client/components/editor.vue index 6baeed03..33dc2e1c 100644 --- a/client/components/editor.vue +++ b/client/components/editor.vue @@ -4,9 +4,12 @@ template(slot='actions') v-btn(outline, color='green', @click.native.stop='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 + span.white--text(v-if='mode === "create"') {{ $t('common:actions.create') }} + span.white--text(v-else) {{ $t('common:actions.save') }} + v-btn.is-icon(outline, color='red').mx-0: v-icon(color='red') close + v-btn(outline, color='blue', @click.native.stop='openModal(`properties`)', dark) + v-icon(left) sort_by_alpha + span.white--text {{ $t('editor:page') }} v-content editor-code component(:is='currentModal') @@ -24,6 +27,7 @@