backstage
Microsoft-Calendar Plugin
This plugin is contributed by StatusNeo
Features
- You can switch between calendars, using the select menu on the calendar card header.
- Card showing the list of events on the selected date and the selected calendar (provided by Outlook calendar).
- Link to join the online meeting on the event card if provided. so you can join your meetings right away hassle-free.
- Hovering over the event will pop over a card showing the event summary message, and list of attendees.
- attendee's chips will have a badge over them symbolizing their responses.
- green --> accepted
- red --> declined
- nothing --> not responded yet
Setup
The following sections will help you set up the Microsoft calendar plugin.
Microsoft azure authentication provider
You need to setup Microsoft Azure authentication provider, before you move forward with any of the below step if you haven't already.
- Install the plugin by running this command
# From your Backstage root directoryyarn --cwd packages/app add @backstage/plugin-microsoft-calendar
- Import the Microsoft calendar React component from
@backstage/plugin-microsoft-calendar
. - You can then use the provided React component
MicrosoftCalendar
in the backstage frontend where ever you want
import { MicrosoftCalendarCard } from '@backstage/plugin-microsoft-calendar';
// ...<Grid item xs={12} md={4}> <MicrosoftCalendarCard /></Grid>;// ...
If your homepage is not static JSX add microsoftCalendarApiRef
to the App's apis.ts
:
import { MicrosoftCalendarApiClient, microsoftCalendarApiRef,} from '@backstage/plugin-microsoft-calendar';import { // ... fetchApiRef, // ...} from '@backstage/core-plugin-api';
export const apis = [ // ... createApiFactory({ api: microsoftCalendarApiRef, deps: { authApi: microsoftAuthApiRef, fetchApi: fetchApiRef }, factory: deps => new MicrosoftCalendarApiClient(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.