From 52fa9995e37c1fa7c41bb1efe4570078d7a907ad Mon Sep 17 00:00:00 2001 From: Mathieu Ancelin Date: Fri, 18 Dec 2020 14:43:00 +0100 Subject: [PATCH] Format code before release --- otoroshi/javascript/src/backoffice.js | 4 +-- .../src/components/ReloadNewVersion.js | 10 +++---- otoroshi/javascript/src/components/TopBar.js | 8 ++++- .../src/components/UpdateOtoroshiVersion.js | 30 +++++++++---------- .../src/components/inputs/CodeInput.js | 2 +- .../javascript/src/components/inputs/Table.js | 6 ++-- .../javascript/src/pages/CertificatesPage.js | 3 +- otoroshi/javascript/src/pages/ServicesPage.js | 3 +- 8 files changed, 35 insertions(+), 31 deletions(-) diff --git a/otoroshi/javascript/src/backoffice.js b/otoroshi/javascript/src/backoffice.js index a0dd4f8f65..acef95a970 100644 --- a/otoroshi/javascript/src/backoffice.js +++ b/otoroshi/javascript/src/backoffice.js @@ -54,8 +54,8 @@ window.fetch = function (...params) { } throw new Error("You're not allowed to do that !"); } else if (r.status > 499 && window.toast) { - return r.then(text => { - window.toast('Server error', "An error occured server side: " + text, 'error'); + return r.then((text) => { + window.toast('Server error', 'An error occured server side: ' + text, 'error'); }); } else { return r; diff --git a/otoroshi/javascript/src/components/ReloadNewVersion.js b/otoroshi/javascript/src/components/ReloadNewVersion.js index 351412ac63..4af6578213 100644 --- a/otoroshi/javascript/src/components/ReloadNewVersion.js +++ b/otoroshi/javascript/src/components/ReloadNewVersion.js @@ -57,8 +57,8 @@ export class ReloadNewVersion extends Component { if (this.state.unlogged) { return (
-
-
+
+
Your session has expired and you're now logged out. You will be asked to login in 20 seconds. -
+
A new version of Otoroshi has been deployed + - - A new version of Otoroshi is available ({this.props.env.version.version_raw}) + A new + version of Otoroshi is available ({this.props.env.version.version_raw})
); diff --git a/otoroshi/javascript/src/components/inputs/CodeInput.js b/otoroshi/javascript/src/components/inputs/CodeInput.js index ec652f80ba..a1971c53cc 100644 --- a/otoroshi/javascript/src/components/inputs/CodeInput.js +++ b/otoroshi/javascript/src/components/inputs/CodeInput.js @@ -61,7 +61,7 @@ export default class CodeInput extends Component { this.setState({ value: '{}' }); } else if (e.indexOf('}{}') > -1) { this.setState({ value: e.replace('}{}', '}') }); - } else { + } else { this.setState({ value: e }); } } diff --git a/otoroshi/javascript/src/components/inputs/Table.js b/otoroshi/javascript/src/components/inputs/Table.js index 6cc151d4bf..596cf62747 100644 --- a/otoroshi/javascript/src/components/inputs/Table.js +++ b/otoroshi/javascript/src/components/inputs/Table.js @@ -504,8 +504,7 @@ export class Table extends Component { {this.props.stayAfterSave && ( )} {this.props.stayAfterSave && ( )}