Fix formatting

This commit is contained in:
Deluan 2020-04-26 14:50:44 -04:00 committed by Deluan Quintão
parent ad6c86d78a
commit ebc7964157
5 changed files with 10 additions and 10 deletions

View File

@ -35,8 +35,8 @@ const App = () => (
customReducers: { customReducers: {
queue: playQueueReducer, queue: playQueueReducer,
albumView: albumViewReducer, albumView: albumViewReducer,
theme: themeReducer theme: themeReducer,
} },
})} })}
> >
<Admin <Admin
@ -70,7 +70,7 @@ const App = () => (
) : ( ) : (
<Resource name="transcoding" /> <Resource name="transcoding" />
), ),
<Player /> <Player />,
]} ]}
</Admin> </Admin>
</Provider> </Provider>

View File

@ -12,7 +12,7 @@ const authProvider = {
const request = new Request(url, { const request = new Request(url, {
method: 'POST', method: 'POST',
body: JSON.stringify({ username, password }), body: JSON.stringify({ username, password }),
headers: new Headers({ 'Content-Type': 'application/json' }) headers: new Headers({ 'Content-Type': 'application/json' }),
}) })
return fetch(request) return fetch(request)
.then((response) => { .then((response) => {
@ -69,7 +69,7 @@ const authProvider = {
getPermissions: () => { getPermissions: () => {
const role = localStorage.getItem('role') const role = localStorage.getItem('role')
return role ? Promise.resolve(role) : Promise.reject() return role ? Promise.resolve(role) : Promise.reject()
} },
} }
const removeItems = () => { const removeItems = () => {

View File

@ -2,7 +2,7 @@ const defaultConfig = {
version: 'dev', version: 'dev',
firstTime: false, firstTime: false,
baseURL: '', baseURL: '',
loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music' loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music',
} }
let config let config
@ -12,7 +12,7 @@ try {
config = { config = {
...defaultConfig, ...defaultConfig,
...appConfig ...appConfig,
} }
} catch (e) { } catch (e) {
config = defaultConfig config = defaultConfig

View File

@ -53,7 +53,7 @@ export default deepmerge(frenchMessages, {
user: { user: {
name: 'Utilisateur |||| Utilisateurs', name: 'Utilisateur |||| Utilisateurs',
fields: { fields: {
userName: 'Nom d\'utilisateur', userName: "Nom d'utilisateur",
isAdmin: 'Administrateur', isAdmin: 'Administrateur',
lastLoginAt: 'Dernière connexion', lastLoginAt: 'Dernière connexion',
updatedAt: 'Dernière mise à jour', updatedAt: 'Dernière mise à jour',
@ -67,7 +67,7 @@ export default deepmerge(frenchMessages, {
transcodingId: 'Transcodage', transcodingId: 'Transcodage',
maxBitRate: 'Bitrate maximum', maxBitRate: 'Bitrate maximum',
client: 'Client', client: 'Client',
userName: 'Nom d\'utilisateur', userName: "Nom d'utilisateur",
lastSeen: 'Vu pour la dernière fois', lastSeen: 'Vu pour la dernière fois',
}, },
}, },

View File

@ -101,7 +101,7 @@ function registerValidSW(swUrl, config) {
function checkValidServiceWorker(swUrl, config) { function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page. // Check if the service worker can be found. If it can't reload the page.
fetch(swUrl, { fetch(swUrl, {
headers: { 'Service-Worker': 'script' } headers: { 'Service-Worker': 'script' },
}) })
.then((response) => { .then((response) => {
// Ensure service worker exists, and that we really are getting a JS file. // Ensure service worker exists, and that we really are getting a JS file.