Files
backstage/plugins/gcalendar
Fredrik Adelöw 734cf86028 Merge pull request #17704 from benjmac/plugin-gcalendar-scope-fix
fix(plugin-gcalendar): Add userinfo email scope for gcalendar plugin auth refresh to resolve 401
2023-05-10 12:18:50 +02:00
..
2022-08-19 12:13:09 +02:00
2023-05-09 09:49:35 +00:00
2023-05-09 09:49:35 +00:00

Google calendar plugin

Plugin displays events from google calendar

Getting started

The plugin exports HomePageCalendar widget for the Homepage. If your homepage is not static JSX add gcalendarApiRef to the App's apis.ts:

import {
  GCalendarApiClient,
  gcalendarApiRef,
} from '@backstage/plugin-gcalendar';

export const apis = [
  // ...
  createApiFactory({
    api: gcalendarApiRef,
    deps: { authApi: googleAuthApiRef, fetchApi: fetchApiRef },
    factory: deps => new GCalendarApiClient(deps),
  }),
];

You can also serve the plugin in isolation by running yarn start in the plugin directory. This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads. It is only meant for local development, and the setup for it can be found inside the /dev directory.