464ea862b1
* Re-organizing federation tests. #746 #1040 * Adding federation support for user bios. Fixes #992 * Adding icons, banners, and preferred usernames. - Added optional community icons, and community banners. - Added user banners. - Added Site icon and banner, with custom favicon. - Set up preferred usernames. Fixes #1017 - Added an additional post sort: Active - Hot rank now uses the published time. - Active uses the most recent comment time, and is default. - DB Migration was required to add all these fields to the views. - Added transfercommunity helper function. - Removed title column from communities page. - Abstracted an image-upload-form.tsx, and a banner-icon-header.tsx - Fixes #899 * Some navbar fixes. * Fixing css * Some fixes. - Showing correct user icon and banner after save without page reload. - Abstracting diesel update overwrite. - Adding some docs. * Adding @ when a user doesn't have a preferred username.
30 lines
709 B
TypeScript
Vendored
30 lines
709 B
TypeScript
Vendored
import { Component } from 'inferno';
|
|
|
|
interface BannerIconHeaderProps {
|
|
banner?: string;
|
|
icon?: string;
|
|
}
|
|
|
|
export class BannerIconHeader extends Component<BannerIconHeaderProps, any> {
|
|
constructor(props: any, context: any) {
|
|
super(props, context);
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div class="position-relative mb-2">
|
|
{this.props.banner && (
|
|
<img src={this.props.banner} class="banner img-fluid" />
|
|
)}
|
|
{this.props.icon && (
|
|
<img
|
|
src={this.props.icon}
|
|
className={`ml-2 mb-0 ${
|
|
this.props.banner ? 'avatar-pushup' : ''
|
|
} rounded-circle avatar-overlay`}
|
|
/>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|
|
}
|