From cc2f9fa2045bf56f0c733566dfe62d9eeda5febd Mon Sep 17 00:00:00 2001 From: benweet Date: Fri, 25 Aug 2017 11:37:46 +0100 Subject: [PATCH] Added gdrive app data provider --- src/components/NavigationBar.vue | 42 +- src/components/SideBar.vue | 17 +- src/components/Toc.vue | 6 +- src/components/common/app.scss | 11 + src/data/emptyContent.js | 3 +- src/data/emptyContentState.js | 2 +- src/data/emptyFile.js | 1 + src/data/emptyFolder.js | 1 + src/data/emptySyncContent.js | 7 - src/data/emptySyncLocation.js | 6 + src/data/emptySyncedContent.js | 7 + src/extensions/markdownExt.js | 4 +- src/icons/Sync.vue | 5 + src/icons/SyncOff.vue | 5 + src/icons/index.js | 4 + src/services/diffUtils.js | 128 +++--- src/services/editorEngineSvc.js | 102 ++--- src/services/editorSvc.js | 74 ++-- src/services/localDbSvc.js | 56 ++- src/services/markdownConversionSvc.js | 2 +- .../providers/gdriveAppDataProvider.js | 102 ++++- src/services/providers/gdriveProvider.js | 30 ++ .../{ => providers}/helpers/googleHelper.js | 217 +++++----- src/services/providers/providerUtils.js | 48 +++ src/services/syncSvc.js | 371 ++++++++++++------ src/services/utils.js | 51 ++- src/store/index.js | 29 +- src/store/modules/contentState.js | 2 +- src/store/modules/data.js | 19 +- src/store/modules/moduleTemplate.js | 15 +- src/store/modules/syncContent.js | 12 - src/store/modules/syncLocation.js | 21 + src/store/modules/syncedContent.js | 12 + 33 files changed, 916 insertions(+), 496 deletions(-) delete mode 100644 src/data/emptySyncContent.js create mode 100644 src/data/emptySyncLocation.js create mode 100644 src/data/emptySyncedContent.js create mode 100644 src/icons/Sync.vue create mode 100644 src/icons/SyncOff.vue create mode 100644 src/services/providers/gdriveProvider.js rename src/services/{ => providers}/helpers/googleHelper.js (51%) create mode 100644 src/services/providers/providerUtils.js delete mode 100644 src/store/modules/syncContent.js create mode 100644 src/store/modules/syncLocation.js create mode 100644 src/store/modules/syncedContent.js diff --git a/src/components/NavigationBar.vue b/src/components/NavigationBar.vue index 0d188b4c..fbb434c3 100644 --- a/src/components/NavigationBar.vue +++ b/src/components/NavigationBar.vue @@ -17,6 +17,12 @@ + +