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

View File

@ -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 = () => {

View File

@ -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

View File

@ -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',
},
},

View File

@ -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.