Merge branch 'eslint-no-extra-semi' into 'develop'

eslint: no-extra-semi

See merge request soapbox-pub/soapbox-fe!660
This commit is contained in:
Alex Gleason
2021-08-03 19:24:53 +00:00
111 changed files with 482 additions and 480 deletions

View File

@@ -1,5 +1,6 @@
/node_modules/**
/static/**
/static-test/**
/tmp/**
/coverage/**
!.eslintrc.js

View File

@@ -78,6 +78,7 @@ module.exports = {
],
},
],
'no-extra-semi': 'error',
'no-fallthrough': 'error',
'no-irregular-whitespace': 'error',
'no-mixed-spaces-and-tabs': 'error',

View File

@@ -125,7 +125,7 @@ export function fetchAccount(id) {
dispatch(fetchAccountFail(id, error));
});
};
};
}
export function fetchAccountByUsername(username) {
return (dispatch, getState) => {
@@ -145,21 +145,21 @@ export function fetchAccountByUsername(username) {
dispatch(importErrorWhileFetchingAccountByUsername(username));
});
};
};
}
export function fetchAccountRequest(id) {
return {
type: ACCOUNT_FETCH_REQUEST,
id,
};
};
}
export function fetchAccountSuccess(account) {
return {
type: ACCOUNT_FETCH_SUCCESS,
account,
};
};
}
export function fetchAccountFail(id, error) {
return {
@@ -168,7 +168,7 @@ export function fetchAccountFail(id, error) {
error,
skipAlert: true,
};
};
}
export function followAccount(id, reblogs = true) {
return (dispatch, getState) => {
@@ -185,7 +185,7 @@ export function followAccount(id, reblogs = true) {
dispatch(followAccountFail(error, locked));
});
};
};
}
export function unfollowAccount(id) {
return (dispatch, getState) => {
@@ -199,7 +199,7 @@ export function unfollowAccount(id) {
dispatch(unfollowAccountFail(error));
});
};
};
}
export function followAccountRequest(id, locked) {
return {
@@ -208,7 +208,7 @@ export function followAccountRequest(id, locked) {
locked,
skipLoading: true,
};
};
}
export function followAccountSuccess(relationship, alreadyFollowing) {
return {
@@ -217,7 +217,7 @@ export function followAccountSuccess(relationship, alreadyFollowing) {
alreadyFollowing,
skipLoading: true,
};
};
}
export function followAccountFail(error, locked) {
return {
@@ -226,7 +226,7 @@ export function followAccountFail(error, locked) {
locked,
skipLoading: true,
};
};
}
export function unfollowAccountRequest(id) {
return {
@@ -234,7 +234,7 @@ export function unfollowAccountRequest(id) {
id,
skipLoading: true,
};
};
}
export function unfollowAccountSuccess(relationship, statuses) {
return {
@@ -243,7 +243,7 @@ export function unfollowAccountSuccess(relationship, statuses) {
statuses,
skipLoading: true,
};
};
}
export function unfollowAccountFail(error) {
return {
@@ -251,7 +251,7 @@ export function unfollowAccountFail(error) {
error,
skipLoading: true,
};
};
}
export function blockAccount(id) {
return (dispatch, getState) => {
@@ -266,7 +266,7 @@ export function blockAccount(id) {
dispatch(blockAccountFail(id, error));
});
};
};
}
export function unblockAccount(id) {
return (dispatch, getState) => {
@@ -280,14 +280,14 @@ export function unblockAccount(id) {
dispatch(unblockAccountFail(id, error));
});
};
};
}
export function blockAccountRequest(id) {
return {
type: ACCOUNT_BLOCK_REQUEST,
id,
};
};
}
export function blockAccountSuccess(relationship, statuses) {
return {
@@ -295,35 +295,35 @@ export function blockAccountSuccess(relationship, statuses) {
relationship,
statuses,
};
};
}
export function blockAccountFail(error) {
return {
type: ACCOUNT_BLOCK_FAIL,
error,
};
};
}
export function unblockAccountRequest(id) {
return {
type: ACCOUNT_UNBLOCK_REQUEST,
id,
};
};
}
export function unblockAccountSuccess(relationship) {
return {
type: ACCOUNT_UNBLOCK_SUCCESS,
relationship,
};
};
}
export function unblockAccountFail(error) {
return {
type: ACCOUNT_UNBLOCK_FAIL,
error,
};
};
}
export function muteAccount(id, notifications) {
@@ -339,7 +339,7 @@ export function muteAccount(id, notifications) {
dispatch(muteAccountFail(id, error));
});
};
};
}
export function unmuteAccount(id) {
return (dispatch, getState) => {
@@ -353,14 +353,14 @@ export function unmuteAccount(id) {
dispatch(unmuteAccountFail(id, error));
});
};
};
}
export function muteAccountRequest(id) {
return {
type: ACCOUNT_MUTE_REQUEST,
id,
};
};
}
export function muteAccountSuccess(relationship, statuses) {
return {
@@ -368,35 +368,35 @@ export function muteAccountSuccess(relationship, statuses) {
relationship,
statuses,
};
};
}
export function muteAccountFail(error) {
return {
type: ACCOUNT_MUTE_FAIL,
error,
};
};
}
export function unmuteAccountRequest(id) {
return {
type: ACCOUNT_UNMUTE_REQUEST,
id,
};
};
}
export function unmuteAccountSuccess(relationship) {
return {
type: ACCOUNT_UNMUTE_SUCCESS,
relationship,
};
};
}
export function unmuteAccountFail(error) {
return {
type: ACCOUNT_UNMUTE_FAIL,
error,
};
};
}
export function subscribeAccount(id, notifications) {
@@ -411,7 +411,7 @@ export function subscribeAccount(id, notifications) {
dispatch(subscribeAccountFail(id, error));
});
};
};
}
export function unsubscribeAccount(id) {
return (dispatch, getState) => {
@@ -425,49 +425,49 @@ export function unsubscribeAccount(id) {
dispatch(unsubscribeAccountFail(id, error));
});
};
};
}
export function subscribeAccountRequest(id) {
return {
type: ACCOUNT_SUBSCRIBE_REQUEST,
id,
};
};
}
export function subscribeAccountSuccess(relationship) {
return {
type: ACCOUNT_SUBSCRIBE_SUCCESS,
relationship,
};
};
}
export function subscribeAccountFail(error) {
return {
type: ACCOUNT_SUBSCRIBE_FAIL,
error,
};
};
}
export function unsubscribeAccountRequest(id) {
return {
type: ACCOUNT_UNSUBSCRIBE_REQUEST,
id,
};
};
}
export function unsubscribeAccountSuccess(relationship) {
return {
type: ACCOUNT_UNSUBSCRIBE_SUCCESS,
relationship,
};
};
}
export function unsubscribeAccountFail(error) {
return {
type: ACCOUNT_UNSUBSCRIBE_FAIL,
error,
};
};
}
export function fetchFollowers(id) {
return (dispatch, getState) => {
@@ -485,14 +485,14 @@ export function fetchFollowers(id) {
dispatch(fetchFollowersFail(id, error));
});
};
};
}
export function fetchFollowersRequest(id) {
return {
type: FOLLOWERS_FETCH_REQUEST,
id,
};
};
}
export function fetchFollowersSuccess(id, accounts, next) {
return {
@@ -501,7 +501,7 @@ export function fetchFollowersSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function fetchFollowersFail(id, error) {
return {
@@ -509,7 +509,7 @@ export function fetchFollowersFail(id, error) {
id,
error,
};
};
}
export function expandFollowers(id) {
return (dispatch, getState) => {
@@ -533,14 +533,14 @@ export function expandFollowers(id) {
dispatch(expandFollowersFail(id, error));
});
};
};
}
export function expandFollowersRequest(id) {
return {
type: FOLLOWERS_EXPAND_REQUEST,
id,
};
};
}
export function expandFollowersSuccess(id, accounts, next) {
return {
@@ -549,7 +549,7 @@ export function expandFollowersSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function expandFollowersFail(id, error) {
return {
@@ -557,7 +557,7 @@ export function expandFollowersFail(id, error) {
id,
error,
};
};
}
export function fetchFollowing(id) {
return (dispatch, getState) => {
@@ -575,14 +575,14 @@ export function fetchFollowing(id) {
dispatch(fetchFollowingFail(id, error));
});
};
};
}
export function fetchFollowingRequest(id) {
return {
type: FOLLOWING_FETCH_REQUEST,
id,
};
};
}
export function fetchFollowingSuccess(id, accounts, next) {
return {
@@ -591,7 +591,7 @@ export function fetchFollowingSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function fetchFollowingFail(id, error) {
return {
@@ -599,7 +599,7 @@ export function fetchFollowingFail(id, error) {
id,
error,
};
};
}
export function expandFollowing(id) {
return (dispatch, getState) => {
@@ -623,14 +623,14 @@ export function expandFollowing(id) {
dispatch(expandFollowingFail(id, error));
});
};
};
}
export function expandFollowingRequest(id) {
return {
type: FOLLOWING_EXPAND_REQUEST,
id,
};
};
}
export function expandFollowingSuccess(id, accounts, next) {
return {
@@ -639,7 +639,7 @@ export function expandFollowingSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function expandFollowingFail(id, error) {
return {
@@ -647,7 +647,7 @@ export function expandFollowingFail(id, error) {
id,
error,
};
};
}
export function fetchRelationships(accountIds) {
return (dispatch, getState) => {
@@ -668,7 +668,7 @@ export function fetchRelationships(accountIds) {
dispatch(fetchRelationshipsFail(error));
});
};
};
}
export function fetchRelationshipsRequest(ids) {
return {
@@ -676,7 +676,7 @@ export function fetchRelationshipsRequest(ids) {
ids,
skipLoading: true,
};
};
}
export function fetchRelationshipsSuccess(relationships) {
return {
@@ -684,7 +684,7 @@ export function fetchRelationshipsSuccess(relationships) {
relationships,
skipLoading: true,
};
};
}
export function fetchRelationshipsFail(error) {
return {
@@ -692,7 +692,7 @@ export function fetchRelationshipsFail(error) {
error,
skipLoading: true,
};
};
}
export function fetchFollowRequests() {
return (dispatch, getState) => {
@@ -706,13 +706,13 @@ export function fetchFollowRequests() {
dispatch(fetchFollowRequestsSuccess(response.data, next ? next.uri : null));
}).catch(error => dispatch(fetchFollowRequestsFail(error)));
};
};
}
export function fetchFollowRequestsRequest() {
return {
type: FOLLOW_REQUESTS_FETCH_REQUEST,
};
};
}
export function fetchFollowRequestsSuccess(accounts, next) {
return {
@@ -720,14 +720,14 @@ export function fetchFollowRequestsSuccess(accounts, next) {
accounts,
next,
};
};
}
export function fetchFollowRequestsFail(error) {
return {
type: FOLLOW_REQUESTS_FETCH_FAIL,
error,
};
};
}
export function expandFollowRequests() {
return (dispatch, getState) => {
@@ -747,13 +747,13 @@ export function expandFollowRequests() {
dispatch(expandFollowRequestsSuccess(response.data, next ? next.uri : null));
}).catch(error => dispatch(expandFollowRequestsFail(error)));
};
};
}
export function expandFollowRequestsRequest() {
return {
type: FOLLOW_REQUESTS_EXPAND_REQUEST,
};
};
}
export function expandFollowRequestsSuccess(accounts, next) {
return {
@@ -761,14 +761,14 @@ export function expandFollowRequestsSuccess(accounts, next) {
accounts,
next,
};
};
}
export function expandFollowRequestsFail(error) {
return {
type: FOLLOW_REQUESTS_EXPAND_FAIL,
error,
};
};
}
export function authorizeFollowRequest(id) {
return (dispatch, getState) => {
@@ -781,21 +781,21 @@ export function authorizeFollowRequest(id) {
.then(() => dispatch(authorizeFollowRequestSuccess(id)))
.catch(error => dispatch(authorizeFollowRequestFail(id, error)));
};
};
}
export function authorizeFollowRequestRequest(id) {
return {
type: FOLLOW_REQUEST_AUTHORIZE_REQUEST,
id,
};
};
}
export function authorizeFollowRequestSuccess(id) {
return {
type: FOLLOW_REQUEST_AUTHORIZE_SUCCESS,
id,
};
};
}
export function authorizeFollowRequestFail(id, error) {
return {
@@ -803,7 +803,7 @@ export function authorizeFollowRequestFail(id, error) {
id,
error,
};
};
}
export function rejectFollowRequest(id) {
@@ -817,21 +817,21 @@ export function rejectFollowRequest(id) {
.then(() => dispatch(rejectFollowRequestSuccess(id)))
.catch(error => dispatch(rejectFollowRequestFail(id, error)));
};
};
}
export function rejectFollowRequestRequest(id) {
return {
type: FOLLOW_REQUEST_REJECT_REQUEST,
id,
};
};
}
export function rejectFollowRequestSuccess(id) {
return {
type: FOLLOW_REQUEST_REJECT_SUCCESS,
id,
};
};
}
export function rejectFollowRequestFail(id, error) {
return {
@@ -839,7 +839,7 @@ export function rejectFollowRequestFail(id, error) {
id,
error,
};
};
}
export function pinAccount(id) {
return (dispatch, getState) => {
@@ -853,7 +853,7 @@ export function pinAccount(id) {
dispatch(pinAccountFail(error));
});
};
};
}
export function unpinAccount(id) {
return (dispatch, getState) => {
@@ -867,7 +867,7 @@ export function unpinAccount(id) {
dispatch(unpinAccountFail(error));
});
};
};
}
export function updateNotificationSettings(params) {
return (dispatch, getState) => {
@@ -878,46 +878,46 @@ export function updateNotificationSettings(params) {
dispatch({ type: NOTIFICATION_SETTINGS_FAIL, params, error });
});
};
};
}
export function pinAccountRequest(id) {
return {
type: ACCOUNT_PIN_REQUEST,
id,
};
};
}
export function pinAccountSuccess(relationship) {
return {
type: ACCOUNT_PIN_SUCCESS,
relationship,
};
};
}
export function pinAccountFail(error) {
return {
type: ACCOUNT_PIN_FAIL,
error,
};
};
}
export function unpinAccountRequest(id) {
return {
type: ACCOUNT_UNPIN_REQUEST,
id,
};
};
}
export function unpinAccountSuccess(relationship) {
return {
type: ACCOUNT_UNPIN_SUCCESS,
relationship,
};
};
}
export function unpinAccountFail(error) {
return {
type: ACCOUNT_UNPIN_FAIL,
error,
};
};
}

View File

@@ -14,13 +14,13 @@ export function dismissAlert(alert) {
type: ALERT_DISMISS,
alert,
};
};
}
export function clearAlert() {
return {
type: ALERT_CLEAR,
};
};
}
export function showAlert(title = messages.unexpectedTitle, message = messages.unexpectedMessage, severity = 'info') {
return {
@@ -29,7 +29,7 @@ export function showAlert(title = messages.unexpectedTitle, message = messages.u
message,
severity,
};
};
}
export function showAlertForError(error) {
if (error.response) {

View File

@@ -26,13 +26,13 @@ export function fetchBlocks() {
dispatch(fetchRelationships(response.data.map(item => item.id)));
}).catch(error => dispatch(fetchBlocksFail(error)));
};
};
}
export function fetchBlocksRequest() {
return {
type: BLOCKS_FETCH_REQUEST,
};
};
}
export function fetchBlocksSuccess(accounts, next) {
return {
@@ -40,14 +40,14 @@ export function fetchBlocksSuccess(accounts, next) {
accounts,
next,
};
};
}
export function fetchBlocksFail(error) {
return {
type: BLOCKS_FETCH_FAIL,
error,
};
};
}
export function expandBlocks() {
return (dispatch, getState) => {
@@ -69,13 +69,13 @@ export function expandBlocks() {
dispatch(fetchRelationships(response.data.map(item => item.id)));
}).catch(error => dispatch(expandBlocksFail(error)));
};
};
}
export function expandBlocksRequest() {
return {
type: BLOCKS_EXPAND_REQUEST,
};
};
}
export function expandBlocksSuccess(accounts, next) {
return {
@@ -83,11 +83,11 @@ export function expandBlocksSuccess(accounts, next) {
accounts,
next,
};
};
}
export function expandBlocksFail(error) {
return {
type: BLOCKS_EXPAND_FAIL,
error,
};
};
}

View File

@@ -25,13 +25,13 @@ export function fetchBookmarkedStatuses() {
dispatch(fetchBookmarkedStatusesFail(error));
});
};
};
}
export function fetchBookmarkedStatusesRequest() {
return {
type: BOOKMARKED_STATUSES_FETCH_REQUEST,
};
};
}
export function fetchBookmarkedStatusesSuccess(statuses, next) {
return {
@@ -39,14 +39,14 @@ export function fetchBookmarkedStatusesSuccess(statuses, next) {
statuses,
next,
};
};
}
export function fetchBookmarkedStatusesFail(error) {
return {
type: BOOKMARKED_STATUSES_FETCH_FAIL,
error,
};
};
}
export function expandBookmarkedStatuses() {
return (dispatch, getState) => {
@@ -66,13 +66,13 @@ export function expandBookmarkedStatuses() {
dispatch(expandBookmarkedStatusesFail(error));
});
};
};
}
export function expandBookmarkedStatusesRequest() {
return {
type: BOOKMARKED_STATUSES_EXPAND_REQUEST,
};
};
}
export function expandBookmarkedStatusesSuccess(statuses, next) {
return {
@@ -80,11 +80,11 @@ export function expandBookmarkedStatusesSuccess(statuses, next) {
statuses,
next,
};
};
}
export function expandBookmarkedStatusesFail(error) {
return {
type: BOOKMARKED_STATUSES_EXPAND_FAIL,
error,
};
};
}

View File

@@ -88,7 +88,7 @@ export function changeCompose(text) {
type: COMPOSE_CHANGE,
text: text,
};
};
}
export function replyCompose(status, routerHistory) {
return (dispatch, getState) => {
@@ -101,19 +101,19 @@ export function replyCompose(status, routerHistory) {
dispatch(openModal('COMPOSE'));
};
};
}
export function cancelReplyCompose() {
return {
type: COMPOSE_REPLY_CANCEL,
};
};
}
export function resetCompose() {
return {
type: COMPOSE_RESET,
};
};
}
export function mentionCompose(account, routerHistory) {
return (dispatch, getState) => {
@@ -124,7 +124,7 @@ export function mentionCompose(account, routerHistory) {
dispatch(openModal('COMPOSE'));
};
};
}
export function directCompose(account, routerHistory) {
return (dispatch, getState) => {
@@ -135,7 +135,7 @@ export function directCompose(account, routerHistory) {
dispatch(openModal('COMPOSE'));
};
};
}
export function handleComposeSubmit(dispatch, getState, data, status) {
if (!dispatch || !getState) return;
@@ -231,27 +231,27 @@ export function submitCompose(routerHistory, force = false) {
dispatch(submitComposeFail(error));
});
};
};
}
export function submitComposeRequest() {
return {
type: COMPOSE_SUBMIT_REQUEST,
};
};
}
export function submitComposeSuccess(status) {
return {
type: COMPOSE_SUBMIT_SUCCESS,
status: status,
};
};
}
export function submitComposeFail(error) {
return {
type: COMPOSE_SUBMIT_FAIL,
error: error,
};
};
}
export function uploadCompose(files) {
return function(dispatch, getState) {
@@ -290,9 +290,9 @@ export function uploadCompose(files) {
}).catch(error => dispatch(uploadComposeFail(error)));
/* eslint-enable no-loop-func */
};
}
};
};
}
export function changeUploadCompose(id, params) {
return (dispatch, getState) => {
@@ -306,21 +306,21 @@ export function changeUploadCompose(id, params) {
dispatch(changeUploadComposeFail(id, error));
});
};
};
}
export function changeUploadComposeRequest() {
return {
type: COMPOSE_UPLOAD_CHANGE_REQUEST,
skipLoading: true,
};
};
}
export function changeUploadComposeSuccess(media) {
return {
type: COMPOSE_UPLOAD_CHANGE_SUCCESS,
media: media,
skipLoading: true,
};
};
}
export function changeUploadComposeFail(error) {
return {
@@ -328,14 +328,14 @@ export function changeUploadComposeFail(error) {
error: error,
skipLoading: true,
};
};
}
export function uploadComposeRequest() {
return {
type: COMPOSE_UPLOAD_REQUEST,
skipLoading: true,
};
};
}
export function uploadComposeProgress(loaded, total) {
return {
@@ -343,7 +343,7 @@ export function uploadComposeProgress(loaded, total) {
loaded: loaded,
total: total,
};
};
}
export function uploadComposeSuccess(media) {
return {
@@ -351,7 +351,7 @@ export function uploadComposeSuccess(media) {
media: media,
skipLoading: true,
};
};
}
export function uploadComposeFail(error) {
return {
@@ -359,14 +359,14 @@ export function uploadComposeFail(error) {
error: error,
skipLoading: true,
};
};
}
export function undoUploadCompose(media_id) {
return {
type: COMPOSE_UPLOAD_UNDO,
media_id: media_id,
};
};
}
export function clearComposeSuggestions() {
if (cancelFetchComposeSuggestionsAccounts) {
@@ -375,7 +375,7 @@ export function clearComposeSuggestions() {
return {
type: COMPOSE_SUGGESTIONS_CLEAR,
};
};
}
const fetchComposeSuggestionsAccounts = throttle((dispatch, getState, token) => {
if (cancelFetchComposeSuggestionsAccounts) {
@@ -423,7 +423,7 @@ export function fetchComposeSuggestions(token) {
break;
}
};
};
}
export function readyComposeSuggestionsEmojis(token, emojis) {
return {
@@ -431,7 +431,7 @@ export function readyComposeSuggestionsEmojis(token, emojis) {
token,
emojis,
};
};
}
export function readyComposeSuggestionsAccounts(token, accounts) {
return {
@@ -439,7 +439,7 @@ export function readyComposeSuggestionsAccounts(token, accounts) {
token,
accounts,
};
};
}
export function selectComposeSuggestion(position, token, suggestion, path) {
return (dispatch, getState) => {
@@ -466,7 +466,7 @@ export function selectComposeSuggestion(position, token, suggestion, path) {
path,
});
};
};
}
export function updateSuggestionTags(token) {
return {
@@ -505,46 +505,46 @@ export function mountCompose() {
return {
type: COMPOSE_MOUNT,
};
};
}
export function unmountCompose() {
return {
type: COMPOSE_UNMOUNT,
};
};
}
export function changeComposeSensitivity() {
return {
type: COMPOSE_SENSITIVITY_CHANGE,
};
};
}
export function changeComposeSpoilerness() {
return {
type: COMPOSE_SPOILERNESS_CHANGE,
};
};
}
export function changeComposeContentType(value) {
return {
type: COMPOSE_TYPE_CHANGE,
value,
};
};
}
export function changeComposeSpoilerText(text) {
return {
type: COMPOSE_SPOILER_TEXT_CHANGE,
text,
};
};
}
export function changeComposeVisibility(value) {
return {
type: COMPOSE_VISIBILITY_CHANGE,
value,
};
};
}
export function insertEmojiCompose(position, emoji, needsSpace) {
return {
@@ -553,52 +553,52 @@ export function insertEmojiCompose(position, emoji, needsSpace) {
emoji,
needsSpace,
};
};
}
export function changeComposing(value) {
return {
type: COMPOSE_COMPOSING_CHANGE,
value,
};
};
}
export function addPoll() {
return {
type: COMPOSE_POLL_ADD,
};
};
}
export function removePoll() {
return {
type: COMPOSE_POLL_REMOVE,
};
};
}
export function addSchedule() {
return {
type: COMPOSE_SCHEDULE_ADD,
};
};
}
export function setSchedule(date) {
return {
type: COMPOSE_SCHEDULE_SET,
date: date,
};
};
}
export function removeSchedule() {
return {
type: COMPOSE_SCHEDULE_REMOVE,
};
};
}
export function addPollOption(title) {
return {
type: COMPOSE_POLL_OPTION_ADD,
title,
};
};
}
export function changePollOption(index, title) {
return {
@@ -606,14 +606,14 @@ export function changePollOption(index, title) {
index,
title,
};
};
}
export function removePollOption(index) {
return {
type: COMPOSE_POLL_OPTION_REMOVE,
index,
};
};
}
export function changePollSettings(expiresIn, isMultiple) {
return {
@@ -621,4 +621,4 @@ export function changePollSettings(expiresIn, isMultiple) {
expiresIn,
isMultiple,
};
};
}

