Adjust editor config (#976)

* Adjust editor config

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Tilman Vatteroth 2021-02-03 22:13:04 +01:00 committed by GitHub
parent 0180c75e55
commit e12dc523f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
301 changed files with 4393 additions and 3741 deletions

View file

@ -1,8 +1,8 @@
/*
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
SPDX-License-Identifier: AGPL-3.0-only
*/
SPDX-License-Identifier: AGPL-3.0-only
*/
import React, { FormEvent, useCallback, useState } from 'react'
import { Alert, Button, Card, Form } from 'react-bootstrap'
@ -32,33 +32,33 @@ export const ViaInternal: React.FC = () => {
<Card className="bg-dark mb-4">
<Card.Body>
<Card.Title>
<Trans i18nKey="login.signInVia" values={{ service: t('login.auth.username') }}/>
<Trans i18nKey="login.signInVia" values={ { service: t('login.auth.username') } }/>
</Card.Title>
<Form onSubmit={onLoginSubmit}>
<Form onSubmit={ onLoginSubmit }>
<Form.Group controlId="internal-username">
<Form.Control
isInvalid={error}
isInvalid={ error }
type="text"
size="sm"
placeholder={t('login.auth.username')}
onChange={(event) => setUsername(event.currentTarget.value)} className="bg-dark text-light"
placeholder={ t('login.auth.username') }
onChange={ (event) => setUsername(event.currentTarget.value) } className="bg-dark text-light"
autoComplete='username'
/>
</Form.Group>
<Form.Group controlId="internal-password">
<Form.Control
isInvalid={error}
isInvalid={ error }
type="password"
size="sm"
placeholder={t('login.auth.password')}
onChange={(event) => setPassword(event.currentTarget.value)}
placeholder={ t('login.auth.password') }
onChange={ (event) => setPassword(event.currentTarget.value) }
className="bg-dark text-light"
autoComplete='current-password'
/>
</Form.Group>
<Alert className="small" show={error} variant="danger">
<Alert className="small" show={ error } variant="danger">
<Trans i18nKey="login.auth.error.usernamePassword"/>
</Alert>
@ -69,8 +69,8 @@ export const ViaInternal: React.FC = () => {
className='mx-2'>
<Trans i18nKey="login.signIn"/>
</Button>
<ShowIf condition={allowRegister}>
<Link to={'/register'}>
<ShowIf condition={ allowRegister }>
<Link to={ '/register' }>
<Button
type='button'
variant='secondary'