From 12840f2428b806e9d282653d005643687b23667c Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Mon, 28 Dec 2020 10:50:59 -0700 Subject: [PATCH] Teams (#64) * Teams * Fix errors on versions with no files --- assets/images/sidebar/notifications.svg | 1 + components/DashboardPage.vue | 6 + components/ModPage.vue | 18 +- layouts/default.vue | 8 + nuxt.config.js | 1 + package-lock.json | 167 ++++++++- package.json | 1 + pages/dashboard/misc/revoke-token.vue | 8 +- pages/dashboard/notifications.vue | 146 ++++++++ pages/mod/_id/index.vue | 14 +- pages/mod/_id/settings.vue | 436 ++++++++++++++++++++++-- pages/mod/_id/version/_version.vue | 37 +- pages/mod/_id/versions.vue | 24 +- pages/mod/create.vue | 2 +- 14 files changed, 787 insertions(+), 82 deletions(-) create mode 100644 assets/images/sidebar/notifications.svg create mode 100644 pages/dashboard/notifications.vue diff --git a/assets/images/sidebar/notifications.svg b/assets/images/sidebar/notifications.svg new file mode 100644 index 000000000..10a94ed92 --- /dev/null +++ b/assets/images/sidebar/notifications.svg @@ -0,0 +1 @@ + diff --git a/components/DashboardPage.vue b/components/DashboardPage.vue index f329c0b89..b90e6a6d1 100644 --- a/components/DashboardPage.vue +++ b/components/DashboardPage.vue @@ -7,6 +7,10 @@ My mods + + + Notifications + -

{{ mod.title }}

+

{{ mod.title }}

{{ mod.description }}

@@ -60,20 +60,14 @@ Source Edit @@ -280,6 +274,12 @@ export default { return [] }, }, + currentMember: { + type: Object, + default() { + return null + }, + }, }, methods: { formatNumber(x) { diff --git a/layouts/default.vue b/layouts/default.vue index 24c22d65d..dec74b0a0 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -47,6 +47,12 @@ Profile +
  • + + + Notifications + +