View File

@@ -14,14 +14,14 @@ export function fetchCustomEmojis() {
dispatch(fetchCustomEmojisFail(error));
});
};
};
}
export function fetchCustomEmojisRequest() {
return {
type: CUSTOM_EMOJIS_FETCH_REQUEST,
skipLoading: true,
};
};
}
export function fetchCustomEmojisSuccess(custom_emojis) {
return {
@@ -29,7 +29,7 @@ export function fetchCustomEmojisSuccess(custom_emojis) {
custom_emojis,
skipLoading: true,
};
};
}
export function fetchCustomEmojisFail(error) {
return {
@@ -37,4 +37,4 @@ export function fetchCustomEmojisFail(error) {
error,
skipLoading: true,
};
};
}

View File

@@ -31,14 +31,14 @@ export function blockDomain(domain) {
dispatch(blockDomainFail(domain, err));
});
};
};
}
export function blockDomainRequest(domain) {
return {
type: DOMAIN_BLOCK_REQUEST,
domain,
};
};
}
export function blockDomainSuccess(domain, accounts) {
return {
@@ -46,7 +46,7 @@ export function blockDomainSuccess(domain, accounts) {
domain,
accounts,
};
};
}
export function blockDomainFail(domain, error) {
return {
@@ -54,7 +54,7 @@ export function blockDomainFail(domain, error) {
domain,
error,
};
};
}
export function unblockDomain(domain) {
return (dispatch, getState) => {
@@ -76,14 +76,14 @@ export function unblockDomain(domain) {
dispatch(unblockDomainFail(domain, err));
});
};
};
}
export function unblockDomainRequest(domain) {
return {
type: DOMAIN_UNBLOCK_REQUEST,
domain,
};
};
}
export function unblockDomainSuccess(domain, accounts) {
return {
@@ -91,7 +91,7 @@ export function unblockDomainSuccess(domain, accounts) {
domain,
accounts,
};
};
}
export function unblockDomainFail(domain, error) {
return {
@@ -99,7 +99,7 @@ export function unblockDomainFail(domain, error) {
domain,
error,
};
};
}
export function fetchDomainBlocks() {
return (dispatch, getState) => {
@@ -114,13 +114,13 @@ export function fetchDomainBlocks() {
dispatch(fetchDomainBlocksFail(err));
});
};
};
}
export function fetchDomainBlocksRequest() {
return {
type: DOMAIN_BLOCKS_FETCH_REQUEST,
};
};
}
export function fetchDomainBlocksSuccess(domains, next) {
return {
@@ -128,14 +128,14 @@ export function fetchDomainBlocksSuccess(domains, next) {
domains,
next,
};
};
}
export function fetchDomainBlocksFail(error) {
return {
type: DOMAIN_BLOCKS_FETCH_FAIL,
error,
};
};
}
export function expandDomainBlocks() {
return (dispatch, getState) => {
@@ -156,13 +156,13 @@ export function expandDomainBlocks() {
dispatch(expandDomainBlocksFail(err));
});
};
};
}
export function expandDomainBlocksRequest() {
return {
type: DOMAIN_BLOCKS_EXPAND_REQUEST,
};
};
}
export function expandDomainBlocksSuccess(domains, next) {
return {
@@ -170,11 +170,11 @@ export function expandDomainBlocksSuccess(domains, next) {
domains,
next,
};
};
}
export function expandDomainBlocksFail(error) {
return {
type: DOMAIN_BLOCKS_EXPAND_FAIL,
error,
};
};
}

