From: Dessalines Date: Sun, 2 Feb 2020 19:37:19 +0000 (-0500) Subject: Merge branch 'dev' into websocket_scopes X-Git-Url: http://these/git/readmes/%24%7B%60data:application/%7BpictrsAvatarThumbnail%28community.icon%29%7D?a=commitdiff_plain;h=caba049da12017f22a8ffa8d6b8e7f0a2cc20e6a;p=lemmy.git Merge branch 'dev' into websocket_scopes --- caba049da12017f22a8ffa8d6b8e7f0a2cc20e6a diff --cc ui/src/components/community.tsx index 18767c51,da456fe5..9f96ac51 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@@ -23,8 -21,13 +23,7 @@@ import { WebSocketService, UserService import { PostListings } from './post-listings'; import { SortSelect } from './sort-select'; import { Sidebar } from './sidebar'; -import { - wsJsonToRes, - routeSortTypeToEnum, - fetchLimit, - postRefetchSeconds, - toast, -} from '../utils'; +import { wsJsonToRes, routeSortTypeToEnum, fetchLimit, toast } from '../utils'; - import { T } from 'inferno-i18next'; import { i18n } from '../i18next'; interface State { diff --cc ui/src/components/footer.tsx index 5451da2c,f48120b8..cadb6aa3 --- a/ui/src/components/footer.tsx +++ b/ui/src/components/footer.tsx @@@ -19,22 -19,22 +19,22 @@@ export class Footer extends Component diff --cc ui/src/components/main.tsx index ec801f90,b39cec8b..ed31fff4 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@@ -276,52 -279,27 +278,27 @@@ export class Main extends Component
  • - - # - - {i18n.t('number_online', { count: this.state.site.online })} ++ {i18n.t('number_online', { count: this.state.siteRes.online })}
  • - - # - + {i18n.t('number_of_users', { - count: this.state.site.site.number_of_users, ++ count: this.state.siteRes.site.number_of_users, + })}
  • - - # - + {i18n.t('number_of_communities', { - count: this.state.site.site.number_of_communities, ++ count: this.state.siteRes.site.number_of_communities, + })}
  • - - # - + {i18n.t('number_of_posts', { - count: this.state.site.site.number_of_posts, ++ count: this.state.siteRes.site.number_of_posts, + })}
  • - - # - + {i18n.t('number_of_comments', { - count: this.state.site.site.number_of_comments, ++ count: this.state.siteRes.site.number_of_comments, + })}
  • @@@ -330,13 -308,8 +307,8 @@@