Phyks (Lucas Verney)
40f6223bd0
* Keep track of pagination in the store * Use Immutable in reducers * Finish i18n, every available strings are now translated in English and French * Add a loading indicator * Premises of API error handling * Better locale negotiation
21 lines
818 B
JavaScript
21 lines
818 B
JavaScript
export * from "./auth";
|
|
|
|
import APIAction from "./APIActions";
|
|
|
|
export const ARTISTS_SUCCESS = "ARTISTS_SUCCESS";
|
|
export const ARTISTS_REQUEST = "ARTISTS_REQUEST";
|
|
export const ARTISTS_FAILURE = "ARTISTS_FAILURE";
|
|
export var { loadArtists } = APIAction("artists", ARTISTS_REQUEST, ARTISTS_SUCCESS, ARTISTS_FAILURE);
|
|
|
|
export const ALBUMS_SUCCESS = "ALBUMS_SUCCESS";
|
|
export const ALBUMS_REQUEST = "ALBUMS_REQUEST";
|
|
export const ALBUMS_FAILURE = "ALBUMS_FAILURE";
|
|
export var { loadAlbums } = APIAction("albums", ALBUMS_REQUEST, ALBUMS_SUCCESS, ALBUMS_FAILURE);
|
|
|
|
export const SONGS_SUCCESS = "SONGS_SUCCESS";
|
|
export const SONGS_REQUEST = "SONGS_REQUEST";
|
|
export const SONGS_FAILURE = "SONGS_FAILURE";
|
|
export var { loadSongs } = APIAction("songs", SONGS_REQUEST, SONGS_SUCCESS, SONGS_FAILURE);
|
|
|
|
export * from "./paginate";
|