From 0e26eed9b5d46e9510b403cc0f5ebf0b49bb42e6 Mon Sep 17 00:00:00 2001 From: MiniDigger Date: Sat, 13 Mar 2021 17:40:57 +0100 Subject: [PATCH] userlist, announcement and other misc stuff Signed-off-by: MiniDigger --- frontend/assets/main.scss | 1 + frontend/assets/utils.scss | 5 +++ frontend/components/MarkdownEditor.vue | 1 - frontend/components/MemberList.vue | 40 +++++++++++++++++-- frontend/components/UserAvatar.vue | 4 -- frontend/components/UserSelectionForm.vue | 24 +++++++---- frontend/components/layouts/Footer.vue | 3 +- frontend/components/layouts/Header.vue | 1 - frontend/layouts/default.vue | 17 ++++---- frontend/locales/en.ts | 1 + frontend/pages/_author/_slug/index.vue | 18 +++++---- frontend/pages/_author/_slug/settings.vue | 21 +++++++--- frontend/types/internal/projects.d.ts | 14 ++++++- .../hangar/config/hangar/HangarConfig.java | 2 +- .../internal/BackendDataController.java | 7 ++++ .../{modelold => model}/Announcement.java | 2 +- .../model/common/roles/OrganizationRole.java | 3 ++ .../model/common/roles/ProjectRole.java | 3 ++ .../model/db/roles/ExtendedRoleTable.java | 2 + 19 files changed, 124 insertions(+), 45 deletions(-) rename src/main/java/io/papermc/hangar/{modelold => model}/Announcement.java (97%) diff --git a/frontend/assets/main.scss b/frontend/assets/main.scss index 29ed3abf..d12724be 100644 --- a/frontend/assets/main.scss +++ b/frontend/assets/main.scss @@ -1,4 +1,5 @@ @import '~vuetify/src/styles/styles.sass'; +@import 'utils'; .text-transform-unset { text-transform: unset; diff --git a/frontend/assets/utils.scss b/frontend/assets/utils.scss index 7411b5c2..af55f023 100644 --- a/frontend/assets/utils.scss +++ b/frontend/assets/utils.scss @@ -7,3 +7,8 @@ @mixin basic-border() { border: 1px solid $lighter; } + +.flex-right { + margin-left: auto; + order: 2; +} diff --git a/frontend/components/MarkdownEditor.vue b/frontend/components/MarkdownEditor.vue index 349b90bc..e5d707f4 100644 --- a/frontend/components/MarkdownEditor.vue +++ b/frontend/components/MarkdownEditor.vue @@ -117,7 +117,6 @@ export default class MarkdownEditor extends Vue { diff --git a/frontend/components/UserAvatar.vue b/frontend/components/UserAvatar.vue index 170ea82e..fb8a73e5 100644 --- a/frontend/components/UserAvatar.vue +++ b/frontend/components/UserAvatar.vue @@ -29,10 +29,6 @@ export default class UserAvatar extends Vue { @Prop() clazz!: PropType<'user-avatar-md' | 'user-avatar-sm' | 'user-avatar-xs'>; - // attribute map // TODO implement - @Prop() - attr!: Object; - @Prop() href!: String; diff --git a/frontend/components/UserSelectionForm.vue b/frontend/components/UserSelectionForm.vue index c51cd46e..6c2e05e0 100644 --- a/frontend/components/UserSelectionForm.vue +++ b/frontend/components/UserSelectionForm.vue @@ -1,10 +1,9 @@