From f27c1e86b1c848a3d718f08e405fc51794bf4401 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 17 Feb 2018 22:18:37 -0500 Subject: [PATCH] feat: editor-modal-document UI --- .babelrc | 8 +--- client/index.js | 2 +- client/js/app.js | 14 +------ client/js/components/editor-code.vue | 32 ++++++++++++---- .../js/components/editor-modal-document.vue | 37 +++++++++++++++++++ 5 files changed, 66 insertions(+), 27 deletions(-) create mode 100644 client/js/components/editor-modal-document.vue diff --git a/.babelrc b/.babelrc index 81d681c3..cb993f7a 100644 --- a/.babelrc +++ b/.babelrc @@ -2,13 +2,7 @@ "comments": true, "plugins": [ "lodash", - "graphql-tag", - ["transform-imports", { - "vuetify": { - "transform": "vuetify/es5/components/${member}", - "preventFullImport": true - } - }] + "graphql-tag" ], "presets": [ ["env"], diff --git a/client/index.js b/client/index.js index c8a56832..26305810 100644 --- a/client/index.js +++ b/client/index.js @@ -1,6 +1,6 @@ 'use strict' -require('vuetify/src/stylus/app.styl') +require('vuetify/src/stylus/main.styl') require('./scss/app.scss') require('./js/compatibility.js') require('offline-plugin/runtime').install() diff --git a/client/js/app.js b/client/js/app.js index b065e04e..6a34f9d8 100644 --- a/client/js/app.js +++ b/client/js/app.js @@ -13,7 +13,7 @@ import { ApolloLink } from 'apollo-link' import { createApolloFetch } from 'apollo-fetch' import { BatchHttpLink } from 'apollo-link-batch-http' import { InMemoryCache } from 'apollo-cache-inmemory' -import { Vuetify, VApp, VBtn, VIcon, VList, VMenu, VSpeedDial, VTooltip } from 'vuetify' +import Vuetify from 'vuetify' import Hammer from 'hammerjs' import store from './store' @@ -93,17 +93,7 @@ Vue.use(VeeValidate, { dirty: 'is-dirty' // control has been interacted with } }) -Vue.use(Vuetify, { - components: { - VApp, - VBtn, - VIcon, - VList, - VMenu, - VSpeedDial, - VTooltip - } -}) +Vue.use(Vuetify) // ==================================== // Register Vue Components diff --git a/client/js/components/editor-code.vue b/client/js/components/editor-code.vue index 99a9c539..5d1f0ace 100644 --- a/client/js/components/editor-code.vue +++ b/client/js/components/editor-code.vue @@ -75,13 +75,13 @@ v-btn(color='blue', fab, dark, slot='activator') v-icon more_horiz v-icon close - v-btn(color='blue-grey', fab, dark): v-icon sort_by_alpha + v-btn(color='blue-grey', fab, dark, @click='documentPropsDialog = !documentPropsDialog'): v-icon sort_by_alpha v-btn(color='green', fab, dark): v-icon save v-btn(color='red', fab, dark, small): v-icon not_interested v-btn(color='orange', fab, dark, small): v-icon vpn_lock v-btn(color='indigo', fab, dark, small): v-icon restore v-btn(color='brown', fab, dark, small): v-icon archive - + editorModalDocument(:is-opened='documentPropsDialog') + +