From 692f98f2bbe251db345c4bae372737bd541c163f Mon Sep 17 00:00:00 2001 From: Juan Allo Ron <2070972+juanallo@users.noreply.github.com> Date: Mon, 22 Feb 2021 22:37:29 -0800 Subject: [PATCH] formatting all the files --- .../editor/src/components/canvas/index.tsx | 10 +- .../editor/src/components/canvas/styled.ts | 4 +- .../editor/src/components/footer/index.tsx | 10 +- .../editor/src/components/footer/styled.ts | 12 +- .../editor/src/components/frame/index.tsx | 24 +- .../editor/src/components/frame/styled.ts | 12 +- .../editor/src/components/top-bar/index.tsx | 8 +- .../editor/src/components/top-bar/styled.ts | 12 +- packages/editor/src/index.tsx | 4 +- packages/editor/src/size.ts | 15 +- .../webapp/cypress/integration/maps.test.ts | 26 +- .../webapp/cypress/pageObject/MapsPage.ts | 20 +- packages/webapp/cypress/plugins/index.ts | 4 +- packages/webapp/cypress/support/index.ts | 2 +- packages/webapp/src/@types/index.d.ts | 4 +- packages/webapp/src/@types/typings.d.ts | 26 +- packages/webapp/src/app.tsx | 125 +-- packages/webapp/src/classes/app-i18n/index.ts | 48 +- .../client/client-health-sentinel/index.tsx | 53 +- packages/webapp/src/classes/client/index.ts | 125 ++- .../src/classes/client/mock-client/index.ts | 333 +++--- .../src/classes/client/rest-client/index.ts | 712 +++++++------ .../components/forgot-password-page/index.tsx | 109 +- .../forgot-password-success-page/index.tsx | 63 +- .../components/form/global-error/index.tsx | 29 +- .../components/form/global-error/styled.ts | 15 +- .../src/components/form/input/index.tsx | 50 +- .../components/form/submit-button/index.tsx | 38 +- .../src/components/layout/footer/index.tsx | 84 +- .../src/components/layout/footer/styled.ts | 70 +- .../layout/form-container/index.tsx | 10 +- .../src/components/layout/header/index.tsx | 116 ++- .../src/components/layout/header/styled.ts | 128 +-- .../src/components/login-page/index.tsx | 188 ++-- .../account-info-dialog/index.tsx | 184 ++-- .../change-password-dialog/index.tsx | 126 ++- .../maps-page/account-menu/index.tsx | 89 +- .../maps-page/action-chooser/index.tsx | 250 ++--- .../maps-page/action-chooser/styled.ts | 11 +- .../action-dispatcher/base-dialog/index.tsx | 81 +- .../action-dispatcher/base-dialog/style.ts | 32 +- .../action-dispatcher/create-dialog/index.tsx | 120 ++- .../action-dispatcher/delete-dialog/index.tsx | 103 +- .../delete-multiselect-dialog/index.tsx | 103 +- .../duplicate-dialog/index.tsx | 138 ++- .../action-dispatcher/export-dialog/index.tsx | 235 +++-- .../action-dispatcher/export-dialog/style.ts | 14 +- .../history-dialog/index.tsx | 205 ++-- .../action-dispatcher/import-dialog/index.tsx | 169 ++-- .../maps-page/action-dispatcher/index.tsx | 114 ++- .../action-dispatcher/info-dialog/index.tsx | 181 ++-- .../action-dispatcher/info-dialog/style.ts | 14 +- .../publish-dialog/index.tsx | 163 +-- .../action-dispatcher/publish-dialog/style.ts | 12 +- .../action-dispatcher/rename-dialog/index.tsx | 141 +-- .../action-dispatcher/share-dialog/index.tsx | 437 ++++---- .../action-dispatcher/share-dialog/style.ts | 21 +- .../components/maps-page/help-menu/index.tsx | 79 +- .../webapp/src/components/maps-page/index.tsx | 358 ++++--- .../maps-page/language-menu/index.tsx | 134 +-- .../components/maps-page/maps-list/index.tsx | 956 ++++++++++-------- .../components/maps-page/maps-list/styled.ts | 200 ++-- .../components/maps-page/role-icon/index.tsx | 85 +- .../webapp/src/components/maps-page/style.ts | 19 +- .../components/registration-page/index.tsx | 235 +++-- .../registration-success-page/index.tsx | 76 +- packages/webapp/src/index.tsx | 12 +- packages/webapp/src/redux/clientSlice.ts | 130 ++- packages/webapp/src/redux/store.ts | 15 +- packages/webapp/src/theme/index.ts | 37 +- 70 files changed, 4365 insertions(+), 3403 deletions(-) diff --git a/packages/editor/src/components/canvas/index.tsx b/packages/editor/src/components/canvas/index.tsx index 6ad5cb89..dbc87f1f 100644 --- a/packages/editor/src/components/canvas/index.tsx +++ b/packages/editor/src/components/canvas/index.tsx @@ -1,8 +1,6 @@ -import React from 'react'; -import { StyledCanvas } from './styled'; +import React from 'react' +import { StyledCanvas } from './styled' -const Canvas = (): React.ReactElement => ( - canvas -); +const Canvas = (): React.ReactElement => canvas -export default Canvas; +export default Canvas diff --git a/packages/editor/src/components/canvas/styled.ts b/packages/editor/src/components/canvas/styled.ts index 7cc7eb85..8f35d710 100644 --- a/packages/editor/src/components/canvas/styled.ts +++ b/packages/editor/src/components/canvas/styled.ts @@ -1,8 +1,8 @@ -import styled from 'styled-components'; +import styled from 'styled-components' export const StyledCanvas = styled.div` height: 100% width: 100%; flex: 1; -`; +` diff --git a/packages/editor/src/components/footer/index.tsx b/packages/editor/src/components/footer/index.tsx index da0aad74..b42ffdca 100644 --- a/packages/editor/src/components/footer/index.tsx +++ b/packages/editor/src/components/footer/index.tsx @@ -1,8 +1,6 @@ -import React from 'react'; -import { StyledFooter } from './styled'; +import React from 'react' +import { StyledFooter } from './styled' -const Footer = (): React.ReactElement => ( - footer -); +const Footer = (): React.ReactElement => footer -export default Footer; +export default Footer diff --git a/packages/editor/src/components/footer/styled.ts b/packages/editor/src/components/footer/styled.ts index fd557520..e9d95535 100644 --- a/packages/editor/src/components/footer/styled.ts +++ b/packages/editor/src/components/footer/styled.ts @@ -1,8 +1,8 @@ -import styled from 'styled-components'; -import { times } from '../../size'; +import styled from 'styled-components' +import { times } from '../../size' export const StyledFooter = styled.div` - height: ${times(10)}; - width: 100%; - border: 1px solid black; -`; + height: ${times(10)}; + width: 100%; + border: 1px solid black; +` diff --git a/packages/editor/src/components/frame/index.tsx b/packages/editor/src/components/frame/index.tsx index 2cf8527f..31f88de4 100644 --- a/packages/editor/src/components/frame/index.tsx +++ b/packages/editor/src/components/frame/index.tsx @@ -1,15 +1,15 @@ -import React from 'react'; -import Footer from '../footer'; -import TopBar from '../top-bar'; -import Canvas from '../canvas'; -import { StyledFrame } from './styled'; +import React from 'react' +import Footer from '../footer' +import TopBar from '../top-bar' +import Canvas from '../canvas' +import { StyledFrame } from './styled' const Frame = (): React.ReactElement => ( - - - -