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

eslint: no-extra-semi

See merge request soapbox-pub/soapbox-fe!660
groups
Alex Gleason 2021-08-03 19:24:53 +00:00
commit ad2db4e7bc
111 zmienionych plików z 482 dodań i 480 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

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