This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Staticalize | |
description: Create a static version of a website by traversing a dynamically evaluated sitemap.xml | |
author: Frontside Engineering <engineering@frontside.com> | |
inputs: | |
site: | |
description: "URL of the website to staticalize. E.g. http://localhost:8000" | |
required: true | |
output: | |
description: Directory to place the downloaded site | |
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: 'backstage-plugin-changes-backend' | |
version: '1' | |
description: The Backstage backend plugin that provides the Changes API | |
contact: {} | |
servers: | |
- url: / | |
- url: changes | |
components: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: 'backstage-plugin-changes-backend' | |
version: '1' | |
description: The Backstage backend plugin that provides the Changes API | |
contact: {} | |
servers: | |
- url: / | |
- url: changes | |
components: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios, { AxiosInstance } from 'axios'; | |
import dotenv from 'dotenv'; | |
import { | |
IncrementalEntityProvider, | |
EntityIteratorResult, | |
} from '@backstage/plugin-catalog-backend-module-incremental-ingestion'; | |
dotenv.config(); | |
interface BitbucketApiResponse { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function useComposer() { | |
const github = // useApi(Scm) | |
const token = github.token | |
return { | |
async getRepositories() { | |
return fetch(.../repositoriess) | |
}, | |
async getFeatures() { | |
return fetch(.../features) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs/promises'; | |
import path from 'path'; | |
import { findPaths } from '@backstage/cli-common'; | |
import { Command } from 'commander'; | |
import { loadConfig, loadConfigSchema } from '@backstage/config-loader'; | |
import { getPackages } from '@manypkg/get-packages'; | |
import { ConfigReader } from '@backstage/config'; | |
async function inject() { | |
const config = await readConfig(process.argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { findPaths } from '@backstage/cli-common'; | |
import { Command } from 'commander'; | |
import { loadConfig, loadConfigSchema } from '@backstage/config-loader'; | |
import { getPackages } from '@manypkg/get-packages'; | |
import { ConfigReader, Config } from '@backstage/config'; | |
export async function readConfig(argv: NodeJS.Process['argv']) { | |
const program = new Command(); | |
program.option('--config <path>', 'Config files to load instead of app-config.yaml', []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
catalog: | |
<AboutCard>: | |
$import: | |
- names: [<AboutCard>] | |
from: ./catalog.yaml | |
- names: [<Alarm>] | |
from: ./icons.yaml | |
$do: | |
$<AboutCard>: | |
secondaryButtons(_): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query EnvironmentsView($cursor: String) { | |
@table | |
environments(first: 10, after: $cursor) { | |
nodes { | |
... on Environment { | |
name | |
namespace | |
deployment { | |
name | |
createdBy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query AllOrganizations($organization: String!, $endCursor: String) { | |
organizations(first: 100, after: $organization) { | |
pageInfo { | |
hasNextPage | |
endCursor | |
} | |
nodes { | |
... OrganizationNode | |
... on Organization { | |
repositories(first: 100, after: $endCursor) { |
NewerOlder