From 54c2a73d68e63fbf477d247e9a807c7e8a8fb3ef Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 6 May 2021 10:17:33 +0200 Subject: [PATCH] auto formatting --- interface/public/app/manifest.json | 16 +++++++-------- interface/src/SignIn.tsx | 2 +- interface/src/ap/APSettingsController.tsx | 2 +- interface/src/ap/APStatusController.tsx | 2 +- .../src/authentication/Authentication.ts | 6 +++--- interface/src/components/MenuAppBar.tsx | 2 +- .../src/components/PasswordValidator.tsx | 2 +- interface/src/index.tsx | 2 +- interface/src/mqtt/MqttSettingsController.tsx | 2 +- interface/src/mqtt/MqttStatusController.tsx | 2 +- interface/src/mqtt/MqttStatusForm.tsx | 20 +++++++++---------- .../src/network/NetworkStatusController.tsx | 2 +- interface/src/ntp/NTPSettingsController.tsx | 2 +- interface/src/project/EMSESPStatus.ts | 2 +- interface/src/project/ProjectMenu.tsx | 2 +- interface/src/project/ValueForm.tsx | 2 +- .../src/security/ManageUsersController.tsx | 2 +- .../security/SecuritySettingsController.tsx | 2 +- interface/src/serviceWorker.ts | 16 +++++++-------- .../src/system/OTASettingsController.tsx | 2 +- .../src/system/SystemStatusController.tsx | 2 +- interface/tsconfig.json | 2 +- 22 files changed, 47 insertions(+), 47 deletions(-) diff --git a/interface/public/app/manifest.json b/interface/public/app/manifest.json index ad69575f0..8d7c5e4e5 100644 --- a/interface/public/app/manifest.json +++ b/interface/public/app/manifest.json @@ -1,12 +1,12 @@ { - "name":"EMS-ESP", - "icons":[ + "name": "EMS-ESP", + "icons": [ { - "src":"/app/icon.png", - "sizes":"48x48 72x72 96x96 128x128 256x256" + "src": "/app/icon.png", + "sizes": "48x48 72x72 96x96 128x128 256x256" } ], - "start_url":"/", - "display":"fullscreen", - "orientation":"any" -} + "start_url": "/", + "display": "fullscreen", + "orientation": "any" +} \ No newline at end of file diff --git a/interface/src/SignIn.tsx b/interface/src/SignIn.tsx index e4df446fb..aad465df0 100644 --- a/interface/src/SignIn.tsx +++ b/interface/src/SignIn.tsx @@ -7,7 +7,7 @@ import { Paper, Typography, Fab } from '@material-ui/core'; import ForwardIcon from '@material-ui/icons/Forward'; import { withAuthenticationContext, AuthenticationContextProps } from './authentication/AuthenticationContext'; -import {PasswordValidator} from './components'; +import { PasswordValidator } from './components'; import { PROJECT_NAME, SIGN_IN_ENDPOINT } from './api'; const styles = (theme: Theme) => createStyles({ diff --git a/interface/src/ap/APSettingsController.tsx b/interface/src/ap/APSettingsController.tsx index 3284b4ab6..7508f47c6 100644 --- a/interface/src/ap/APSettingsController.tsx +++ b/interface/src/ap/APSettingsController.tsx @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import { AP_SETTINGS_ENDPOINT } from '../api'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import APSettingsForm from './APSettingsForm'; import { APSettings } from './types'; diff --git a/interface/src/ap/APStatusController.tsx b/interface/src/ap/APStatusController.tsx index e406bca25..a9dad744c 100644 --- a/interface/src/ap/APStatusController.tsx +++ b/interface/src/ap/APStatusController.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import { AP_STATUS_ENDPOINT } from '../api'; import APStatusForm from './APStatusForm'; diff --git a/interface/src/authentication/Authentication.ts b/interface/src/authentication/Authentication.ts index 4c8749348..cba77e059 100644 --- a/interface/src/authentication/Authentication.ts +++ b/interface/src/authentication/Authentication.ts @@ -38,7 +38,7 @@ export function fetchLoginRedirect(features: Features): H.LocationDescriptorObje } /** - * Wraps the normal fetch routene with one with provides the access token if present. + * Wraps the normal fetch routine with one with provides the access token if present. */ export function authorizedFetch(url: RequestInfo, params?: RequestInit): Promise { const accessToken = getStorage().getItem(ACCESS_TOKEN); @@ -55,8 +55,8 @@ export function authorizedFetch(url: RequestInfo, params?: RequestInit): Promise /** * fetch() does not yet support upload progress, this wrapper allows us to configure the xhr request - * for a single file upload and takes care of adding the Authroization header and redirecting on - * authroization errors as we do for normal fetch operations. + * for a single file upload and takes care of adding the Authorization header and redirecting on + * authorization errors as we do for normal fetch operations. */ export function redirectingAuthorizedUpload(xhr: XMLHttpRequest, url: string, file: File, onProgress: (event: ProgressEvent) => void): Promise { return new Promise((resolve, reject) => { diff --git a/interface/src/components/MenuAppBar.tsx b/interface/src/components/MenuAppBar.tsx index 9c8e9040b..1f3902a48 100644 --- a/interface/src/components/MenuAppBar.tsx +++ b/interface/src/components/MenuAppBar.tsx @@ -142,7 +142,7 @@ class MenuAppBar extends React.Component { )} - + diff --git a/interface/src/components/PasswordValidator.tsx b/interface/src/components/PasswordValidator.tsx index 8ee027622..875d215fb 100644 --- a/interface/src/components/PasswordValidator.tsx +++ b/interface/src/components/PasswordValidator.tsx @@ -3,7 +3,7 @@ import { TextValidator, ValidatorComponentProps } from 'react-material-ui-form-v import { withStyles, WithStyles, createStyles } from '@material-ui/core/styles'; import { InputAdornment, IconButton } from '@material-ui/core'; -import {Visibility,VisibilityOff } from '@material-ui/icons'; +import { Visibility, VisibilityOff } from '@material-ui/icons'; const styles = createStyles({ input: { diff --git a/interface/src/index.tsx b/interface/src/index.tsx index a0801fcd1..537631eaa 100644 --- a/interface/src/index.tsx +++ b/interface/src/index.tsx @@ -8,6 +8,6 @@ import App from './App'; render(( - + ), document.getElementById("root")) diff --git a/interface/src/mqtt/MqttSettingsController.tsx b/interface/src/mqtt/MqttSettingsController.tsx index 8cc9d160d..63257bd91 100644 --- a/interface/src/mqtt/MqttSettingsController.tsx +++ b/interface/src/mqtt/MqttSettingsController.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import { MQTT_SETTINGS_ENDPOINT } from '../api'; import MqttSettingsForm from './MqttSettingsForm'; diff --git a/interface/src/mqtt/MqttStatusController.tsx b/interface/src/mqtt/MqttStatusController.tsx index 4dd540976..663fc9013 100644 --- a/interface/src/mqtt/MqttStatusController.tsx +++ b/interface/src/mqtt/MqttStatusController.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import { MQTT_STATUS_ENDPOINT } from '../api'; import MqttStatusForm from './MqttStatusForm'; diff --git a/interface/src/mqtt/MqttStatusForm.tsx b/interface/src/mqtt/MqttStatusForm.tsx index e17a63999..c7b7ee161 100644 --- a/interface/src/mqtt/MqttStatusForm.tsx +++ b/interface/src/mqtt/MqttStatusForm.tsx @@ -29,16 +29,16 @@ class MqttStatusForm extends Component { - - - - - - - + + + + + + + ); } diff --git a/interface/src/network/NetworkStatusController.tsx b/interface/src/network/NetworkStatusController.tsx index 46b286a64..c647a1992 100644 --- a/interface/src/network/NetworkStatusController.tsx +++ b/interface/src/network/NetworkStatusController.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import NetworkStatusForm from './NetworkStatusForm'; import { NETWORK_STATUS_ENDPOINT } from '../api'; import { NetworkStatus } from './types'; diff --git a/interface/src/ntp/NTPSettingsController.tsx b/interface/src/ntp/NTPSettingsController.tsx index 78f5f631d..2daa9b6cd 100644 --- a/interface/src/ntp/NTPSettingsController.tsx +++ b/interface/src/ntp/NTPSettingsController.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import { NTP_SETTINGS_ENDPOINT } from '../api'; import NTPSettingsForm from './NTPSettingsForm'; diff --git a/interface/src/project/EMSESPStatus.ts b/interface/src/project/EMSESPStatus.ts index b60d9887f..eb7bac976 100644 --- a/interface/src/project/EMSESPStatus.ts +++ b/interface/src/project/EMSESPStatus.ts @@ -30,7 +30,7 @@ export const busStatus = ({ status }: EMSESPStatus) => { } } -export const qualityHighlight = ( value: number, theme: Theme) => { +export const qualityHighlight = (value: number, theme: Theme) => { if (value >= 95) { return theme.palette.success.main; } diff --git a/interface/src/project/ProjectMenu.tsx b/interface/src/project/ProjectMenu.tsx index 7adc934bd..ae35aa145 100644 --- a/interface/src/project/ProjectMenu.tsx +++ b/interface/src/project/ProjectMenu.tsx @@ -26,7 +26,7 @@ class ProjectMenu extends Component { - + ); diff --git a/interface/src/project/ValueForm.tsx b/interface/src/project/ValueForm.tsx index 2da7e5d94..fabfb568a 100644 --- a/interface/src/project/ValueForm.tsx +++ b/interface/src/project/ValueForm.tsx @@ -30,7 +30,7 @@ class ValueForm extends React.Component { const { devicevalue, handleValueChange, onDoneEditing, onCancelEditing } = this.props; return ( - + Change the {devicevalue.name} { console.log( 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit https://bit.ly/CRA-PWA' + 'worker. To learn more, visit https://bit.ly/CRA-PWA' ); }); } else { @@ -79,7 +79,7 @@ function registerValidSW(swUrl: string, config?: Config) { // content until all client tabs are closed. console.log( 'New content is available and will be used when all ' + - 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' + 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' ); // Execute callback diff --git a/interface/src/system/OTASettingsController.tsx b/interface/src/system/OTASettingsController.tsx index 2f683b304..3fb0788bf 100644 --- a/interface/src/system/OTASettingsController.tsx +++ b/interface/src/system/OTASettingsController.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import { OTA_SETTINGS_ENDPOINT } from '../api'; import OTASettingsForm from './OTASettingsForm'; diff --git a/interface/src/system/SystemStatusController.tsx b/interface/src/system/SystemStatusController.tsx index abee0b571..c0537c43b 100644 --- a/interface/src/system/SystemStatusController.tsx +++ b/interface/src/system/SystemStatusController.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; +import { restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import { SYSTEM_STATUS_ENDPOINT } from '../api'; import SystemStatusForm from './SystemStatusForm'; diff --git a/interface/tsconfig.json b/interface/tsconfig.json index e18c413eb..a77978459 100644 --- a/interface/tsconfig.json +++ b/interface/tsconfig.json @@ -23,4 +23,4 @@ "include": [ "src" ] -} +} \ No newline at end of file