From de0e32f6a303a2ab1e72a6cd7a2799f9b8f2a87d Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Fri, 24 Jul 2020 18:11:10 -0300 Subject: [PATCH 01/50] :rotating_light: ignore proptype errors --- .../modules/IDE/components/EditableInput.jsx | 21 +- client/modules/IDE/components/NewFileForm.jsx | 26 ++- .../modules/IDE/components/NewFolderForm.jsx | 26 ++- client/modules/IDE/pages/IDEView.jsx | 216 +++++++++++------- client/modules/IDE/pages/MobileIDEView.jsx | 81 ++++--- client/modules/Mobile/MobileExamples.jsx | 16 ++ client/modules/User/components/APIKeyForm.jsx | 48 ++-- .../modules/User/components/AccountForm.jsx | 87 +++---- client/modules/User/components/LoginForm.jsx | 40 ++-- .../User/components/NewPasswordForm.jsx | 39 ++-- .../User/components/ResetPasswordForm.jsx | 34 ++- client/modules/User/components/SignupForm.jsx | 63 +++-- client/routes.jsx | 2 + server/routes/server.routes.js | 14 +- 14 files changed, 454 insertions(+), 259 deletions(-) create mode 100644 client/modules/Mobile/MobileExamples.jsx diff --git a/client/modules/IDE/components/EditableInput.jsx b/client/modules/IDE/components/EditableInput.jsx index c10f3d70..64f38222 100644 --- a/client/modules/IDE/components/EditableInput.jsx +++ b/client/modules/IDE/components/EditableInput.jsx @@ -5,13 +5,20 @@ import EditIcon from '../../../images/pencil.svg'; // TODO I think this needs a description prop so that it's accessible function EditableInput({ - validate, value, emptyPlaceholder, InputComponent, inputProps, onChange + validate, + value, + emptyPlaceholder, + InputComponent, + inputProps, + onChange, }) { const [isEditing, setIsEditing] = React.useState(false); const [currentValue, setCurrentValue] = React.useState(value || ''); const displayValue = currentValue || emptyPlaceholder; const hasValue = currentValue !== ''; - const classes = `editable-input editable-input--${isEditing ? 'is-editing' : 'is-not-editing'} editable-input--${hasValue ? 'has-value' : 'has-placeholder'}`; + const classes = `editable-input editable-input--${ + isEditing ? 'is-editing' : 'is-not-editing' + } editable-input--${hasValue ? 'has-value' : 'has-placeholder'}`; const inputRef = React.createRef(); React.useEffect(() => { @@ -54,7 +61,11 @@ function EditableInput({ aria-label={`Edit ${displayValue} value`} > {displayValue} -