From 53ccee0d84ee83c8a88e5b4fb7595dfbd1aa5826 Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Fri, 27 Apr 2018 15:37:05 +0100 Subject: [PATCH 01/19] Github workspace (part 1) --- README.md | 9 +- src/components/Modal.vue | 17 +- src/components/menus/HistoryMenu.vue | 4 +- src/components/menus/ImportMenu.vue | 6 +- src/components/menus/WorkspacesMenu.vue | 30 +- src/components/modals/AboutModal.vue | 4 +- src/components/modals/FilePropertiesModal.vue | 2 +- .../providers/BloggerPagePublishModal.vue | 2 +- .../modals/providers/BloggerPublishModal.vue | 2 +- .../providers/CouchdbWorkspaceModal.vue | 2 +- .../modals/providers/DropboxAccountModal.vue | 2 +- .../modals/providers/DropboxPublishModal.vue | 4 +- .../modals/providers/DropboxSaveModal.vue | 4 +- .../modals/providers/GistPublishModal.vue | 4 +- .../modals/providers/GistSyncModal.vue | 4 +- .../modals/providers/GithubAccountModal.vue | 2 +- .../modals/providers/GithubOpenModal.vue | 6 +- .../modals/providers/GithubPublishModal.vue | 8 +- .../modals/providers/GithubSaveModal.vue | 25 +- .../modals/providers/GithubWorkspaceModal.vue | 66 +++ .../providers/GoogleDriveAccountModal.vue | 2 +- .../providers/GoogleDrivePublishModal.vue | 2 +- .../modals/providers/GoogleDriveSaveModal.vue | 2 +- .../providers/GoogleDriveWorkspaceModal.vue | 2 +- .../providers/WordpressPublishModal.vue | 2 +- .../modals/providers/ZendeskAccountModal.vue | 2 +- .../modals/providers/ZendeskPublishModal.vue | 2 +- src/data/defaultLocalSettings.js | 1 + src/data/defaultSettings.yml | 11 +- src/data/emptySyncedContent.js | 1 + src/data/welcomeFile.md | 2 +- src/icons/Provider.vue | 4 +- src/services/providers/bloggerPageProvider.js | 4 +- src/services/providers/bloggerProvider.js | 4 +- .../{providerUtils.js => common/Provider.js} | 68 ++- .../{ => common}/providerRegistry.js | 0 .../providers/couchdbWorkspaceProvider.js | 33 +- src/services/providers/dropboxProvider.js | 11 +- src/services/providers/gistProvider.js | 9 +- src/services/providers/githubProvider.js | 15 +- .../providers/githubWorkspaceProvider.js | 500 ++++++++++++++++++ .../providers/googleDriveAppDataProvider.js | 20 +- src/services/providers/googleDriveProvider.js | 11 +- .../providers/googleDriveWorkspaceProvider.js | 36 +- .../providers/helpers/githubHelper.js | 61 ++- .../providers/helpers/googleHelper.js | 7 +- src/services/providers/wordpressProvider.js | 4 +- src/services/providers/zendeskProvider.js | 4 +- src/services/publishSvc.js | 4 +- src/services/syncSvc.js | 138 +++-- src/services/userSvc.js | 4 + src/services/utils.js | 48 +- src/store/explorer.js | 4 +- src/store/index.js | 44 +- src/store/locationTemplate.js | 43 ++ src/store/moduleTemplate.js | 7 +- src/store/publishLocation.js | 35 -- src/store/syncLocation.js | 35 -- src/store/workspace.js | 4 + 59 files changed, 1056 insertions(+), 333 deletions(-) create mode 100644 src/components/modals/providers/GithubWorkspaceModal.vue rename src/services/providers/{providerUtils.js => common/Provider.js} (60%) rename src/services/providers/{ => common}/providerRegistry.js (100%) create mode 100644 src/services/providers/githubWorkspaceProvider.js create mode 100644 src/store/locationTemplate.js delete mode 100644 src/store/publishLocation.js delete mode 100644 src/store/syncLocation.js diff --git a/README.md b/README.md index 20147b69..b8446267 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,12 @@ https://stackedit.io/ -### NEW!!! Embed StackEdit in any website! +### Ecosystem -See https://github.com/benweet/stackedit.js - -Chrome extension: https://chrome.google.com/webstore/detail/ajehldoplanpchfokmeempkekhnhmoha +- [Chrome app](https://chrome.google.com/webstore/detail/iiooodelglhkcpgbajoejffhijaclcdg) +- NEW! Embed StackEdit in any website with [stackedit.js](https://github.com/benweet/stackedit.js) +- NEW! [Chrome extension](https://chrome.google.com/webstore/detail/ajehldoplanpchfokmeempkekhnhmoha) that uses stackedit.js +- [Community](https://community.stackedit.io/) ### Build Setup diff --git a/src/components/Modal.vue b/src/components/Modal.vue index f26b9277..dac6a7be 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -41,6 +41,7 @@ import DropboxPublishModal from './modals/providers/DropboxPublishModal'; import GithubAccountModal from './modals/providers/GithubAccountModal'; import GithubOpenModal from './modals/providers/GithubOpenModal'; import GithubSaveModal from './modals/providers/GithubSaveModal'; +import GithubWorkspaceModal from './modals/providers/GithubWorkspaceModal'; import GithubPublishModal from './modals/providers/GithubPublishModal'; import GistSyncModal from './modals/providers/GistSyncModal'; import GistPublishModal from './modals/providers/GistPublishModal'; @@ -84,6 +85,7 @@ export default { GithubAccountModal, GithubOpenModal, GithubSaveModal, + GithubWorkspaceModal, GithubPublishModal, GistSyncModal, GistPublishModal, @@ -176,6 +178,10 @@ export default { hr { margin: 0.5em 0; } + + p { + line-height: 1.5; + } } .modal__inner-1 { @@ -221,9 +227,9 @@ export default { .modal__image { float: left; - width: 64px; - height: 64px; - margin: 1.5em 1.5em 0.5em 0; + width: 60px; + height: 60px; + margin: 1.5em 1.2em 0.5em 0; & + *::after { content: ''; @@ -262,6 +268,11 @@ export default { } } +.modal__info--multiline { + padding-top: 0.1em; + padding-bottom: 0.1em; +} + .modal__button-bar { margin-top: 1.75rem; text-align: right; diff --git a/src/components/menus/HistoryMenu.vue b/src/components/menus/HistoryMenu.vue index 94508a91..2481be94 100644 --- a/src/components/menus/HistoryMenu.vue +++ b/src/components/menus/HistoryMenu.vue @@ -31,7 +31,7 @@ diff --git a/src/components/modals/providers/GoogleDriveAccountModal.vue b/src/components/modals/providers/GoogleDriveAccountModal.vue index ec948fdb..7d695540 100644 --- a/src/components/modals/providers/GoogleDriveAccountModal.vue +++ b/src/components/modals/providers/GoogleDriveAccountModal.vue @@ -4,7 +4,7 @@ -

This will link your Google Drive account to StackEdit.

+

Link your Google Drive account to StackEdit.