Skip to content

Commit

Permalink
chore: trigger changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zzorica committed Sep 7, 2024
1 parent 850e027 commit d45c160
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 16 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@daytona-io'

- name: Install dependencies
run: yarn install
Expand Down
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# macOS
.DS_Store

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Coverage directory generated when running tests with coverage
coverage

# Dependencies
node_modules/

# Yarn 3 files
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Node version directives
.nvmrc

# dotenv environment variables file
.env
.env.test

# Build output
dist
dist-types

# Temporary change files created by Vim
*.swp

# MkDocs build output
site

# Local configuration files
*.local.yaml

# Sensitive credentials
*-credentials.yaml

# vscode database functionality support files
*.session.sql

# E2E test reports
e2e-test-report/
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# daytona-backstage-plugins
Backstage Plugins for Daytona

This is scaffolded Backstage App using `create-backstage-app` command.
This is scaffolded Backstage App using `create-backstage-app` command.

To start the app, run:

Expand All @@ -14,6 +14,6 @@ yarn dev

If you wish to add Daytona plugins to your Backstage instance. You'll need to install the below plugins. You can refer the individual plugin documentation for installation and configuration.

1. [@adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider](https://www.npmjs.com/package/@adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider)
2. [@adityasinghal26/daytona-web](https://www.npmjs.com/package/@adityasinghal26/daytona-web)
3. [@adityasinghal26/backstage-plugin-daytona](https://www.npmjs.com/package/@adityasinghal26/backstage-plugin-daytona)
1. [@daytona-io/backstage-plugin-auth-backend-module-daytona-provider](https://www.npmjs.com/package/@daytona-io/backstage-plugin-auth-backend-module-daytona-provider)
2. [@daytona-io/daytona-web](https://www.npmjs.com/package/@daytona-io/daytona-web)
3. [@daytona-io/backstage-plugin-daytona](https://www.npmjs.com/package/@daytona-io/backstage-plugin-daytona)
6 changes: 3 additions & 3 deletions plugins/auth-backend-module-daytona-provider/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider
# @daytona-io/backstage-plugin-auth-backend-module-daytona-provider

The daytona-provider backend module for the auth plugin.

Expand Down Expand Up @@ -46,12 +46,12 @@ The plugin can be installed by running the below command in Backstage root direc

```sh
# From your Backstage root directory
yarn --cwd packages/backend add @adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider
yarn --cwd packages/backend add @daytona-io/backstage-plugin-auth-backend-module-daytona-provider
```

```ts
// In packages/backend/src/index.ts
// Add the Daytona auth plugin provider
backend.add(import('@adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider'));
backend.add(import('@daytona-io/backstage-plugin-auth-backend-module-daytona-provider'));
```
8 changes: 4 additions & 4 deletions plugins/daytona-web/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @adityasinghal26/daytona-web
# @daytona-io/daytona-web

_This package was created through the Backstage CLI_.

Expand All @@ -12,7 +12,7 @@ Install the package via Yarn in your Backstage root directory:

```sh
# From your Backstage root directory
yarn --cwd packages/app add @adityasinghal26/daytona-web
yarn --cwd packages/app add @daytona-io/daytona-web
```

## Authentication Setup
Expand All @@ -23,7 +23,7 @@ Backstage requires ApiFactory to interact with Daytona OAuth library and a sign-

```ts
// In packages/app/src/apis.ts
import { daytonaApiFactory } from '@adityasinghal26/daytona-web';
import { daytonaApiFactory } from '@daytona-io/daytona-web';

// Add the Daytona ApiFactory to the list of available APIs
export const apis: AnyApiFactory[] = [
Expand All @@ -37,7 +37,7 @@ Backstage requires ApiFactory to interact with Daytona OAuth library and a sign-
```tsx
// In packages/app/src/App.tsx
import { daytonaSignInProvider } from '@adityasinghal26/daytona-web';
import { daytonaSignInProvider } from '@daytona-io/daytona-web';
// Add the Daytona Sign-In Provider to the available sign-in providers
const app = createApp({
Expand Down
10 changes: 5 additions & 5 deletions plugins/daytona/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The Daytona plugin provides frontend components to connect to the Daytona API ba
The package shall be installed in the Backstage root directory as below.

```sh
yarn --cwd packages/app add @adityasinghal26/backstage-plugin-daytona
yarn --cwd packages/app add @daytona-io/backstage-plugin-daytona
```

## Setup
Expand All @@ -31,13 +31,13 @@ yarn --cwd packages/app add @adityasinghal26/backstage-plugin-daytona

```bash
# From your Backstage root directory
yarn add --cwd packages/app @adityasinghal26/backstage-plugin-daytona
yarn add --cwd packages/app @daytona-io/backstage-plugin-daytona
```

2. Add to the app `EntityPage` component. Make sure to add `DaytonaOverviewComponent` right after `EntityAboutCard` under `overviewContent`. This will get the repository URL automatically from the entity location metadata to create the Daytona workspaces. Along with that, it will also list all the workspaces, specific to the repository.

```tsx
import { DaytonaOverviewContent } from '@adityasinghal26/backstage-plugin-daytona';
import { DaytonaOverviewContent } from '@daytona-io/backstage-plugin-daytona';
// Add the DaytonaOverviewContent to show the workspaces for that entity
const overviewContent = (
Expand Down Expand Up @@ -82,7 +82,7 @@ Ensure that the package is installed as mentioned in the Installation section.
```tsx
// In packages/app/src/App.tsx
import { DaytonaPage } from '@adityasinghal26/backstage-plugin-daytona';
import { DaytonaPage } from '@daytona-io/backstage-plugin-daytona';
// Add the route to the App path routes
const routes = (
Expand All @@ -97,7 +97,7 @@ Ensure that the package is installed as mentioned in the Installation section.
```tsx
// In packages/app/src/components/Root/App.tsx
import { DaytonaIcon } from '@adityasinghal26/backstage-plugin-daytona';
import { DaytonaIcon } from '@daytona-io/backstage-plugin-daytona';
// Add the menu to the Root menu sidebar
export const Root = ({ children }: PropsWithChildren<{}>) => (
Expand Down

0 comments on commit d45c160

Please sign in to comment.