View File

@@ -62,7 +62,7 @@ export function fetchEmojiReacts(id, emoji) {
dispatch(fetchEmojiReactsFail(id, error));
});
};
};
}
export function emojiReact(status, emoji) {
return function(dispatch, getState) {
@@ -79,7 +79,7 @@ export function emojiReact(status, emoji) {
dispatch(emojiReactFail(status, emoji, error));
});
};
};
}
export function unEmojiReact(status, emoji) {
return (dispatch, getState) => {
@@ -96,7 +96,7 @@ export function unEmojiReact(status, emoji) {
dispatch(unEmojiReactFail(status, emoji, error));
});
};
};
}
export function fetchEmojiReactsRequest(id, emoji) {
return {
@@ -104,7 +104,7 @@ export function fetchEmojiReactsRequest(id, emoji) {
id,
emoji,
};
};
}
export function fetchEmojiReactsSuccess(id, emojiReacts) {
return {
@@ -112,14 +112,14 @@ export function fetchEmojiReactsSuccess(id, emojiReacts) {
id,
emojiReacts,
};
};
}
export function fetchEmojiReactsFail(id, error) {
return {
type: EMOJI_REACTS_FETCH_FAIL,
error,
};
};
}
export function emojiReactRequest(status, emoji) {
return {
@@ -128,7 +128,7 @@ export function emojiReactRequest(status, emoji) {
emoji,
skipLoading: true,
};
};
}
export function emojiReactSuccess(status, emoji) {
return {
@@ -137,7 +137,7 @@ export function emojiReactSuccess(status, emoji) {
emoji,
skipLoading: true,
};
};
}
export function emojiReactFail(status, emoji, error) {
return {
@@ -147,7 +147,7 @@ export function emojiReactFail(status, emoji, error) {
error,
skipLoading: true,
};
};
}
export function unEmojiReactRequest(status, emoji) {
return {
@@ -156,7 +156,7 @@ export function unEmojiReactRequest(status, emoji) {
emoji,
skipLoading: true,
};
};
}
export function unEmojiReactSuccess(status, emoji) {
return {
@@ -165,7 +165,7 @@ export function unEmojiReactSuccess(status, emoji) {
emoji,
skipLoading: true,
};
};
}
export function unEmojiReactFail(status, emoji, error) {
return {
@@ -175,4 +175,4 @@ export function unEmojiReactFail(status, emoji, error) {
error,
skipLoading: true,
};
};
}

