mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-05 06:00:31 +00:00
parent
ce35c3f16e
commit
51d6aaaf25
@ -45,6 +45,7 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
document.title = "Forums - Lemmy";
|
||||||
let table = document.querySelector('#community_table');
|
let table = document.querySelector('#community_table');
|
||||||
Sortable.initTable(table);
|
Sortable.initTable(table);
|
||||||
}
|
}
|
||||||
@ -55,7 +56,7 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||||||
{this.state.loading ?
|
{this.state.loading ?
|
||||||
<h5 class=""><svg class="icon icon-spinner spin"><use xlinkHref="#icon-spinner"></use></svg></h5> :
|
<h5 class=""><svg class="icon icon-spinner spin"><use xlinkHref="#icon-spinner"></use></svg></h5> :
|
||||||
<div>
|
<div>
|
||||||
<h5>Communities</h5>
|
<h5>Forums</h5>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="community_table" class="table table-sm table-hover">
|
<table id="community_table" class="table table-sm table-hover">
|
||||||
<thead class="pointer">
|
<thead class="pointer">
|
||||||
|
@ -99,6 +99,7 @@ export class Community extends Component<any, State> {
|
|||||||
this.state.moderators = res.moderators;
|
this.state.moderators = res.moderators;
|
||||||
this.state.admins = res.admins;
|
this.state.admins = res.admins;
|
||||||
this.state.loading = false;
|
this.state.loading = false;
|
||||||
|
document.title = `/f/${this.state.community.name} - Lemmy`;
|
||||||
this.setState(this.state);
|
this.setState(this.state);
|
||||||
} else if (op == UserOperation.EditCommunity) {
|
} else if (op == UserOperation.EditCommunity) {
|
||||||
let res: CommunityResponse = msg;
|
let res: CommunityResponse = msg;
|
||||||
|
@ -8,6 +8,10 @@ export class CreateCommunity extends Component<any, any> {
|
|||||||
this.handleCommunityCreate = this.handleCommunityCreate.bind(this);
|
this.handleCommunityCreate = this.handleCommunityCreate.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = "Create Forum - Lemmy";
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -8,6 +8,10 @@ export class CreatePost extends Component<any, any> {
|
|||||||
this.handlePostCreate = this.handlePostCreate.bind(this);
|
this.handlePostCreate = this.handlePostCreate.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = "Create Post - Lemmy";
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -14,6 +14,10 @@ export class Home extends Component<any, any> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = "Lemmy";
|
||||||
|
}
|
||||||
|
|
||||||
listType(): ListingType {
|
listType(): ListingType {
|
||||||
return (this.props.match.path == '/all') ? ListingType.All : ListingType.Subscribed;
|
return (this.props.match.path == '/all') ? ListingType.All : ListingType.Subscribed;
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,10 @@ export class Inbox extends Component<any, InboxState> {
|
|||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = `/u/${UserService.Instance.user.username} Inbox - Lemmy`;
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let user = UserService.Instance.user;
|
let user = UserService.Instance.user;
|
||||||
return (
|
return (
|
||||||
|
@ -48,6 +48,10 @@ export class Login extends Component<any, State> {
|
|||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = "Login - Lemmy";
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -44,6 +44,10 @@ export class Modlog extends Component<any, ModlogState> {
|
|||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = "Modlog - Lemmy";
|
||||||
|
}
|
||||||
|
|
||||||
setCombined(res: GetModlogResponse) {
|
setCombined(res: GetModlogResponse) {
|
||||||
let removed_posts = addTypeInfo(res.removed_posts, "removed_posts");
|
let removed_posts = addTypeInfo(res.removed_posts, "removed_posts");
|
||||||
let locked_posts = addTypeInfo(res.locked_posts, "locked_posts");
|
let locked_posts = addTypeInfo(res.locked_posts, "locked_posts");
|
||||||
|
@ -232,6 +232,7 @@ export class Post extends Component<any, PostState> {
|
|||||||
this.state.moderators = res.moderators;
|
this.state.moderators = res.moderators;
|
||||||
this.state.admins = res.admins;
|
this.state.admins = res.admins;
|
||||||
this.state.loading = false;
|
this.state.loading = false;
|
||||||
|
document.title = `${this.state.post.name} - Lemmy`;
|
||||||
this.setState(this.state);
|
this.setState(this.state);
|
||||||
} else if (op == UserOperation.CreateComment) {
|
} else if (op == UserOperation.CreateComment) {
|
||||||
let res: CommentResponse = msg;
|
let res: CommentResponse = msg;
|
||||||
|
@ -45,6 +45,10 @@ export class Setup extends Component<any, State> {
|
|||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = "Setup - Lemmy";
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -294,6 +294,7 @@ export class User extends Component<any, UserState> {
|
|||||||
this.state.follows = res.follows;
|
this.state.follows = res.follows;
|
||||||
this.state.moderates = res.moderates;
|
this.state.moderates = res.moderates;
|
||||||
this.state.posts = res.posts;
|
this.state.posts = res.posts;
|
||||||
|
document.title = `/u/${this.state.user.name} - Lemmy`;
|
||||||
this.setState(this.state);
|
this.setState(this.state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user