All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
set url to repo use same image as target we have to sudo on this image copy masto file use our builder bundle install include rake install rake just use their conifg re-lock deps update service worker build prod ignore ruby deps make sure we have zip yeet SW stream out to the right places fix URL in reactions add sounds to build fix serviceworker stop circles erroring us out fix onclick fix lookup revert changes to gemfile fix notification display don't fetch unsupported stuff yeet most of SW fix reply references fixes #2 fix emoji_reaction type fix public timeline
52 lines
1.5 KiB
JavaScript
52 lines
1.5 KiB
JavaScript
import api from '../api';
|
|
|
|
export const FAVOURITE_DOMAIN_FETCH_REQUEST = 'FAVOURITE_DOMAIN_FETCH_REQUEST';
|
|
export const FAVOURITE_DOMAIN_FETCH_SUCCESS = 'FAVOURITE_DOMAIN_FETCH_SUCCESS';
|
|
export const FAVOURITE_DOMAIN_FETCH_FAIL = 'FAVOURITE_DOMAIN_FETCH_FAIL';
|
|
|
|
export const FAVOURITE_DOMAINS_FETCH_REQUEST = 'FAVOURITE_DOMAINS_FETCH_REQUEST';
|
|
export const FAVOURITE_DOMAINS_FETCH_SUCCESS = 'FAVOURITE_DOMAINS_FETCH_SUCCESS';
|
|
export const FAVOURITE_DOMAINS_FETCH_FAIL = 'FAVOURITE_DOMAINS_FETCH_FAIL';
|
|
|
|
export const fetchFavouriteDomain = () => () => {
|
|
return;
|
|
};
|
|
|
|
export const fetchFavouriteDomainRequest = id => ({
|
|
type: FAVOURITE_DOMAIN_FETCH_REQUEST,
|
|
id,
|
|
});
|
|
|
|
export const fetchFavouriteDomainSuccess = favourite_domain => ({
|
|
type: FAVOURITE_DOMAIN_FETCH_SUCCESS,
|
|
favourite_domain,
|
|
});
|
|
|
|
export const fetchFavouriteDomainFail = (id, error) => ({
|
|
type: FAVOURITE_DOMAIN_FETCH_FAIL,
|
|
id,
|
|
error,
|
|
});
|
|
|
|
export const fetchFavouriteDomains = () => (dispatch, getState) => {
|
|
return;
|
|
dispatch(fetchFavouriteDomainsRequest());
|
|
|
|
api(getState).get('/api/v1/favourite_domains')
|
|
.then(({ data }) => dispatch(fetchFavouriteDomainsSuccess(data)))
|
|
.catch(err => dispatch(fetchFavouriteDomainsFail(err)));
|
|
};
|
|
|
|
export const fetchFavouriteDomainsRequest = () => ({
|
|
type: FAVOURITE_DOMAINS_FETCH_REQUEST,
|
|
});
|
|
|
|
export const fetchFavouriteDomainsSuccess = favourite_domains => ({
|
|
type: FAVOURITE_DOMAINS_FETCH_SUCCESS,
|
|
favourite_domains,
|
|
});
|
|
|
|
export const fetchFavouriteDomainsFail = error => ({
|
|
type: FAVOURITE_DOMAINS_FETCH_FAIL,
|
|
error,
|
|
});
|