Feat: Add google calendar preset (#9)

* Feat: Add Google Calendar preset

* Update README.md
This commit is contained in:
Emile van Krieken 2022-03-29 17:00:16 +02:00 committed by GitHub
parent 2980c2cb5f
commit 9108b86a6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View file

@ -17,6 +17,7 @@ Unfortunately, Obsidian Mobile does not run on [Electron](https://www.electronjs
By default, Custom Frames comes with a few presets that allow you to get new panes for popular sites up and running quickly. By default, Custom Frames comes with a few presets that allow you to get new panes for popular sites up and running quickly.
- [Obsidian Forum](https://forum.obsidian.md/) - [Obsidian Forum](https://forum.obsidian.md/)
- [Google Keep](https://keep.google.com), optimized for a narrow pane on the side - [Google Keep](https://keep.google.com), optimized for a narrow pane on the side
- [Google Calendar](https://calendar.google.com/calendar/u/0/r/day), optimized by removing some buttons. Close side panel with top-left button.
- [Notion](https://www.notion.so/) (it's recommended to close Notion's sidebar if used as a side pane) - [Notion](https://www.notion.so/) (it's recommended to close Notion's sidebar if used as a side pane)
- [Twitter](https://twitter.com) - [Twitter](https://twitter.com)

View file

@ -10,6 +10,23 @@ export const presets: Record<string, CustomFrame> = {
hideOnMobile: true, hideOnMobile: true,
minimumWidth: 367, minimumWidth: 367,
customCss: "" customCss: ""
},
"calendar": {
url: "https://calendar.google.com/calendar/u/0/r/day",
displayName: "Google Calendar",
icon: "calendar",
hideOnMobile: true,
minimumWidth: 490,
customCss: `/* hide right-side menu, and some buttons */
div.d6McF,
div.pw6cBb,
div.gb_Td.gb_Va.gb_Id,
div.Kk7lMc-QWPxkf-LgbsSe-haAclf,
div.h8Aqhb,
div.gboEAb,
div.dwlvNd {
display: none !important;
}`
}, },
"keep": { "keep": {
url: "https://keep.google.com", url: "https://keep.google.com",