+4
-4
@@ -29,9 +29,9 @@ backend:
|
||||
# auth:
|
||||
# keys:
|
||||
# - secret: ${BACKEND_SECRET}
|
||||
baseUrl: http://localhost:7000
|
||||
baseUrl: http://localhost:7007
|
||||
listen:
|
||||
port: 7000
|
||||
port: 7007
|
||||
database:
|
||||
client: sqlite3
|
||||
connection: ':memory:'
|
||||
@@ -308,8 +308,8 @@ auth:
|
||||
providers:
|
||||
google:
|
||||
development:
|
||||
clientId: 37202476686-4n78svmvctk411cirj7ds3d9ah682l2g.apps.googleusercontent.com
|
||||
clientSecret: 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
|
||||
clientId: ${AUTH_GOOGLE_CLIENT_ID}
|
||||
clientSecret: ${AUTH_GOOGLE_CLIENT_SECRET}
|
||||
github:
|
||||
development:
|
||||
clientId: ${AUTH_GITHUB_CLIENT_ID}
|
||||
|
||||
@@ -1,12 +1,26 @@
|
||||
# gcalendar
|
||||
# Google calendar plugin
|
||||
|
||||
Welcome to the gcalendar plugin!
|
||||
|
||||
_This plugin was created through the Backstage CLI_
|
||||
Plugin displays events from google calendar
|
||||
|
||||
## Getting started
|
||||
|
||||
Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn start` in the root directory, and then navigating to [/gcalendar](http://localhost:3000/gcalendar).
|
||||
The plugin exports a `gcalendarApiRef`. Add this to the App's `apis.ts`:
|
||||
|
||||
```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.
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"dompurify": "^2.3.6",
|
||||
"lodash": "^4.17.21",
|
||||
"luxon": "^2.3.0",
|
||||
"material-ui-popup-state": "^2.0.0",
|
||||
"material-ui-popup-state": "^1.9.3",
|
||||
"react-query": "^3.34.16",
|
||||
"react-use": "^17.2.4"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user