diff --git a/assets/styles/components.scss b/assets/styles/components.scss index e83f3fb9a..e36763a72 100644 --- a/assets/styles/components.scss +++ b/assets/styles/components.scss @@ -79,6 +79,7 @@ img { max-width: 100%; + height: auto; } pre { diff --git a/components/ModPage.vue b/components/ModPage.vue index 389758bdf..bbe2b6018 100644 --- a/components/ModPage.vue +++ b/components/ModPage.vue @@ -59,13 +59,6 @@ Source - - Edit - - Edit + Settings diff --git a/pages/dashboard/settings.vue b/pages/dashboard/settings.vue index c178a1905..4499ba252 100644 --- a/pages/dashboard/settings.vue +++ b/pages/dashboard/settings.vue @@ -5,7 +5,7 @@

Settings

-
+

Username

-
+

Theme

-
+

Authorization token

@@ -81,10 +81,25 @@ +

Delete your account

+
@@ -169,6 +184,31 @@ export default { }) } + this.$nuxt.$loading.finish() + }, + async deleteAccount() { + const config = { + headers: { + Authorization: this.$auth.getToken('local'), + }, + } + + this.$nuxt.$loading.start() + + try { + await axios.delete( + `https://api.modrinth.com/api/v1/user/${this.$auth.user.id}`, + config + ) + } catch (err) { + this.$notify({ + group: 'main', + title: 'An Error Occurred', + text: err.response.data.description, + type: 'error', + }) + } + this.$nuxt.$loading.finish() }, }, diff --git a/pages/mod/_id/edit.vue b/pages/mod/_id/edit.vue index 81a24da53..c3efdce25 100644 --- a/pages/mod/_id/edit.vue +++ b/pages/mod/_id/edit.vue @@ -3,6 +3,12 @@

Edit Mod

+ + Back +