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)
@ -33,4 +34,4 @@ Thanks to [lishid](https://github.com/lishid) for their help with making iframes
If you like this plugin and want to support its development, you can do so through my website by clicking this fancy image! If you like this plugin and want to support its development, you can do so through my website by clicking this fancy image!
[![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport.png)](https://ellpeck.de/support) [![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport.png)](https://ellpeck.de/support)

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",
@ -52,4 +69,4 @@ export interface CustomFrame {
hideOnMobile: boolean; hideOnMobile: boolean;
minimumWidth: number; minimumWidth: number;
customCss: string; customCss: string;
} }