Renames in Frontend

This commit is contained in:
Qstick
2020-05-15 23:32:52 -04:00
committed by ta264
parent ee4e44b81a
commit ee43ccf620
387 changed files with 4036 additions and 4364 deletions
+14 -14
View File
@@ -11,8 +11,8 @@ import createHandleActions from './Creators/createHandleActions';
// Variables
export const section = 'releases';
export const albumSection = 'releases.album';
export const artistSection = 'releases.artist';
export const bookSection = 'releases.book';
export const authorSection = 'releases.author';
let abortCurrentRequest = null;
@@ -146,19 +146,19 @@ export const defaultState = {
}
],
album: {
book: {
selectedFilterKey: 'all'
},
artist: {
author: {
selectedFilterKey: 'all'
}
};
export const persistState = [
'releases.selectedFilterKey',
'releases.album.customFilters',
'releases.artist.customFilters'
'releases.book.customFilters',
'releases.author.customFilters'
];
//
@@ -170,8 +170,8 @@ export const SET_RELEASES_SORT = 'releases/setReleasesSort';
export const CLEAR_RELEASES = 'releases/clearReleases';
export const GRAB_RELEASE = 'releases/grabRelease';
export const UPDATE_RELEASE = 'releases/updateRelease';
export const SET_ALBUM_RELEASES_FILTER = 'releases/setAlbumReleasesFilter';
export const SET_ARTIST_RELEASES_FILTER = 'releases/setArtistReleasesFilter';
export const SET_BOOK_RELEASES_FILTER = 'releases/setBookReleasesFilter';
export const SET_AUTHOR_RELEASES_FILTER = 'releases/setAuthorReleasesFilter';
//
// Action Creators
@@ -182,8 +182,8 @@ export const setReleasesSort = createAction(SET_RELEASES_SORT);
export const clearReleases = createAction(CLEAR_RELEASES);
export const grabRelease = createThunk(GRAB_RELEASE);
export const updateRelease = createAction(UPDATE_RELEASE);
export const setAlbumReleasesFilter = createAction(SET_ALBUM_RELEASES_FILTER);
export const setArtistReleasesFilter = createAction(SET_ARTIST_RELEASES_FILTER);
export const setBookReleasesFilter = createAction(SET_BOOK_RELEASES_FILTER);
export const setAuthorReleasesFilter = createAction(SET_AUTHOR_RELEASES_FILTER);
//
// Helpers
@@ -248,8 +248,8 @@ export const reducers = createHandleActions({
[CLEAR_RELEASES]: (state) => {
const {
album,
artist,
book,
author,
...otherDefaultState
} = defaultState;
@@ -276,7 +276,7 @@ export const reducers = createHandleActions({
},
[SET_RELEASES_SORT]: createSetClientSideCollectionSortReducer(section),
[SET_ALBUM_RELEASES_FILTER]: createSetClientSideCollectionFilterReducer(albumSection),
[SET_ARTIST_RELEASES_FILTER]: createSetClientSideCollectionFilterReducer(artistSection)
[SET_BOOK_RELEASES_FILTER]: createSetClientSideCollectionFilterReducer(bookSection),
[SET_AUTHOR_RELEASES_FILTER]: createSetClientSideCollectionFilterReducer(authorSection)
}, defaultState, section);