diff --git a/assets/styles/components.scss b/assets/styles/components.scss
index e83f3fb9..e36763a7 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 389758bd..bbe2b601 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 c178a190..4499ba25 100644
--- a/pages/dashboard/settings.vue
+++ b/pages/dashboard/settings.vue
@@ -5,7 +5,7 @@
Settings
-
+
-
+
-
+
@@ -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 81a24da5..c3efdce2 100644
--- a/pages/mod/_id/edit.vue
+++ b/pages/mod/_id/edit.vue
@@ -3,6 +3,12 @@