View File

@@ -11,4 +11,4 @@ export function useEmoji(emoji) {
dispatch(saveSettings());
};
};
}

View File

@@ -28,14 +28,14 @@ export function fetchFavouritedStatuses() {
dispatch(fetchFavouritedStatusesFail(error));
});
};
};
}
export function fetchFavouritedStatusesRequest() {
return {
type: FAVOURITED_STATUSES_FETCH_REQUEST,
skipLoading: true,
};
};
}
export function fetchFavouritedStatusesSuccess(statuses, next) {
return {
@@ -44,7 +44,7 @@ export function fetchFavouritedStatusesSuccess(statuses, next) {
next,
skipLoading: true,
};
};
}
export function fetchFavouritedStatusesFail(error) {
return {
@@ -52,7 +52,7 @@ export function fetchFavouritedStatusesFail(error) {
error,
skipLoading: true,
};
};
}
export function expandFavouritedStatuses() {
return (dispatch, getState) => {
@@ -74,13 +74,13 @@ export function expandFavouritedStatuses() {
dispatch(expandFavouritedStatusesFail(error));
});
};
};
}
export function expandFavouritedStatusesRequest() {
return {
type: FAVOURITED_STATUSES_EXPAND_REQUEST,
};
};
}
export function expandFavouritedStatusesSuccess(statuses, next) {
return {
@@ -88,11 +88,11 @@ export function expandFavouritedStatusesSuccess(statuses, next) {
statuses,
next,
};
};
}
export function expandFavouritedStatusesFail(error) {
return {
type: FAVOURITED_STATUSES_EXPAND_FAIL,
error,
};
};
}

View File

@@ -102,7 +102,7 @@ export function fetchGroupRelationships(groupIds) {
dispatch(fetchGroupRelationshipsFail(error));
});
};
};
}
export function fetchGroupRelationshipsRequest(ids) {
return {
@@ -110,7 +110,7 @@ export function fetchGroupRelationshipsRequest(ids) {
ids,
skipLoading: true,
};
};
}
export function fetchGroupRelationshipsSuccess(relationships) {
return {
@@ -118,7 +118,7 @@ export function fetchGroupRelationshipsSuccess(relationships) {
relationships,
skipLoading: true,
};
};
}
export function fetchGroupRelationshipsFail(error) {
return {
@@ -126,7 +126,7 @@ export function fetchGroupRelationshipsFail(error) {
error,
skipLoading: true,
};
};
}
export const fetchGroups = (tab) => (dispatch, getState) => {
if (!isLoggedIn(getState)) return;
@@ -168,7 +168,7 @@ export function joinGroup(id) {
dispatch(joinGroupFail(id, error));
});
};
};
}
export function leaveGroup(id) {
return (dispatch, getState) => {
@@ -182,49 +182,49 @@ export function leaveGroup(id) {
dispatch(leaveGroupFail(id, error));
});
};
};
}
export function joinGroupRequest(id) {
return {
type: GROUP_JOIN_REQUEST,
id,
};
};
}
export function joinGroupSuccess(relationship) {
return {
type: GROUP_JOIN_SUCCESS,
relationship,
};
};
}
export function joinGroupFail(error) {
return {
type: GROUP_JOIN_FAIL,
error,
};
};
}
export function leaveGroupRequest(id) {
return {
type: GROUP_LEAVE_REQUEST,
id,
};
};
}
export function leaveGroupSuccess(relationship) {
return {
type: GROUP_LEAVE_SUCCESS,
relationship,
};
};
}
export function leaveGroupFail(error) {
return {
type: GROUP_LEAVE_FAIL,
error,
};
};
}
export function fetchMembers(id) {
return (dispatch, getState) => {
@@ -242,14 +242,14 @@ export function fetchMembers(id) {
dispatch(fetchMembersFail(id, error));
});
};
};
}
export function fetchMembersRequest(id) {
return {
type: GROUP_MEMBERS_FETCH_REQUEST,
id,
};
};
}
export function fetchMembersSuccess(id, accounts, next) {
return {
@@ -258,7 +258,7 @@ export function fetchMembersSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function fetchMembersFail(id, error) {
return {
@@ -266,7 +266,7 @@ export function fetchMembersFail(id, error) {
id,
error,
};
};
}
export function expandMembers(id) {
return (dispatch, getState) => {
@@ -290,14 +290,14 @@ export function expandMembers(id) {
dispatch(expandMembersFail(id, error));
});
};
};
}
export function expandMembersRequest(id) {
return {
type: GROUP_MEMBERS_EXPAND_REQUEST,
id,
};
};
}
export function expandMembersSuccess(id, accounts, next) {
return {
@@ -306,7 +306,7 @@ export function expandMembersSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function expandMembersFail(id, error) {
return {
@@ -314,7 +314,7 @@ export function expandMembersFail(id, error) {
id,
error,
};
};
}
export function fetchRemovedAccounts(id) {
return (dispatch, getState) => {
@@ -332,14 +332,14 @@ export function fetchRemovedAccounts(id) {
dispatch(fetchRemovedAccountsFail(id, error));
});
};
};
}
export function fetchRemovedAccountsRequest(id) {
return {
type: GROUP_REMOVED_ACCOUNTS_FETCH_REQUEST,
id,
};
};
}
export function fetchRemovedAccountsSuccess(id, accounts, next) {
return {
@@ -348,7 +348,7 @@ export function fetchRemovedAccountsSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function fetchRemovedAccountsFail(id, error) {
return {
@@ -356,7 +356,7 @@ export function fetchRemovedAccountsFail(id, error) {
id,
error,
};
};
}
export function expandRemovedAccounts(id) {
return (dispatch, getState) => {
@@ -380,14 +380,14 @@ export function expandRemovedAccounts(id) {
dispatch(expandRemovedAccountsFail(id, error));
});
};
};
}
export function expandRemovedAccountsRequest(id) {
return {
type: GROUP_REMOVED_ACCOUNTS_EXPAND_REQUEST,
id,
};
};
}
export function expandRemovedAccountsSuccess(id, accounts, next) {
return {
@@ -396,7 +396,7 @@ export function expandRemovedAccountsSuccess(id, accounts, next) {
accounts,
next,
};
};
}
export function expandRemovedAccountsFail(id, error) {
return {
@@ -404,7 +404,7 @@ export function expandRemovedAccountsFail(id, error) {
id,
error,
};
};
}
export function removeRemovedAccount(groupId, id) {
return (dispatch, getState) => {
@@ -418,7 +418,7 @@ export function removeRemovedAccount(groupId, id) {
dispatch(removeRemovedAccountFail(groupId, id, error));
});
};
};
}
export function removeRemovedAccountRequest(groupId, id) {
return {
@@ -426,7 +426,7 @@ export function removeRemovedAccountRequest(groupId, id) {
groupId,
id,
};
};
}
export function removeRemovedAccountSuccess(groupId, id) {
return {
@@ -434,7 +434,7 @@ export function removeRemovedAccountSuccess(groupId, id) {
groupId,
id,
};
};
}
export function removeRemovedAccountFail(groupId, id, error) {
return {
@@ -443,7 +443,7 @@ export function removeRemovedAccountFail(groupId, id, error) {
id,
error,
};
};
}
export function createRemovedAccount(groupId, id) {
return (dispatch, getState) => {
@@ -457,7 +457,7 @@ export function createRemovedAccount(groupId, id) {
dispatch(createRemovedAccountFail(groupId, id, error));
});
};
};
}
export function createRemovedAccountRequest(groupId, id) {
return {
@@ -465,7 +465,7 @@ export function createRemovedAccountRequest(groupId, id) {
groupId,
id,
};
};
}
export function createRemovedAccountSuccess(groupId, id) {
return {
@@ -473,7 +473,7 @@ export function createRemovedAccountSuccess(groupId, id) {
groupId,
id,
};
};
}
export function createRemovedAccountFail(groupId, id, error) {
return {
@@ -482,7 +482,7 @@ export function createRemovedAccountFail(groupId, id, error) {
id,
error,
};
};
}
export function groupRemoveStatus(groupId, id) {
return (dispatch, getState) => {
@@ -496,7 +496,7 @@ export function groupRemoveStatus(groupId, id) {
dispatch(groupRemoveStatusFail(groupId, id, error));
});
};
};
}
export function groupRemoveStatusRequest(groupId, id) {
return {
@@ -504,7 +504,7 @@ export function groupRemoveStatusRequest(groupId, id) {
groupId,
id,
};
};
}
export function groupRemoveStatusSuccess(groupId, id) {
return {
@@ -512,7 +512,7 @@ export function groupRemoveStatusSuccess(groupId, id) {
groupId,
id,
};
};
}
export function groupRemoveStatusFail(groupId, id, error) {
return {
@@ -521,4 +521,4 @@ export function groupRemoveStatusFail(groupId, id, error) {
id,
error,
};
};
}

