From c62c44b17e6bd2321a9b16a7fcbfd36463670712 Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Wed, 13 Oct 2021 11:45:13 +0200 Subject: [PATCH] chore: Add slug and placeholder fields to apps --- packages/backend/src/apps/twitch/info.json | 4 ++++ packages/backend/src/apps/twitter/info.json | 5 +++++ packages/backend/src/graphql/types/app.ts | 1 + 3 files changed, 10 insertions(+) diff --git a/packages/backend/src/apps/twitch/info.json b/packages/backend/src/apps/twitch/info.json index c2ae4a81..0751ace8 100644 --- a/packages/backend/src/apps/twitch/info.json +++ b/packages/backend/src/apps/twitch/info.json @@ -1,6 +1,7 @@ { "name": "Twitch", "key": "twitch", + "slug": "twitch", "iconUrl": "https://automatisch.io/apps/twitch.png", "docUrl": "https://automatisch.io/docs/twitch", "primaryColor": "6441a5", @@ -12,6 +13,7 @@ "required": true, "readOnly": true, "value": "http://localhost:3000/sample", + "placeholder": null, "description": "When asked to input an OAuth callback or redirect URL in Twitch OAuth, enter the URL above.", "docUrl": "https://automatisch.io/docs/twitch#oauth-redirect-url", "clickToCopy": true @@ -23,6 +25,7 @@ "required": true, "readOnly": false, "value": null, + "placeholder": null, "description": null, "docUrl": "https://automatisch.io/docs/twitch#consumer-key", "clickToCopy": false @@ -34,6 +37,7 @@ "required": true, "readOnly": false, "value": null, + "placeholder": null, "description": null, "docUrl": "https://automatisch.io/docs/twitch#consumer-secret", "clickToCopy": false diff --git a/packages/backend/src/apps/twitter/info.json b/packages/backend/src/apps/twitter/info.json index 47c42c3f..f2f7a6f9 100644 --- a/packages/backend/src/apps/twitter/info.json +++ b/packages/backend/src/apps/twitter/info.json @@ -1,6 +1,7 @@ { "name": "Twitter", "key": "twitter", + "slug": "twitter", "iconUrl": "https://automatisch.io/apps/twitter.png", "docUrl": "https://automatisch.io/docs/twitter", "primaryColor": "2DAAE1", @@ -12,6 +13,7 @@ "required": true, "readOnly": true, "value": "http://localhost:3000/sample", + "placeholder": null, "description": "When asked to input an OAuth callback or redirect URL in Twitter OAuth, enter the URL above.", "docUrl": "https://automatisch.io/docs/twitter#oauth-redirect-url", "clickToCopy": true @@ -23,6 +25,7 @@ "required": true, "readOnly": false, "value": null, + "placeholder": null, "description": "It's the value you can remember later on while changing connection settings.", "docUrl": "https://automatisch.io/docs/twitter#display-name", "clickToCopy": false @@ -34,6 +37,7 @@ "required": true, "readOnly": false, "value": null, + "placeholder": null, "description": null, "docUrl": "https://automatisch.io/docs/twitter#consumer-key", "clickToCopy": false @@ -45,6 +49,7 @@ "required": true, "readOnly": false, "value": null, + "placeholder": null, "description": null, "docUrl": "https://automatisch.io/docs/twitter#consumer-secret", "clickToCopy": false diff --git a/packages/backend/src/graphql/types/app.ts b/packages/backend/src/graphql/types/app.ts index fa28253e..f9e56a0f 100644 --- a/packages/backend/src/graphql/types/app.ts +++ b/packages/backend/src/graphql/types/app.ts @@ -6,6 +6,7 @@ const appType = new GraphQLObjectType({ fields: { name: { type: GraphQLString }, key: { type: GraphQLString }, + slug: { type: GraphQLString }, iconUrl: { type: GraphQLString }, docUrl: { type: GraphQLString }, primaryColor: { type: GraphQLString },