[Glitch] Run eslint --fix
I don't like it changing files this way, but it's basically what
c49213f0ea
and a few others did.
This commit is contained in:
@ -35,4 +35,4 @@ export default function accounts(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -35,4 +35,4 @@ export default function accountsCounters(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ export default function accountsMap(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -23,4 +23,4 @@ export default function alerts(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -99,4 +99,4 @@ export default function announcementsReducer(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ function statusToTextMentions(state, status) {
|
||||
}
|
||||
|
||||
return set.union(status.get('mentions').filterNot(mention => mention.get('id') === me).map(mention => `@${mention.get('acct')} `)).join('');
|
||||
};
|
||||
}
|
||||
|
||||
function apiStatusToTextMentions (state, status) {
|
||||
let set = ImmutableOrderedSet([]);
|
||||
@ -150,16 +150,16 @@ function apiStatusToTextMentions (state, status) {
|
||||
}
|
||||
|
||||
return set.union(status.mentions.filter(
|
||||
mention => mention.id !== me
|
||||
mention => mention.id !== me,
|
||||
).map(
|
||||
mention => `@${mention.acct} `
|
||||
mention => `@${mention.acct} `,
|
||||
)).join('');
|
||||
}
|
||||
|
||||
function apiStatusToTextHashtags (state, status) {
|
||||
const text = unescapeHTML(status.content);
|
||||
return ImmutableOrderedSet([]).union(recoverHashtags(status.tags, text).map(
|
||||
(name) => `#${name} `
|
||||
(name) => `#${name} `,
|
||||
)).join('');
|
||||
}
|
||||
|
||||
@ -175,7 +175,7 @@ function clearAll(state) {
|
||||
map.set('in_reply_to', null);
|
||||
map.update(
|
||||
'advanced_options',
|
||||
map => map.mergeWith(overwrite, state.get('default_advanced_options'))
|
||||
map => map.mergeWith(overwrite, state.get('default_advanced_options')),
|
||||
);
|
||||
map.set('privacy', state.get('default_privacy'));
|
||||
map.set('sensitive', state.get('default_sensitive'));
|
||||
@ -184,7 +184,7 @@ function clearAll(state) {
|
||||
map.set('poll', null);
|
||||
map.set('idempotencyKey', uuid());
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function continueThread (state, status) {
|
||||
return state.withMutations(function (map) {
|
||||
@ -202,7 +202,7 @@ function continueThread (state, status) {
|
||||
map.set('in_reply_to', status.id);
|
||||
map.update(
|
||||
'advanced_options',
|
||||
map => map.merge(new ImmutableMap({ do_not_federate: status.local_only }))
|
||||
map => map.merge(new ImmutableMap({ do_not_federate: status.local_only })),
|
||||
);
|
||||
map.set('privacy', status.visibility);
|
||||
map.set('sensitive', false);
|
||||
@ -233,7 +233,7 @@ function appendMedia(state, media, file) {
|
||||
map.set('sensitive', true);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function removeMedia(state, mediaId) {
|
||||
const prevSize = state.get('media_attachments').size;
|
||||
@ -246,7 +246,7 @@ function removeMedia(state, mediaId) {
|
||||
map.set('sensitive', false);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
const insertSuggestion = (state, position, token, completion, path) => {
|
||||
return state.withMutations(map => {
|
||||
@ -414,7 +414,7 @@ export default function compose(state = initialState, action) {
|
||||
map.set('privacy', privacyPreference(action.status.get('visibility'), state.get('default_privacy')));
|
||||
map.update(
|
||||
'advanced_options',
|
||||
map => map.merge(new ImmutableMap({ do_not_federate: !!action.status.get('local_only') }))
|
||||
map => map.merge(new ImmutableMap({ do_not_federate: !!action.status.get('local_only') })),
|
||||
);
|
||||
map.set('focusDate', new Date());
|
||||
map.set('caretPosition', null);
|
||||
@ -453,7 +453,7 @@ export default function compose(state = initialState, action) {
|
||||
map.set('poll', null);
|
||||
map.update(
|
||||
'advanced_options',
|
||||
map => map.mergeWith(overwrite, state.get('default_advanced_options'))
|
||||
map => map.mergeWith(overwrite, state.get('default_advanced_options')),
|
||||
);
|
||||
map.set('idempotencyKey', uuid());
|
||||
});
|
||||
@ -575,7 +575,7 @@ export default function compose(state = initialState, action) {
|
||||
map.set('language', action.status.get('language'));
|
||||
map.update(
|
||||
'advanced_options',
|
||||
map => map.merge(new ImmutableMap({ do_not_federate }))
|
||||
map => map.merge(new ImmutableMap({ do_not_federate })),
|
||||
);
|
||||
map.set('id', null);
|
||||
|
||||
@ -646,4 +646,4 @@ export default function compose(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ const deleteFromContexts = (immutableState, ids) => immutableState.withMutations
|
||||
|
||||
const filterContexts = (state, relationship, statuses) => {
|
||||
const ownedStatusIds = statuses.filter(status => status.get('account') === relationship.id)
|
||||
.map(status => status.get('id'));
|
||||
.map(status => status.get('id'));
|
||||
|
||||
return deleteFromContexts(state, ownedStatusIds);
|
||||
};
|
||||
@ -102,4 +102,4 @@ export default function replies(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -113,4 +113,4 @@ export default function conversations(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -12,4 +12,4 @@ export default function custom_emojis(state = initialState, action) {
|
||||
}
|
||||
|
||||
return state;
|
||||
};
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ export default function domainLists(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -41,4 +41,4 @@ export default function filters(state = ImmutableMap(), action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -20,4 +20,4 @@ export default function statuses(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ export default function listAdderReducer(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -54,10 +54,10 @@ export default function listEditorReducer(state = initialState, action) {
|
||||
});
|
||||
case LIST_CREATE_REQUEST:
|
||||
case LIST_UPDATE_REQUEST:
|
||||
return state.withMutations(map => {
|
||||
map.set('isSubmitting', true);
|
||||
map.set('isChanged', false);
|
||||
});
|
||||
return state.withMutations(map => {
|
||||
map.set('isSubmitting', true);
|
||||
map.set('isChanged', false);
|
||||
});
|
||||
case LIST_CREATE_FAIL:
|
||||
case LIST_UPDATE_FAIL:
|
||||
return state.set('isSubmitting', false);
|
||||
@ -93,4 +93,4 @@ export default function listEditorReducer(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -34,4 +34,4 @@ export default function lists(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -78,4 +78,4 @@ export default function localSettings(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ export default function markers(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -12,4 +12,4 @@ export default function meta(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -15,12 +15,12 @@ export default function meta(state = initialState, action) {
|
||||
case STORE_HYDRATE:
|
||||
return state.merge(
|
||||
action.state.get('meta'))
|
||||
.set('permissions', action.state.getIn(['role', 'permissions']))
|
||||
.set('layout', layoutFromWindow(action.state.getIn(['local_settings', 'layout']))
|
||||
.set('permissions', action.state.getIn(['role', 'permissions']))
|
||||
.set('layout', layoutFromWindow(action.state.getIn(['local_settings', 'layout'])),
|
||||
);
|
||||
case APP_LAYOUT_CHANGE:
|
||||
return state.set('layout', action.layout);
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -36,4 +36,4 @@ export default function modal(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -371,4 +371,4 @@ export default function notifications(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ export default function pictureInPicture(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ export default function listEditorReducer(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -50,4 +50,4 @@ export default function push_subscriptions(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -82,4 +82,4 @@ export default function relationships(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -64,4 +64,4 @@ export default function search(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -176,4 +176,4 @@ export default function settings(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -145,4 +145,4 @@ export default function statusLists(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -94,4 +94,4 @@ export default function statuses(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -34,4 +34,4 @@ export default function suggestionsReducer(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ export default function tags(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -229,4 +229,4 @@ export default function timelines(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ export default function trendsReducer(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -187,4 +187,4 @@ export default function userLists(state = initialState, action) {
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user