View File

@@ -8,10 +8,10 @@ export function setHeight(key, id, height) {
id,
height,
};
};
}
export function clearHeight() {
return {
type: HEIGHT_CACHE_CLEAR,
};
};
}

View File

@@ -121,4 +121,4 @@ export function importFetchedPoll(poll) {
export function importErrorWhileFetchingAccountByUsername(username) {
return { type: ACCOUNT_FETCH_FAIL_FOR_USERNAME_LOOKUP, username };
};
}

View File

@@ -44,7 +44,7 @@ export function instanceFail(error) {
error,
skipAlert: true,
};
};
}
export function importNodeinfo(nodeinfo) {
return {
@@ -59,4 +59,4 @@ export function nodeinfoFail(error) {
error,
skipAlert: true,
};
};
}

View File

@@ -64,7 +64,7 @@ export function reblog(status) {
dispatch(reblogFail(status, error));
});
};
};
}
export function unreblog(status) {
return (dispatch, getState) => {
@@ -79,7 +79,7 @@ export function unreblog(status) {
dispatch(unreblogFail(status, error));
});
};
};
}
export function reblogRequest(status) {
return {
@@ -87,7 +87,7 @@ export function reblogRequest(status) {
status: status,
skipLoading: true,
};
};
}
export function reblogSuccess(status) {
return {
@@ -95,7 +95,7 @@ export function reblogSuccess(status) {
status: status,
skipLoading: true,
};
};
}
export function reblogFail(status, error) {
return {
@@ -104,7 +104,7 @@ export function reblogFail(status, error) {
error: error,
skipLoading: true,
};
};
}
export function unreblogRequest(status) {
return {
@@ -112,7 +112,7 @@ export function unreblogRequest(status) {
status: status,
skipLoading: true,
};
};
}
export function unreblogSuccess(status) {
return {
@@ -120,7 +120,7 @@ export function unreblogSuccess(status) {
status: status,
skipLoading: true,
};
};
}
export function unreblogFail(status, error) {
return {
@@ -129,7 +129,7 @@ export function unreblogFail(status, error) {
error: error,
skipLoading: true,
};
};
}
export function favourite(status) {
return function(dispatch, getState) {
@@ -144,7 +144,7 @@ export function favourite(status) {
dispatch(favouriteFail(status, error));
});
};
};
}
export function unfavourite(status) {
return (dispatch, getState) => {
@@ -159,7 +159,7 @@ export function unfavourite(status) {
dispatch(unfavouriteFail(status, error));
});
};
};
}
export function favouriteRequest(status) {
return {
@@ -167,7 +167,7 @@ export function favouriteRequest(status) {
status: status,
skipLoading: true,
};
};
}
export function favouriteSuccess(status) {
return {
@@ -175,7 +175,7 @@ export function favouriteSuccess(status) {
status: status,
skipLoading: true,
};
};
}
export function favouriteFail(status, error) {
return {
@@ -184,7 +184,7 @@ export function favouriteFail(status, error) {
error: error,
skipLoading: true,
};
};
}
export function unfavouriteRequest(status) {
return {
@@ -192,7 +192,7 @@ export function unfavouriteRequest(status) {
status: status,
skipLoading: true,
};
};
}
export function unfavouriteSuccess(status) {
return {
@@ -200,7 +200,7 @@ export function unfavouriteSuccess(status) {
status: status,
skipLoading: true,
};
};
}
export function unfavouriteFail(status, error) {
return {
@@ -209,7 +209,7 @@ export function unfavouriteFail(status, error) {
error: error,
skipLoading: true,
};
};
}
export function bookmark(intl, status) {
return function(dispatch, getState) {
@@ -223,7 +223,7 @@ export function bookmark(intl, status) {
dispatch(bookmarkFail(status, error));
});
};
};
}
export function unbookmark(intl, status) {
return (dispatch, getState) => {
@@ -237,14 +237,14 @@ export function unbookmark(intl, status) {
dispatch(unbookmarkFail(status, error));
});
};
};
}
export function bookmarkRequest(status) {
return {
type: BOOKMARK_REQUEST,
status: status,
};
};
}
export function bookmarkSuccess(status, response) {
return {
@@ -252,7 +252,7 @@ export function bookmarkSuccess(status, response) {
status: status,
response: response,
};
};
}
export function bookmarkFail(status, error) {
return {
@@ -260,14 +260,14 @@ export function bookmarkFail(status, error) {
status: status,
error: error,
};
};
}
export function unbookmarkRequest(status) {
return {
type: UNBOOKMARK_REQUEST,
status: status,
};
};
}
export function unbookmarkSuccess(status, response) {
return {
@@ -275,7 +275,7 @@ export function unbookmarkSuccess(status, response) {
status: status,
response: response,
};
};
}
export function unbookmarkFail(status, error) {
return {
@@ -283,7 +283,7 @@ export function unbookmarkFail(status, error) {
status: status,
error: error,
};
};
}
export function fetchReblogs(id) {
return (dispatch, getState) => {
@@ -298,14 +298,14 @@ export function fetchReblogs(id) {
dispatch(fetchReblogsFail(id, error));
});
};
};
}
export function fetchReblogsRequest(id) {
return {
type: REBLOGS_FETCH_REQUEST,
id,
};
};
}
export function fetchReblogsSuccess(id, accounts) {
return {
@@ -313,14 +313,14 @@ export function fetchReblogsSuccess(id, accounts) {
id,
accounts,
};
};
}
export function fetchReblogsFail(id, error) {
return {
type: REBLOGS_FETCH_FAIL,
error,
};
};
}
export function fetchFavourites(id) {
return (dispatch, getState) => {
@@ -335,14 +335,14 @@ export function fetchFavourites(id) {
dispatch(fetchFavouritesFail(id, error));
});
};
};
}
export function fetchFavouritesRequest(id) {
return {
type: FAVOURITES_FETCH_REQUEST,
id,
};
};
}
export function fetchFavouritesSuccess(id, accounts) {
return {
@@ -350,14 +350,14 @@ export function fetchFavouritesSuccess(id, accounts) {
id,
accounts,
};
};
}
export function fetchFavouritesFail(id, error) {
return {
type: FAVOURITES_FETCH_FAIL,
error,
};
};
}
export function pin(status) {
return (dispatch, getState) => {
@@ -372,7 +372,7 @@ export function pin(status) {
dispatch(pinFail(status, error));
});
};
};
}
export function pinRequest(status) {
return {
@@ -380,7 +380,7 @@ export function pinRequest(status) {
status,
skipLoading: true,
};
};
}
export function pinSuccess(status) {
return {
@@ -388,7 +388,7 @@ export function pinSuccess(status) {
status,
skipLoading: true,
};
};
}
export function pinFail(status, error) {
return {
@@ -397,7 +397,7 @@ export function pinFail(status, error) {
error,
skipLoading: true,
};
};
}
export function unpin(status) {
return (dispatch, getState) => {
@@ -412,7 +412,7 @@ export function unpin(status) {
dispatch(unpinFail(status, error));
});
};
};
}
export function unpinRequest(status) {
return {
@@ -420,7 +420,7 @@ export function unpinRequest(status) {
status,
skipLoading: true,
};
};
}
export function unpinSuccess(status) {
return {
@@ -428,7 +428,7 @@ export function unpinSuccess(status) {
status,
skipLoading: true,
};
};
}
export function unpinFail(status, error) {
return {
@@ -437,4 +437,4 @@ export function unpinFail(status, error) {
error,
skipLoading: true,
};
};
}

View File

@@ -22,12 +22,12 @@ export function fetchMe() {
if (!token) {
dispatch({ type: ME_FETCH_SKIP }); return noOp();
};
}
dispatch(fetchMeRequest());
return dispatch(verifyCredentials(token)).catch(error => {
dispatch(fetchMeFail(error));
});;
});
};
}
@@ -66,7 +66,7 @@ export function fetchMeFail(error) {
error,
skipAlert: true,
};
};
}
export function patchMeRequest() {
return {
@@ -89,4 +89,4 @@ export function patchMeFail(error) {
type: ME_PATCH_FAIL,
error,
};
};
}

