From 6a820ddfddbb3a6754d4f1a908c1e019dc00870f Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Fri, 18 Mar 2022 22:12:39 +0800 Subject: [PATCH] add dropbox material --- README.md | 2 +- docs/dropbox_review_material/README.md | 47 +++++++++++++++++++ .../attachments/step03.png | 3 ++ .../attachments/step05.png | 3 ++ .../attachments/step06.png | 3 ++ .../attachments/step07.png | 3 ++ .../attachments/step08.png | 3 ++ .../attachments/step09.png | 3 ++ .../attachments/step10.png | 3 ++ .../attachments/step11.png | 3 ++ .../attachments/step12.png | 3 ++ .../attachments/step13.png | 3 ++ 12 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 docs/dropbox_review_material/README.md create mode 100644 docs/dropbox_review_material/attachments/step03.png create mode 100644 docs/dropbox_review_material/attachments/step05.png create mode 100644 docs/dropbox_review_material/attachments/step06.png create mode 100644 docs/dropbox_review_material/attachments/step07.png create mode 100644 docs/dropbox_review_material/attachments/step08.png create mode 100644 docs/dropbox_review_material/attachments/step09.png create mode 100644 docs/dropbox_review_material/attachments/step10.png create mode 100644 docs/dropbox_review_material/attachments/step11.png create mode 100644 docs/dropbox_review_material/attachments/step12.png create mode 100644 docs/dropbox_review_material/attachments/step13.png diff --git a/README.md b/README.md index ebbcf1d..d8e27a5 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Additionally, the plugin author may occasionally visit Obsidian official forum a - **This plugin is NOT an official Dropbox product.** The plugin just uses Dropbox's public API. - After the authorization, the plugin can read your name and email (which cannot be unselected on Dropbox api), and read and write files in your Dropbox's `/Apps/remotely-save` folder. -- If you decide to authorize this plugin to connect to Dropbox, please go to plugin's settings, and choose Dropbox then follow the instructions. +- If you decide to authorize this plugin to connect to Dropbox, please go to plugin's settings, and choose Dropbox then follow the instructions. [More with screenshot is here](./docs/dropbox_review_material/README.md). - Password-based end-to-end encryption is also supported. But please be aware that **the vault name itself is not encrypted**. ### OneDrive for personal diff --git a/docs/dropbox_review_material/README.md b/docs/dropbox_review_material/README.md new file mode 100644 index 0000000..3e71fac --- /dev/null +++ b/docs/dropbox_review_material/README.md @@ -0,0 +1,47 @@ +## Material Source + +To apply for the production use of Dropbox API, some descriptions are needed to be submitted to Dropbox. Coincidently, this can also be served as a "readme" to use this plugin with Dropbox. + +## Some Backgrounds + +1. Obsidian allows users to take notes using markdown files. +2. The "app", remotely-save. is an unofficial Obsidian plugin, helping users download and upload ("sync") their notes from and to Dropbox. +3. Technically, remotely-save is developed using web technologies. + +## Api Usages + +1. remotely-save uses "App folder", to avoid unnecessary accessing users' other files. +2. remotely-save uses "account_info.read", to get the displayed username, so that users know which of their accounts has been logged in after OAuth steps. +3. remotely-save uses "files.content.read", so that it can read the "last modified time", and the content of files on Dropbox. Under some conditions, the plugin would download the files. For example, the plugin would compare the last modified timestamps of the file in the local device and that on Dropbox, and if the timestamp on Dropbox is larger, the plugin would download the "newer" file from Dropbox to local. +4. remotely-save uses "files.content.write", so that it can upload or overwrite the content of files on Dropbox. Under some conditions, the plugin would do that. For example, the plugin would compare the last modified timestamps of the file in the local device and that on Dropbox, and if the timestamp in the local device is larger, the plugin would upload the "newer" file from local to Dropbox, and overwrite that file on Dropbox. + +## Steps + +Here are the steps to see the functionality of remotely-save. + +Most steps have screenshots. + +1. Download the note-taking app Obsidian (Windows or Mac versions are both ok) from its official website: https://obsidian.md/ . It's free to download and use. Then install it. +2. Open Obsidian, click the "Create" button under "Create new vault". +3. Pick a vault name, "example-vault", and choose a location, then click "Create". + ![step03](./attachments/step03.png) +4. Close any update new if prompted. +5. Create a new note by clicking a button on the left. And write something on the note. + ![step05](./attachments/step05.png) +6. Click "setting" (a gear icon) on the button left of the sidebar. + ![step06](./attachments/step06.png) +7. In the settings panel, go to the "Community plugins" page, turn off the safe mode, and confirm to turn off the safe mode. Then click the "Browse" button for community plugins. + ![step07](./attachments/step07.png) +8. Search "Remotely Save" and install on the result. + ![step08](./attachments/step08.png) +9. After successful installing the plugin, go back to the "Community plugins" page, and enable the plugin. + ![step09](./attachments/step09.png) +10. Go to newly added "Remotely Save" settings, select "Dropbox" in "Choose service", and click the "Auth" button. + ![step10](./attachments/step10.png) +11. The standard auth flow address is shown, users should click the address, and finish the auth steps on the website. Finally, the Dropbox website should automatically redirect users back to the Obsidian app. + ![step11](./attachments/step11.png) +12. The "Auth" button disappears. A new "Revoke Auth" appears. + ![step12](./attachments/step12.png) +13. Go back to the main interface of Obsidian, a new "switch icon" should appear on the left sidebar. Click this, then the plugin would trigger the sync progress. It would compare meta info of local files and remote files (on Dropbox), and decide to download some files and/or upload some files. + ![step13](./attachments/step13.png) +14. Create, edit, remove some notes, and repeat step 13, the files on Dropbox should also change to reflect the changes locally. diff --git a/docs/dropbox_review_material/attachments/step03.png b/docs/dropbox_review_material/attachments/step03.png new file mode 100644 index 0000000..40cba18 --- /dev/null +++ b/docs/dropbox_review_material/attachments/step03.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:655f6f487cc24af0ab86b8592622a7701c30f3369e7847a1fbb783d0962829c3 +size 52910 diff --git a/docs/dropbox_review_material/attachments/step05.png b/docs/dropbox_review_material/attachments/step05.png new file mode 100644 index 0000000..f5edd7d --- /dev/null +++ b/docs/dropbox_review_material/attachments/step05.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe971af94f1f7b042b7313268e4d2d8432d926ce2392e50ca2a4abc21c8a4aab +size 57033 diff --git a/docs/dropbox_review_material/attachments/step06.png b/docs/dropbox_review_material/attachments/step06.png new file mode 100644 index 0000000..09abd08 --- /dev/null +++ b/docs/dropbox_review_material/attachments/step06.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:025303053f2b2cedd2bdd61cd71e1f1c0fb12e45bfbc0e81f2c0d70747133505 +size 63458 diff --git a/docs/dropbox_review_material/attachments/step07.png b/docs/dropbox_review_material/attachments/step07.png new file mode 100644 index 0000000..9f081cb --- /dev/null +++ b/docs/dropbox_review_material/attachments/step07.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:061707977c8046a6f924881f86aac962e2f05618e201080768246270de792040 +size 100162 diff --git a/docs/dropbox_review_material/attachments/step08.png b/docs/dropbox_review_material/attachments/step08.png new file mode 100644 index 0000000..5b2ad5a --- /dev/null +++ b/docs/dropbox_review_material/attachments/step08.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8add61e6ef34b2470e5a5bea3e10955a86eed5ed1fc4dd398f30835485a6c455 +size 158422 diff --git a/docs/dropbox_review_material/attachments/step09.png b/docs/dropbox_review_material/attachments/step09.png new file mode 100644 index 0000000..5712cb8 --- /dev/null +++ b/docs/dropbox_review_material/attachments/step09.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:021ae1ce29d3932f088f0954787c475be826915b794320bf212d3ba7d58656da +size 110529 diff --git a/docs/dropbox_review_material/attachments/step10.png b/docs/dropbox_review_material/attachments/step10.png new file mode 100644 index 0000000..7c6d934 --- /dev/null +++ b/docs/dropbox_review_material/attachments/step10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b225d21de5778ddc032893e0f52150ab4260b0dfbe0e9141da4aa8b03131a9da +size 147821 diff --git a/docs/dropbox_review_material/attachments/step11.png b/docs/dropbox_review_material/attachments/step11.png new file mode 100644 index 0000000..f9d764c --- /dev/null +++ b/docs/dropbox_review_material/attachments/step11.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fda4f6e8cf68833f239bdc85c46802fe2131d149011074f747b1829822a38939 +size 59041 diff --git a/docs/dropbox_review_material/attachments/step12.png b/docs/dropbox_review_material/attachments/step12.png new file mode 100644 index 0000000..04559ca --- /dev/null +++ b/docs/dropbox_review_material/attachments/step12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:576801d5ebd8cf7fcd3c9c0c6df325654338854f7d762a5680e9aab3c9e6508a +size 142155 diff --git a/docs/dropbox_review_material/attachments/step13.png b/docs/dropbox_review_material/attachments/step13.png new file mode 100644 index 0000000..b93b989 --- /dev/null +++ b/docs/dropbox_review_material/attachments/step13.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c93f681f0f7ce74cee0f2ed193f574ef915554f1a9ef96ba54afdede302f13a +size 112057