From ebc7964157eb5dded36b7a309adecece8c85e8f3 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 26 Apr 2020 14:50:44 -0400 Subject: [PATCH] Fix formatting --- ui/src/App.js | 6 +++--- ui/src/authProvider.js | 4 ++-- ui/src/config.js | 4 ++-- ui/src/i18n/fr.js | 4 ++-- ui/src/serviceWorker.js | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/src/App.js b/ui/src/App.js index dc6851ea0..a3143bee1 100644 --- a/ui/src/App.js +++ b/ui/src/App.js @@ -35,8 +35,8 @@ const App = () => ( customReducers: { queue: playQueueReducer, albumView: albumViewReducer, - theme: themeReducer - } + theme: themeReducer, + }, })} > ( ) : ( ), - + , ]} diff --git a/ui/src/authProvider.js b/ui/src/authProvider.js index f6f8d752b..5cc8903a2 100644 --- a/ui/src/authProvider.js +++ b/ui/src/authProvider.js @@ -12,7 +12,7 @@ const authProvider = { const request = new Request(url, { method: 'POST', body: JSON.stringify({ username, password }), - headers: new Headers({ 'Content-Type': 'application/json' }) + headers: new Headers({ 'Content-Type': 'application/json' }), }) return fetch(request) .then((response) => { @@ -69,7 +69,7 @@ const authProvider = { getPermissions: () => { const role = localStorage.getItem('role') return role ? Promise.resolve(role) : Promise.reject() - } + }, } const removeItems = () => { diff --git a/ui/src/config.js b/ui/src/config.js index 634217219..4dff52cee 100644 --- a/ui/src/config.js +++ b/ui/src/config.js @@ -2,7 +2,7 @@ const defaultConfig = { version: 'dev', firstTime: false, baseURL: '', - loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music' + loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music', } let config @@ -12,7 +12,7 @@ try { config = { ...defaultConfig, - ...appConfig + ...appConfig, } } catch (e) { config = defaultConfig diff --git a/ui/src/i18n/fr.js b/ui/src/i18n/fr.js index f6706fb12..c28be9be0 100644 --- a/ui/src/i18n/fr.js +++ b/ui/src/i18n/fr.js @@ -53,7 +53,7 @@ export default deepmerge(frenchMessages, { user: { name: 'Utilisateur |||| Utilisateurs', fields: { - userName: 'Nom d\'utilisateur', + userName: "Nom d'utilisateur", isAdmin: 'Administrateur', lastLoginAt: 'Dernière connexion', updatedAt: 'Dernière mise à jour', @@ -67,7 +67,7 @@ export default deepmerge(frenchMessages, { transcodingId: 'Transcodage', maxBitRate: 'Bitrate maximum', client: 'Client', - userName: 'Nom d\'utilisateur', + userName: "Nom d'utilisateur", lastSeen: 'Vu pour la dernière fois', }, }, diff --git a/ui/src/serviceWorker.js b/ui/src/serviceWorker.js index ef571dee9..7ad6894e4 100644 --- a/ui/src/serviceWorker.js +++ b/ui/src/serviceWorker.js @@ -101,7 +101,7 @@ function registerValidSW(swUrl, config) { function checkValidServiceWorker(swUrl, config) { // Check if the service worker can be found. If it can't reload the page. fetch(swUrl, { - headers: { 'Service-Worker': 'script' } + headers: { 'Service-Worker': 'script' }, }) .then((response) => { // Ensure service worker exists, and that we really are getting a JS file.