From fc075b74b6032ac483919aa05ca2e4b21f007863 Mon Sep 17 00:00:00 2001 From: Micle Bu Date: Sat, 11 Apr 2020 14:27:47 +0800 Subject: [PATCH] feat: extensions --- src/layouts/MainLayout.vue | 4 +- ...{OBackColor.vue => OBackColorDropdown.vue} | 6 +- ...{OForeColor.vue => OForeColorDropdown.vue} | 6 +- src/lib/data/editor.js | 13 + src/lib/exports/QuasarTiptap.vue | 288 ++++++++++++++++++ src/lib/extentions/index.js | 21 ++ src/pages/quasar-tiptap/all.vue | 30 ++ src/pages/tiptap/basic/index.vue | 55 ++-- src/router/routes.js | 3 +- 9 files changed, 390 insertions(+), 36 deletions(-) rename src/lib/button/{OBackColor.vue => OBackColorDropdown.vue} (89%) rename src/lib/button/{OForeColor.vue => OForeColorDropdown.vue} (89%) create mode 100644 src/lib/data/editor.js create mode 100644 src/lib/exports/QuasarTiptap.vue create mode 100644 src/lib/extentions/index.js create mode 100644 src/pages/quasar-tiptap/all.vue diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 08735db..b397ced 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -52,8 +52,8 @@ export default { leftDrawerOpen: false, essentialLinks: [ { title: 'Full Featured', caption: 'All extensions', icon: 'mdi-text-box', type: 'route', to: '/tiptap/basic', groupLabel: 'tiptap' }, - { title: 'Basic', caption: 'quasar.dev', icon: 'school', type: 'route', to: '/tiptap/test1', groupLabel: 'quasar-tiptap' }, - { title: 'Basic', caption: 'quasar.dev', icon: 'school', type: 'route', to: '/tiptap/test2' } + { title: 'Basic', caption: 'quasar.dev', icon: 'school', type: 'route', to: '/tiptap/test2' }, + { title: 'Full Featured', caption: 'All extensions', icon: 'mdi-text-box', type: 'route', to: '/quasar-tiptap/all', groupLabel: 'quasar-tiptap' }, ] } } diff --git a/src/lib/button/OBackColor.vue b/src/lib/button/OBackColorDropdown.vue similarity index 89% rename from src/lib/button/OBackColor.vue rename to src/lib/button/OBackColorDropdown.vue index 1a415e1..e2eeb09 100644 --- a/src/lib/button/OBackColor.vue +++ b/src/lib/button/OBackColorDropdown.vue @@ -1,5 +1,5 @@