}
componentDidMount() {
+ document.title = "Forums - Lemmy";
let table = document.querySelector('#community_table');
Sortable.initTable(table);
}
{this.state.loading ?
<h5 class=""><svg class="icon icon-spinner spin"><use xlinkHref="#icon-spinner"></use></svg></h5> :
<div>
- <h5>Communities</h5>
+ <h5>Forums</h5>
<div class="table-responsive">
<table id="community_table" class="table table-sm table-hover">
<thead class="pointer">
this.state.moderators = res.moderators;
this.state.admins = res.admins;
this.state.loading = false;
+ document.title = `/f/${this.state.community.name} - Lemmy`;
this.setState(this.state);
} else if (op == UserOperation.EditCommunity) {
let res: CommunityResponse = msg;
this.handleCommunityCreate = this.handleCommunityCreate.bind(this);
}
+ componentDidMount() {
+ document.title = "Create Forum - Lemmy";
+ }
+
render() {
return (
<div class="container">
this.handlePostCreate = this.handlePostCreate.bind(this);
}
+ componentDidMount() {
+ document.title = "Create Post - Lemmy";
+ }
+
render() {
return (
<div class="container">
)
}
+ componentDidMount() {
+ document.title = "Lemmy";
+ }
+
listType(): ListingType {
return (this.props.match.path == '/all') ? ListingType.All : ListingType.Subscribed;
}
this.subscription.unsubscribe();
}
+ componentDidMount() {
+ document.title = `/u/${UserService.Instance.user.username} Inbox - Lemmy`;
+ }
+
render() {
let user = UserService.Instance.user;
return (
this.subscription.unsubscribe();
}
+ componentDidMount() {
+ document.title = "Login - Lemmy";
+ }
+
render() {
return (
<div class="container">
this.subscription.unsubscribe();
}
+ componentDidMount() {
+ document.title = "Modlog - Lemmy";
+ }
+
setCombined(res: GetModlogResponse) {
let removed_posts = addTypeInfo(res.removed_posts, "removed_posts");
let locked_posts = addTypeInfo(res.locked_posts, "locked_posts");
this.state.moderators = res.moderators;
this.state.admins = res.admins;
this.state.loading = false;
+ document.title = `${this.state.post.name} - Lemmy`;
this.setState(this.state);
} else if (op == UserOperation.CreateComment) {
let res: CommentResponse = msg;
this.subscription.unsubscribe();
}
+ componentDidMount() {
+ document.title = "Setup - Lemmy";
+ }
+
render() {
return (
<div class="container">
this.state.follows = res.follows;
this.state.moderates = res.moderates;
this.state.posts = res.posts;
+ document.title = `/u/${this.state.user.name} - Lemmy`;
this.setState(this.state);
}
}