Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions plugins/backstage-plugin-coder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ the Dev Container.
3. Add the `CoderProvider` to the application:

```tsx
// In packages/app/src/App.tsx
// packages/app/src/App.tsx

import {
type CoderAppConfig,
CoderProvider,
Expand Down Expand Up @@ -94,14 +95,26 @@ the Dev Container.
4. Add the `CoderWorkspacesCard` card to the entity page in your app:

```tsx
// In packages/app/src/components/catalog/EntityPage.tsx
import { CoderWorkspacesCard } from '@coder/backstage-plugin-coder';
// packages/app/src/components/catalog/EntityPage.tsx

// ...
import { CoderWorkspacesCard } from '@coder/backstage-plugin-coder';

<Grid item md={6} xs={12}>
<CoderWorkspacesCard readEntityData />
</Grid>;
// We recommend placing the component inside of overviewContent
const overviewContent = (
<Grid container spacing={3} alignItems="stretch">
{entityWarningContent}
<Grid item md={6}>
<EntityAboutCard variant="gridItem" />
</Grid>

{/* Coder component should go inside Grid to help it work with MUI layouts */}
<Grid item md={6} xs={12}>
<CoderWorkspacesCard readEntityData />
</Grid>

{/* Other elements for overviewContent go here */}
</Grid>
);
```

### `app-config.yaml` files
Expand Down