From d829b9b5aca04ccf2d79e7fb17da8ff15fb888e0 Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 31 Jan 2020 21:52:27 +0100 Subject: [PATCH] usability features This are all the commits from another PR combined into a single commit. --- ui/src/components/communities.tsx | 25 ++++---- ui/src/components/community-form.tsx | 28 +++++---- ui/src/components/community.tsx | 12 ++-- ui/src/components/create-community.tsx | 2 +- ui/src/components/create-post.tsx | 2 +- ui/src/components/footer.tsx | 10 ++-- ui/src/components/inbox.tsx | 26 +++++---- ui/src/components/login.tsx | 53 ++++++++++------- ui/src/components/main.tsx | 10 ++-- ui/src/components/modlog.tsx | 14 ++--- ui/src/components/navbar.tsx | 13 +++-- ui/src/components/password_change.tsx | 2 +- ui/src/components/post-form.tsx | 40 +++++++------ ui/src/components/post-listing.tsx | 49 ++++++++-------- ui/src/components/post-listings.tsx | 11 ++-- ui/src/components/post.tsx | 27 ++------- ui/src/components/search.tsx | 22 +++---- ui/src/components/setup.tsx | 27 +++++---- ui/src/components/sidebar.tsx | 21 +++---- ui/src/components/site-form.tsx | 27 +++++---- ui/src/components/sort-select.tsx | 18 +++--- ui/src/components/sponsors.tsx | 16 ++--- ui/src/components/user.tsx | 81 ++++++++++++++------------ ui/src/translations/de.ts | 64 ++++++++++---------- ui/src/translations/en.ts | 2 + 25 files changed, 316 insertions(+), 286 deletions(-) diff --git a/ui/src/components/communities.tsx b/ui/src/components/communities.tsx index b1da9882..eef39ccf 100644 --- a/ui/src/components/communities.tsx +++ b/ui/src/components/communities.tsx @@ -76,37 +76,37 @@ export class Communities extends Component { return (
{this.state.loading ? ( -
+

-

+

) : (
- # + { i18n.t('list_of_communities') }
@@ -149,7 +149,7 @@ export class Communities extends Component { this.handleSubscribe )} > - # + { i18n.t('subscribe') } )} @@ -173,15 +173,16 @@ export class Communities extends Component { class="btn btn-sm btn-secondary mr-1" onClick={linkEvent(this, this.prevPage)} > - # + { i18n.t('prev') } )} + {this.state.communities.length == communityLimit && ( )} diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index c8d888be..46fc4185 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -108,12 +108,13 @@ export class CommunityForm extends Component< return (
-
+
-
- # + { i18n.t('name') } - # + { i18n.t('title') } - # + { i18n.t('category') } - # + { i18n.t('subscribers') } - # + { i18n.t('posts') } - # + { i18n.t('comments') }