From e3867091182e320f834f83992e2fd8ac79cbbd69 Mon Sep 17 00:00:00 2001 From: frikky Date: Fri, 31 Dec 2021 01:01:36 +0100 Subject: [PATCH] #168: Fixed a lot of the tiny annoyances of Oauth2 apps --- frontend/src/components/Oauth2Auth.jsx | 68 +++++----- frontend/src/components/ParsedAction.jsx | 11 +- frontend/src/views/AppCreator.jsx | 152 ++++++++++++++++++++--- 3 files changed, 177 insertions(+), 54 deletions(-) diff --git a/frontend/src/components/Oauth2Auth.jsx b/frontend/src/components/Oauth2Auth.jsx index 634ccf67..be7a8088 100644 --- a/frontend/src/components/Oauth2Auth.jsx +++ b/frontend/src/components/Oauth2Auth.jsx @@ -311,10 +311,7 @@ const AuthenticationOauth2 = (props) => { - - Oauth2 requires a client ID and secret to authenticate. This is - usually made in the remote system. - + Oauth2 requires a client ID and secret to authenticate, defined in the remote system. Your redirect URL is https://shuffler.io/set_authentication. { ); })} - {allscopes.length === 0 ? null : ( - } - renderValue={(selected) => selected.join(", ")} - MenuProps={MenuProps} - > - {allscopes.map((data, index) => { - return ( - - -1} /> - - - ); - })} - - )} { color: "white", marginLeft: "5px", maxWidth: "95%", - height: 50, fontSize: "1em", + height: "50px", }, }} fullWidth @@ -505,14 +476,15 @@ const AuthenticationOauth2 = (props) => { style={{ backgroundColor: theme.palette.inputColor, borderRadius: theme.palette.borderRadius, + marginBottom: 10, }} InputProps={{ style: { color: "white", marginLeft: "5px", maxWidth: "95%", - height: 50, fontSize: "1em", + height: "50px", }, }} fullWidth @@ -523,6 +495,36 @@ const AuthenticationOauth2 = (props) => { //authenticationOption.label = event.target.value }} /> + {allscopes.length === 0 ? null : ( + + Scopes + } + renderValue={(selected) => selected.join(", ")} + MenuProps={MenuProps} + > + {allscopes.map((data, index) => { + return ( + + -1} /> + + + ); + })} + + + )} )}