From 26488b793aed3a10437070a1599fb972f3274693 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Thu, 31 Dec 2020 12:12:11 -0700 Subject: [PATCH] Teams (#67) * Teams * Fix errors on versions with no files * Fix user lookup * Fix mod pages breaking --- layouts/default.vue | 70 ++--------------------------------------- pages/index.vue | 6 +++- pages/mod/_id/index.vue | 2 +- 3 files changed, 8 insertions(+), 70 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 1eec8763b..21c1c41a5 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -53,12 +53,12 @@ Notifications -
  • - - -
    @@ -161,18 +111,12 @@ import ModrinthLogo from '~/assets/images/text-logo.svg?inline' import ModrinthLogoWhite from '~/assets/images/text-logo-white.svg?inline' import NotificationIcon from '~/assets/images/sidebar/notifications.svg?inline' -import ModpackIcon from '~/assets/images/sidebar/modpack.svg?inline' -import ProjectsIcon from '~/assets/images/sidebar/projects.svg?inline' -import AnalyticsIcon from '~/assets/images/sidebar/analytics.svg?inline' import DropdownIcon from '~/assets/images/utils/dropdown.svg?inline' -import HamburgerIcon from '~/assets/images/utils/hamburger.svg?inline' -import ExitIcon from '~/assets/images/utils/exit.svg?inline' import MoonIcon from '~/assets/images/utils/moon.svg?inline' import SunIcon from '~/assets/images/utils/sun.svg?inline' import UserIcon from '~/assets/images/utils/user.svg?inline' -import UsersIcon from '~/assets/images/utils/users.svg?inline' import LogOutIcon from '~/assets/images/utils/log-out.svg?inline' import GitHubIcon from '~/assets/images/utils/github.svg?inline' @@ -180,16 +124,10 @@ export default { components: { ModrinthLogo, ModrinthLogoWhite, - ModpackIcon, - ProjectsIcon, - AnalyticsIcon, DropdownIcon, - HamburgerIcon, - ExitIcon, MoonIcon, SunIcon, UserIcon, - UsersIcon, LogOutIcon, GitHubIcon, NotificationIcon, @@ -204,7 +142,6 @@ export default { }, data() { return { - isNavOpen: false, isDropdownOpen: false, } }, @@ -223,9 +160,6 @@ export default { this.themeAds() }, methods: { - toggleNav() { - this.isNavOpen = !this.isNavOpen - }, toggleDropdown() { this.isDropdownOpen = !this.isDropdownOpen }, diff --git a/pages/index.vue b/pages/index.vue index c49a959ad..90553aeee 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -149,7 +149,11 @@

    Modrinth's code is fully open source licensed under AGPL. We've created a high peformant Rust based backend that is - fully documented + fully documented for all kinds of tools to use. Our team is dedicated to maintaining an open source ecosystem for all Modrinth applications.

    diff --git a/pages/mod/_id/index.vue b/pages/mod/_id/index.vue index 6e0fb66d3..ab8abaeab 100644 --- a/pages/mod/_id/index.vue +++ b/pages/mod/_id/index.vue @@ -57,7 +57,7 @@ export default { ).data users.forEach((it) => { - const index = members.findIndex((x) => x.user_id === it.user_id) + const index = members.findIndex((x) => x.user_id === it.id) members[index].avatar_url = it.avatar_url members[index].name = it.username })