Upgrade prettier to 2.3.0

Some reformatting was needed... :/
This commit is contained in:
Deluan 2021-05-11 18:13:03 -04:00
parent da684ff44c
commit fa9083ddec
9 changed files with 46 additions and 49 deletions

6
ui/package-lock.json generated

@ -13115,9 +13115,9 @@
"integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw="
},
"prettier": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz",
"integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==",
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz",
"integrity": "sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==",
"dev": true
},
"pretty-bytes": {

@ -34,7 +34,7 @@
"@testing-library/user-event": "^13.1.8",
"css-mediaquery": "^0.1.2",
"jest-environment-jsdom-sixteen": "^2.0.0",
"prettier": "^2.2.1",
"prettier": "2.3.0",
"ra-test": "^3.15.0"
},
"scripts": {

@ -295,9 +295,10 @@ const Player = () => {
[dispatch, showNotifications]
)
const onAudioPause = useCallback((info) => dispatch(currentPlaying(info)), [
dispatch,
])
const onAudioPause = useCallback(
(info) => dispatch(currentPlaying(info)),
[dispatch]
)
const onAudioEnded = useCallback(
(currentPlayId, audioLists, info) => {

@ -17,13 +17,8 @@ import { SelectPlaylistInput } from './SelectPlaylistInput'
import DuplicateSongDialog from './DuplicateSongDialog'
export const AddToPlaylistDialog = () => {
const {
open,
selectedIds,
onSuccess,
duplicateSong,
duplicateIds,
} = useSelector((state) => state.addToPlaylistDialog)
const { open, selectedIds, onSuccess, duplicateSong, duplicateIds } =
useSelector((state) => state.addToPlaylistDialog)
const dispatch = useDispatch()
const translate = useTranslate()
const notify = useNotify()

@ -53,10 +53,11 @@ describe('AddToPlaylistDialog', () => {
data: mockIndexedData,
list: {
cachedRequests: {
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
{
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
},
},
},
@ -129,10 +130,11 @@ describe('AddToPlaylistDialog', () => {
data: mockIndexedData,
list: {
cachedRequests: {
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
{
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
},
},
},
@ -186,10 +188,11 @@ describe('AddToPlaylistDialog', () => {
data: mockIndexedData,
list: {
cachedRequests: {
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
{
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
},
},
},

@ -44,10 +44,11 @@ describe('SelectPlaylistInput', () => {
data: mockIndexedData,
list: {
cachedRequests: {
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
{
ids: ['sample-id1', 'sample-id2'],
total: 2,
},
},
},
},

@ -47,9 +47,10 @@ const musicListActions = {
'button:first-child>span:first-child>span': {
display: 'none',
},
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg': {
color: '#656565',
},
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg':
{
color: '#656565',
},
},
}

@ -48,9 +48,10 @@ const musicListActions = {
'button:first-child>span:first-child>span': {
display: 'none',
},
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg': {
color: '#b3b3b3',
},
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg':
{
color: '#b3b3b3',
},
},
}

@ -31,19 +31,14 @@ const DeleteUserButton = (props) => {
onClick,
...rest
} = props
const {
open,
loading,
handleDialogOpen,
handleDialogClose,
handleDelete,
} = useDeleteWithConfirmController({
resource,
record,
redirect,
basePath,
onClick,
})
const { open, loading, handleDialogOpen, handleDialogClose, handleDelete } =
useDeleteWithConfirmController({
resource,
record,
redirect,
basePath,
onClick,
})
const classes = useStyles(props)
return (