View File

@@ -36,19 +36,19 @@ export function fetchUserMfaSettingsRequest() {
return {
type: TOTP_SETTINGS_FETCH_REQUEST,
};
};
}
export function fetchUserMfaSettingsSuccess() {
return {
type: TOTP_SETTINGS_FETCH_SUCCESS,
};
};
}
export function fetchUserMfaSettingsFail() {
return {
type: TOTP_SETTINGS_FETCH_FAIL,
};
};
}
export function fetchBackupCodes() {
return (dispatch, getState) => {
@@ -66,21 +66,21 @@ export function fetchBackupCodesRequest() {
return {
type: BACKUP_CODES_FETCH_REQUEST,
};
};
}
export function fetchBackupCodesSuccess(backup_codes, response) {
return {
type: BACKUP_CODES_FETCH_SUCCESS,
backup_codes: response.data,
};
};
}
export function fetchBackupCodesFail(error) {
return {
type: BACKUP_CODES_FETCH_FAIL,
error,
};
};
}
export function fetchToptSetup() {
return (dispatch, getState) => {
@@ -98,21 +98,21 @@ export function fetchToptSetupRequest() {
return {
type: TOTP_SETUP_FETCH_REQUEST,
};
};
}
export function fetchToptSetupSuccess(totp_setup, response) {
return {
type: TOTP_SETUP_FETCH_SUCCESS,
totp_setup: response.data,
};
};
}
export function fetchToptSetupFail(error) {
return {
type: TOTP_SETUP_FETCH_FAIL,
error,
};
};
}
export function confirmToptSetup(code, password) {
return (dispatch, getState) => {
@@ -133,20 +133,20 @@ export function confirmToptRequest() {
return {
type: CONFIRM_TOTP_REQUEST,
};
};
}
export function confirmToptSuccess(backup_codes, response) {
return {
type: CONFIRM_TOTP_SUCCESS,
};
};
}
export function confirmToptFail(error) {
return {
type: CONFIRM_TOTP_FAIL,
error,
};
};
}
export function disableToptSetup(password) {
return (dispatch, getState) => {
@@ -164,17 +164,17 @@ export function disableToptRequest() {
return {
type: DISABLE_TOTP_REQUEST,
};
};
}
export function disableToptSuccess(backup_codes, response) {
return {
type: DISABLE_TOTP_SUCCESS,
};
};
}
export function disableToptFail(error) {
return {
type: DISABLE_TOTP_FAIL,
error,
};
};
}

View File

@@ -7,10 +7,10 @@ export function openModal(type, props) {
modalType: type,
modalProps: props,
};
};
}
export function closeModal() {
return {
type: MODAL_CLOSE,
};
};
}

View File

@@ -30,13 +30,13 @@ export function fetchMutes() {
dispatch(fetchRelationships(response.data.map(item => item.id)));
}).catch(error => dispatch(fetchMutesFail(error)));
};
};
}
export function fetchMutesRequest() {
return {
type: MUTES_FETCH_REQUEST,
};
};
}
export function fetchMutesSuccess(accounts, next) {
return {
@@ -44,14 +44,14 @@ export function fetchMutesSuccess(accounts, next) {
accounts,
next,
};
};
}
export function fetchMutesFail(error) {
return {
type: MUTES_FETCH_FAIL,
error,
};
};
}
export function expandMutes() {
return (dispatch, getState) => {
@@ -73,13 +73,13 @@ export function expandMutes() {
dispatch(fetchRelationships(response.data.map(item => item.id)));
}).catch(error => dispatch(expandMutesFail(error)));
};
};
}
export function expandMutesRequest() {
return {
type: MUTES_EXPAND_REQUEST,
};
};
}
export function expandMutesSuccess(accounts, next) {
return {
@@ -87,14 +87,14 @@ export function expandMutesSuccess(accounts, next) {
accounts,
next,
};
};
}
export function expandMutesFail(error) {
return {
type: MUTES_EXPAND_FAIL,
error,
};
};
}
export function initMuteModal(account) {
return dispatch => {

View File

@@ -78,7 +78,7 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
fetchRelatedRelationships(dispatch, [notification]);
}
};
};
}
export function updateNotificationsQueue(notification, intlMessages, intlLocale, curPath) {
return (dispatch, getState) => {
@@ -133,7 +133,7 @@ export function updateNotificationsQueue(notification, intlMessages, intlLocale,
dispatch(updateNotifications(notification, intlMessages, intlLocale));
}
};
};
}
export function dequeueNotifications() {
return (dispatch, getState) => {
@@ -155,7 +155,7 @@ export function dequeueNotifications() {
});
dispatch(markReadNotifications());
};
};
}
const excludeTypesFromSettings = getState => getSettings(getState()).getIn(['notifications', 'shows']).filter(enabled => !enabled).keySeq().toJS();
@@ -223,14 +223,14 @@ export function expandNotifications({ maxId } = {}, done = noOp) {
done();
});
};
};
}
export function expandNotificationsRequest(isLoadingMore) {
return {
type: NOTIFICATIONS_EXPAND_REQUEST,
skipLoading: !isLoadingMore,
};
};
}
export function expandNotificationsSuccess(notifications, next, isLoadingMore) {
return {
@@ -239,7 +239,7 @@ export function expandNotificationsSuccess(notifications, next, isLoadingMore) {
next,
skipLoading: !isLoadingMore,
};
};
}
export function expandNotificationsFail(error, isLoadingMore) {
return {
@@ -247,7 +247,7 @@ export function expandNotificationsFail(error, isLoadingMore) {
error,
skipLoading: !isLoadingMore,
};
};
}
export function clearNotifications() {
return (dispatch, getState) => {
@@ -259,7 +259,7 @@ export function clearNotifications() {
api(getState).post('/api/v1/notifications/clear');
};
};
}
export function scrollTopNotifications(top) {
return (dispatch, getState) => {

View File

@@ -17,7 +17,7 @@ export function fetchPatronInstance() {
dispatch(fetchInstanceFail(error));
});
};
};
}
export function fetchPatronAccount(apId) {
return (dispatch, getState) => {
@@ -44,7 +44,7 @@ function fetchInstanceFail(error) {
error,
skipAlert: true,
};
};
}
function importFetchedAccount(account) {
return {

View File

@@ -20,13 +20,13 @@ export function fetchPinnedStatuses() {
dispatch(fetchPinnedStatusesFail(error));
});
};
};
}
export function fetchPinnedStatusesRequest() {
return {
type: PINNED_STATUSES_FETCH_REQUEST,
};
};
}
export function fetchPinnedStatusesSuccess(statuses, next) {
return {
@@ -34,11 +34,11 @@ export function fetchPinnedStatusesSuccess(statuses, next) {
statuses,
next,
};
};
}
export function fetchPinnedStatusesFail(error) {
return {
type: PINNED_STATUSES_FETCH_FAIL,
error,
};
};
}

View File

@@ -23,7 +23,7 @@ export function initReport(account, status) {
dispatch(openModal('REPORT'));
};
};
}
export function initReportById(accountId) {
return (dispatch, getState) => {
@@ -34,13 +34,13 @@ export function initReportById(accountId) {
dispatch(openModal('REPORT'));
};
};
}
export function cancelReport() {
return {
type: REPORT_CANCEL,
};
};
}
export function toggleStatusReport(statusId, checked) {
return {
@@ -48,7 +48,7 @@ export function toggleStatusReport(statusId, checked) {
statusId,
checked,
};
};
}
export function submitReport() {
return (dispatch, getState) => {
@@ -64,45 +64,45 @@ export function submitReport() {
dispatch(submitReportSuccess(response.data));
}).catch(error => dispatch(submitReportFail(error)));
};
};
}
export function submitReportRequest() {
return {
type: REPORT_SUBMIT_REQUEST,
};
};
}
export function submitReportSuccess(report) {
return {
type: REPORT_SUBMIT_SUCCESS,
report,
};
};
}
export function submitReportFail(error) {
return {
type: REPORT_SUBMIT_FAIL,
error,
};
};
}
export function changeReportComment(comment) {
return {
type: REPORT_COMMENT_CHANGE,
comment,
};
};
}
export function changeReportForward(forward) {
return {
type: REPORT_FORWARD_CHANGE,
forward,
};
};
}
export function changeReportBlock(block) {
return {
type: REPORT_BLOCK_CHANGE,
block,
};
};
}

View File

@@ -27,7 +27,7 @@ export function fetchScheduledStatuses() {
dispatch(fetchScheduledStatusesFail(error));
});
};
};
}
export function cancelScheduledStatus(id) {
return (dispatch, getState) => {
@@ -44,7 +44,7 @@ export function fetchScheduledStatusesRequest() {
return {
type: SCHEDULED_STATUSES_FETCH_REQUEST,
};
};
}
export function fetchScheduledStatusesSuccess(statuses, next) {
return {
@@ -52,14 +52,14 @@ export function fetchScheduledStatusesSuccess(statuses, next) {
statuses,
next,
};
};
}
export function fetchScheduledStatusesFail(error) {
return {
type: SCHEDULED_STATUSES_FETCH_FAIL,
error,
};
};
}
export function expandScheduledStatuses() {
return (dispatch, getState) => {
@@ -78,13 +78,13 @@ export function expandScheduledStatuses() {
dispatch(expandScheduledStatusesFail(error));
});
};
};
}
export function expandScheduledStatusesRequest() {
return {
type: SCHEDULED_STATUSES_EXPAND_REQUEST,
};
};
}
export function expandScheduledStatusesSuccess(statuses, next) {
return {
@@ -92,11 +92,11 @@ export function expandScheduledStatusesSuccess(statuses, next) {
statuses,
next,
};
};
}
export function expandScheduledStatusesFail(error) {
return {
type: SCHEDULED_STATUSES_EXPAND_FAIL,
error,
};
};
}

