rename to gcalendar

Signed-off-by: Alex Rybchenko <arybchenko@box.com>
This commit is contained in:
Alex Rybchenko
2022-02-25 13:26:05 +01:00
parent 992af7d68e
commit 9297424748
36 changed files with 20 additions and 20 deletions
+4 -4
View File
@@ -29,9 +29,9 @@ backend:
# auth:
# keys:
# - secret: ${BACKEND_SECRET}
baseUrl: http://localhost:7007
baseUrl: http://localhost:7000
listen:
port: 7007
port: 7000
database:
client: sqlite3
connection: ':memory:'
@@ -308,8 +308,8 @@ auth:
providers:
google:
development:
clientId: ${AUTH_GOOGLE_CLIENT_ID}
clientSecret: ${AUTH_GOOGLE_CLIENT_SECRET}
clientId: 37202476686-4n78svmvctk411cirj7ds3d9ah682l2g.apps.googleusercontent.com
clientSecret: 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
github:
development:
clientId: ${AUTH_GITHUB_CLIENT_ID}
+1 -1
View File
@@ -29,7 +29,7 @@
"@backstage/plugin-code-coverage": "^0.1.27",
"@backstage/plugin-cost-insights": "^0.11.22",
"@backstage/plugin-explore": "^0.3.31",
"@backstage/plugin-gcalendar-homepage": "^0.0.0",
"@backstage/plugin-gcalendar": "^0.1.0",
"@backstage/plugin-gcp-projects": "^0.3.19",
"@backstage/plugin-github-actions": "^0.5.0",
"@backstage/plugin-gocd": "^0.1.6",
+1 -1
View File
@@ -39,7 +39,7 @@ import {
import {
GCalendarApiClient,
gcalendarApiRef,
} from '@backstage/plugin-gcalendar-homepage';
} from '@backstage/plugin-gcalendar';
export const apis: AnyApiFactory[] = [
createApiFactory({
@@ -25,7 +25,7 @@ import {
} from '@backstage/plugin-home';
import { Content, Header, Page } from '@backstage/core-components';
import { HomePageSearchBar } from '@backstage/plugin-search';
import { CalendarCard } from '@backstage/plugin-gcalendar-homepage';
import { CalendarCard } from '@backstage/plugin-gcalendar';
import Grid from '@material-ui/core/Grid';
import React from 'react';
@@ -14,6 +14,6 @@
* limitations under the License.
*/
import { createDevApp } from '@backstage/dev-utils';
import { gcalendarHomepagePlugin } from '../src/plugin';
import { gcalendarPlugin } from '../src/plugin';
createDevApp().registerPlugin(gcalendarHomepagePlugin).render();
createDevApp().registerPlugin(gcalendarPlugin).render();
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-gcalendar-homepage",
"version": "0.0.0",
"name": "@backstage/plugin-gcalendar",
"version": "0.1.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -23,7 +23,7 @@ import {
} from '@backstage/test-utils';
import { CalendarCardContainer } from '.';
import { gcalendarApiRef, gcalendarHomepagePlugin } from '../..';
import { gcalendarApiRef, gcalendarPlugin } from '../..';
describe('<CalendarCard />', () => {
const primaryCalendar = {
@@ -130,7 +130,7 @@ describe('<CalendarCard />', () => {
it('should select stored calendar', async () => {
mockStorage
.forBucket(gcalendarHomepagePlugin.getId())
.forBucket(gcalendarPlugin.getId())
.set('google_calendars_selected', [nonPrimaryCalendar.id]);
const rendered = await renderInTestApp(
@@ -16,7 +16,7 @@
import { useApi, storageApiRef } from '@backstage/core-plugin-api';
import { useObservable } from 'react-use';
import { gcalendarHomepagePlugin } from '../plugin';
import { gcalendarPlugin } from '../plugin';
export enum LocalStorageKeys {
selectedCalendars = 'google_calendars_selected',
@@ -25,7 +25,7 @@ export enum LocalStorageKeys {
export function useStoredCalendars(
defaultValue: string[],
): [string[], (value: string[]) => void] {
const storageBucket = gcalendarHomepagePlugin.getId();
const storageBucket = gcalendarPlugin.getId();
const storageKey = LocalStorageKeys.selectedCalendars;
const storageApi = useApi(storageApiRef).forBucket(storageBucket);
const setValue = (value: string[]) => {

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 265 B

After

Width:  |  Height:  |  Size: 265 B

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { gcalendarHomepagePlugin, CalendarCard } from './plugin';
export { gcalendarPlugin, CalendarCard } from './plugin';
export * from './api';
@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { gcalendarHomepagePlugin } from './plugin';
import { gcalendarPlugin } from './plugin';
describe('gcalendar-homepage', () => {
it('should export plugin', () => {
expect(gcalendarHomepagePlugin).toBeDefined();
expect(gcalendarPlugin).toBeDefined();
});
});
@@ -24,7 +24,7 @@ import {
import { GCalendarApiClient, gcalendarApiRef } from './api';
import { rootRouteRef } from './routes';
export const gcalendarHomepagePlugin = createPlugin({
export const gcalendarPlugin = createPlugin({
id: 'gcalendar-homepage',
routes: {
root: rootRouteRef,
@@ -40,7 +40,7 @@ export const gcalendarHomepagePlugin = createPlugin({
],
});
export const CalendarCard = gcalendarHomepagePlugin.provide(
export const CalendarCard = gcalendarPlugin.provide(
createComponentExtension({
name: 'CalendarCard',
component: {