From 9108b86a6f300a3b7a53b21ce4c5dba56512dba7 Mon Sep 17 00:00:00 2001 From: Emile van Krieken Date: Tue, 29 Mar 2022 17:00:16 +0200 Subject: [PATCH] Feat: Add google calendar preset (#9) * Feat: Add Google Calendar preset * Update README.md --- README.md | 3 ++- src/settings.ts | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eef0760..b1eb1c6 100644 --- a/README.md +++ b/README.md @@ -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. - [Obsidian Forum](https://forum.obsidian.md/) - [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) - [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! -[![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport.png)](https://ellpeck.de/support) \ No newline at end of file +[![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport.png)](https://ellpeck.de/support) diff --git a/src/settings.ts b/src/settings.ts index ac3beca..0fbddd3 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -10,6 +10,23 @@ export const presets: Record = { hideOnMobile: true, minimumWidth: 367, 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": { url: "https://keep.google.com", @@ -52,4 +69,4 @@ export interface CustomFrame { hideOnMobile: boolean; minimumWidth: number; customCss: string; -} \ No newline at end of file +}