View File

@@ -21,13 +21,13 @@ export function changeSearch(value) {
type: SEARCH_CHANGE,
value,
};
};
}
export function clearSearch() {
return {
type: SEARCH_CLEAR,
};
};
}
export function submitSearch() {
return (dispatch, getState) => {
@@ -60,27 +60,27 @@ export function submitSearch() {
dispatch(fetchSearchFail(error));
});
};
};
}
export function fetchSearchRequest() {
return {
type: SEARCH_FETCH_REQUEST,
};
};
}
export function fetchSearchSuccess(results) {
return {
type: SEARCH_FETCH_SUCCESS,
results,
};
};
}
export function fetchSearchFail(error) {
return {
type: SEARCH_FETCH_FAIL,
error,
};
};
}
export const expandSearch = type => (dispatch, getState) => {
const value = getState().getIn(['search', 'value']);

View File

@@ -157,7 +157,7 @@ export function changeSetting(path, value) {
dispatch(saveSettings());
};
};
}
const debouncedSave = debounce((dispatch, getState) => {
if (!isLoggedIn(getState)) return;
@@ -180,4 +180,4 @@ const debouncedSave = debounce((dispatch, getState) => {
export function saveSettings() {
return (dispatch, getState) => debouncedSave(dispatch, getState);
};
}

View File

@@ -5,10 +5,10 @@ export function openSidebar() {
return {
type: SIDEBAR_OPEN,
};
};
}
export function closeSidebar() {
return {
type: SIDEBAR_CLOSE,
};
};
}

View File

@@ -8,15 +8,15 @@ const show = (severity, message) => ({
export function info(message) {
return show('info', message);
};
}
export function success(message) {
return show('success', message);
};
}
export function error(message) {
return show('error', message);
};
}
export default {
info,

View File

@@ -93,7 +93,7 @@ export function fetchSoapboxJson() {
export function importSoapboxConfig(soapboxConfig) {
if (!soapboxConfig.brandColor) {
soapboxConfig.brandColor = '#0482d8';
};
}
return {
type: SOAPBOX_CONFIG_REQUEST_SUCCESS,
soapboxConfig,

View File

@@ -39,7 +39,7 @@ export function fetchStatusRequest(id, skipLoading) {
id,
skipLoading,
};
};
}
export function createStatus(params, idempotencyKey) {
return (dispatch, getState) => {
@@ -55,7 +55,7 @@ export function createStatus(params, idempotencyKey) {
throw error;
});
};
};
}
export function fetchStatus(id) {
return (dispatch, getState) => {
@@ -76,7 +76,7 @@ export function fetchStatus(id) {
dispatch(fetchStatusFail(id, error, skipLoading));
});
};
};
}
export function fetchStatusSuccess(status, skipLoading) {
return {
@@ -84,7 +84,7 @@ export function fetchStatusSuccess(status, skipLoading) {
status,
skipLoading,
};
};
}
export function fetchStatusFail(id, error, skipLoading) {
return {
@@ -94,7 +94,7 @@ export function fetchStatusFail(id, error, skipLoading) {
skipLoading,
skipAlert: true,
};
};
}
export function redraft(status, raw_text) {
return {
@@ -102,7 +102,7 @@ export function redraft(status, raw_text) {
status,
raw_text,
};
};
}
export function deleteStatus(id, routerHistory, withRedraft = false) {
return (dispatch, getState) => {
@@ -128,21 +128,21 @@ export function deleteStatus(id, routerHistory, withRedraft = false) {
dispatch(deleteStatusFail(id, error));
});
};
};
}
export function deleteStatusRequest(id) {
return {
type: STATUS_DELETE_REQUEST,
id: id,
};
};
}
export function deleteStatusSuccess(id) {
return {
type: STATUS_DELETE_SUCCESS,
id: id,
};
};
}
export function deleteStatusFail(id, error) {
return {
@@ -150,7 +150,7 @@ export function deleteStatusFail(id, error) {
id: id,
error: error,
};
};
}
export function fetchContext(id) {
return (dispatch, getState) => {
@@ -168,14 +168,14 @@ export function fetchContext(id) {
dispatch(fetchContextFail(id, error));
});
};
};
}
export function fetchContextRequest(id) {
return {
type: CONTEXT_FETCH_REQUEST,
id,
};
};
}
export function fetchContextSuccess(id, ancestors, descendants) {
return {
@@ -184,7 +184,7 @@ export function fetchContextSuccess(id, ancestors, descendants) {
ancestors,
descendants,
};
};
}
export function fetchContextFail(id, error) {
return {
@@ -193,7 +193,7 @@ export function fetchContextFail(id, error) {
error,
skipAlert: true,
};
};
}
export function muteStatus(id) {
return (dispatch, getState) => {
@@ -207,21 +207,21 @@ export function muteStatus(id) {
dispatch(muteStatusFail(id, error));
});
};
};
}
export function muteStatusRequest(id) {
return {
type: STATUS_MUTE_REQUEST,
id,
};
};
}
export function muteStatusSuccess(id) {
return {
type: STATUS_MUTE_SUCCESS,
id,
};
};
}
export function muteStatusFail(id, error) {
return {
@@ -229,7 +229,7 @@ export function muteStatusFail(id, error) {
id,
error,
};
};
}
export function unmuteStatus(id) {
return (dispatch, getState) => {
@@ -243,21 +243,21 @@ export function unmuteStatus(id) {
dispatch(unmuteStatusFail(id, error));
});
};
};
}
export function unmuteStatusRequest(id) {
return {
type: STATUS_UNMUTE_REQUEST,
id,
};
};
}
export function unmuteStatusSuccess(id) {
return {
type: STATUS_UNMUTE_SUCCESS,
id,
};
};
}
export function unmuteStatusFail(id, error) {
return {
@@ -265,7 +265,7 @@ export function unmuteStatusFail(id, error) {
id,
error,
};
};
}
export function hideStatus(ids) {
if (!Array.isArray(ids)) {
@@ -276,7 +276,7 @@ export function hideStatus(ids) {
type: STATUS_HIDE,
ids,
};
};
}
export function revealStatus(ids) {
if (!Array.isArray(ids)) {
@@ -287,4 +287,4 @@ export function revealStatus(ids) {
type: STATUS_REVEAL,
ids,
};
};
}

View File

@@ -17,14 +17,14 @@ export function fetchSuggestions() {
dispatch(fetchSuggestionsSuccess(response.data));
}).catch(error => dispatch(fetchSuggestionsFail(error)));
};
};
}
export function fetchSuggestionsRequest() {
return {
type: SUGGESTIONS_FETCH_REQUEST,
skipLoading: true,
};
};
}
export function fetchSuggestionsSuccess(accounts) {
return {
@@ -32,7 +32,7 @@ export function fetchSuggestionsSuccess(accounts) {
accounts,
skipLoading: true,
};
};
}
export function fetchSuggestionsFail(error) {
return {
@@ -41,7 +41,7 @@ export function fetchSuggestionsFail(error) {
skipLoading: true,
skipAlert: true,
};
};
}
export const dismissSuggestion = accountId => (dispatch, getState) => {
if (!isLoggedIn(getState)) return;

View File

@@ -47,7 +47,7 @@ export function updateTimeline(timeline, statusId, accept) {
statusId,
});
};
};
}
export function updateTimelineQueue(timeline, statusId, accept) {
return dispatch => {
@@ -61,7 +61,7 @@ export function updateTimelineQueue(timeline, statusId, accept) {
statusId,
});
};
};
}
export function dequeueTimeline(timelineId, expandFunc, optionalExpandArgs) {
return (dispatch, getState) => {
@@ -88,7 +88,7 @@ export function dequeueTimeline(timelineId, expandFunc, optionalExpandArgs) {
}
}
};
};
}
export function deleteFromTimelines(id) {
return (dispatch, getState) => {
@@ -104,13 +104,13 @@ export function deleteFromTimelines(id) {
reblogOf,
});
};
};
}
export function clearTimeline(timeline) {
return (dispatch) => {
dispatch({ type: TIMELINE_CLEAR, timeline });
};
};
}
const noOp = () => {};
@@ -148,7 +148,7 @@ export function expandTimeline(timelineId, path, params = {}, done = noOp) {
done();
});
};
};
}
export const expandHomeTimeline = ({ maxId } = {}, done = noOp) => expandTimeline('home', '/api/v1/timelines/home', { max_id: maxId }, done);
@@ -185,7 +185,7 @@ export function expandTimelineRequest(timeline, isLoadingMore) {
timeline,
skipLoading: !isLoadingMore,
};
};
}
export function expandTimelineSuccess(timeline, statuses, next, partial, isLoadingRecent, isLoadingMore) {
return {
@@ -197,7 +197,7 @@ export function expandTimelineSuccess(timeline, statuses, next, partial, isLoadi
isLoadingRecent,
skipLoading: !isLoadingMore,
};
};
}
export function expandTimelineFail(timeline, error, isLoadingMore) {
return {
@@ -206,21 +206,21 @@ export function expandTimelineFail(timeline, error, isLoadingMore) {
error,
skipLoading: !isLoadingMore,
};
};
}
export function connectTimeline(timeline) {
return {
type: TIMELINE_CONNECT,
timeline,
};
};
}
export function disconnectTimeline(timeline) {
return {
type: TIMELINE_DISCONNECT,
timeline,
};
};
}
export function scrollTopTimeline(timeline, top) {
return {
@@ -228,4 +228,4 @@ export function scrollTopTimeline(timeline, top) {
timeline,
top,
};
};
}

