Merge branch 'edit-profile-resizing' into 'develop'
EditProfile: resize avatar/banner in browser, improve error messages See merge request soapbox-pub/soapbox-fe!796
This commit is contained in:
commit
5e267635c6
|
@ -125,9 +125,9 @@
|
|||
"edit_profile.fields.meta_fields.content_placeholder": "Content",
|
||||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
@ -603,9 +603,9 @@
|
|||
"edit_profile.fields.meta_fields.content_placeholder": "Content",
|
||||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -901,6 +901,7 @@ export function updateNotificationSettings(params) {
|
|||
dispatch({ type: NOTIFICATION_SETTINGS_SUCCESS, params, data });
|
||||
}).catch(error => {
|
||||
dispatch({ type: NOTIFICATION_SETTINGS_FAIL, params, error });
|
||||
throw error;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ export function patchMe(params) {
|
|||
dispatch(patchMeSuccess(response.data));
|
||||
}).catch(error => {
|
||||
dispatch(patchMeFail(error));
|
||||
throw error;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
@ -101,5 +102,6 @@ export function patchMeFail(error) {
|
|||
return {
|
||||
type: ME_PATCH_FAIL,
|
||||
error,
|
||||
skipAlert: true,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ import { isVerified } from 'soapbox/utils/accounts';
|
|||
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
||||
import { getFeatures } from 'soapbox/utils/features';
|
||||
import { makeGetAccount } from 'soapbox/selectors';
|
||||
import resizeImage from 'soapbox/utils/resize_image';
|
||||
|
||||
const hidesNetwork = account => {
|
||||
const pleroma = account.get('pleroma');
|
||||
|
@ -42,6 +43,7 @@ const messages = defineMessages({
|
|||
metaFieldContent: { id: 'edit_profile.fields.meta_fields.content_placeholder', defaultMessage: 'Content' },
|
||||
verified: { id: 'edit_profile.fields.verified_display_name', defaultMessage: 'Verified users may not update their display name' },
|
||||
success: { id: 'edit_profile.success', defaultMessage: 'Profile saved!' },
|
||||
error: { id: 'edit_profile.error', defaultMessage: 'Profile update failed' },
|
||||
bioPlaceholder: { id: 'edit_profile.fields.bio_placeholder', defaultMessage: 'Tell us about yourself.' },
|
||||
displayNamePlaceholder: { id: 'edit_profile.fields.display_name_placeholder', defaultMessage: 'Name' },
|
||||
});
|
||||
|
@ -178,6 +180,7 @@ class EditProfile extends ImmutablePureComponent {
|
|||
dispatch(snackbar.success(intl.formatMessage(messages.success)));
|
||||
}).catch((error) => {
|
||||
this.setState({ isLoading: false });
|
||||
dispatch(snackbar.error(intl.formatMessage(messages.error)));
|
||||
});
|
||||
|
||||
event.preventDefault();
|
||||
|
@ -199,15 +202,20 @@ class EditProfile extends ImmutablePureComponent {
|
|||
};
|
||||
}
|
||||
|
||||
handleFileChange = e => {
|
||||
handleFileChange = maxPixels => {
|
||||
return e => {
|
||||
const { name } = e.target;
|
||||
const [file] = e.target.files || [];
|
||||
const [f] = e.target.files || [];
|
||||
|
||||
resizeImage(f, maxPixels).then(file => {
|
||||
const url = file ? URL.createObjectURL(file) : this.state[name];
|
||||
|
||||
this.setState({
|
||||
[name]: url,
|
||||
[`${name}_file`]: file,
|
||||
});
|
||||
}).catch(console.error);
|
||||
};
|
||||
}
|
||||
|
||||
handleAddField = () => {
|
||||
|
@ -262,14 +270,14 @@ class EditProfile extends ImmutablePureComponent {
|
|||
<FileChooser
|
||||
label={<FormattedMessage id='edit_profile.fields.header_label' defaultMessage='Header' />}
|
||||
name='header'
|
||||
hint={<FormattedMessage id='edit_profile.hints.header' defaultMessage='PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px' />}
|
||||
onChange={this.handleFileChange}
|
||||
hint={<FormattedMessage id='edit_profile.hints.header' defaultMessage='PNG, GIF or JPG. Will be downscaled to {size}' values={{ size: '1920x1080px' }} />}
|
||||
onChange={this.handleFileChange(1920 * 1080)}
|
||||
/>
|
||||
<FileChooser
|
||||
label={<FormattedMessage id='edit_profile.fields.avatar_label' defaultMessage='Avatar' />}
|
||||
name='avatar'
|
||||
hint={<FormattedMessage id='edit_profile.hints.avatar' defaultMessage='PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px' />}
|
||||
onChange={this.handleFileChange}
|
||||
hint={<FormattedMessage id='edit_profile.hints.avatar' defaultMessage='PNG, GIF or JPG. Will be downscaled to {size}' values={{ size: '400x400px' }} />}
|
||||
onChange={this.handleFileChange(400 * 400)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -1812,7 +1812,7 @@
|
|||
"id": "edit_profile.fields.header_label"
|
||||
},
|
||||
{
|
||||
"defaultMessage": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"defaultMessage": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"id": "edit_profile.hints.header"
|
||||
},
|
||||
{
|
||||
|
@ -1820,7 +1820,7 @@
|
|||
"id": "edit_profile.fields.avatar_label"
|
||||
},
|
||||
{
|
||||
"defaultMessage": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"defaultMessage": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"id": "edit_profile.hints.avatar"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -234,9 +234,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -231,9 +231,9 @@
|
|||
"edit_profile.fields.meta_fields.label_placeholder": "Label",
|
||||
"edit_profile.fields.meta_fields_label": "Profile metadata",
|
||||
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
|
||||
"edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
|
||||
"edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
|
||||
"edit_profile.hints.locked": "Requires you to manually approve followers",
|
||||
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
|
||||
"edit_profile.save": "Save",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* eslint-disable no-case-declarations */
|
||||
const MAX_IMAGE_PIXELS = 2073600; // 1920x1080px
|
||||
const DEFAULT_MAX_PIXELS = 1920 * 1080;
|
||||
|
||||
const _browser_quirks = {};
|
||||
|
||||
|
@ -155,12 +155,12 @@ const processImage = (img, { width, height, orientation, type = 'image/png', nam
|
|||
}, type);
|
||||
});
|
||||
|
||||
const resizeImage = (img, inputFile) => new Promise((resolve, reject) => {
|
||||
const resizeImage = (img, inputFile, maxPixels) => new Promise((resolve, reject) => {
|
||||
const { width, height } = img;
|
||||
const type = inputFile.type || 'image/png';
|
||||
|
||||
const newWidth = Math.round(Math.sqrt(MAX_IMAGE_PIXELS * (width / height)));
|
||||
const newHeight = Math.round(Math.sqrt(MAX_IMAGE_PIXELS * (height / width)));
|
||||
const newWidth = Math.round(Math.sqrt(maxPixels * (width / height)));
|
||||
const newHeight = Math.round(Math.sqrt(maxPixels * (height / width)));
|
||||
|
||||
checkCanvasReliability()
|
||||
.then(getOrientation(img, type))
|
||||
|
@ -175,19 +175,19 @@ const resizeImage = (img, inputFile) => new Promise((resolve, reject) => {
|
|||
.catch(reject);
|
||||
});
|
||||
|
||||
export default inputFile => new Promise((resolve) => {
|
||||
export default (inputFile, maxPixels = DEFAULT_MAX_PIXELS) => new Promise((resolve) => {
|
||||
if (!inputFile.type.match(/image.*/) || inputFile.type === 'image/gif') {
|
||||
resolve(inputFile);
|
||||
return;
|
||||
}
|
||||
|
||||
loadImage(inputFile).then(img => {
|
||||
if (img.width * img.height < MAX_IMAGE_PIXELS) {
|
||||
if (img.width * img.height < maxPixels) {
|
||||
resolve(inputFile);
|
||||
return;
|
||||
}
|
||||
|
||||
resizeImage(img, inputFile)
|
||||
resizeImage(img, inputFile, maxPixels)
|
||||
.then(resolve)
|
||||
.catch(() => resolve(inputFile));
|
||||
}).catch(() => resolve(inputFile));
|
||||
|
|
Loading…
Reference in New Issue