backstage

Форк
0

README.md

Microsoft-Calendar Plugin

This plugin is contributed by StatusNeo

Features

  1. You can switch between calendars, using the select menu on the calendar card header.
  2. Card showing the list of events on the selected date and the selected calendar (provided by Outlook calendar).
  3. Link to join the online meeting on the event card if provided. so you can join your meetings right away hassle-free.
  4. Hovering over the event will pop over a card showing the event summary message, and list of attendees.
  5. 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.

  1. Install the plugin by running this command
# From your Backstage root directory
yarn --cwd packages/app add @backstage/plugin-microsoft-calendar
  1. Import the Microsoft calendar React component from @backstage/plugin-microsoft-calendar.
  2. 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),
}),
];

Microsoft Calendar plugin demo

Sample

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.

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.