View File

@@ -12,14 +12,14 @@ export function fetchTrends() {
dispatch(fetchTrendsSuccess(response.data));
}).catch(error => dispatch(fetchTrendsFail(error)));
};
};
}
export function fetchTrendsRequest() {
return {
type: TRENDS_FETCH_REQUEST,
skipLoading: true,
};
};
}
export function fetchTrendsSuccess(tags) {
return {
@@ -27,7 +27,7 @@ export function fetchTrendsSuccess(tags) {
tags,
skipLoading: true,
};
};
}
export function fetchTrendsFail(error) {
return {
@@ -36,4 +36,4 @@ export function fetchTrendsFail(error) {
skipLoading: true,
skipAlert: true,
};
};
}

View File

@@ -14,4 +14,4 @@ export default class ProgressBar extends ImmutablePureComponent {
);
}
};
}

View File

@@ -38,7 +38,7 @@ export default class StatusList extends ImmutablePureComponent {
componentDidMount() {
this.handleDequeueTimeline();
};
}
getFeaturedStatusCount = () => {
return this.props.featuredStatusIds ? this.props.featuredStatusIds.size : 0;

View File

@@ -93,7 +93,7 @@ class SoapboxMount extends React.PureComponent {
maybeUpdateMessages = prevProps => {
if (this.props.locale !== prevProps.locale) {
this.setMessages();
};
}
}
componentDidMount() {

View File

@@ -262,7 +262,7 @@ class Header extends ImmutablePureComponent {
}
return info;
};
}
render() {
const { account, intl, username, me } = this.props;

View File

@@ -81,6 +81,6 @@ class LatestAccountsPanel extends ImmutablePureComponent {
{...props}
/>
);
};
}
};
}

View File

@@ -82,6 +82,6 @@ class RegistrationModePicker extends ImmutablePureComponent {
</FieldsGroup>
</SimpleForm>
);
};
}
}

View File

@@ -40,7 +40,7 @@ class CaptchaField extends React.Component {
if (refreshInterval) {
const refresh = setInterval(this.fetchCaptcha, refreshInterval);
this.setState({ refresh });
};
}
}
endRefresh = () => {

View File

@@ -33,7 +33,7 @@ const timeChange = (prev, curr) => {
if (prevDate !== currDate) {
return currDate === nowDate ? 'today' : 'date';
};
}
return null;
};

View File

@@ -57,7 +57,7 @@ class ScheduleForm extends React.Component {
const selectedDate = new Date(time);
return fiveMinutesFromNow.getTime() < selectedDate.getTime();
};
}
handleRemove = e => {
this.props.dispatch(removeSchedule());

View File

@@ -6,4 +6,4 @@ export function countableText(inputText) {
return inputText
.replace(urlRegex, urlPlaceholder)
.replace(/(^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/ig, '$1@$3');
};
}

View File

@@ -70,4 +70,4 @@ class CryptoDonatePanel extends ImmutablePureComponent {
);
}
};
}

View File

@@ -100,16 +100,16 @@ class Filters extends ImmutablePureComponent {
if (home_timeline) {
context.push('home');
};
}
if (public_timeline) {
context.push('public');
};
}
if (notifications) {
context.push('notifications');
};
}
if (conversations) {
context.push('thread');
};
}
dispatch(createFilter(intl, phrase, expires_at, context, whole_word, irreversible)).then(response => {
return dispatch(fetchFilters());

View File

@@ -18,7 +18,7 @@ const mapStateToProps = (state, { params }) => {
statusIds: state.getIn(['status_lists', 'pins', 'items']),
hasMore: !!state.getIn(['status_lists', 'pins', 'next']),
};
};;
};
export default @connect(mapStateToProps)
@injectIntl

View File

@@ -87,4 +87,4 @@ class ScheduledStatus extends ImmutablePureComponent {
);
}
};
}

View File

@@ -51,6 +51,6 @@ export default class AccountListPanel extends ImmutablePureComponent {
</Link>}
</div>
);
};
}
};
}

View File

@@ -60,7 +60,7 @@ class FundingPanel extends ImmutablePureComponent {
);
}
};
}
const mapStateToProps = state => {
return {

View File

@@ -64,9 +64,9 @@ class ProfileMediaPanel extends ImmutablePureComponent {
}
</div>
);
};
}
};
}
const mapStateToProps = (state, { account }) => ({
attachments: getAccountGallery(state, account.get('id')),

View File

@@ -48,9 +48,9 @@ class TrendsPanel extends ImmutablePureComponent {
</div>
</div>
);
};
}
};
}
const mapStateToProps = state => ({

View File

@@ -89,7 +89,7 @@ class UserPanel extends ImmutablePureComponent {
);
}
};
}
const makeMapStateToProps = () => {
const getAccount = makeGetAccount();

View File

@@ -56,9 +56,9 @@ class WhoToFollowPanel extends ImmutablePureComponent {
</div>
</div>
);
};
}
};
}
const mapStateToProps = state => ({
suggestions: state.getIn(['suggestions', 'items']),

View File

@@ -6,7 +6,7 @@ const LAYOUT_BREAKPOINT = 630;
export function isMobile(width) {
return width <= LAYOUT_BREAKPOINT;
};
}
const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
@@ -26,4 +26,4 @@ export function isUserTouching() {
export function isIOS() {
return iOS;
};
}

View File

@@ -14,4 +14,4 @@ export default function errorsMiddleware() {
return next(action);
};
};
}

View File

@@ -22,4 +22,4 @@ export default function loadingBarMiddleware(config = {}) {
return next(action);
};
};
}

View File

@@ -55,4 +55,4 @@ export default function soundsMiddleware() {
return next(action);
};
};
}

View File

@@ -226,4 +226,4 @@ export default function accounts(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -49,4 +49,4 @@ export default function accountsCounters(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -147,4 +147,4 @@ export default function admin(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -40,4 +40,4 @@ export default function admin_log(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -23,4 +23,4 @@ export default function alerts(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -247,4 +247,4 @@ export default function auth(oldState = initialState, action) {
}
return state;
};
}

View File

@@ -24,4 +24,4 @@ export default function backups(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -63,4 +63,4 @@ export default function chatMessageLists(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -53,4 +53,4 @@ export default function chatMessages(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -30,4 +30,4 @@ export default function chats(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -93,7 +93,7 @@ function statusToTextMentions(state, status, account) {
.delete(account.get('acct'))
.map(m => `@${m} `)
.join('');
};
}
function clearAll(state) {
return state.withMutations(map => {
@@ -112,7 +112,7 @@ function clearAll(state) {
map.set('idempotencyKey', uuid());
map.set('schedule', null);
});
};
}
function appendMedia(state, media) {
const prevSize = state.get('media_attachments').size;
@@ -127,7 +127,7 @@ function appendMedia(state, media) {
map.set('sensitive', true);
}
});
};
}
function removeMedia(state, mediaId) {
const prevSize = state.get('media_attachments').size;
@@ -140,7 +140,7 @@ function removeMedia(state, mediaId) {
map.set('sensitive', false);
}
});
};
}
const insertSuggestion = (state, position, token, completion, path) => {
return state.withMutations(map => {
@@ -425,4 +425,4 @@ export default function compose(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -107,4 +107,4 @@ export default function replies(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -99,4 +99,4 @@ export default function conversations(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -30,4 +30,4 @@ export default function custom_emojis(state = initialState, action) {
}
return state;
};
}

View File

@@ -22,4 +22,4 @@ export default function domainLists(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -8,4 +8,4 @@ export default function filters(state = ImmutableList(), action) {
default:
return state;
}
};
}

View File

@@ -54,4 +54,4 @@ export default function groupEditorReducer(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -18,4 +18,4 @@ export default function groupLists(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -23,4 +23,4 @@ export default function group_relationships(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -30,4 +30,4 @@ export default function groups(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -20,4 +20,4 @@ export default function statuses(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -22,4 +22,4 @@ export default function identityProofsReducer(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -85,4 +85,4 @@ export default function instance(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -44,4 +44,4 @@ export default function listAdderReducer(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -93,4 +93,4 @@ export default function listEditorReducer(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -34,4 +34,4 @@ export default function lists(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -22,4 +22,4 @@ export default function me(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -37,4 +37,4 @@ export default function meta(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -22,4 +22,4 @@ export default function meta(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -14,4 +14,4 @@ export default function modal(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -179,4 +179,4 @@ export default function notifications(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -20,4 +20,4 @@ export default function patron(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -34,4 +34,4 @@ export default function push_subscriptions(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -120,4 +120,4 @@ export default function relationships(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -65,4 +65,4 @@ export default function reports(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -33,4 +33,4 @@ export default function statuses(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -62,4 +62,4 @@ export default function search(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -18,4 +18,4 @@ export default function security(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -38,4 +38,4 @@ export default function settings(state = initialState, action) {
default:
return state;
}
};
}

View File

@@ -9,4 +9,4 @@ export default function sidebar(state={}, action) {
default:
return state;
}
};
}

View File

@@ -49,4 +49,4 @@ export default function soapbox(state = initialState, action) {
default:
return state;
}
};
}

Some files were not shown because too many files have changed in this diff Show More