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

Skip to content

Commit a121fde

Browse files
author
sunlei
committed
update some text description
1 parent f8d9229 commit a121fde

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

server/node-service/src/plugins/circleCi/index.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { readYaml } from "../../common/util";
21
import _ from "lodash";
3-
import path from "path";
42
import { OpenAPIV3, OpenAPI } from "openapi-types";
53
import { ConfigToType, DataSourcePlugin } from "openblocks-sdk/dataSource";
64
import { runOpenApi } from "../openApi";
@@ -12,12 +10,13 @@ const dataSourceConfig = {
1210
type: "dataSource",
1311
params: [
1412
{
15-
"type": "password",
16-
"key": "api_key_header.value",
17-
"label": "Personal API Token",
18-
"tooltip": "[Personal API Token](https://circleci.com/docs/managing-api-tokens/#creating-a-personal-api-token)"
13+
type: "password",
14+
key: "api_key_header.value",
15+
label: "API Token",
16+
tooltip:
17+
"[Personal API Token](https://circleci.com/docs/managing-api-tokens/#creating-a-personal-api-token)",
1918
},
20-
]
19+
],
2120
} as const;
2221

2322
const parseOptions: ParseOpenApiOptions = {
@@ -35,7 +34,10 @@ const circleCiPlugin: DataSourcePlugin<any, DataSourceConfigType> = {
3534
category: "api",
3635
dataSourceConfig,
3736
queryConfig: async () => {
38-
const { actions, categories } = await parseOpenApi(spec as unknown as OpenAPI.Document, parseOptions);
37+
const { actions, categories } = await parseOpenApi(
38+
spec as unknown as OpenAPI.Document,
39+
parseOptions
40+
);
3941
return {
4042
type: "query",
4143
label: "Action",

server/node-service/src/plugins/cloudinary/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let queryConfig: QueryConfig;
5050

5151
const cloudinaryPlugin: DataSourcePlugin<any, DataSourceConfigType> = {
5252
id: "cloudinary",
53-
name: "cloudinary",
53+
name: "Cloudinary",
5454
icon: "cloudinary.svg",
5555
category: "api",
5656
dataSourceConfig,

server/node-service/src/plugins/graphql/queryConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const graphQLQueryConfig = {
1010
type: "graphqlInput",
1111
label: "Query",
1212
key: "query",
13+
placeholder: "GraphQL queries",
1314
},
1415
{
1516
type: "keyValueInput",

server/node-service/src/plugins/slack/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const slackPlugin = {
77
id: "slack",
88
name: "Slack",
99
icon: "slack.svg",
10-
category: "database",
10+
category: "api",
1111
dataSourceConfig,
1212
queryConfig: queryConfig,
1313

0 commit comments

Comments
 (0)